You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9509 lines
291 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. # Find the correct PATH separator. Usually this is `:', but
  10. # DJGPP uses `;' like DOS.
  11. if test "X${PATH_SEPARATOR+set}" != Xset; then
  12. UNAME=${UNAME-`uname 2>/dev/null`}
  13. case X$UNAME in
  14. *-DOS) lt_cv_sys_path_separator=';' ;;
  15. *) lt_cv_sys_path_separator=':' ;;
  16. esac
  17. PATH_SEPARATOR=$lt_cv_sys_path_separator
  18. fi
  19. # Check that we are running under the correct shell.
  20. SHELL=${CONFIG_SHELL-/bin/sh}
  21. case X$ECHO in
  22. X*--fallback-echo)
  23. # Remove one level of quotation (which was required for Make).
  24. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  25. ;;
  26. esac
  27. echo=${ECHO-echo}
  28. if test "X$1" = X--no-reexec; then
  29. # Discard the --no-reexec flag, and continue.
  30. shift
  31. elif test "X$1" = X--fallback-echo; then
  32. # Avoid inline document here, it may be left over
  33. :
  34. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  35. # Yippee, $echo works!
  36. :
  37. else
  38. # Restart under the correct shell.
  39. exec $SHELL "$0" --no-reexec ${1+"$@"}
  40. fi
  41. if test "X$1" = X--fallback-echo; then
  42. # used as fallback echo
  43. shift
  44. cat <<EOF
  45. EOF
  46. exit 0
  47. fi
  48. # The HP-UX ksh and POSIX shell print the target directory to stdout
  49. # if CDPATH is set.
  50. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  51. if test -z "$ECHO"; then
  52. if test "X${echo_test_string+set}" != Xset; then
  53. # find a string as large as possible, as long as the shell can cope with it
  54. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  55. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  56. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  57. echo_test_string="`eval $cmd`" &&
  58. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  59. then
  60. break
  61. fi
  62. done
  63. fi
  64. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  65. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  66. test "X$echo_testing_string" = "X$echo_test_string"; then
  67. :
  68. else
  69. # The Solaris, AIX, and Digital Unix default echo programs unquote
  70. # backslashes. This makes it impossible to quote backslashes using
  71. # echo "$something" | sed 's/\\/\\\\/g'
  72. #
  73. # So, first we look for a working echo in the user's PATH.
  74. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  75. for dir in $PATH /usr/ucb; do
  76. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  77. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  78. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  79. test "X$echo_testing_string" = "X$echo_test_string"; then
  80. echo="$dir/echo"
  81. break
  82. fi
  83. done
  84. IFS="$save_ifs"
  85. if test "X$echo" = Xecho; then
  86. # We didn't find a better echo, so look for alternatives.
  87. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  88. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  89. test "X$echo_testing_string" = "X$echo_test_string"; then
  90. # This shell has a builtin print -r that does the trick.
  91. echo='print -r'
  92. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  93. test "X$CONFIG_SHELL" != X/bin/ksh; then
  94. # If we have ksh, try running configure again with it.
  95. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  96. export ORIGINAL_CONFIG_SHELL
  97. CONFIG_SHELL=/bin/ksh
  98. export CONFIG_SHELL
  99. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  100. else
  101. # Try using printf.
  102. echo='printf %s\n'
  103. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  104. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  105. test "X$echo_testing_string" = "X$echo_test_string"; then
  106. # Cool, printf works
  107. :
  108. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  109. test "X$echo_testing_string" = 'X\t' &&
  110. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  111. test "X$echo_testing_string" = "X$echo_test_string"; then
  112. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  113. export CONFIG_SHELL
  114. SHELL="$CONFIG_SHELL"
  115. export SHELL
  116. echo="$CONFIG_SHELL $0 --fallback-echo"
  117. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  118. test "X$echo_testing_string" = 'X\t' &&
  119. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  120. test "X$echo_testing_string" = "X$echo_test_string"; then
  121. echo="$CONFIG_SHELL $0 --fallback-echo"
  122. else
  123. # maybe with a smaller string...
  124. prev=:
  125. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  126. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  127. then
  128. break
  129. fi
  130. prev="$cmd"
  131. done
  132. if test "$prev" != 'sed 50q "$0"'; then
  133. echo_test_string=`eval $prev`
  134. export echo_test_string
  135. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  136. else
  137. # Oops. We lost completely, so just stick with echo.
  138. echo=echo
  139. fi
  140. fi
  141. fi
  142. fi
  143. fi
  144. fi
  145. # Copy echo and quote the copy suitably for passing to libtool from
  146. # the Makefile, instead of quoting the original, which is used later.
  147. ECHO=$echo
  148. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  149. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  150. fi
  151. # Avoid depending upon Character Ranges.
  152. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  153. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  154. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  155. as_cr_digits='0123456789'
  156. as_cr_alnum=$as_cr_Letters$as_cr_digits
  157. # Sed expression to map a string onto a valid variable name.
  158. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  159. # Sed expression to map a string onto a valid CPP name.
  160. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  161. # Be Bourne compatible
  162. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  163. emulate sh
  164. NULLCMD=:
  165. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  166. set -o posix
  167. fi
  168. # Name of the executable.
  169. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  170. if expr a : '\(a\)' >/dev/null 2>&1; then
  171. as_expr=expr
  172. else
  173. as_expr=false
  174. fi
  175. rm -f conf$$ conf$$.exe conf$$.file
  176. echo >conf$$.file
  177. if ln -s conf$$.file conf$$ 2>/dev/null; then
  178. # We could just check for DJGPP; but this test a) works b) is more generic
  179. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  180. if test -f conf$$.exe; then
  181. # Don't use ln at all; we don't have any links
  182. as_ln_s='cp -p'
  183. else
  184. as_ln_s='ln -s'
  185. fi
  186. elif ln conf$$.file conf$$ 2>/dev/null; then
  187. as_ln_s=ln
  188. else
  189. as_ln_s='cp -p'
  190. fi
  191. rm -f conf$$ conf$$.exe conf$$.file
  192. as_executable_p="test -f"
  193. # Support unset when possible.
  194. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  195. as_unset=unset
  196. else
  197. as_unset=false
  198. fi
  199. # NLS nuisances.
  200. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  201. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  202. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  203. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  204. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  205. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  206. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  207. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  208. # IFS
  209. # We need space, tab and new line, in precisely that order.
  210. as_nl='
  211. '
  212. IFS=" $as_nl"
  213. # CDPATH.
  214. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  215. # Name of the host.
  216. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  217. # so uname gets run too.
  218. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  219. exec 6>&1
  220. #
  221. # Initializations.
  222. #
  223. ac_default_prefix=/usr/local
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS= MAKEFLAGS=
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. # Maximum number of lines to put in a shell here document.
  229. # This variable seems obsolete. It should probably be removed, and
  230. # only ac_max_sed_lines should be used.
  231. : ${ac_max_here_lines=38}
  232. ac_unique_file="panel/xfce.c"
  233. # Initialize some variables set by options.
  234. ac_init_help=
  235. ac_init_version=false
  236. # The variables have the same names as the options, with
  237. # dashes changed to underlines.
  238. cache_file=/dev/null
  239. exec_prefix=NONE
  240. no_create=
  241. no_recursion=
  242. prefix=NONE
  243. program_prefix=NONE
  244. program_suffix=NONE
  245. program_transform_name=s,x,x,
  246. silent=
  247. site=
  248. srcdir=
  249. verbose=
  250. x_includes=NONE
  251. x_libraries=NONE
  252. # Installation directory options.
  253. # These are left unexpanded so users can "make install exec_prefix=/foo"
  254. # and all the variables that are supposed to be based on exec_prefix
  255. # by default will actually change.
  256. # Use braces instead of parens because sh, perl, etc. also accept them.
  257. bindir='${exec_prefix}/bin'
  258. sbindir='${exec_prefix}/sbin'
  259. libexecdir='${exec_prefix}/libexec'
  260. datadir='${prefix}/share'
  261. sysconfdir='${prefix}/etc'
  262. sharedstatedir='${prefix}/com'
  263. localstatedir='${prefix}/var'
  264. libdir='${exec_prefix}/lib'
  265. includedir='${prefix}/include'
  266. oldincludedir='/usr/include'
  267. infodir='${prefix}/info'
  268. mandir='${prefix}/man'
  269. # Identity of this package.
  270. PACKAGE_NAME=
  271. PACKAGE_TARNAME=
  272. PACKAGE_VERSION=
  273. PACKAGE_STRING=
  274. PACKAGE_BUGREPORT=
  275. ac_prev=
  276. for ac_option
  277. do
  278. # If the previous option needs an argument, assign it.
  279. if test -n "$ac_prev"; then
  280. eval "$ac_prev=\$ac_option"
  281. ac_prev=
  282. continue
  283. fi
  284. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  285. # Accept the important Cygnus configure options, so we can diagnose typos.
  286. case $ac_option in
  287. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  288. ac_prev=bindir ;;
  289. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  290. bindir=$ac_optarg ;;
  291. -build | --build | --buil | --bui | --bu)
  292. ac_prev=build_alias ;;
  293. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  294. build_alias=$ac_optarg ;;
  295. -cache-file | --cache-file | --cache-fil | --cache-fi \
  296. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  297. ac_prev=cache_file ;;
  298. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  299. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  300. cache_file=$ac_optarg ;;
  301. --config-cache | -C)
  302. cache_file=config.cache ;;
  303. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  304. ac_prev=datadir ;;
  305. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  306. | --da=*)
  307. datadir=$ac_optarg ;;
  308. -disable-* | --disable-*)
  309. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  310. # Reject names that are not valid shell variable names.
  311. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  312. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  313. { (exit 1); exit 1; }; }
  314. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  315. eval "enable_$ac_feature=no" ;;
  316. -enable-* | --enable-*)
  317. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  318. # Reject names that are not valid shell variable names.
  319. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  320. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  321. { (exit 1); exit 1; }; }
  322. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  323. case $ac_option in
  324. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  325. *) ac_optarg=yes ;;
  326. esac
  327. eval "enable_$ac_feature='$ac_optarg'" ;;
  328. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  329. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  330. | --exec | --exe | --ex)
  331. ac_prev=exec_prefix ;;
  332. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  333. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  334. | --exec=* | --exe=* | --ex=*)
  335. exec_prefix=$ac_optarg ;;
  336. -gas | --gas | --ga | --g)
  337. # Obsolete; use --with-gas.
  338. with_gas=yes ;;
  339. -help | --help | --hel | --he | -h)
  340. ac_init_help=long ;;
  341. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  342. ac_init_help=recursive ;;
  343. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  344. ac_init_help=short ;;
  345. -host | --host | --hos | --ho)
  346. ac_prev=host_alias ;;
  347. -host=* | --host=* | --hos=* | --ho=*)
  348. host_alias=$ac_optarg ;;
  349. -includedir | --includedir | --includedi | --included | --include \
  350. | --includ | --inclu | --incl | --inc)
  351. ac_prev=includedir ;;
  352. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  353. | --includ=* | --inclu=* | --incl=* | --inc=*)
  354. includedir=$ac_optarg ;;
  355. -infodir | --infodir | --infodi | --infod | --info | --inf)
  356. ac_prev=infodir ;;
  357. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  358. infodir=$ac_optarg ;;
  359. -libdir | --libdir | --libdi | --libd)
  360. ac_prev=libdir ;;
  361. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  362. libdir=$ac_optarg ;;
  363. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  364. | --libexe | --libex | --libe)
  365. ac_prev=libexecdir ;;
  366. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  367. | --libexe=* | --libex=* | --libe=*)
  368. libexecdir=$ac_optarg ;;
  369. -localstatedir | --localstatedir | --localstatedi | --localstated \
  370. | --localstate | --localstat | --localsta | --localst \
  371. | --locals | --local | --loca | --loc | --lo)
  372. ac_prev=localstatedir ;;
  373. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  374. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  375. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  376. localstatedir=$ac_optarg ;;
  377. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  378. ac_prev=mandir ;;
  379. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  380. mandir=$ac_optarg ;;
  381. -nfp | --nfp | --nf)
  382. # Obsolete; use --without-fp.
  383. with_fp=no ;;
  384. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  385. | --no-cr | --no-c)
  386. no_create=yes ;;
  387. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  388. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  389. no_recursion=yes ;;
  390. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  391. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  392. | --oldin | --oldi | --old | --ol | --o)
  393. ac_prev=oldincludedir ;;
  394. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  395. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  396. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  397. oldincludedir=$ac_optarg ;;
  398. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  399. ac_prev=prefix ;;
  400. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  401. prefix=$ac_optarg ;;
  402. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  403. | --program-pre | --program-pr | --program-p)
  404. ac_prev=program_prefix ;;
  405. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  406. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  407. program_prefix=$ac_optarg ;;
  408. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  409. | --program-suf | --program-su | --program-s)
  410. ac_prev=program_suffix ;;
  411. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  412. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  413. program_suffix=$ac_optarg ;;
  414. -program-transform-name | --program-transform-name \
  415. | --program-transform-nam | --program-transform-na \
  416. | --program-transform-n | --program-transform- \
  417. | --program-transform | --program-transfor \
  418. | --program-transfo | --program-transf \
  419. | --program-trans | --program-tran \
  420. | --progr-tra | --program-tr | --program-t)
  421. ac_prev=program_transform_name ;;
  422. -program-transform-name=* | --program-transform-name=* \
  423. | --program-transform-nam=* | --program-transform-na=* \
  424. | --program-transform-n=* | --program-transform-=* \
  425. | --program-transform=* | --program-transfor=* \
  426. | --program-transfo=* | --program-transf=* \
  427. | --program-trans=* | --program-tran=* \
  428. | --progr-tra=* | --program-tr=* | --program-t=*)
  429. program_transform_name=$ac_optarg ;;
  430. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  431. | -silent | --silent | --silen | --sile | --sil)
  432. silent=yes ;;
  433. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  434. ac_prev=sbindir ;;
  435. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  436. | --sbi=* | --sb=*)
  437. sbindir=$ac_optarg ;;
  438. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  439. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  440. | --sharedst | --shareds | --shared | --share | --shar \
  441. | --sha | --sh)
  442. ac_prev=sharedstatedir ;;
  443. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  444. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  445. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  446. | --sha=* | --sh=*)
  447. sharedstatedir=$ac_optarg ;;
  448. -site | --site | --sit)
  449. ac_prev=site ;;
  450. -site=* | --site=* | --sit=*)
  451. site=$ac_optarg ;;
  452. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  453. ac_prev=srcdir ;;
  454. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  455. srcdir=$ac_optarg ;;
  456. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  457. | --syscon | --sysco | --sysc | --sys | --sy)
  458. ac_prev=sysconfdir ;;
  459. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  460. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  461. sysconfdir=$ac_optarg ;;
  462. -target | --target | --targe | --targ | --tar | --ta | --t)
  463. ac_prev=target_alias ;;
  464. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  465. target_alias=$ac_optarg ;;
  466. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  467. verbose=yes ;;
  468. -version | --version | --versio | --versi | --vers | -V)
  469. ac_init_version=: ;;
  470. -with-* | --with-*)
  471. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  472. # Reject names that are not valid shell variable names.
  473. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  474. { echo "$as_me: error: invalid package name: $ac_package" >&2
  475. { (exit 1); exit 1; }; }
  476. ac_package=`echo $ac_package| sed 's/-/_/g'`
  477. case $ac_option in
  478. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  479. *) ac_optarg=yes ;;
  480. esac
  481. eval "with_$ac_package='$ac_optarg'" ;;
  482. -without-* | --without-*)
  483. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  484. # Reject names that are not valid shell variable names.
  485. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  486. { echo "$as_me: error: invalid package name: $ac_package" >&2
  487. { (exit 1); exit 1; }; }
  488. ac_package=`echo $ac_package | sed 's/-/_/g'`
  489. eval "with_$ac_package=no" ;;
  490. --x)
  491. # Obsolete; use --with-x.
  492. with_x=yes ;;
  493. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  494. | --x-incl | --x-inc | --x-in | --x-i)
  495. ac_prev=x_includes ;;
  496. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  497. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  498. x_includes=$ac_optarg ;;
  499. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  500. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  501. ac_prev=x_libraries ;;
  502. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  503. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  504. x_libraries=$ac_optarg ;;
  505. -*) { echo "$as_me: error: unrecognized option: $ac_option
  506. Try \`$0 --help' for more information." >&2
  507. { (exit 1); exit 1; }; }
  508. ;;
  509. *=*)
  510. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  516. eval "$ac_envvar='$ac_optarg'"
  517. export $ac_envvar ;;
  518. *)
  519. # FIXME: should be removed in autoconf 3.0.
  520. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  521. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  522. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  523. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  524. ;;
  525. esac
  526. done
  527. if test -n "$ac_prev"; then
  528. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  529. { echo "$as_me: error: missing argument to $ac_option" >&2
  530. { (exit 1); exit 1; }; }
  531. fi
  532. # Be sure to have absolute paths.
  533. for ac_var in exec_prefix prefix
  534. do
  535. eval ac_val=$`echo $ac_var`
  536. case $ac_val in
  537. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  538. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  539. { (exit 1); exit 1; }; };;
  540. esac
  541. done
  542. # Be sure to have absolute paths.
  543. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  544. localstatedir libdir includedir oldincludedir infodir mandir
  545. do
  546. eval ac_val=$`echo $ac_var`
  547. case $ac_val in
  548. [\\/$]* | ?:[\\/]* ) ;;
  549. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  550. { (exit 1); exit 1; }; };;
  551. esac
  552. done
  553. # There might be people who depend on the old broken behavior: `$host'
  554. # used to hold the argument of --host etc.
  555. build=$build_alias
  556. host=$host_alias
  557. target=$target_alias
  558. # FIXME: should be removed in autoconf 3.0.
  559. if test "x$host_alias" != x; then
  560. if test "x$build_alias" = x; then
  561. cross_compiling=maybe
  562. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  563. If a cross compiler is detected then cross compile mode will be used." >&2
  564. elif test "x$build_alias" != "x$host_alias"; then
  565. cross_compiling=yes
  566. fi
  567. fi
  568. ac_tool_prefix=
  569. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  570. test "$silent" = yes && exec 6>/dev/null
  571. # Find the source files, if location was not specified.
  572. if test -z "$srcdir"; then
  573. ac_srcdir_defaulted=yes
  574. # Try the directory containing this script, then its parent.
  575. ac_prog=$0
  576. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  577. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  578. srcdir=$ac_confdir
  579. if test ! -r $srcdir/$ac_unique_file; then
  580. srcdir=..
  581. fi
  582. else
  583. ac_srcdir_defaulted=no
  584. fi
  585. if test ! -r $srcdir/$ac_unique_file; then
  586. if test "$ac_srcdir_defaulted" = yes; then
  587. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  588. { (exit 1); exit 1; }; }
  589. else
  590. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  591. { (exit 1); exit 1; }; }
  592. fi
  593. fi
  594. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  595. ac_env_build_alias_set=${build_alias+set}
  596. ac_env_build_alias_value=$build_alias
  597. ac_cv_env_build_alias_set=${build_alias+set}
  598. ac_cv_env_build_alias_value=$build_alias
  599. ac_env_host_alias_set=${host_alias+set}
  600. ac_env_host_alias_value=$host_alias
  601. ac_cv_env_host_alias_set=${host_alias+set}
  602. ac_cv_env_host_alias_value=$host_alias
  603. ac_env_target_alias_set=${target_alias+set}
  604. ac_env_target_alias_value=$target_alias
  605. ac_cv_env_target_alias_set=${target_alias+set}
  606. ac_cv_env_target_alias_value=$target_alias
  607. ac_env_CC_set=${CC+set}
  608. ac_env_CC_value=$CC
  609. ac_cv_env_CC_set=${CC+set}
  610. ac_cv_env_CC_value=$CC
  611. ac_env_CFLAGS_set=${CFLAGS+set}
  612. ac_env_CFLAGS_value=$CFLAGS
  613. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  614. ac_cv_env_CFLAGS_value=$CFLAGS
  615. ac_env_LDFLAGS_set=${LDFLAGS+set}
  616. ac_env_LDFLAGS_value=$LDFLAGS
  617. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  618. ac_cv_env_LDFLAGS_value=$LDFLAGS
  619. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  620. ac_env_CPPFLAGS_value=$CPPFLAGS
  621. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  622. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  623. ac_env_CPP_set=${CPP+set}
  624. ac_env_CPP_value=$CPP
  625. ac_cv_env_CPP_set=${CPP+set}
  626. ac_cv_env_CPP_value=$CPP
  627. #
  628. # Report the --help message.
  629. #
  630. if test "$ac_init_help" = "long"; then
  631. # Omit some internal or obsolete options to make the list less imposing.
  632. # This message is too long to be a string in the A/UX 3.1 sh.
  633. cat <<EOF
  634. \`configure' configures this package to adapt to many kinds of systems.
  635. Usage: $0 [OPTION]... [VAR=VALUE]...
  636. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  637. VAR=VALUE. See below for descriptions of some of the useful variables.
  638. Defaults for the options are specified in brackets.
  639. Configuration:
  640. -h, --help display this help and exit
  641. --help=short display options specific to this package
  642. --help=recursive display the short help of all the included packages
  643. -V, --version display version information and exit
  644. -q, --quiet, --silent do not print \`checking...' messages
  645. --cache-file=FILE cache test results in FILE [disabled]
  646. -C, --config-cache alias for \`--cache-file=config.cache'
  647. -n, --no-create do not create output files
  648. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  649. EOF
  650. cat <<EOF
  651. Installation directories:
  652. --prefix=PREFIX install architecture-independent files in PREFIX
  653. [$ac_default_prefix]
  654. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  655. [PREFIX]
  656. By default, \`make install' will install all the files in
  657. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  658. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  659. for instance \`--prefix=\$HOME'.
  660. For better control, use the options below.
  661. Fine tuning of the installation directories:
  662. --bindir=DIR user executables [EPREFIX/bin]
  663. --sbindir=DIR system admin executables [EPREFIX/sbin]
  664. --libexecdir=DIR program executables [EPREFIX/libexec]
  665. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  666. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  667. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  668. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  669. --libdir=DIR object code libraries [EPREFIX/lib]
  670. --includedir=DIR C header files [PREFIX/include]
  671. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  672. --infodir=DIR info documentation [PREFIX/info]
  673. --mandir=DIR man documentation [PREFIX/man]
  674. EOF
  675. cat <<\EOF
  676. Program names:
  677. --program-prefix=PREFIX prepend PREFIX to installed program names
  678. --program-suffix=SUFFIX append SUFFIX to installed program names
  679. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  680. X features:
  681. --x-includes=DIR X include files are in DIR
  682. --x-libraries=DIR X library files are in DIR
  683. System types:
  684. --build=BUILD configure for building on BUILD [guessed]
  685. --host=HOST build programs to run on HOST [BUILD]
  686. EOF
  687. fi
  688. if test -n "$ac_init_help"; then
  689. cat <<\EOF
  690. Optional Features:
  691. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  692. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  693. --enable-maintainer-mode enable make rules and dependencies not useful
  694. (and sometimes confusing) to the casual installer
  695. --disable-dependency-tracking Speeds up one-time builds
  696. --enable-dependency-tracking Do not reject slow dependency extractors
  697. --disable-plugins Don't build plugins
  698. --enable-static=PKGS build static libraries default=no
  699. --enable-shared=PKGS build shared libraries default=yes
  700. --enable-fast-install=PKGS optimize for fast installation default=yes
  701. --disable-libtool-lock avoid locking (might break parallel builds)
  702. Optional Packages:
  703. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  704. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  705. --with-x use the X Window System
  706. --with-gnu-ld assume the C compiler uses GNU ld default=no
  707. --with-pic try to use only PIC/non-PIC objects default=use both
  708. Some influential environment variables:
  709. CC C compiler command
  710. CFLAGS C compiler flags
  711. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  712. nonstandard directory <lib dir>
  713. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  714. headers in a nonstandard directory <include dir>
  715. CPP C preprocessor
  716. Use these variables to override the choices made by `configure' or to help
  717. it to find libraries and programs with nonstandard names/locations.
  718. EOF
  719. fi
  720. if test "$ac_init_help" = "recursive"; then
  721. # If there are subdirs, report their specific --help.
  722. ac_popdir=`pwd`
  723. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  724. cd $ac_subdir
  725. # A "../" for each directory in /$ac_subdir.
  726. ac_dots=`echo $ac_subdir |
  727. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  728. case $srcdir in
  729. .) # No --srcdir option. We are building in place.
  730. ac_sub_srcdir=$srcdir ;;
  731. [\\/]* | ?:[\\/]* ) # Absolute path.
  732. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  733. *) # Relative path.
  734. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  735. esac
  736. # Check for guested configure; otherwise get Cygnus style configure.
  737. if test -f $ac_sub_srcdir/configure.gnu; then
  738. echo
  739. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  740. elif test -f $ac_sub_srcdir/configure; then
  741. echo
  742. $SHELL $ac_sub_srcdir/configure --help=recursive
  743. elif test -f $ac_sub_srcdir/configure.ac ||
  744. test -f $ac_sub_srcdir/configure.in; then
  745. echo
  746. $ac_configure --help
  747. else
  748. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  749. fi
  750. cd $ac_popdir
  751. done
  752. fi
  753. test -n "$ac_init_help" && exit 0
  754. if $ac_init_version; then
  755. cat <<\EOF
  756. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  757. Free Software Foundation, Inc.
  758. This configure script is free software; the Free Software Foundation
  759. gives unlimited permission to copy, distribute and modify it.
  760. EOF
  761. exit 0
  762. fi
  763. exec 5>config.log
  764. cat >&5 <<EOF
  765. This file contains any messages produced by compilers while
  766. running configure, to aid debugging if configure makes a mistake.
  767. It was created by $as_me, which was
  768. generated by GNU Autoconf 2.52. Invocation command line was
  769. $ $0 $@
  770. EOF
  771. {
  772. cat <<_ASUNAME
  773. ## ---------- ##
  774. ## Platform. ##
  775. ## ---------- ##
  776. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  777. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  778. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  779. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  780. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  781. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  782. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  783. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  784. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  785. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  786. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  787. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  788. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  789. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  790. PATH = $PATH
  791. _ASUNAME
  792. } >&5
  793. cat >&5 <<EOF
  794. ## ------------ ##
  795. ## Core tests. ##
  796. ## ------------ ##
  797. EOF
  798. # Keep a trace of the command line.
  799. # Strip out --no-create and --no-recursion so they do not pile up.
  800. # Also quote any args containing shell meta-characters.
  801. ac_configure_args=
  802. ac_sep=
  803. for ac_arg
  804. do
  805. case $ac_arg in
  806. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  807. | --no-cr | --no-c) ;;
  808. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  809. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  810. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  811. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  812. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  813. ac_sep=" " ;;
  814. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  815. ac_sep=" " ;;
  816. esac
  817. # Get rid of the leading space.
  818. done
  819. # When interrupted or exit'd, cleanup temporary files, and complete
  820. # config.log. We remove comments because anyway the quotes in there
  821. # would cause problems or look ugly.
  822. trap 'exit_status=$?
  823. # Save into config.log some information that might help in debugging.
  824. echo >&5
  825. echo "## ----------------- ##" >&5
  826. echo "## Cache variables. ##" >&5
  827. echo "## ----------------- ##" >&5
  828. echo >&5
  829. # The following way of writing the cache mishandles newlines in values,
  830. {
  831. (set) 2>&1 |
  832. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  833. *ac_space=\ *)
  834. sed -n \
  835. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  836. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  837. ;;
  838. *)
  839. sed -n \
  840. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  841. ;;
  842. esac;
  843. } >&5
  844. sed "/^$/d" confdefs.h >conftest.log
  845. if test -s conftest.log; then
  846. echo >&5
  847. echo "## ------------ ##" >&5
  848. echo "## confdefs.h. ##" >&5
  849. echo "## ------------ ##" >&5
  850. echo >&5
  851. cat conftest.log >&5
  852. fi
  853. (echo; echo) >&5
  854. test "$ac_signal" != 0 &&
  855. echo "$as_me: caught signal $ac_signal" >&5
  856. echo "$as_me: exit $exit_status" >&5
  857. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  858. exit $exit_status
  859. ' 0
  860. for ac_signal in 1 2 13 15; do
  861. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  862. done
  863. ac_signal=0
  864. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  865. rm -rf conftest* confdefs.h
  866. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  867. echo >confdefs.h
  868. # Let the site file select an alternate cache file if it wants to.
  869. # Prefer explicitly selected file to automatically selected ones.
  870. if test -z "$CONFIG_SITE"; then
  871. if test "x$prefix" != xNONE; then
  872. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  873. else
  874. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  875. fi
  876. fi
  877. for ac_site_file in $CONFIG_SITE; do
  878. if test -r "$ac_site_file"; then
  879. { echo "$as_me:1008: loading site script $ac_site_file" >&5
  880. echo "$as_me: loading site script $ac_site_file" >&6;}
  881. cat "$ac_site_file" >&5
  882. . "$ac_site_file"
  883. fi
  884. done
  885. if test -r "$cache_file"; then
  886. # Some versions of bash will fail to source /dev/null (special
  887. # files actually), so we avoid doing that.
  888. if test -f "$cache_file"; then
  889. { echo "$as_me:1019: loading cache $cache_file" >&5
  890. echo "$as_me: loading cache $cache_file" >&6;}
  891. case $cache_file in
  892. [\\/]* | ?:[\\/]* ) . $cache_file;;
  893. *) . ./$cache_file;;
  894. esac
  895. fi
  896. else
  897. { echo "$as_me:1027: creating cache $cache_file" >&5
  898. echo "$as_me: creating cache $cache_file" >&6;}
  899. >$cache_file
  900. fi
  901. # Check that the precious variables saved in the cache have kept the same
  902. # value.
  903. ac_cache_corrupted=false
  904. for ac_var in `(set) 2>&1 |
  905. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  906. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  907. eval ac_new_set=\$ac_env_${ac_var}_set
  908. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  909. eval ac_new_val="\$ac_env_${ac_var}_value"
  910. case $ac_old_set,$ac_new_set in
  911. set,)
  912. { echo "$as_me:1043: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  913. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  914. ac_cache_corrupted=: ;;
  915. ,set)
  916. { echo "$as_me:1047: error: \`$ac_var' was not set in the previous run" >&5
  917. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  918. ac_cache_corrupted=: ;;
  919. ,);;
  920. *)
  921. if test "x$ac_old_val" != "x$ac_new_val"; then
  922. { echo "$as_me:1053: error: \`$ac_var' has changed since the previous run:" >&5
  923. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  924. { echo "$as_me:1055: former value: $ac_old_val" >&5
  925. echo "$as_me: former value: $ac_old_val" >&2;}
  926. { echo "$as_me:1057: current value: $ac_new_val" >&5
  927. echo "$as_me: current value: $ac_new_val" >&2;}
  928. ac_cache_corrupted=:
  929. fi;;
  930. esac
  931. # Pass precious variables to config.status. It doesn't matter if
  932. # we pass some twice (in addition to the command line arguments).
  933. if test "$ac_new_set" = set; then
  934. case $ac_new_val in
  935. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  936. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  937. ac_configure_args="$ac_configure_args '$ac_arg'"
  938. ;;
  939. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  940. ;;
  941. esac
  942. fi
  943. done
  944. if $ac_cache_corrupted; then
  945. { echo "$as_me:1076: error: changes in the environment can compromise the build" >&5
  946. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  947. { { echo "$as_me:1078: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  948. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  949. { (exit 1); exit 1; }; }
  950. fi
  951. ac_ext=c
  952. ac_cpp='$CPP $CPPFLAGS'
  953. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  954. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  955. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  956. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  957. *c*,-n*) ECHO_N= ECHO_C='
  958. ' ECHO_T=' ' ;;
  959. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  960. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  961. esac
  962. echo "#! $SHELL" >conftest.sh
  963. echo "exit 0" >>conftest.sh
  964. chmod +x conftest.sh
  965. if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
  966. (PATH=".;."; conftest.sh) 2>&5
  967. ac_status=$?
  968. echo "$as_me:1101: \$? = $ac_status" >&5
  969. (exit $ac_status); }; then
  970. ac_path_separator=';'
  971. else
  972. ac_path_separator=:
  973. fi
  974. PATH_SEPARATOR="$ac_path_separator"
  975. rm -f conftest.sh
  976. VERSION=`date +%Y%m%d`
  977. am__api_version="1.6"
  978. ac_aux_dir=
  979. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  980. if test -f $ac_dir/install-sh; then
  981. ac_aux_dir=$ac_dir
  982. ac_install_sh="$ac_aux_dir/install-sh -c"
  983. break
  984. elif test -f $ac_dir/install.sh; then
  985. ac_aux_dir=$ac_dir
  986. ac_install_sh="$ac_aux_dir/install.sh -c"
  987. break
  988. elif test -f $ac_dir/shtool; then
  989. ac_aux_dir=$ac_dir
  990. ac_install_sh="$ac_aux_dir/shtool install -c"
  991. break
  992. fi
  993. done
  994. if test -z "$ac_aux_dir"; then
  995. { { echo "$as_me:1129: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  996. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  997. { (exit 1); exit 1; }; }
  998. fi
  999. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1000. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1001. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1002. # Find a good install program. We prefer a C program (faster),
  1003. # so one script is as good as another. But avoid the broken or
  1004. # incompatible versions:
  1005. # SysV /etc/install, /usr/sbin/install
  1006. # SunOS /usr/etc/install
  1007. # IRIX /sbin/install
  1008. # AIX /bin/install
  1009. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1010. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1011. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1012. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1013. # ./install, which can be erroneously created by make from ./install.sh.
  1014. echo "$as_me:1149: checking for a BSD compatible install" >&5
  1015. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  1016. if test -z "$INSTALL"; then
  1017. if test "${ac_cv_path_install+set}" = set; then
  1018. echo $ECHO_N "(cached) $ECHO_C" >&6
  1019. else
  1020. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1021. for ac_dir in $PATH; do
  1022. IFS=$ac_save_IFS
  1023. # Account for people who put trailing slashes in PATH elements.
  1024. case $ac_dir/ in
  1025. / | ./ | .// | /cC/* \
  1026. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  1027. | /usr/ucb/* ) ;;
  1028. *)
  1029. # OSF1 and SCO ODT 3.0 have their own names for install.
  1030. # Don't use installbsd from OSF since it installs stuff as root
  1031. # by default.
  1032. for ac_prog in ginstall scoinst install; do
  1033. if $as_executable_p "$ac_dir/$ac_prog"; then
  1034. if test $ac_prog = install &&
  1035. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  1036. # AIX install. It has an incompatible calling convention.
  1037. :
  1038. elif test $ac_prog = install &&
  1039. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  1040. # program-specific install script used by HP pwplus--don't use.
  1041. :
  1042. else
  1043. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1044. break 2
  1045. fi
  1046. fi
  1047. done
  1048. ;;
  1049. esac
  1050. done
  1051. fi
  1052. if test "${ac_cv_path_install+set}" = set; then
  1053. INSTALL=$ac_cv_path_install
  1054. else
  1055. # As a last resort, use the slow shell script. We don't cache a
  1056. # path for INSTALL within a source directory, because that will
  1057. # break other packages using the cache if that directory is
  1058. # removed, or if the path is relative.
  1059. INSTALL=$ac_install_sh
  1060. fi
  1061. fi
  1062. echo "$as_me:1198: result: $INSTALL" >&5
  1063. echo "${ECHO_T}$INSTALL" >&6
  1064. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1065. # It thinks the first close brace ends the variable substitution.
  1066. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1067. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1068. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1069. echo "$as_me:1209: checking whether build environment is sane" >&5
  1070. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1071. # Just in case
  1072. sleep 1
  1073. echo timestamp > conftest.file
  1074. # Do `set' in a subshell so we don't clobber the current shell's
  1075. # arguments. Must try -L first in case configure is actually a
  1076. # symlink; some systems play weird games with the mod time of symlinks
  1077. # (eg FreeBSD returns the mod time of the symlink's containing
  1078. # directory).
  1079. if (
  1080. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1081. if test "$*" = "X"; then
  1082. # -L didn't work.
  1083. set X `ls -t $srcdir/configure conftest.file`
  1084. fi
  1085. rm -f conftest.file
  1086. if test "$*" != "X $srcdir/configure conftest.file" \
  1087. && test "$*" != "X conftest.file $srcdir/configure"; then
  1088. # If neither matched, then we have a broken ls. This can happen
  1089. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1090. # broken ls alias from the environment. This has actually
  1091. # happened. Such a system could not be considered "sane".
  1092. { { echo "$as_me:1233: error: ls -t appears to fail. Make sure there is not a broken
  1093. alias in your environment" >&5
  1094. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1095. alias in your environment" >&2;}
  1096. { (exit 1); exit 1; }; }
  1097. fi
  1098. test "$2" = conftest.file
  1099. )
  1100. then
  1101. # Ok.
  1102. :
  1103. else
  1104. { { echo "$as_me:1246: error: newly created file is older than distributed files!
  1105. Check your system clock" >&5
  1106. echo "$as_me: error: newly created file is older than distributed files!
  1107. Check your system clock" >&2;}
  1108. { (exit 1); exit 1; }; }
  1109. fi
  1110. echo "$as_me:1252: result: yes" >&5
  1111. echo "${ECHO_T}yes" >&6
  1112. test "$program_prefix" != NONE &&
  1113. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1114. # Use a double $ so make ignores it.
  1115. test "$program_suffix" != NONE &&
  1116. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1117. # Double any \ or $. echo might interpret backslashes.
  1118. # By default was `s,x,x', remove it if useless.
  1119. cat <<\_ACEOF >conftest.sed
  1120. s/[\\$]/&&/g;s/;s,x,x,$//
  1121. _ACEOF
  1122. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1123. rm conftest.sed
  1124. # expand $ac_aux_dir to an absolute path
  1125. am_aux_dir=`cd $ac_aux_dir && pwd`
  1126. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1127. # Use eval to expand $SHELL
  1128. if eval "$MISSING --run true"; then
  1129. am_missing_run="$MISSING --run "
  1130. else
  1131. am_missing_run=
  1132. { echo "$as_me:1276: WARNING: \`missing' script is too old or missing" >&5
  1133. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1134. fi
  1135. for ac_prog in mawk gawk nawk awk
  1136. do
  1137. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1138. set dummy $ac_prog; ac_word=$2
  1139. echo "$as_me:1284: checking for $ac_word" >&5
  1140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1141. if test "${ac_cv_prog_AWK+set}" = set; then
  1142. echo $ECHO_N "(cached) $ECHO_C" >&6
  1143. else
  1144. if test -n "$AWK"; then
  1145. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1146. else
  1147. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1148. ac_dummy="$PATH"
  1149. for ac_dir in $ac_dummy; do
  1150. IFS=$ac_save_IFS
  1151. test -z "$ac_dir" && ac_dir=.
  1152. $as_executable_p "$ac_dir/$ac_word" || continue
  1153. ac_cv_prog_AWK="$ac_prog"
  1154. echo "$as_me:1299: found $ac_dir/$ac_word" >&5
  1155. break
  1156. done
  1157. fi
  1158. fi
  1159. AWK=$ac_cv_prog_AWK
  1160. if test -n "$AWK"; then
  1161. echo "$as_me:1307: result: $AWK" >&5
  1162. echo "${ECHO_T}$AWK" >&6
  1163. else
  1164. echo "$as_me:1310: result: no" >&5
  1165. echo "${ECHO_T}no" >&6
  1166. fi
  1167. test -n "$AWK" && break
  1168. done
  1169. echo "$as_me:1317: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1170. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1171. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1172. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1173. echo $ECHO_N "(cached) $ECHO_C" >&6
  1174. else
  1175. cat >conftest.make <<\EOF
  1176. all:
  1177. @echo 'ac_maketemp="${MAKE}"'
  1178. EOF
  1179. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1180. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1181. if test -n "$ac_maketemp"; then
  1182. eval ac_cv_prog_make_${ac_make}_set=yes
  1183. else
  1184. eval ac_cv_prog_make_${ac_make}_set=no
  1185. fi
  1186. rm -f conftest.make
  1187. fi
  1188. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1189. echo "$as_me:1337: result: yes" >&5
  1190. echo "${ECHO_T}yes" >&6
  1191. SET_MAKE=
  1192. else
  1193. echo "$as_me:1341: result: no" >&5
  1194. echo "${ECHO_T}no" >&6
  1195. SET_MAKE="MAKE=${MAKE-make}"
  1196. fi
  1197. # test to see if srcdir already configured
  1198. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1199. test -f $srcdir/config.status; then
  1200. { { echo "$as_me:1349: error: source directory already configured; run \"make distclean\" there first" >&5
  1201. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1202. { (exit 1); exit 1; }; }
  1203. fi
  1204. # Define the identity of the package.
  1205. PACKAGE=xfce4
  1206. VERSION=$VERSION
  1207. cat >>confdefs.h <<EOF
  1208. #define PACKAGE "$PACKAGE"
  1209. EOF
  1210. cat >>confdefs.h <<EOF
  1211. #define VERSION "$VERSION"
  1212. EOF
  1213. # Some tools Automake needs.
  1214. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1215. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1216. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1217. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1218. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1219. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1220. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1221. # Installed binaries are usually stripped using `strip' when the user
  1222. # run `make install-strip'. However `strip' might not be the right
  1223. # tool to use in cross-compilation environments, therefore Automake
  1224. # will honor the `STRIP' environment variable to overrule this program.
  1225. if test "$cross_compiling" != no; then
  1226. if test -n "$ac_tool_prefix"; then
  1227. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1228. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1229. echo "$as_me:1390: checking for $ac_word" >&5
  1230. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1231. if test "${ac_cv_prog_STRIP+set}" = set; then
  1232. echo $ECHO_N "(cached) $ECHO_C" >&6
  1233. else
  1234. if test -n "$STRIP"; then
  1235. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1236. else
  1237. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1238. ac_dummy="$PATH"
  1239. for ac_dir in $ac_dummy; do
  1240. IFS=$ac_save_IFS
  1241. test -z "$ac_dir" && ac_dir=.
  1242. $as_executable_p "$ac_dir/$ac_word" || continue
  1243. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1244. echo "$as_me:1405: found $ac_dir/$ac_word" >&5
  1245. break
  1246. done
  1247. fi
  1248. fi
  1249. STRIP=$ac_cv_prog_STRIP
  1250. if test -n "$STRIP"; then
  1251. echo "$as_me:1413: result: $STRIP" >&5
  1252. echo "${ECHO_T}$STRIP" >&6
  1253. else
  1254. echo "$as_me:1416: result: no" >&5
  1255. echo "${ECHO_T}no" >&6
  1256. fi
  1257. fi
  1258. if test -z "$ac_cv_prog_STRIP"; then
  1259. ac_ct_STRIP=$STRIP
  1260. # Extract the first word of "strip", so it can be a program name with args.
  1261. set dummy strip; ac_word=$2
  1262. echo "$as_me:1425: checking for $ac_word" >&5
  1263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1264. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1265. echo $ECHO_N "(cached) $ECHO_C" >&6
  1266. else
  1267. if test -n "$ac_ct_STRIP"; then
  1268. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1269. else
  1270. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1271. ac_dummy="$PATH"
  1272. for ac_dir in $ac_dummy; do
  1273. IFS=$ac_save_IFS
  1274. test -z "$ac_dir" && ac_dir=.
  1275. $as_executable_p "$ac_dir/$ac_word" || continue
  1276. ac_cv_prog_ac_ct_STRIP="strip"
  1277. echo "$as_me:1440: found $ac_dir/$ac_word" >&5
  1278. break
  1279. done
  1280. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1281. fi
  1282. fi
  1283. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1284. if test -n "$ac_ct_STRIP"; then
  1285. echo "$as_me:1449: result: $ac_ct_STRIP" >&5
  1286. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1287. else
  1288. echo "$as_me:1452: result: no" >&5
  1289. echo "${ECHO_T}no" >&6
  1290. fi
  1291. STRIP=$ac_ct_STRIP
  1292. else
  1293. STRIP="$ac_cv_prog_STRIP"
  1294. fi
  1295. fi
  1296. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1297. # We need awk for the "check" target. The system "awk" is bad on
  1298. # some platforms.
  1299. echo "$as_me:1467: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1300. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1301. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1302. if test "${enable_maintainer_mode+set}" = set; then
  1303. enableval="$enable_maintainer_mode"
  1304. USE_MAINTAINER_MODE=$enableval
  1305. else
  1306. USE_MAINTAINER_MODE=no
  1307. fi;
  1308. echo "$as_me:1476: result: $USE_MAINTAINER_MODE" >&5
  1309. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1310. if test $USE_MAINTAINER_MODE = yes; then
  1311. MAINTAINER_MODE_TRUE=
  1312. MAINTAINER_MODE_FALSE='#'
  1313. else
  1314. MAINTAINER_MODE_TRUE='#'
  1315. MAINTAINER_MODE_FALSE=
  1316. fi
  1317. MAINT=$MAINTAINER_MODE_TRUE
  1318. # Add the stamp file to the list of files AC keeps track of,
  1319. # along with our hook.
  1320. ac_config_headers="$ac_config_headers config.h"
  1321. # Honor aclocal flags
  1322. ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  1323. ac_ext=c
  1324. ac_cpp='$CPP $CPPFLAGS'
  1325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1328. if test -n "$ac_tool_prefix"; then
  1329. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1330. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1331. echo "$as_me:1504: checking for $ac_word" >&5
  1332. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1333. if test "${ac_cv_prog_CC+set}" = set; then
  1334. echo $ECHO_N "(cached) $ECHO_C" >&6
  1335. else
  1336. if test -n "$CC"; then
  1337. ac_cv_prog_CC="$CC" # Let the user override the test.
  1338. else
  1339. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1340. ac_dummy="$PATH"
  1341. for ac_dir in $ac_dummy; do
  1342. IFS=$ac_save_IFS
  1343. test -z "$ac_dir" && ac_dir=.
  1344. $as_executable_p "$ac_dir/$ac_word" || continue
  1345. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1346. echo "$as_me:1519: found $ac_dir/$ac_word" >&5
  1347. break
  1348. done
  1349. fi
  1350. fi
  1351. CC=$ac_cv_prog_CC
  1352. if test -n "$CC"; then
  1353. echo "$as_me:1527: result: $CC" >&5
  1354. echo "${ECHO_T}$CC" >&6
  1355. else
  1356. echo "$as_me:1530: result: no" >&5
  1357. echo "${ECHO_T}no" >&6
  1358. fi
  1359. fi
  1360. if test -z "$ac_cv_prog_CC"; then
  1361. ac_ct_CC=$CC
  1362. # Extract the first word of "gcc", so it can be a program name with args.
  1363. set dummy gcc; ac_word=$2
  1364. echo "$as_me:1539: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$ac_ct_CC"; then
  1370. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1371. else
  1372. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1373. ac_dummy="$PATH"
  1374. for ac_dir in $ac_dummy; do
  1375. IFS=$ac_save_IFS
  1376. test -z "$ac_dir" && ac_dir=.
  1377. $as_executable_p "$ac_dir/$ac_word" || continue
  1378. ac_cv_prog_ac_ct_CC="gcc"
  1379. echo "$as_me:1554: found $ac_dir/$ac_word" >&5
  1380. break
  1381. done
  1382. fi
  1383. fi
  1384. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1385. if test -n "$ac_ct_CC"; then
  1386. echo "$as_me:1562: result: $ac_ct_CC" >&5
  1387. echo "${ECHO_T}$ac_ct_CC" >&6
  1388. else
  1389. echo "$as_me:1565: result: no" >&5
  1390. echo "${ECHO_T}no" >&6
  1391. fi
  1392. CC=$ac_ct_CC
  1393. else
  1394. CC="$ac_cv_prog_CC"
  1395. fi
  1396. if test -z "$CC"; then
  1397. if test -n "$ac_tool_prefix"; then
  1398. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1399. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1400. echo "$as_me:1578: checking for $ac_word" >&5
  1401. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1402. if test "${ac_cv_prog_CC+set}" = set; then
  1403. echo $ECHO_N "(cached) $ECHO_C" >&6
  1404. else
  1405. if test -n "$CC"; then
  1406. ac_cv_prog_CC="$CC" # Let the user override the test.
  1407. else
  1408. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1409. ac_dummy="$PATH"
  1410. for ac_dir in $ac_dummy; do
  1411. IFS=$ac_save_IFS
  1412. test -z "$ac_dir" && ac_dir=.
  1413. $as_executable_p "$ac_dir/$ac_word" || continue
  1414. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1415. echo "$as_me:1593: found $ac_dir/$ac_word" >&5
  1416. break
  1417. done
  1418. fi
  1419. fi
  1420. CC=$ac_cv_prog_CC
  1421. if test -n "$CC"; then
  1422. echo "$as_me:1601: result: $CC" >&5
  1423. echo "${ECHO_T}$CC" >&6
  1424. else
  1425. echo "$as_me:1604: result: no" >&5
  1426. echo "${ECHO_T}no" >&6
  1427. fi
  1428. fi
  1429. if test -z "$ac_cv_prog_CC"; then
  1430. ac_ct_CC=$CC
  1431. # Extract the first word of "cc", so it can be a program name with args.
  1432. set dummy cc; ac_word=$2
  1433. echo "$as_me:1613: checking for $ac_word" >&5
  1434. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1435. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1436. echo $ECHO_N "(cached) $ECHO_C" >&6
  1437. else
  1438. if test -n "$ac_ct_CC"; then
  1439. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1440. else
  1441. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1442. ac_dummy="$PATH"
  1443. for ac_dir in $ac_dummy; do
  1444. IFS=$ac_save_IFS
  1445. test -z "$ac_dir" && ac_dir=.
  1446. $as_executable_p "$ac_dir/$ac_word" || continue
  1447. ac_cv_prog_ac_ct_CC="cc"
  1448. echo "$as_me:1628: found $ac_dir/$ac_word" >&5
  1449. break
  1450. done
  1451. fi
  1452. fi
  1453. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1454. if test -n "$ac_ct_CC"; then
  1455. echo "$as_me:1636: result: $ac_ct_CC" >&5
  1456. echo "${ECHO_T}$ac_ct_CC" >&6
  1457. else
  1458. echo "$as_me:1639: result: no" >&5
  1459. echo "${ECHO_T}no" >&6
  1460. fi
  1461. CC=$ac_ct_CC
  1462. else
  1463. CC="$ac_cv_prog_CC"
  1464. fi
  1465. fi
  1466. if test -z "$CC"; then
  1467. # Extract the first word of "cc", so it can be a program name with args.
  1468. set dummy cc; ac_word=$2
  1469. echo "$as_me:1652: checking for $ac_word" >&5
  1470. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1471. if test "${ac_cv_prog_CC+set}" = set; then
  1472. echo $ECHO_N "(cached) $ECHO_C" >&6
  1473. else
  1474. if test -n "$CC"; then
  1475. ac_cv_prog_CC="$CC" # Let the user override the test.
  1476. else
  1477. ac_prog_rejected=no
  1478. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1479. ac_dummy="$PATH"
  1480. for ac_dir in $ac_dummy; do
  1481. IFS=$ac_save_IFS
  1482. test -z "$ac_dir" && ac_dir=.
  1483. $as_executable_p "$ac_dir/$ac_word" || continue
  1484. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1485. ac_prog_rejected=yes
  1486. continue
  1487. fi
  1488. ac_cv_prog_CC="cc"
  1489. echo "$as_me:1672: found $ac_dir/$ac_word" >&5
  1490. break
  1491. done
  1492. if test $ac_prog_rejected = yes; then
  1493. # We found a bogon in the path, so make sure we never use it.
  1494. set dummy $ac_cv_prog_CC
  1495. shift
  1496. if test $# != 0; then
  1497. # We chose a different compiler from the bogus one.
  1498. # However, it has the same basename, so the bogon will be chosen
  1499. # first if we set CC to just the basename; use the full file name.
  1500. shift
  1501. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  1502. shift
  1503. ac_cv_prog_CC="$@"
  1504. fi
  1505. fi
  1506. fi
  1507. fi
  1508. CC=$ac_cv_prog_CC
  1509. if test -n "$CC"; then
  1510. echo "$as_me:1694: result: $CC" >&5
  1511. echo "${ECHO_T}$CC" >&6
  1512. else
  1513. echo "$as_me:1697: result: no" >&5
  1514. echo "${ECHO_T}no" >&6
  1515. fi
  1516. fi
  1517. if test -z "$CC"; then
  1518. if test -n "$ac_tool_prefix"; then
  1519. for ac_prog in cl
  1520. do
  1521. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1522. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1523. echo "$as_me:1708: checking for $ac_word" >&5
  1524. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1525. if test "${ac_cv_prog_CC+set}" = set; then
  1526. echo $ECHO_N "(cached) $ECHO_C" >&6
  1527. else
  1528. if test -n "$CC"; then
  1529. ac_cv_prog_CC="$CC" # Let the user override the test.
  1530. else
  1531. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1532. ac_dummy="$PATH"
  1533. for ac_dir in $ac_dummy; do
  1534. IFS=$ac_save_IFS
  1535. test -z "$ac_dir" && ac_dir=.
  1536. $as_executable_p "$ac_dir/$ac_word" || continue
  1537. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1538. echo "$as_me:1723: found $ac_dir/$ac_word" >&5
  1539. break
  1540. done
  1541. fi
  1542. fi
  1543. CC=$ac_cv_prog_CC
  1544. if test -n "$CC"; then
  1545. echo "$as_me:1731: result: $CC" >&5
  1546. echo "${ECHO_T}$CC" >&6
  1547. else
  1548. echo "$as_me:1734: result: no" >&5
  1549. echo "${ECHO_T}no" >&6
  1550. fi
  1551. test -n "$CC" && break
  1552. done
  1553. fi
  1554. if test -z "$CC"; then
  1555. ac_ct_CC=$CC
  1556. for ac_prog in cl
  1557. do
  1558. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1559. set dummy $ac_prog; ac_word=$2
  1560. echo "$as_me:1747: checking for $ac_word" >&5
  1561. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1562. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1563. echo $ECHO_N "(cached) $ECHO_C" >&6
  1564. else
  1565. if test -n "$ac_ct_CC"; then
  1566. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1567. else
  1568. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1569. ac_dummy="$PATH"
  1570. for ac_dir in $ac_dummy; do
  1571. IFS=$ac_save_IFS
  1572. test -z "$ac_dir" && ac_dir=.
  1573. $as_executable_p "$ac_dir/$ac_word" || continue
  1574. ac_cv_prog_ac_ct_CC="$ac_prog"
  1575. echo "$as_me:1762: found $ac_dir/$ac_word" >&5
  1576. break
  1577. done
  1578. fi
  1579. fi
  1580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1581. if test -n "$ac_ct_CC"; then
  1582. echo "$as_me:1770: result: $ac_ct_CC" >&5
  1583. echo "${ECHO_T}$ac_ct_CC" >&6
  1584. else
  1585. echo "$as_me:1773: result: no" >&5
  1586. echo "${ECHO_T}no" >&6
  1587. fi
  1588. test -n "$ac_ct_CC" && break
  1589. done
  1590. CC=$ac_ct_CC
  1591. fi
  1592. fi
  1593. test -z "$CC" && { { echo "$as_me:1785: error: no acceptable cc found in \$PATH" >&5
  1594. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1595. { (exit 1); exit 1; }; }
  1596. # Provide some information about the compiler.
  1597. echo "$as_me:1790:" \
  1598. "checking for C compiler version" >&5
  1599. ac_compiler=`set X $ac_compile; echo $2`
  1600. { (eval echo "$as_me:1793: \"$ac_compiler --version </dev/null >&5\"") >&5
  1601. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1602. ac_status=$?
  1603. echo "$as_me:1796: \$? = $ac_status" >&5
  1604. (exit $ac_status); }
  1605. { (eval echo "$as_me:1798: \"$ac_compiler -v </dev/null >&5\"") >&5
  1606. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1607. ac_status=$?
  1608. echo "$as_me:1801: \$? = $ac_status" >&5
  1609. (exit $ac_status); }
  1610. { (eval echo "$as_me:1803: \"$ac_compiler -V </dev/null >&5\"") >&5
  1611. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:1806: \$? = $ac_status" >&5
  1614. (exit $ac_status); }
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. #line 1810 "configure"
  1617. #include "confdefs.h"
  1618. int
  1619. main ()
  1620. {
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. ac_clean_files_save=$ac_clean_files
  1626. ac_clean_files="$ac_clean_files a.out a.exe"
  1627. # Try to create an executable without -o first, disregard a.out.
  1628. # It will help us diagnose broken compilers, and finding out an intuition
  1629. # of exeext.
  1630. echo "$as_me:1826: checking for C compiler default output" >&5
  1631. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1632. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1633. if { (eval echo "$as_me:1829: \"$ac_link_default\"") >&5
  1634. (eval $ac_link_default) 2>&5
  1635. ac_status=$?
  1636. echo "$as_me:1832: \$? = $ac_status" >&5
  1637. (exit $ac_status); }; then
  1638. # Find the output, starting from the most likely. This scheme is
  1639. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1640. # resort.
  1641. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1642. ls a.out conftest 2>/dev/null;
  1643. ls a.* conftest.* 2>/dev/null`; do
  1644. case $ac_file in
  1645. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1646. a.out ) # We found the default executable, but exeext='' is most
  1647. # certainly right.
  1648. break;;
  1649. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1650. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1651. export ac_cv_exeext
  1652. break;;
  1653. * ) break;;
  1654. esac
  1655. done
  1656. else
  1657. echo "$as_me: failed program was:" >&5
  1658. cat conftest.$ac_ext >&5
  1659. { { echo "$as_me:1855: error: C compiler cannot create executables" >&5
  1660. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1661. { (exit 77); exit 77; }; }
  1662. fi
  1663. ac_exeext=$ac_cv_exeext
  1664. echo "$as_me:1861: result: $ac_file" >&5
  1665. echo "${ECHO_T}$ac_file" >&6
  1666. # Check the compiler produces executables we can run. If not, either
  1667. # the compiler is broken, or we cross compile.
  1668. echo "$as_me:1866: checking whether the C compiler works" >&5
  1669. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1670. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1671. # If not cross compiling, check that we can run a simple program.
  1672. if test "$cross_compiling" != yes; then
  1673. if { ac_try='./$ac_file'
  1674. { (eval echo "$as_me:1872: \"$ac_try\"") >&5
  1675. (eval $ac_try) 2>&5
  1676. ac_status=$?
  1677. echo "$as_me:1875: \$? = $ac_status" >&5
  1678. (exit $ac_status); }; }; then
  1679. cross_compiling=no
  1680. else
  1681. if test "$cross_compiling" = maybe; then
  1682. cross_compiling=yes
  1683. else
  1684. { { echo "$as_me:1882: error: cannot run C compiled programs.
  1685. If you meant to cross compile, use \`--host'." >&5
  1686. echo "$as_me: error: cannot run C compiled programs.
  1687. If you meant to cross compile, use \`--host'." >&2;}
  1688. { (exit 1); exit 1; }; }
  1689. fi
  1690. fi
  1691. fi
  1692. echo "$as_me:1890: result: yes" >&5
  1693. echo "${ECHO_T}yes" >&6
  1694. rm -f a.out a.exe conftest$ac_cv_exeext
  1695. ac_clean_files=$ac_clean_files_save
  1696. # Check the compiler produces executables we can run. If not, either
  1697. # the compiler is broken, or we cross compile.
  1698. echo "$as_me:1897: checking whether we are cross compiling" >&5
  1699. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1700. echo "$as_me:1899: result: $cross_compiling" >&5
  1701. echo "${ECHO_T}$cross_compiling" >&6
  1702. echo "$as_me:1902: checking for executable suffix" >&5
  1703. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1704. if { (eval echo "$as_me:1904: \"$ac_link\"") >&5
  1705. (eval $ac_link) 2>&5
  1706. ac_status=$?
  1707. echo "$as_me:1907: \$? = $ac_status" >&5
  1708. (exit $ac_status); }; then
  1709. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1710. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1711. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1712. # `rm'.
  1713. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1714. case $ac_file in
  1715. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1716. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1717. export ac_cv_exeext
  1718. break;;
  1719. * ) break;;
  1720. esac
  1721. done
  1722. else
  1723. { { echo "$as_me:1923: error: cannot compute EXEEXT: cannot compile and link" >&5
  1724. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1725. { (exit 1); exit 1; }; }
  1726. fi
  1727. rm -f conftest$ac_cv_exeext
  1728. echo "$as_me:1929: result: $ac_cv_exeext" >&5
  1729. echo "${ECHO_T}$ac_cv_exeext" >&6
  1730. rm -f conftest.$ac_ext
  1731. EXEEXT=$ac_cv_exeext
  1732. ac_exeext=$EXEEXT
  1733. echo "$as_me:1935: checking for object suffix" >&5
  1734. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1735. if test "${ac_cv_objext+set}" = set; then
  1736. echo $ECHO_N "(cached) $ECHO_C" >&6
  1737. else
  1738. cat >conftest.$ac_ext <<_ACEOF
  1739. #line 1941 "configure"
  1740. #include "confdefs.h"
  1741. int
  1742. main ()
  1743. {
  1744. ;
  1745. return 0;
  1746. }
  1747. _ACEOF
  1748. rm -f conftest.o conftest.obj
  1749. if { (eval echo "$as_me:1953: \"$ac_compile\"") >&5
  1750. (eval $ac_compile) 2>&5
  1751. ac_status=$?
  1752. echo "$as_me:1956: \$? = $ac_status" >&5
  1753. (exit $ac_status); }; then
  1754. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1755. case $ac_file in
  1756. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1757. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1758. break;;
  1759. esac
  1760. done
  1761. else
  1762. echo "$as_me: failed program was:" >&5
  1763. cat conftest.$ac_ext >&5
  1764. { { echo "$as_me:1968: error: cannot compute OBJEXT: cannot compile" >&5
  1765. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1766. { (exit 1); exit 1; }; }
  1767. fi
  1768. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1769. fi
  1770. echo "$as_me:1975: result: $ac_cv_objext" >&5
  1771. echo "${ECHO_T}$ac_cv_objext" >&6
  1772. OBJEXT=$ac_cv_objext
  1773. ac_objext=$OBJEXT
  1774. echo "$as_me:1979: checking whether we are using the GNU C compiler" >&5
  1775. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1776. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1777. echo $ECHO_N "(cached) $ECHO_C" >&6
  1778. else
  1779. cat >conftest.$ac_ext <<_ACEOF
  1780. #line 1985 "configure"
  1781. #include "confdefs.h"
  1782. int
  1783. main ()
  1784. {
  1785. #ifndef __GNUC__
  1786. choke me
  1787. #endif
  1788. ;
  1789. return 0;
  1790. }
  1791. _ACEOF
  1792. rm -f conftest.$ac_objext
  1793. if { (eval echo "$as_me:2000: \"$ac_compile\"") >&5
  1794. (eval $ac_compile) 2>&5
  1795. ac_status=$?
  1796. echo "$as_me:2003: \$? = $ac_status" >&5
  1797. (exit $ac_status); } &&
  1798. { ac_try='test -s conftest.$ac_objext'
  1799. { (eval echo "$as_me:2006: \"$ac_try\"") >&5
  1800. (eval $ac_try) 2>&5
  1801. ac_status=$?
  1802. echo "$as_me:2009: \$? = $ac_status" >&5
  1803. (exit $ac_status); }; }; then
  1804. ac_compiler_gnu=yes
  1805. else
  1806. echo "$as_me: failed program was:" >&5
  1807. cat conftest.$ac_ext >&5
  1808. ac_compiler_gnu=no
  1809. fi
  1810. rm -f conftest.$ac_objext conftest.$ac_ext
  1811. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1812. fi
  1813. echo "$as_me:2021: result: $ac_cv_c_compiler_gnu" >&5
  1814. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1815. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1816. ac_test_CFLAGS=${CFLAGS+set}
  1817. ac_save_CFLAGS=$CFLAGS
  1818. CFLAGS="-g"
  1819. echo "$as_me:2027: checking whether $CC accepts -g" >&5
  1820. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1821. if test "${ac_cv_prog_cc_g+set}" = set; then
  1822. echo $ECHO_N "(cached) $ECHO_C" >&6
  1823. else
  1824. cat >conftest.$ac_ext <<_ACEOF
  1825. #line 2033 "configure"
  1826. #include "confdefs.h"
  1827. int
  1828. main ()
  1829. {
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. rm -f conftest.$ac_objext
  1835. if { (eval echo "$as_me:2045: \"$ac_compile\"") >&5
  1836. (eval $ac_compile) 2>&5
  1837. ac_status=$?
  1838. echo "$as_me:2048: \$? = $ac_status" >&5
  1839. (exit $ac_status); } &&
  1840. { ac_try='test -s conftest.$ac_objext'
  1841. { (eval echo "$as_me:2051: \"$ac_try\"") >&5
  1842. (eval $ac_try) 2>&5
  1843. ac_status=$?
  1844. echo "$as_me:2054: \$? = $ac_status" >&5
  1845. (exit $ac_status); }; }; then
  1846. ac_cv_prog_cc_g=yes
  1847. else
  1848. echo "$as_me: failed program was:" >&5
  1849. cat conftest.$ac_ext >&5
  1850. ac_cv_prog_cc_g=no
  1851. fi
  1852. rm -f conftest.$ac_objext conftest.$ac_ext
  1853. fi
  1854. echo "$as_me:2064: result: $ac_cv_prog_cc_g" >&5
  1855. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1856. if test "$ac_test_CFLAGS" = set; then
  1857. CFLAGS=$ac_save_CFLAGS
  1858. elif test $ac_cv_prog_cc_g = yes; then
  1859. if test "$GCC" = yes; then
  1860. CFLAGS="-g -O2"
  1861. else
  1862. CFLAGS="-g"
  1863. fi
  1864. else
  1865. if test "$GCC" = yes; then
  1866. CFLAGS="-O2"
  1867. else
  1868. CFLAGS=
  1869. fi
  1870. fi
  1871. # Some people use a C++ compiler to compile C. Since we use `exit',
  1872. # in C++ we need to declare it. In case someone uses the same compiler
  1873. # for both compiling C and C++ we need to have the C++ compiler decide
  1874. # the declaration of exit, since it's the most demanding environment.
  1875. cat >conftest.$ac_ext <<_ACEOF
  1876. #ifndef __cplusplus
  1877. choke me
  1878. #endif
  1879. _ACEOF
  1880. rm -f conftest.$ac_objext
  1881. if { (eval echo "$as_me:2091: \"$ac_compile\"") >&5
  1882. (eval $ac_compile) 2>&5
  1883. ac_status=$?
  1884. echo "$as_me:2094: \$? = $ac_status" >&5
  1885. (exit $ac_status); } &&
  1886. { ac_try='test -s conftest.$ac_objext'
  1887. { (eval echo "$as_me:2097: \"$ac_try\"") >&5
  1888. (eval $ac_try) 2>&5
  1889. ac_status=$?
  1890. echo "$as_me:2100: \$? = $ac_status" >&5
  1891. (exit $ac_status); }; }; then
  1892. for ac_declaration in \
  1893. ''\
  1894. '#include <stdlib.h>' \
  1895. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1896. 'extern "C" void std::exit (int); using std::exit;' \
  1897. 'extern "C" void exit (int) throw ();' \
  1898. 'extern "C" void exit (int);' \
  1899. 'void exit (int);'
  1900. do
  1901. cat >conftest.$ac_ext <<_ACEOF
  1902. #line 2112 "configure"
  1903. #include "confdefs.h"
  1904. #include <stdlib.h>
  1905. $ac_declaration
  1906. int
  1907. main ()
  1908. {
  1909. exit (42);
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. rm -f conftest.$ac_objext
  1915. if { (eval echo "$as_me:2125: \"$ac_compile\"") >&5
  1916. (eval $ac_compile) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:2128: \$? = $ac_status" >&5
  1919. (exit $ac_status); } &&
  1920. { ac_try='test -s conftest.$ac_objext'
  1921. { (eval echo "$as_me:2131: \"$ac_try\"") >&5
  1922. (eval $ac_try) 2>&5
  1923. ac_status=$?
  1924. echo "$as_me:2134: \$? = $ac_status" >&5
  1925. (exit $ac_status); }; }; then
  1926. :
  1927. else
  1928. echo "$as_me: failed program was:" >&5
  1929. cat conftest.$ac_ext >&5
  1930. continue
  1931. fi
  1932. rm -f conftest.$ac_objext conftest.$ac_ext
  1933. cat >conftest.$ac_ext <<_ACEOF
  1934. #line 2144 "configure"
  1935. #include "confdefs.h"
  1936. $ac_declaration
  1937. int
  1938. main ()
  1939. {
  1940. exit (42);
  1941. ;
  1942. return 0;
  1943. }
  1944. _ACEOF
  1945. rm -f conftest.$ac_objext
  1946. if { (eval echo "$as_me:2156: \"$ac_compile\"") >&5
  1947. (eval $ac_compile) 2>&5
  1948. ac_status=$?
  1949. echo "$as_me:2159: \$? = $ac_status" >&5
  1950. (exit $ac_status); } &&
  1951. { ac_try='test -s conftest.$ac_objext'
  1952. { (eval echo "$as_me:2162: \"$ac_try\"") >&5
  1953. (eval $ac_try) 2>&5
  1954. ac_status=$?
  1955. echo "$as_me:2165: \$? = $ac_status" >&5
  1956. (exit $ac_status); }; }; then
  1957. break
  1958. else
  1959. echo "$as_me: failed program was:" >&5
  1960. cat conftest.$ac_ext >&5
  1961. fi
  1962. rm -f conftest.$ac_objext conftest.$ac_ext
  1963. done
  1964. rm -f conftest*
  1965. if test -n "$ac_declaration"; then
  1966. echo '#ifdef __cplusplus' >>confdefs.h
  1967. echo $ac_declaration >>confdefs.h
  1968. echo '#endif' >>confdefs.h
  1969. fi
  1970. else
  1971. echo "$as_me: failed program was:" >&5
  1972. cat conftest.$ac_ext >&5
  1973. fi
  1974. rm -f conftest.$ac_objext conftest.$ac_ext
  1975. ac_ext=c
  1976. ac_cpp='$CPP $CPPFLAGS'
  1977. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1978. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1979. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1980. rm -f .deps 2>/dev/null
  1981. mkdir .deps 2>/dev/null
  1982. if test -d .deps; then
  1983. DEPDIR=.deps
  1984. else
  1985. # MS-DOS does not allow filenames that begin with a dot.
  1986. DEPDIR=_deps
  1987. fi
  1988. rmdir .deps 2>/dev/null
  1989. ac_config_commands="$ac_config_commands depfiles"
  1990. am_make=${MAKE-make}
  1991. cat > confinc << 'END'
  1992. doit:
  1993. @echo done
  1994. END
  1995. # If we don't find an include directive, just comment out the code.
  1996. echo "$as_me:2209: checking for style of include used by $am_make" >&5
  1997. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1998. am__include="#"
  1999. am__quote=
  2000. _am_result=none
  2001. # First try GNU make style include.
  2002. echo "include confinc" > confmf
  2003. # We grep out `Entering directory' and `Leaving directory'
  2004. # messages which can occur if `w' ends up in MAKEFLAGS.
  2005. # In particular we don't look at `^make:' because GNU make might
  2006. # be invoked under some other name (usually "gmake"), in which
  2007. # case it prints its new name instead of `make'.
  2008. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  2009. am__include=include
  2010. am__quote=
  2011. _am_result=GNU
  2012. fi
  2013. # Now try BSD make style include.
  2014. if test "$am__include" = "#"; then
  2015. echo '.include "confinc"' > confmf
  2016. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2017. am__include=.include
  2018. am__quote="\""
  2019. _am_result=BSD
  2020. fi
  2021. fi
  2022. echo "$as_me:2236: result: $_am_result" >&5
  2023. echo "${ECHO_T}$_am_result" >&6
  2024. rm -f confinc confmf
  2025. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2026. if test "${enable_dependency_tracking+set}" = set; then
  2027. enableval="$enable_dependency_tracking"
  2028. fi;
  2029. if test "x$enable_dependency_tracking" != xno; then
  2030. am_depcomp="$ac_aux_dir/depcomp"
  2031. AMDEPBACKSLASH='\'
  2032. fi
  2033. if test "x$enable_dependency_tracking" != xno; then
  2034. AMDEP_TRUE=
  2035. AMDEP_FALSE='#'
  2036. else
  2037. AMDEP_TRUE='#'
  2038. AMDEP_FALSE=
  2039. fi
  2040. depcc="$CC" am_compiler_list=
  2041. echo "$as_me:2260: checking dependency style of $depcc" >&5
  2042. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2043. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2044. echo $ECHO_N "(cached) $ECHO_C" >&6
  2045. else
  2046. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2047. # We make a subdir and do the tests there. Otherwise we can end up
  2048. # making bogus files that we don't know about and never remove. For
  2049. # instance it was reported that on HP-UX the gcc test will end up
  2050. # making a dummy file named `D' -- because `-MD' means `put the output
  2051. # in D'.
  2052. mkdir conftest.dir
  2053. # Copy depcomp to subdir because otherwise we won't find it if we're
  2054. # using a relative directory.
  2055. cp "$am_depcomp" conftest.dir
  2056. cd conftest.dir
  2057. am_cv_CC_dependencies_compiler_type=none
  2058. if test "$am_compiler_list" = ""; then
  2059. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2060. fi
  2061. for depmode in $am_compiler_list; do
  2062. # We need to recreate these files for each test, as the compiler may
  2063. # overwrite some of them when testing with obscure command lines.
  2064. # This happens at least with the AIX C compiler.
  2065. echo '#include "conftest.h"' > conftest.c
  2066. echo 'int i;' > conftest.h
  2067. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2068. case $depmode in
  2069. nosideeffect)
  2070. # after this tag, mechanisms are not by side-effect, so they'll
  2071. # only be used when explicitly requested
  2072. if test "x$enable_dependency_tracking" = xyes; then
  2073. continue
  2074. else
  2075. break
  2076. fi
  2077. ;;
  2078. none) break ;;
  2079. esac
  2080. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2081. # mode. It turns out that the SunPro C++ compiler does not properly
  2082. # handle `-M -o', and we need to detect this.
  2083. if depmode=$depmode \
  2084. source=conftest.c object=conftest.o \
  2085. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2086. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  2087. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2088. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2089. am_cv_CC_dependencies_compiler_type=$depmode
  2090. break
  2091. fi
  2092. done
  2093. cd ..
  2094. rm -rf conftest.dir
  2095. else
  2096. am_cv_CC_dependencies_compiler_type=none
  2097. fi
  2098. fi
  2099. echo "$as_me:2322: result: $am_cv_CC_dependencies_compiler_type" >&5
  2100. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2101. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2102. # Find a good install program. We prefer a C program (faster),
  2103. # so one script is as good as another. But avoid the broken or
  2104. # incompatible versions:
  2105. # SysV /etc/install, /usr/sbin/install
  2106. # SunOS /usr/etc/install
  2107. # IRIX /sbin/install
  2108. # AIX /bin/install
  2109. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2110. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2111. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2112. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2113. # ./install, which can be erroneously created by make from ./install.sh.
  2114. echo "$as_me:2338: checking for a BSD compatible install" >&5
  2115. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  2116. if test -z "$INSTALL"; then
  2117. if test "${ac_cv_path_install+set}" = set; then
  2118. echo $ECHO_N "(cached) $ECHO_C" >&6
  2119. else
  2120. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2121. for ac_dir in $PATH; do
  2122. IFS=$ac_save_IFS
  2123. # Account for people who put trailing slashes in PATH elements.
  2124. case $ac_dir/ in
  2125. / | ./ | .// | /cC/* \
  2126. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  2127. | /usr/ucb/* ) ;;
  2128. *)
  2129. # OSF1 and SCO ODT 3.0 have their own names for install.
  2130. # Don't use installbsd from OSF since it installs stuff as root
  2131. # by default.
  2132. for ac_prog in ginstall scoinst install; do
  2133. if $as_executable_p "$ac_dir/$ac_prog"; then
  2134. if test $ac_prog = install &&
  2135. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2136. # AIX install. It has an incompatible calling convention.
  2137. :
  2138. elif test $ac_prog = install &&
  2139. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2140. # program-specific install script used by HP pwplus--don't use.
  2141. :
  2142. else
  2143. ac_cv_path_install="$ac_dir/$ac_prog -c"
  2144. break 2
  2145. fi
  2146. fi
  2147. done
  2148. ;;
  2149. esac
  2150. done
  2151. fi
  2152. if test "${ac_cv_path_install+set}" = set; then
  2153. INSTALL=$ac_cv_path_install
  2154. else
  2155. # As a last resort, use the slow shell script. We don't cache a
  2156. # path for INSTALL within a source directory, because that will
  2157. # break other packages using the cache if that directory is
  2158. # removed, or if the path is relative.
  2159. INSTALL=$ac_install_sh
  2160. fi
  2161. fi
  2162. echo "$as_me:2387: result: $INSTALL" >&5
  2163. echo "${ECHO_T}$INSTALL" >&6
  2164. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2165. # It thinks the first close brace ends the variable substitution.
  2166. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2167. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2168. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2169. echo "$as_me:2398: checking for $CC option to accept ANSI C" >&5
  2170. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2171. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2172. echo $ECHO_N "(cached) $ECHO_C" >&6
  2173. else
  2174. ac_cv_prog_cc_stdc=no
  2175. ac_save_CC=$CC
  2176. cat >conftest.$ac_ext <<_ACEOF
  2177. #line 2406 "configure"
  2178. #include "confdefs.h"
  2179. #include <stdarg.h>
  2180. #include <stdio.h>
  2181. #include <sys/types.h>
  2182. #include <sys/stat.h>
  2183. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2184. struct buf { int x; };
  2185. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2186. static char *e (p, i)
  2187. char **p;
  2188. int i;
  2189. {
  2190. return p[i];
  2191. }
  2192. static char *f (char * (*g) (char **, int), char **p, ...)
  2193. {
  2194. char *s;
  2195. va_list v;
  2196. va_start (v,p);
  2197. s = g (p, va_arg (v,int));
  2198. va_end (v);
  2199. return s;
  2200. }
  2201. int test (int i, double x);
  2202. struct s1 {int (*f) (int a);};
  2203. struct s2 {int (*f) (double a);};
  2204. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2205. int argc;
  2206. char **argv;
  2207. int
  2208. main ()
  2209. {
  2210. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2211. ;
  2212. return 0;
  2213. }
  2214. _ACEOF
  2215. # Don't try gcc -ansi; that turns off useful extensions and
  2216. # breaks some systems' header files.
  2217. # AIX -qlanglvl=ansi
  2218. # Ultrix and OSF/1 -std1
  2219. # HP-UX 10.20 and later -Ae
  2220. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2221. # SVR4 -Xc -D__EXTENSIONS__
  2222. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2223. do
  2224. CC="$ac_save_CC $ac_arg"
  2225. rm -f conftest.$ac_objext
  2226. if { (eval echo "$as_me:2455: \"$ac_compile\"") >&5
  2227. (eval $ac_compile) 2>&5
  2228. ac_status=$?
  2229. echo "$as_me:2458: \$? = $ac_status" >&5
  2230. (exit $ac_status); } &&
  2231. { ac_try='test -s conftest.$ac_objext'
  2232. { (eval echo "$as_me:2461: \"$ac_try\"") >&5
  2233. (eval $ac_try) 2>&5
  2234. ac_status=$?
  2235. echo "$as_me:2464: \$? = $ac_status" >&5
  2236. (exit $ac_status); }; }; then
  2237. ac_cv_prog_cc_stdc=$ac_arg
  2238. break
  2239. else
  2240. echo "$as_me: failed program was:" >&5
  2241. cat conftest.$ac_ext >&5
  2242. fi
  2243. rm -f conftest.$ac_objext
  2244. done
  2245. rm -f conftest.$ac_ext conftest.$ac_objext
  2246. CC=$ac_save_CC
  2247. fi
  2248. case "x$ac_cv_prog_cc_stdc" in
  2249. x|xno)
  2250. echo "$as_me:2481: result: none needed" >&5
  2251. echo "${ECHO_T}none needed" >&6 ;;
  2252. *)
  2253. echo "$as_me:2484: result: $ac_cv_prog_cc_stdc" >&5
  2254. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2255. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2256. esac
  2257. echo "$as_me:2489: checking for inline" >&5
  2258. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  2259. if test "${ac_cv_c_inline+set}" = set; then
  2260. echo $ECHO_N "(cached) $ECHO_C" >&6
  2261. else
  2262. ac_cv_c_inline=no
  2263. for ac_kw in inline __inline__ __inline; do
  2264. cat >conftest.$ac_ext <<_ACEOF
  2265. #line 2497 "configure"
  2266. #include "confdefs.h"
  2267. #ifndef __cplusplus
  2268. static $ac_kw int static_foo () {return 0; }
  2269. $ac_kw int foo () {return 0; }
  2270. #endif
  2271. _ACEOF
  2272. rm -f conftest.$ac_objext
  2273. if { (eval echo "$as_me:2506: \"$ac_compile\"") >&5
  2274. (eval $ac_compile) 2>&5
  2275. ac_status=$?
  2276. echo "$as_me:2509: \$? = $ac_status" >&5
  2277. (exit $ac_status); } &&
  2278. { ac_try='test -s conftest.$ac_objext'
  2279. { (eval echo "$as_me:2512: \"$ac_try\"") >&5
  2280. (eval $ac_try) 2>&5
  2281. ac_status=$?
  2282. echo "$as_me:2515: \$? = $ac_status" >&5
  2283. (exit $ac_status); }; }; then
  2284. ac_cv_c_inline=$ac_kw; break
  2285. else
  2286. echo "$as_me: failed program was:" >&5
  2287. cat conftest.$ac_ext >&5
  2288. fi
  2289. rm -f conftest.$ac_objext conftest.$ac_ext
  2290. done
  2291. fi
  2292. echo "$as_me:2526: result: $ac_cv_c_inline" >&5
  2293. echo "${ECHO_T}$ac_cv_c_inline" >&6
  2294. case $ac_cv_c_inline in
  2295. inline | yes) ;;
  2296. no)
  2297. cat >>confdefs.h <<\EOF
  2298. #define inline
  2299. EOF
  2300. ;;
  2301. *) cat >>confdefs.h <<EOF
  2302. #define inline $ac_cv_c_inline
  2303. EOF
  2304. ;;
  2305. esac
  2306. echo "$as_me:2541: checking for an ANSI C-conforming const" >&5
  2307. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2308. if test "${ac_cv_c_const+set}" = set; then
  2309. echo $ECHO_N "(cached) $ECHO_C" >&6
  2310. else
  2311. cat >conftest.$ac_ext <<_ACEOF
  2312. #line 2547 "configure"
  2313. #include "confdefs.h"
  2314. int
  2315. main ()
  2316. {
  2317. /* FIXME: Include the comments suggested by Paul. */
  2318. #ifndef __cplusplus
  2319. /* Ultrix mips cc rejects this. */
  2320. typedef int charset[2];
  2321. const charset x;
  2322. /* SunOS 4.1.1 cc rejects this. */
  2323. char const *const *ccp;
  2324. char **p;
  2325. /* NEC SVR4.0.2 mips cc rejects this. */
  2326. struct point {int x, y;};
  2327. static struct point const zero = {0,0};
  2328. /* AIX XL C 1.02.0.0 rejects this.
  2329. It does not let you subtract one const X* pointer from another in
  2330. an arm of an if-expression whose if-part is not a constant
  2331. expression */
  2332. const char *g = "string";
  2333. ccp = &g + (g ? g-g : 0);
  2334. /* HPUX 7.0 cc rejects these. */
  2335. ++ccp;
  2336. p = (char**) ccp;
  2337. ccp = (char const *const *) p;
  2338. { /* SCO 3.2v4 cc rejects this. */
  2339. char *t;
  2340. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2341. *t++ = 0;
  2342. }
  2343. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2344. int x[] = {25, 17};
  2345. const int *foo = &x[0];
  2346. ++foo;
  2347. }
  2348. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2349. typedef const int *iptr;
  2350. iptr p = 0;
  2351. ++p;
  2352. }
  2353. { /* AIX XL C 1.02.0.0 rejects this saying
  2354. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2355. struct s { int j; const int *ap[3]; };
  2356. struct s *b; b->j = 5;
  2357. }
  2358. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2359. const int foo = 10;
  2360. }
  2361. #endif
  2362. ;
  2363. return 0;
  2364. }
  2365. _ACEOF
  2366. rm -f conftest.$ac_objext
  2367. if { (eval echo "$as_me:2605: \"$ac_compile\"") >&5
  2368. (eval $ac_compile) 2>&5
  2369. ac_status=$?
  2370. echo "$as_me:2608: \$? = $ac_status" >&5
  2371. (exit $ac_status); } &&
  2372. { ac_try='test -s conftest.$ac_objext'
  2373. { (eval echo "$as_me:2611: \"$ac_try\"") >&5
  2374. (eval $ac_try) 2>&5
  2375. ac_status=$?
  2376. echo "$as_me:2614: \$? = $ac_status" >&5
  2377. (exit $ac_status); }; }; then
  2378. ac_cv_c_const=yes
  2379. else
  2380. echo "$as_me: failed program was:" >&5
  2381. cat conftest.$ac_ext >&5
  2382. ac_cv_c_const=no
  2383. fi
  2384. rm -f conftest.$ac_objext conftest.$ac_ext
  2385. fi
  2386. echo "$as_me:2624: result: $ac_cv_c_const" >&5
  2387. echo "${ECHO_T}$ac_cv_c_const" >&6
  2388. if test $ac_cv_c_const = no; then
  2389. cat >>confdefs.h <<\EOF
  2390. #define const
  2391. EOF
  2392. fi
  2393. ac_ext=c
  2394. ac_cpp='$CPP $CPPFLAGS'
  2395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2398. echo "$as_me:2639: checking how to run the C preprocessor" >&5
  2399. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2400. # On Suns, sometimes $CPP names a directory.
  2401. if test -n "$CPP" && test -d "$CPP"; then
  2402. CPP=
  2403. fi
  2404. if test -z "$CPP"; then
  2405. if test "${ac_cv_prog_CPP+set}" = set; then
  2406. echo $ECHO_N "(cached) $ECHO_C" >&6
  2407. else
  2408. # Double quotes because CPP needs to be expanded
  2409. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2410. do
  2411. ac_preproc_ok=false
  2412. for ac_c_preproc_warn_flag in '' yes
  2413. do
  2414. # Use a header file that comes with gcc, so configuring glibc
  2415. # with a fresh cross-compiler works.
  2416. # On the NeXT, cc -E runs the code through the compiler's parser,
  2417. # not just through cpp. "Syntax error" is here to catch this case.
  2418. cat >conftest.$ac_ext <<_ACEOF
  2419. #line 2660 "configure"
  2420. #include "confdefs.h"
  2421. #include <assert.h>
  2422. Syntax error
  2423. _ACEOF
  2424. if { (eval echo "$as_me:2665: \"$ac_cpp conftest.$ac_ext\"") >&5
  2425. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2426. ac_status=$?
  2427. egrep -v '^ *\+' conftest.er1 >conftest.err
  2428. rm -f conftest.er1
  2429. cat conftest.err >&5
  2430. echo "$as_me:2671: \$? = $ac_status" >&5
  2431. (exit $ac_status); } >/dev/null; then
  2432. if test -s conftest.err; then
  2433. ac_cpp_err=$ac_c_preproc_warn_flag
  2434. else
  2435. ac_cpp_err=
  2436. fi
  2437. else
  2438. ac_cpp_err=yes
  2439. fi
  2440. if test -z "$ac_cpp_err"; then
  2441. :
  2442. else
  2443. echo "$as_me: failed program was:" >&5
  2444. cat conftest.$ac_ext >&5
  2445. # Broken: fails on valid input.
  2446. continue
  2447. fi
  2448. rm -f conftest.err conftest.$ac_ext
  2449. # OK, works on sane cases. Now check whether non-existent headers
  2450. # can be detected and how.
  2451. cat >conftest.$ac_ext <<_ACEOF
  2452. #line 2694 "configure"
  2453. #include "confdefs.h"
  2454. #include <ac_nonexistent.h>
  2455. _ACEOF
  2456. if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
  2457. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2458. ac_status=$?
  2459. egrep -v '^ *\+' conftest.er1 >conftest.err
  2460. rm -f conftest.er1
  2461. cat conftest.err >&5
  2462. echo "$as_me:2704: \$? = $ac_status" >&5
  2463. (exit $ac_status); } >/dev/null; then
  2464. if test -s conftest.err; then
  2465. ac_cpp_err=$ac_c_preproc_warn_flag
  2466. else
  2467. ac_cpp_err=
  2468. fi
  2469. else
  2470. ac_cpp_err=yes
  2471. fi
  2472. if test -z "$ac_cpp_err"; then
  2473. # Broken: success on invalid input.
  2474. continue
  2475. else
  2476. echo "$as_me: failed program was:" >&5
  2477. cat conftest.$ac_ext >&5
  2478. # Passes both tests.
  2479. ac_preproc_ok=:
  2480. break
  2481. fi
  2482. rm -f conftest.err conftest.$ac_ext
  2483. done
  2484. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2485. rm -f conftest.err conftest.$ac_ext
  2486. if $ac_preproc_ok; then
  2487. break
  2488. fi
  2489. done
  2490. ac_cv_prog_CPP=$CPP
  2491. fi
  2492. CPP=$ac_cv_prog_CPP
  2493. else
  2494. ac_cv_prog_CPP=$CPP
  2495. fi
  2496. echo "$as_me:2741: result: $CPP" >&5
  2497. echo "${ECHO_T}$CPP" >&6
  2498. ac_preproc_ok=false
  2499. for ac_c_preproc_warn_flag in '' yes
  2500. do
  2501. # Use a header file that comes with gcc, so configuring glibc
  2502. # with a fresh cross-compiler works.
  2503. # On the NeXT, cc -E runs the code through the compiler's parser,
  2504. # not just through cpp. "Syntax error" is here to catch this case.
  2505. cat >conftest.$ac_ext <<_ACEOF
  2506. #line 2751 "configure"
  2507. #include "confdefs.h"
  2508. #include <assert.h>
  2509. Syntax error
  2510. _ACEOF
  2511. if { (eval echo "$as_me:2756: \"$ac_cpp conftest.$ac_ext\"") >&5
  2512. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2513. ac_status=$?
  2514. egrep -v '^ *\+' conftest.er1 >conftest.err
  2515. rm -f conftest.er1
  2516. cat conftest.err >&5
  2517. echo "$as_me:2762: \$? = $ac_status" >&5
  2518. (exit $ac_status); } >/dev/null; then
  2519. if test -s conftest.err; then
  2520. ac_cpp_err=$ac_c_preproc_warn_flag
  2521. else
  2522. ac_cpp_err=
  2523. fi
  2524. else
  2525. ac_cpp_err=yes
  2526. fi
  2527. if test -z "$ac_cpp_err"; then
  2528. :
  2529. else
  2530. echo "$as_me: failed program was:" >&5
  2531. cat conftest.$ac_ext >&5
  2532. # Broken: fails on valid input.
  2533. continue
  2534. fi
  2535. rm -f conftest.err conftest.$ac_ext
  2536. # OK, works on sane cases. Now check whether non-existent headers
  2537. # can be detected and how.
  2538. cat >conftest.$ac_ext <<_ACEOF
  2539. #line 2785 "configure"
  2540. #include "confdefs.h"
  2541. #include <ac_nonexistent.h>
  2542. _ACEOF
  2543. if { (eval echo "$as_me:2789: \"$ac_cpp conftest.$ac_ext\"") >&5
  2544. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2545. ac_status=$?
  2546. egrep -v '^ *\+' conftest.er1 >conftest.err
  2547. rm -f conftest.er1
  2548. cat conftest.err >&5
  2549. echo "$as_me:2795: \$? = $ac_status" >&5
  2550. (exit $ac_status); } >/dev/null; then
  2551. if test -s conftest.err; then
  2552. ac_cpp_err=$ac_c_preproc_warn_flag
  2553. else
  2554. ac_cpp_err=
  2555. fi
  2556. else
  2557. ac_cpp_err=yes
  2558. fi
  2559. if test -z "$ac_cpp_err"; then
  2560. # Broken: success on invalid input.
  2561. continue
  2562. else
  2563. echo "$as_me: failed program was:" >&5
  2564. cat conftest.$ac_ext >&5
  2565. # Passes both tests.
  2566. ac_preproc_ok=:
  2567. break
  2568. fi
  2569. rm -f conftest.err conftest.$ac_ext
  2570. done
  2571. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2572. rm -f conftest.err conftest.$ac_ext
  2573. if $ac_preproc_ok; then
  2574. :
  2575. else
  2576. { { echo "$as_me:2823: error: C preprocessor \"$CPP\" fails sanity check" >&5
  2577. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  2578. { (exit 1); exit 1; }; }
  2579. fi
  2580. ac_ext=c
  2581. ac_cpp='$CPP $CPPFLAGS'
  2582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2585. echo "$as_me:2834: checking for X" >&5
  2586. echo $ECHO_N "checking for X... $ECHO_C" >&6
  2587. # Check whether --with-x or --without-x was given.
  2588. if test "${with_x+set}" = set; then
  2589. withval="$with_x"
  2590. fi;
  2591. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2592. if test "x$with_x" = xno; then
  2593. # The user explicitly disabled X.
  2594. have_x=disabled
  2595. else
  2596. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2597. # Both variables are already set.
  2598. have_x=yes
  2599. else
  2600. if test "${ac_cv_have_x+set}" = set; then
  2601. echo $ECHO_N "(cached) $ECHO_C" >&6
  2602. else
  2603. # One or both of the vars are not set, and there is no cached value.
  2604. ac_x_includes=no ac_x_libraries=no
  2605. rm -fr conftest.dir
  2606. if mkdir conftest.dir; then
  2607. cd conftest.dir
  2608. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2609. cat >Imakefile <<'EOF'
  2610. acfindx:
  2611. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2612. EOF
  2613. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2614. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2615. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2616. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2617. for ac_extension in a so sl; do
  2618. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2619. test -f $ac_im_libdir/libX11.$ac_extension; then
  2620. ac_im_usrlibdir=$ac_im_libdir; break
  2621. fi
  2622. done
  2623. # Screen out bogus values from the imake configuration. They are
  2624. # bogus both because they are the default anyway, and because
  2625. # using them would break gcc on systems where it needs fixed includes.
  2626. case $ac_im_incroot in
  2627. /usr/include) ;;
  2628. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  2629. esac
  2630. case $ac_im_usrlibdir in
  2631. /usr/lib | /lib) ;;
  2632. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  2633. esac
  2634. fi
  2635. cd ..
  2636. rm -fr conftest.dir
  2637. fi
  2638. # Standard set of common directories for X headers.
  2639. # Check X11 before X11Rn because it is often a symlink to the current release.
  2640. ac_x_header_dirs='
  2641. /usr/X11/include
  2642. /usr/X11R6/include
  2643. /usr/X11R5/include
  2644. /usr/X11R4/include
  2645. /usr/include/X11
  2646. /usr/include/X11R6
  2647. /usr/include/X11R5
  2648. /usr/include/X11R4
  2649. /usr/local/X11/include
  2650. /usr/local/X11R6/include
  2651. /usr/local/X11R5/include
  2652. /usr/local/X11R4/include
  2653. /usr/local/include/X11
  2654. /usr/local/include/X11R6
  2655. /usr/local/include/X11R5
  2656. /usr/local/include/X11R4
  2657. /usr/X386/include
  2658. /usr/x386/include
  2659. /usr/XFree86/include/X11
  2660. /usr/include
  2661. /usr/local/include
  2662. /usr/unsupported/include
  2663. /usr/athena/include
  2664. /usr/local/x11r5/include
  2665. /usr/lpp/Xamples/include
  2666. /usr/openwin/include
  2667. /usr/openwin/share/include'
  2668. if test "$ac_x_includes" = no; then
  2669. # Guess where to find include files, by looking for Intrinsic.h.
  2670. # First, try using that file with no special directory specified.
  2671. cat >conftest.$ac_ext <<_ACEOF
  2672. #line 2931 "configure"
  2673. #include "confdefs.h"
  2674. #include <X11/Intrinsic.h>
  2675. _ACEOF
  2676. if { (eval echo "$as_me:2935: \"$ac_cpp conftest.$ac_ext\"") >&5
  2677. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2678. ac_status=$?
  2679. egrep -v '^ *\+' conftest.er1 >conftest.err
  2680. rm -f conftest.er1
  2681. cat conftest.err >&5
  2682. echo "$as_me:2941: \$? = $ac_status" >&5
  2683. (exit $ac_status); } >/dev/null; then
  2684. if test -s conftest.err; then
  2685. ac_cpp_err=$ac_c_preproc_warn_flag
  2686. else
  2687. ac_cpp_err=
  2688. fi
  2689. else
  2690. ac_cpp_err=yes
  2691. fi
  2692. if test -z "$ac_cpp_err"; then
  2693. # We can compile using X headers with no special include directory.
  2694. ac_x_includes=
  2695. else
  2696. echo "$as_me: failed program was:" >&5
  2697. cat conftest.$ac_ext >&5
  2698. for ac_dir in $ac_x_header_dirs; do
  2699. if test -r "$ac_dir/X11/Intrinsic.h"; then
  2700. ac_x_includes=$ac_dir
  2701. break
  2702. fi
  2703. done
  2704. fi
  2705. rm -f conftest.err conftest.$ac_ext
  2706. fi # $ac_x_includes = no
  2707. if test "$ac_x_libraries" = no; then
  2708. # Check for the libraries.
  2709. # See if we find them without any special options.
  2710. # Don't add to $LIBS permanently.
  2711. ac_save_LIBS=$LIBS
  2712. LIBS="-lXt $LIBS"
  2713. cat >conftest.$ac_ext <<_ACEOF
  2714. #line 2974 "configure"
  2715. #include "confdefs.h"
  2716. #include <X11/Intrinsic.h>
  2717. int
  2718. main ()
  2719. {
  2720. XtMalloc (0)
  2721. ;
  2722. return 0;
  2723. }
  2724. _ACEOF
  2725. rm -f conftest.$ac_objext conftest$ac_exeext
  2726. if { (eval echo "$as_me:2986: \"$ac_link\"") >&5
  2727. (eval $ac_link) 2>&5
  2728. ac_status=$?
  2729. echo "$as_me:2989: \$? = $ac_status" >&5
  2730. (exit $ac_status); } &&
  2731. { ac_try='test -s conftest$ac_exeext'
  2732. { (eval echo "$as_me:2992: \"$ac_try\"") >&5
  2733. (eval $ac_try) 2>&5
  2734. ac_status=$?
  2735. echo "$as_me:2995: \$? = $ac_status" >&5
  2736. (exit $ac_status); }; }; then
  2737. LIBS=$ac_save_LIBS
  2738. # We can link X programs with no special library path.
  2739. ac_x_libraries=
  2740. else
  2741. echo "$as_me: failed program was:" >&5
  2742. cat conftest.$ac_ext >&5
  2743. LIBS=$ac_save_LIBS
  2744. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  2745. do
  2746. # Don't even attempt the hair of trying to link an X program!
  2747. for ac_extension in a so sl; do
  2748. if test -r $ac_dir/libXt.$ac_extension; then
  2749. ac_x_libraries=$ac_dir
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. fi
  2755. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2756. fi # $ac_x_libraries = no
  2757. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  2758. # Didn't find X anywhere. Cache the known absence of X.
  2759. ac_cv_have_x="have_x=no"
  2760. else
  2761. # Record where we found X for the cache.
  2762. ac_cv_have_x="have_x=yes \
  2763. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2764. fi
  2765. fi
  2766. fi
  2767. eval "$ac_cv_have_x"
  2768. fi # $with_x != no
  2769. if test "$have_x" != yes; then
  2770. echo "$as_me:3033: result: $have_x" >&5
  2771. echo "${ECHO_T}$have_x" >&6
  2772. no_x=yes
  2773. else
  2774. # If each of the values was on the command line, it overrides each guess.
  2775. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2776. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2777. # Update the cache value to reflect the command line values.
  2778. ac_cv_have_x="have_x=yes \
  2779. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2780. echo "$as_me:3043: result: libraries $x_libraries, headers $x_includes" >&5
  2781. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  2782. fi
  2783. if test "$no_x" = yes; then
  2784. # Not all programs may use this symbol, but it does not hurt to define it.
  2785. cat >>confdefs.h <<\EOF
  2786. #define X_DISPLAY_MISSING 1
  2787. EOF
  2788. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  2789. else
  2790. if test -n "$x_includes"; then
  2791. X_CFLAGS="$X_CFLAGS -I$x_includes"
  2792. fi
  2793. # It would also be nice to do this for all -L options, not just this one.
  2794. if test -n "$x_libraries"; then
  2795. X_LIBS="$X_LIBS -L$x_libraries"
  2796. # For Solaris; some versions of Sun CC require a space after -R and
  2797. # others require no space. Words are not sufficient . . . .
  2798. case `(uname -sr) 2>/dev/null` in
  2799. "SunOS 5"*)
  2800. echo "$as_me:3067: checking whether -R must be followed by a space" >&5
  2801. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
  2802. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  2803. cat >conftest.$ac_ext <<_ACEOF
  2804. #line 3071 "configure"
  2805. #include "confdefs.h"
  2806. int
  2807. main ()
  2808. {
  2809. ;
  2810. return 0;
  2811. }
  2812. _ACEOF
  2813. rm -f conftest.$ac_objext conftest$ac_exeext
  2814. if { (eval echo "$as_me:3083: \"$ac_link\"") >&5
  2815. (eval $ac_link) 2>&5
  2816. ac_status=$?
  2817. echo "$as_me:3086: \$? = $ac_status" >&5
  2818. (exit $ac_status); } &&
  2819. { ac_try='test -s conftest$ac_exeext'
  2820. { (eval echo "$as_me:3089: \"$ac_try\"") >&5
  2821. (eval $ac_try) 2>&5
  2822. ac_status=$?
  2823. echo "$as_me:3092: \$? = $ac_status" >&5
  2824. (exit $ac_status); }; }; then
  2825. ac_R_nospace=yes
  2826. else
  2827. echo "$as_me: failed program was:" >&5
  2828. cat conftest.$ac_ext >&5
  2829. ac_R_nospace=no
  2830. fi
  2831. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2832. if test $ac_R_nospace = yes; then
  2833. echo "$as_me:3102: result: no" >&5
  2834. echo "${ECHO_T}no" >&6
  2835. X_LIBS="$X_LIBS -R$x_libraries"
  2836. else
  2837. LIBS="$ac_xsave_LIBS -R $x_libraries"
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. #line 3108 "configure"
  2840. #include "confdefs.h"
  2841. int
  2842. main ()
  2843. {
  2844. ;
  2845. return 0;
  2846. }
  2847. _ACEOF
  2848. rm -f conftest.$ac_objext conftest$ac_exeext
  2849. if { (eval echo "$as_me:3120: \"$ac_link\"") >&5
  2850. (eval $ac_link) 2>&5
  2851. ac_status=$?
  2852. echo "$as_me:3123: \$? = $ac_status" >&5
  2853. (exit $ac_status); } &&
  2854. { ac_try='test -s conftest$ac_exeext'
  2855. { (eval echo "$as_me:3126: \"$ac_try\"") >&5
  2856. (eval $ac_try) 2>&5
  2857. ac_status=$?
  2858. echo "$as_me:3129: \$? = $ac_status" >&5
  2859. (exit $ac_status); }; }; then
  2860. ac_R_space=yes
  2861. else
  2862. echo "$as_me: failed program was:" >&5
  2863. cat conftest.$ac_ext >&5
  2864. ac_R_space=no
  2865. fi
  2866. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2867. if test $ac_R_space = yes; then
  2868. echo "$as_me:3139: result: yes" >&5
  2869. echo "${ECHO_T}yes" >&6
  2870. X_LIBS="$X_LIBS -R $x_libraries"
  2871. else
  2872. echo "$as_me:3143: result: neither works" >&5
  2873. echo "${ECHO_T}neither works" >&6
  2874. fi
  2875. fi
  2876. LIBS=$ac_xsave_LIBS
  2877. esac
  2878. fi
  2879. # Check for system-dependent libraries X programs must link with.
  2880. # Do this before checking for the system-independent R6 libraries
  2881. # (-lICE), since we may need -lsocket or whatever for X linking.
  2882. if test "$ISC" = yes; then
  2883. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2884. else
  2885. # Martyn Johnson says this is needed for Ultrix, if the X
  2886. # libraries were built with DECnet support. And Karl Berry says
  2887. # the Alpha needs dnet_stub (dnet does not exist).
  2888. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  2889. cat >conftest.$ac_ext <<_ACEOF
  2890. #line 3163 "configure"
  2891. #include "confdefs.h"
  2892. /* Override any gcc2 internal prototype to avoid an error. */
  2893. #ifdef __cplusplus
  2894. extern "C"
  2895. #endif
  2896. /* We use char because int might match the return type of a gcc2
  2897. builtin and then its argument prototype would still apply. */
  2898. char XOpenDisplay ();
  2899. int
  2900. main ()
  2901. {
  2902. XOpenDisplay ();
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. rm -f conftest.$ac_objext conftest$ac_exeext
  2908. if { (eval echo "$as_me:3182: \"$ac_link\"") >&5
  2909. (eval $ac_link) 2>&5
  2910. ac_status=$?
  2911. echo "$as_me:3185: \$? = $ac_status" >&5
  2912. (exit $ac_status); } &&
  2913. { ac_try='test -s conftest$ac_exeext'
  2914. { (eval echo "$as_me:3188: \"$ac_try\"") >&5
  2915. (eval $ac_try) 2>&5
  2916. ac_status=$?
  2917. echo "$as_me:3191: \$? = $ac_status" >&5
  2918. (exit $ac_status); }; }; then
  2919. :
  2920. else
  2921. echo "$as_me: failed program was:" >&5
  2922. cat conftest.$ac_ext >&5
  2923. echo "$as_me:3197: checking for dnet_ntoa in -ldnet" >&5
  2924. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  2925. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  2926. echo $ECHO_N "(cached) $ECHO_C" >&6
  2927. else
  2928. ac_check_lib_save_LIBS=$LIBS
  2929. LIBS="-ldnet $LIBS"
  2930. cat >conftest.$ac_ext <<_ACEOF
  2931. #line 3205 "configure"
  2932. #include "confdefs.h"
  2933. /* Override any gcc2 internal prototype to avoid an error. */
  2934. #ifdef __cplusplus
  2935. extern "C"
  2936. #endif
  2937. /* We use char because int might match the return type of a gcc2
  2938. builtin and then its argument prototype would still apply. */
  2939. char dnet_ntoa ();
  2940. int
  2941. main ()
  2942. {
  2943. dnet_ntoa ();
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. rm -f conftest.$ac_objext conftest$ac_exeext
  2949. if { (eval echo "$as_me:3224: \"$ac_link\"") >&5
  2950. (eval $ac_link) 2>&5
  2951. ac_status=$?
  2952. echo "$as_me:3227: \$? = $ac_status" >&5
  2953. (exit $ac_status); } &&
  2954. { ac_try='test -s conftest$ac_exeext'
  2955. { (eval echo "$as_me:3230: \"$ac_try\"") >&5
  2956. (eval $ac_try) 2>&5
  2957. ac_status=$?
  2958. echo "$as_me:3233: \$? = $ac_status" >&5
  2959. (exit $ac_status); }; }; then
  2960. ac_cv_lib_dnet_dnet_ntoa=yes
  2961. else
  2962. echo "$as_me: failed program was:" >&5
  2963. cat conftest.$ac_ext >&5
  2964. ac_cv_lib_dnet_dnet_ntoa=no
  2965. fi
  2966. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2967. LIBS=$ac_check_lib_save_LIBS
  2968. fi
  2969. echo "$as_me:3244: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  2970. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  2971. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  2972. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2973. fi
  2974. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  2975. echo "$as_me:3251: checking for dnet_ntoa in -ldnet_stub" >&5
  2976. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
  2977. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. ac_check_lib_save_LIBS=$LIBS
  2981. LIBS="-ldnet_stub $LIBS"
  2982. cat >conftest.$ac_ext <<_ACEOF
  2983. #line 3259 "configure"
  2984. #include "confdefs.h"
  2985. /* Override any gcc2 internal prototype to avoid an error. */
  2986. #ifdef __cplusplus
  2987. extern "C"
  2988. #endif
  2989. /* We use char because int might match the return type of a gcc2
  2990. builtin and then its argument prototype would still apply. */
  2991. char dnet_ntoa ();
  2992. int
  2993. main ()
  2994. {
  2995. dnet_ntoa ();
  2996. ;
  2997. return 0;
  2998. }
  2999. _ACEOF
  3000. rm -f conftest.$ac_objext conftest$ac_exeext
  3001. if { (eval echo "$as_me:3278: \"$ac_link\"") >&5
  3002. (eval $ac_link) 2>&5
  3003. ac_status=$?
  3004. echo "$as_me:3281: \$? = $ac_status" >&5
  3005. (exit $ac_status); } &&
  3006. { ac_try='test -s conftest$ac_exeext'
  3007. { (eval echo "$as_me:3284: \"$ac_try\"") >&5
  3008. (eval $ac_try) 2>&5
  3009. ac_status=$?
  3010. echo "$as_me:3287: \$? = $ac_status" >&5
  3011. (exit $ac_status); }; }; then
  3012. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  3013. else
  3014. echo "$as_me: failed program was:" >&5
  3015. cat conftest.$ac_ext >&5
  3016. ac_cv_lib_dnet_stub_dnet_ntoa=no
  3017. fi
  3018. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3019. LIBS=$ac_check_lib_save_LIBS
  3020. fi
  3021. echo "$as_me:3298: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  3022. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
  3023. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  3024. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3025. fi
  3026. fi
  3027. fi
  3028. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3029. LIBS="$ac_xsave_LIBS"
  3030. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3031. # to get the SysV transport functions.
  3032. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  3033. # needs -lnsl.
  3034. # The nsl library prevents programs from opening the X display
  3035. # on Irix 5.2, according to T.E. Dickey.
  3036. # The functions gethostbyname, getservbyname, and inet_addr are
  3037. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  3038. echo "$as_me:3317: checking for gethostbyname" >&5
  3039. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3040. if test "${ac_cv_func_gethostbyname+set}" = set; then
  3041. echo $ECHO_N "(cached) $ECHO_C" >&6
  3042. else
  3043. cat >conftest.$ac_ext <<_ACEOF
  3044. #line 3323 "configure"
  3045. #include "confdefs.h"
  3046. /* System header to define __stub macros and hopefully few prototypes,
  3047. which can conflict with char gethostbyname (); below. */
  3048. #include <assert.h>
  3049. /* Override any gcc2 internal prototype to avoid an error. */
  3050. #ifdef __cplusplus
  3051. extern "C"
  3052. #endif
  3053. /* We use char because int might match the return type of a gcc2
  3054. builtin and then its argument prototype would still apply. */
  3055. char gethostbyname ();
  3056. char (*f) ();
  3057. int
  3058. main ()
  3059. {
  3060. /* The GNU C library defines this for functions which it implements
  3061. to always fail with ENOSYS. Some functions are actually named
  3062. something starting with __ and the normal name is an alias. */
  3063. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3064. choke me
  3065. #else
  3066. f = gethostbyname;
  3067. #endif
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. rm -f conftest.$ac_objext conftest$ac_exeext
  3073. if { (eval echo "$as_me:3354: \"$ac_link\"") >&5
  3074. (eval $ac_link) 2>&5
  3075. ac_status=$?
  3076. echo "$as_me:3357: \$? = $ac_status" >&5
  3077. (exit $ac_status); } &&
  3078. { ac_try='test -s conftest$ac_exeext'
  3079. { (eval echo "$as_me:3360: \"$ac_try\"") >&5
  3080. (eval $ac_try) 2>&5
  3081. ac_status=$?
  3082. echo "$as_me:3363: \$? = $ac_status" >&5
  3083. (exit $ac_status); }; }; then
  3084. ac_cv_func_gethostbyname=yes
  3085. else
  3086. echo "$as_me: failed program was:" >&5
  3087. cat conftest.$ac_ext >&5
  3088. ac_cv_func_gethostbyname=no
  3089. fi
  3090. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3091. fi
  3092. echo "$as_me:3373: result: $ac_cv_func_gethostbyname" >&5
  3093. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3094. if test $ac_cv_func_gethostbyname = no; then
  3095. echo "$as_me:3377: checking for gethostbyname in -lnsl" >&5
  3096. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3097. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3098. echo $ECHO_N "(cached) $ECHO_C" >&6
  3099. else
  3100. ac_check_lib_save_LIBS=$LIBS
  3101. LIBS="-lnsl $LIBS"
  3102. cat >conftest.$ac_ext <<_ACEOF
  3103. #line 3385 "configure"
  3104. #include "confdefs.h"
  3105. /* Override any gcc2 internal prototype to avoid an error. */
  3106. #ifdef __cplusplus
  3107. extern "C"
  3108. #endif
  3109. /* We use char because int might match the return type of a gcc2
  3110. builtin and then its argument prototype would still apply. */
  3111. char gethostbyname ();
  3112. int
  3113. main ()
  3114. {
  3115. gethostbyname ();
  3116. ;
  3117. return 0;
  3118. }
  3119. _ACEOF
  3120. rm -f conftest.$ac_objext conftest$ac_exeext
  3121. if { (eval echo "$as_me:3404: \"$ac_link\"") >&5
  3122. (eval $ac_link) 2>&5
  3123. ac_status=$?
  3124. echo "$as_me:3407: \$? = $ac_status" >&5
  3125. (exit $ac_status); } &&
  3126. { ac_try='test -s conftest$ac_exeext'
  3127. { (eval echo "$as_me:3410: \"$ac_try\"") >&5
  3128. (eval $ac_try) 2>&5
  3129. ac_status=$?
  3130. echo "$as_me:3413: \$? = $ac_status" >&5
  3131. (exit $ac_status); }; }; then
  3132. ac_cv_lib_nsl_gethostbyname=yes
  3133. else
  3134. echo "$as_me: failed program was:" >&5
  3135. cat conftest.$ac_ext >&5
  3136. ac_cv_lib_nsl_gethostbyname=no
  3137. fi
  3138. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3139. LIBS=$ac_check_lib_save_LIBS
  3140. fi
  3141. echo "$as_me:3424: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3142. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3143. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3144. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3145. fi
  3146. if test $ac_cv_lib_nsl_gethostbyname = no; then
  3147. echo "$as_me:3431: checking for gethostbyname in -lbsd" >&5
  3148. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
  3149. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  3150. echo $ECHO_N "(cached) $ECHO_C" >&6
  3151. else
  3152. ac_check_lib_save_LIBS=$LIBS
  3153. LIBS="-lbsd $LIBS"
  3154. cat >conftest.$ac_ext <<_ACEOF
  3155. #line 3439 "configure"
  3156. #include "confdefs.h"
  3157. /* Override any gcc2 internal prototype to avoid an error. */
  3158. #ifdef __cplusplus
  3159. extern "C"
  3160. #endif
  3161. /* We use char because int might match the return type of a gcc2
  3162. builtin and then its argument prototype would still apply. */
  3163. char gethostbyname ();
  3164. int
  3165. main ()
  3166. {
  3167. gethostbyname ();
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. rm -f conftest.$ac_objext conftest$ac_exeext
  3173. if { (eval echo "$as_me:3458: \"$ac_link\"") >&5
  3174. (eval $ac_link) 2>&5
  3175. ac_status=$?
  3176. echo "$as_me:3461: \$? = $ac_status" >&5
  3177. (exit $ac_status); } &&
  3178. { ac_try='test -s conftest$ac_exeext'
  3179. { (eval echo "$as_me:3464: \"$ac_try\"") >&5
  3180. (eval $ac_try) 2>&5
  3181. ac_status=$?
  3182. echo "$as_me:3467: \$? = $ac_status" >&5
  3183. (exit $ac_status); }; }; then
  3184. ac_cv_lib_bsd_gethostbyname=yes
  3185. else
  3186. echo "$as_me: failed program was:" >&5
  3187. cat conftest.$ac_ext >&5
  3188. ac_cv_lib_bsd_gethostbyname=no
  3189. fi
  3190. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3191. LIBS=$ac_check_lib_save_LIBS
  3192. fi
  3193. echo "$as_me:3478: result: $ac_cv_lib_bsd_gethostbyname" >&5
  3194. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
  3195. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  3196. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  3197. fi
  3198. fi
  3199. fi
  3200. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3201. # socket/setsockopt and other routines are undefined under SCO ODT
  3202. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3203. # on later versions), says Simon Leinen: it contains gethostby*
  3204. # variants that don't use the nameserver (or something). -lsocket
  3205. # must be given before -lnsl if both are needed. We assume that
  3206. # if connect needs -lnsl, so does gethostbyname.
  3207. echo "$as_me:3494: checking for connect" >&5
  3208. echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3209. if test "${ac_cv_func_connect+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. cat >conftest.$ac_ext <<_ACEOF
  3213. #line 3500 "configure"
  3214. #include "confdefs.h"
  3215. /* System header to define __stub macros and hopefully few prototypes,
  3216. which can conflict with char connect (); below. */
  3217. #include <assert.h>
  3218. /* Override any gcc2 internal prototype to avoid an error. */
  3219. #ifdef __cplusplus
  3220. extern "C"
  3221. #endif
  3222. /* We use char because int might match the return type of a gcc2
  3223. builtin and then its argument prototype would still apply. */
  3224. char connect ();
  3225. char (*f) ();
  3226. int
  3227. main ()
  3228. {
  3229. /* The GNU C library defines this for functions which it implements
  3230. to always fail with ENOSYS. Some functions are actually named
  3231. something starting with __ and the normal name is an alias. */
  3232. #if defined (__stub_connect) || defined (__stub___connect)
  3233. choke me
  3234. #else
  3235. f = connect;
  3236. #endif
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. rm -f conftest.$ac_objext conftest$ac_exeext
  3242. if { (eval echo "$as_me:3531: \"$ac_link\"") >&5
  3243. (eval $ac_link) 2>&5
  3244. ac_status=$?
  3245. echo "$as_me:3534: \$? = $ac_status" >&5
  3246. (exit $ac_status); } &&
  3247. { ac_try='test -s conftest$ac_exeext'
  3248. { (eval echo "$as_me:3537: \"$ac_try\"") >&5
  3249. (eval $ac_try) 2>&5
  3250. ac_status=$?
  3251. echo "$as_me:3540: \$? = $ac_status" >&5
  3252. (exit $ac_status); }; }; then
  3253. ac_cv_func_connect=yes
  3254. else
  3255. echo "$as_me: failed program was:" >&5
  3256. cat conftest.$ac_ext >&5
  3257. ac_cv_func_connect=no
  3258. fi
  3259. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3260. fi
  3261. echo "$as_me:3550: result: $ac_cv_func_connect" >&5
  3262. echo "${ECHO_T}$ac_cv_func_connect" >&6
  3263. if test $ac_cv_func_connect = no; then
  3264. echo "$as_me:3554: checking for connect in -lsocket" >&5
  3265. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3266. if test "${ac_cv_lib_socket_connect+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. ac_check_lib_save_LIBS=$LIBS
  3270. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3271. cat >conftest.$ac_ext <<_ACEOF
  3272. #line 3562 "configure"
  3273. #include "confdefs.h"
  3274. /* Override any gcc2 internal prototype to avoid an error. */
  3275. #ifdef __cplusplus
  3276. extern "C"
  3277. #endif
  3278. /* We use char because int might match the return type of a gcc2
  3279. builtin and then its argument prototype would still apply. */
  3280. char connect ();
  3281. int
  3282. main ()
  3283. {
  3284. connect ();
  3285. ;
  3286. return 0;
  3287. }
  3288. _ACEOF
  3289. rm -f conftest.$ac_objext conftest$ac_exeext
  3290. if { (eval echo "$as_me:3581: \"$ac_link\"") >&5
  3291. (eval $ac_link) 2>&5
  3292. ac_status=$?
  3293. echo "$as_me:3584: \$? = $ac_status" >&5
  3294. (exit $ac_status); } &&
  3295. { ac_try='test -s conftest$ac_exeext'
  3296. { (eval echo "$as_me:3587: \"$ac_try\"") >&5
  3297. (eval $ac_try) 2>&5
  3298. ac_status=$?
  3299. echo "$as_me:3590: \$? = $ac_status" >&5
  3300. (exit $ac_status); }; }; then
  3301. ac_cv_lib_socket_connect=yes
  3302. else
  3303. echo "$as_me: failed program was:" >&5
  3304. cat conftest.$ac_ext >&5
  3305. ac_cv_lib_socket_connect=no
  3306. fi
  3307. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3308. LIBS=$ac_check_lib_save_LIBS
  3309. fi
  3310. echo "$as_me:3601: result: $ac_cv_lib_socket_connect" >&5
  3311. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3312. if test $ac_cv_lib_socket_connect = yes; then
  3313. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3314. fi
  3315. fi
  3316. # Guillermo Gomez says -lposix is necessary on A/UX.
  3317. echo "$as_me:3610: checking for remove" >&5
  3318. echo $ECHO_N "checking for remove... $ECHO_C" >&6
  3319. if test "${ac_cv_func_remove+set}" = set; then
  3320. echo $ECHO_N "(cached) $ECHO_C" >&6
  3321. else
  3322. cat >conftest.$ac_ext <<_ACEOF
  3323. #line 3616 "configure"
  3324. #include "confdefs.h"
  3325. /* System header to define __stub macros and hopefully few prototypes,
  3326. which can conflict with char remove (); below. */
  3327. #include <assert.h>
  3328. /* Override any gcc2 internal prototype to avoid an error. */
  3329. #ifdef __cplusplus
  3330. extern "C"
  3331. #endif
  3332. /* We use char because int might match the return type of a gcc2
  3333. builtin and then its argument prototype would still apply. */
  3334. char remove ();
  3335. char (*f) ();
  3336. int
  3337. main ()
  3338. {
  3339. /* The GNU C library defines this for functions which it implements
  3340. to always fail with ENOSYS. Some functions are actually named
  3341. something starting with __ and the normal name is an alias. */
  3342. #if defined (__stub_remove) || defined (__stub___remove)
  3343. choke me
  3344. #else
  3345. f = remove;
  3346. #endif
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. rm -f conftest.$ac_objext conftest$ac_exeext
  3352. if { (eval echo "$as_me:3647: \"$ac_link\"") >&5
  3353. (eval $ac_link) 2>&5
  3354. ac_status=$?
  3355. echo "$as_me:3650: \$? = $ac_status" >&5
  3356. (exit $ac_status); } &&
  3357. { ac_try='test -s conftest$ac_exeext'
  3358. { (eval echo "$as_me:3653: \"$ac_try\"") >&5
  3359. (eval $ac_try) 2>&5
  3360. ac_status=$?
  3361. echo "$as_me:3656: \$? = $ac_status" >&5
  3362. (exit $ac_status); }; }; then
  3363. ac_cv_func_remove=yes
  3364. else
  3365. echo "$as_me: failed program was:" >&5
  3366. cat conftest.$ac_ext >&5
  3367. ac_cv_func_remove=no
  3368. fi
  3369. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3370. fi
  3371. echo "$as_me:3666: result: $ac_cv_func_remove" >&5
  3372. echo "${ECHO_T}$ac_cv_func_remove" >&6
  3373. if test $ac_cv_func_remove = no; then
  3374. echo "$as_me:3670: checking for remove in -lposix" >&5
  3375. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
  3376. if test "${ac_cv_lib_posix_remove+set}" = set; then
  3377. echo $ECHO_N "(cached) $ECHO_C" >&6
  3378. else
  3379. ac_check_lib_save_LIBS=$LIBS
  3380. LIBS="-lposix $LIBS"
  3381. cat >conftest.$ac_ext <<_ACEOF
  3382. #line 3678 "configure"
  3383. #include "confdefs.h"
  3384. /* Override any gcc2 internal prototype to avoid an error. */
  3385. #ifdef __cplusplus
  3386. extern "C"
  3387. #endif
  3388. /* We use char because int might match the return type of a gcc2
  3389. builtin and then its argument prototype would still apply. */
  3390. char remove ();
  3391. int
  3392. main ()
  3393. {
  3394. remove ();
  3395. ;
  3396. return 0;
  3397. }
  3398. _ACEOF
  3399. rm -f conftest.$ac_objext conftest$ac_exeext
  3400. if { (eval echo "$as_me:3697: \"$ac_link\"") >&5
  3401. (eval $ac_link) 2>&5
  3402. ac_status=$?
  3403. echo "$as_me:3700: \$? = $ac_status" >&5
  3404. (exit $ac_status); } &&
  3405. { ac_try='test -s conftest$ac_exeext'
  3406. { (eval echo "$as_me:3703: \"$ac_try\"") >&5
  3407. (eval $ac_try) 2>&5
  3408. ac_status=$?
  3409. echo "$as_me:3706: \$? = $ac_status" >&5
  3410. (exit $ac_status); }; }; then
  3411. ac_cv_lib_posix_remove=yes
  3412. else
  3413. echo "$as_me: failed program was:" >&5
  3414. cat conftest.$ac_ext >&5
  3415. ac_cv_lib_posix_remove=no
  3416. fi
  3417. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3418. LIBS=$ac_check_lib_save_LIBS
  3419. fi
  3420. echo "$as_me:3717: result: $ac_cv_lib_posix_remove" >&5
  3421. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
  3422. if test $ac_cv_lib_posix_remove = yes; then
  3423. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3424. fi
  3425. fi
  3426. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3427. echo "$as_me:3726: checking for shmat" >&5
  3428. echo $ECHO_N "checking for shmat... $ECHO_C" >&6
  3429. if test "${ac_cv_func_shmat+set}" = set; then
  3430. echo $ECHO_N "(cached) $ECHO_C" >&6
  3431. else
  3432. cat >conftest.$ac_ext <<_ACEOF
  3433. #line 3732 "configure"
  3434. #include "confdefs.h"
  3435. /* System header to define __stub macros and hopefully few prototypes,
  3436. which can conflict with char shmat (); below. */
  3437. #include <assert.h>
  3438. /* Override any gcc2 internal prototype to avoid an error. */
  3439. #ifdef __cplusplus
  3440. extern "C"
  3441. #endif
  3442. /* We use char because int might match the return type of a gcc2
  3443. builtin and then its argument prototype would still apply. */
  3444. char shmat ();
  3445. char (*f) ();
  3446. int
  3447. main ()
  3448. {
  3449. /* The GNU C library defines this for functions which it implements
  3450. to always fail with ENOSYS. Some functions are actually named
  3451. something starting with __ and the normal name is an alias. */
  3452. #if defined (__stub_shmat) || defined (__stub___shmat)
  3453. choke me
  3454. #else
  3455. f = shmat;
  3456. #endif
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. rm -f conftest.$ac_objext conftest$ac_exeext
  3462. if { (eval echo "$as_me:3763: \"$ac_link\"") >&5
  3463. (eval $ac_link) 2>&5
  3464. ac_status=$?
  3465. echo "$as_me:3766: \$? = $ac_status" >&5
  3466. (exit $ac_status); } &&
  3467. { ac_try='test -s conftest$ac_exeext'
  3468. { (eval echo "$as_me:3769: \"$ac_try\"") >&5
  3469. (eval $ac_try) 2>&5
  3470. ac_status=$?
  3471. echo "$as_me:3772: \$? = $ac_status" >&5
  3472. (exit $ac_status); }; }; then
  3473. ac_cv_func_shmat=yes
  3474. else
  3475. echo "$as_me: failed program was:" >&5
  3476. cat conftest.$ac_ext >&5
  3477. ac_cv_func_shmat=no
  3478. fi
  3479. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3480. fi
  3481. echo "$as_me:3782: result: $ac_cv_func_shmat" >&5
  3482. echo "${ECHO_T}$ac_cv_func_shmat" >&6
  3483. if test $ac_cv_func_shmat = no; then
  3484. echo "$as_me:3786: checking for shmat in -lipc" >&5
  3485. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
  3486. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  3487. echo $ECHO_N "(cached) $ECHO_C" >&6
  3488. else
  3489. ac_check_lib_save_LIBS=$LIBS
  3490. LIBS="-lipc $LIBS"
  3491. cat >conftest.$ac_ext <<_ACEOF
  3492. #line 3794 "configure"
  3493. #include "confdefs.h"
  3494. /* Override any gcc2 internal prototype to avoid an error. */
  3495. #ifdef __cplusplus
  3496. extern "C"
  3497. #endif
  3498. /* We use char because int might match the return type of a gcc2
  3499. builtin and then its argument prototype would still apply. */
  3500. char shmat ();
  3501. int
  3502. main ()
  3503. {
  3504. shmat ();
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext conftest$ac_exeext
  3510. if { (eval echo "$as_me:3813: \"$ac_link\"") >&5
  3511. (eval $ac_link) 2>&5
  3512. ac_status=$?
  3513. echo "$as_me:3816: \$? = $ac_status" >&5
  3514. (exit $ac_status); } &&
  3515. { ac_try='test -s conftest$ac_exeext'
  3516. { (eval echo "$as_me:3819: \"$ac_try\"") >&5
  3517. (eval $ac_try) 2>&5
  3518. ac_status=$?
  3519. echo "$as_me:3822: \$? = $ac_status" >&5
  3520. (exit $ac_status); }; }; then
  3521. ac_cv_lib_ipc_shmat=yes
  3522. else
  3523. echo "$as_me: failed program was:" >&5
  3524. cat conftest.$ac_ext >&5
  3525. ac_cv_lib_ipc_shmat=no
  3526. fi
  3527. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3528. LIBS=$ac_check_lib_save_LIBS
  3529. fi
  3530. echo "$as_me:3833: result: $ac_cv_lib_ipc_shmat" >&5
  3531. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
  3532. if test $ac_cv_lib_ipc_shmat = yes; then
  3533. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3534. fi
  3535. fi
  3536. fi
  3537. # Check for libraries that X11R6 Xt/Xaw programs need.
  3538. ac_save_LDFLAGS=$LDFLAGS
  3539. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3540. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3541. # check for ICE first), but we must link in the order -lSM -lICE or
  3542. # we get undefined symbols. So assume we have SM if we have ICE.
  3543. # These have to be linked with before -lX11, unlike the other
  3544. # libraries we check for below, so use a different variable.
  3545. # John Interrante, Karl Berry
  3546. echo "$as_me:3851: checking for IceConnectionNumber in -lICE" >&5
  3547. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
  3548. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  3549. echo $ECHO_N "(cached) $ECHO_C" >&6
  3550. else
  3551. ac_check_lib_save_LIBS=$LIBS
  3552. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3553. cat >conftest.$ac_ext <<_ACEOF
  3554. #line 3859 "configure"
  3555. #include "confdefs.h"
  3556. /* Override any gcc2 internal prototype to avoid an error. */
  3557. #ifdef __cplusplus
  3558. extern "C"
  3559. #endif
  3560. /* We use char because int might match the return type of a gcc2
  3561. builtin and then its argument prototype would still apply. */
  3562. char IceConnectionNumber ();
  3563. int
  3564. main ()
  3565. {
  3566. IceConnectionNumber ();
  3567. ;
  3568. return 0;
  3569. }
  3570. _ACEOF
  3571. rm -f conftest.$ac_objext conftest$ac_exeext
  3572. if { (eval echo "$as_me:3878: \"$ac_link\"") >&5
  3573. (eval $ac_link) 2>&5
  3574. ac_status=$?
  3575. echo "$as_me:3881: \$? = $ac_status" >&5
  3576. (exit $ac_status); } &&
  3577. { ac_try='test -s conftest$ac_exeext'
  3578. { (eval echo "$as_me:3884: \"$ac_try\"") >&5
  3579. (eval $ac_try) 2>&5
  3580. ac_status=$?
  3581. echo "$as_me:3887: \$? = $ac_status" >&5
  3582. (exit $ac_status); }; }; then
  3583. ac_cv_lib_ICE_IceConnectionNumber=yes
  3584. else
  3585. echo "$as_me: failed program was:" >&5
  3586. cat conftest.$ac_ext >&5
  3587. ac_cv_lib_ICE_IceConnectionNumber=no
  3588. fi
  3589. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3590. LIBS=$ac_check_lib_save_LIBS
  3591. fi
  3592. echo "$as_me:3898: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  3593. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
  3594. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  3595. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3596. fi
  3597. LDFLAGS=$ac_save_LDFLAGS
  3598. fi
  3599. echo "$as_me:3908: checking for ANSI C header files" >&5
  3600. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3601. if test "${ac_cv_header_stdc+set}" = set; then
  3602. echo $ECHO_N "(cached) $ECHO_C" >&6
  3603. else
  3604. cat >conftest.$ac_ext <<_ACEOF
  3605. #line 3914 "configure"
  3606. #include "confdefs.h"
  3607. #include <stdlib.h>
  3608. #include <stdarg.h>
  3609. #include <string.h>
  3610. #include <float.h>
  3611. _ACEOF
  3612. if { (eval echo "$as_me:3922: \"$ac_cpp conftest.$ac_ext\"") >&5
  3613. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3614. ac_status=$?
  3615. egrep -v '^ *\+' conftest.er1 >conftest.err
  3616. rm -f conftest.er1
  3617. cat conftest.err >&5
  3618. echo "$as_me:3928: \$? = $ac_status" >&5
  3619. (exit $ac_status); } >/dev/null; then
  3620. if test -s conftest.err; then
  3621. ac_cpp_err=$ac_c_preproc_warn_flag
  3622. else
  3623. ac_cpp_err=
  3624. fi
  3625. else
  3626. ac_cpp_err=yes
  3627. fi
  3628. if test -z "$ac_cpp_err"; then
  3629. ac_cv_header_stdc=yes
  3630. else
  3631. echo "$as_me: failed program was:" >&5
  3632. cat conftest.$ac_ext >&5
  3633. ac_cv_header_stdc=no
  3634. fi
  3635. rm -f conftest.err conftest.$ac_ext
  3636. if test $ac_cv_header_stdc = yes; then
  3637. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3638. cat >conftest.$ac_ext <<_ACEOF
  3639. #line 3950 "configure"
  3640. #include "confdefs.h"
  3641. #include <string.h>
  3642. _ACEOF
  3643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3644. egrep "memchr" >/dev/null 2>&1; then
  3645. :
  3646. else
  3647. ac_cv_header_stdc=no
  3648. fi
  3649. rm -f conftest*
  3650. fi
  3651. if test $ac_cv_header_stdc = yes; then
  3652. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3653. cat >conftest.$ac_ext <<_ACEOF
  3654. #line 3968 "configure"
  3655. #include "confdefs.h"
  3656. #include <stdlib.h>
  3657. _ACEOF
  3658. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3659. egrep "free" >/dev/null 2>&1; then
  3660. :
  3661. else
  3662. ac_cv_header_stdc=no
  3663. fi
  3664. rm -f conftest*
  3665. fi
  3666. if test $ac_cv_header_stdc = yes; then
  3667. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3668. if test "$cross_compiling" = yes; then
  3669. :
  3670. else
  3671. cat >conftest.$ac_ext <<_ACEOF
  3672. #line 3989 "configure"
  3673. #include "confdefs.h"
  3674. #include <ctype.h>
  3675. #if ((' ' & 0x0FF) == 0x020)
  3676. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3677. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3678. #else
  3679. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3680. || ('j' <= (c) && (c) <= 'r') \
  3681. || ('s' <= (c) && (c) <= 'z'))
  3682. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3683. #endif
  3684. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3685. int
  3686. main ()
  3687. {
  3688. int i;
  3689. for (i = 0; i < 256; i++)
  3690. if (XOR (islower (i), ISLOWER (i))
  3691. || toupper (i) != TOUPPER (i))
  3692. exit(2);
  3693. exit (0);
  3694. }
  3695. _ACEOF
  3696. rm -f conftest$ac_exeext
  3697. if { (eval echo "$as_me:4015: \"$ac_link\"") >&5
  3698. (eval $ac_link) 2>&5
  3699. ac_status=$?
  3700. echo "$as_me:4018: \$? = $ac_status" >&5
  3701. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3702. { (eval echo "$as_me:4020: \"$ac_try\"") >&5
  3703. (eval $ac_try) 2>&5
  3704. ac_status=$?
  3705. echo "$as_me:4023: \$? = $ac_status" >&5
  3706. (exit $ac_status); }; }; then
  3707. :
  3708. else
  3709. echo "$as_me: program exited with status $ac_status" >&5
  3710. echo "$as_me: failed program was:" >&5
  3711. cat conftest.$ac_ext >&5
  3712. ac_cv_header_stdc=no
  3713. fi
  3714. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3715. fi
  3716. fi
  3717. fi
  3718. echo "$as_me:4036: result: $ac_cv_header_stdc" >&5
  3719. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3720. if test $ac_cv_header_stdc = yes; then
  3721. cat >>confdefs.h <<\EOF
  3722. #define STDC_HEADERS 1
  3723. EOF
  3724. fi
  3725. for ac_header in stdlib.h string.h unistd.h
  3726. do
  3727. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3728. echo "$as_me:4049: checking for $ac_header" >&5
  3729. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3730. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3731. echo $ECHO_N "(cached) $ECHO_C" >&6
  3732. else
  3733. cat >conftest.$ac_ext <<_ACEOF
  3734. #line 4055 "configure"
  3735. #include "confdefs.h"
  3736. #include <$ac_header>
  3737. _ACEOF
  3738. if { (eval echo "$as_me:4059: \"$ac_cpp conftest.$ac_ext\"") >&5
  3739. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3740. ac_status=$?
  3741. egrep -v '^ *\+' conftest.er1 >conftest.err
  3742. rm -f conftest.er1
  3743. cat conftest.err >&5
  3744. echo "$as_me:4065: \$? = $ac_status" >&5
  3745. (exit $ac_status); } >/dev/null; then
  3746. if test -s conftest.err; then
  3747. ac_cpp_err=$ac_c_preproc_warn_flag
  3748. else
  3749. ac_cpp_err=
  3750. fi
  3751. else
  3752. ac_cpp_err=yes
  3753. fi
  3754. if test -z "$ac_cpp_err"; then
  3755. eval "$as_ac_Header=yes"
  3756. else
  3757. echo "$as_me: failed program was:" >&5
  3758. cat conftest.$ac_ext >&5
  3759. eval "$as_ac_Header=no"
  3760. fi
  3761. rm -f conftest.err conftest.$ac_ext
  3762. fi
  3763. echo "$as_me:4084: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3764. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3765. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3766. cat >>confdefs.h <<EOF
  3767. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3768. EOF
  3769. fi
  3770. done
  3771. echo "$as_me:4094: checking for main in -lX11" >&5
  3772. echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
  3773. if test "${ac_cv_lib_X11_main+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. ac_check_lib_save_LIBS=$LIBS
  3777. LIBS="-lX11 $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS $LIBS"
  3778. cat >conftest.$ac_ext <<_ACEOF
  3779. #line 4102 "configure"
  3780. #include "confdefs.h"
  3781. int
  3782. main ()
  3783. {
  3784. main ();
  3785. ;
  3786. return 0;
  3787. }
  3788. _ACEOF
  3789. rm -f conftest.$ac_objext conftest$ac_exeext
  3790. if { (eval echo "$as_me:4114: \"$ac_link\"") >&5
  3791. (eval $ac_link) 2>&5
  3792. ac_status=$?
  3793. echo "$as_me:4117: \$? = $ac_status" >&5
  3794. (exit $ac_status); } &&
  3795. { ac_try='test -s conftest$ac_exeext'
  3796. { (eval echo "$as_me:4120: \"$ac_try\"") >&5
  3797. (eval $ac_try) 2>&5
  3798. ac_status=$?
  3799. echo "$as_me:4123: \$? = $ac_status" >&5
  3800. (exit $ac_status); }; }; then
  3801. ac_cv_lib_X11_main=yes
  3802. else
  3803. echo "$as_me: failed program was:" >&5
  3804. cat conftest.$ac_ext >&5
  3805. ac_cv_lib_X11_main=no
  3806. fi
  3807. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3808. LIBS=$ac_check_lib_save_LIBS
  3809. fi
  3810. echo "$as_me:4134: result: $ac_cv_lib_X11_main" >&5
  3811. echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
  3812. if test $ac_cv_lib_X11_main = yes; then
  3813. cat >>confdefs.h <<EOF
  3814. #define HAVE_LIBX11 1
  3815. EOF
  3816. LIBS="-lX11 $LIBS"
  3817. else
  3818. { { echo "$as_me:4144: error: libX11 is missing from your system: Make sure you have both the X Window System libraries and development headers correctly installed" >&5
  3819. echo "$as_me: error: libX11 is missing from your system: Make sure you have both the X Window System libraries and development headers correctly installed" >&2;}
  3820. { (exit 1); exit 1; }; }
  3821. fi
  3822. echo "$as_me:4149: checking for main in -lXext" >&5
  3823. echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6
  3824. if test "${ac_cv_lib_Xext_main+set}" = set; then
  3825. echo $ECHO_N "(cached) $ECHO_C" >&6
  3826. else
  3827. ac_check_lib_save_LIBS=$LIBS
  3828. LIBS="-lXext $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS $LIBS"
  3829. cat >conftest.$ac_ext <<_ACEOF
  3830. #line 4157 "configure"
  3831. #include "confdefs.h"
  3832. int
  3833. main ()
  3834. {
  3835. main ();
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. rm -f conftest.$ac_objext conftest$ac_exeext
  3841. if { (eval echo "$as_me:4169: \"$ac_link\"") >&5
  3842. (eval $ac_link) 2>&5
  3843. ac_status=$?
  3844. echo "$as_me:4172: \$? = $ac_status" >&5
  3845. (exit $ac_status); } &&
  3846. { ac_try='test -s conftest$ac_exeext'
  3847. { (eval echo "$as_me:4175: \"$ac_try\"") >&5
  3848. (eval $ac_try) 2>&5
  3849. ac_status=$?
  3850. echo "$as_me:4178: \$? = $ac_status" >&5
  3851. (exit $ac_status); }; }; then
  3852. ac_cv_lib_Xext_main=yes
  3853. else
  3854. echo "$as_me: failed program was:" >&5
  3855. cat conftest.$ac_ext >&5
  3856. ac_cv_lib_Xext_main=no
  3857. fi
  3858. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3859. LIBS=$ac_check_lib_save_LIBS
  3860. fi
  3861. echo "$as_me:4189: result: $ac_cv_lib_Xext_main" >&5
  3862. echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6
  3863. if test $ac_cv_lib_Xext_main = yes; then
  3864. cat >>confdefs.h <<EOF
  3865. #define HAVE_LIBXEXT 1
  3866. EOF
  3867. LIBS="-lXext $LIBS"
  3868. else
  3869. { { echo "$as_me:4199: error: The X Window System installed on this machine does not support the shape extension" >&5
  3870. echo "$as_me: error: The X Window System installed on this machine does not support the shape extension" >&2;}
  3871. { (exit 1); exit 1; }; }
  3872. fi
  3873. echo "$as_me:4204: checking for main in -lXpm" >&5
  3874. echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6
  3875. if test "${ac_cv_lib_Xpm_main+set}" = set; then
  3876. echo $ECHO_N "(cached) $ECHO_C" >&6
  3877. else
  3878. ac_check_lib_save_LIBS=$LIBS
  3879. LIBS="-lXpm $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS $LIBS"
  3880. cat >conftest.$ac_ext <<_ACEOF
  3881. #line 4212 "configure"
  3882. #include "confdefs.h"
  3883. int
  3884. main ()
  3885. {
  3886. main ();
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. rm -f conftest.$ac_objext conftest$ac_exeext
  3892. if { (eval echo "$as_me:4224: \"$ac_link\"") >&5
  3893. (eval $ac_link) 2>&5
  3894. ac_status=$?
  3895. echo "$as_me:4227: \$? = $ac_status" >&5
  3896. (exit $ac_status); } &&
  3897. { ac_try='test -s conftest$ac_exeext'
  3898. { (eval echo "$as_me:4230: \"$ac_try\"") >&5
  3899. (eval $ac_try) 2>&5
  3900. ac_status=$?
  3901. echo "$as_me:4233: \$? = $ac_status" >&5
  3902. (exit $ac_status); }; }; then
  3903. ac_cv_lib_Xpm_main=yes
  3904. else
  3905. echo "$as_me: failed program was:" >&5
  3906. cat conftest.$ac_ext >&5
  3907. ac_cv_lib_Xpm_main=no
  3908. fi
  3909. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3910. LIBS=$ac_check_lib_save_LIBS
  3911. fi
  3912. echo "$as_me:4244: result: $ac_cv_lib_Xpm_main" >&5
  3913. echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6
  3914. if test $ac_cv_lib_Xpm_main = yes; then
  3915. cat >>confdefs.h <<EOF
  3916. #define HAVE_LIBXPM 1
  3917. EOF
  3918. LIBS="-lXpm $LIBS"
  3919. else
  3920. { { echo "$as_me:4254: error: libXpm is missing from your system: Make sure you have both the Xpm libraries and development headers correctly installed" >&5
  3921. echo "$as_me: error: libXpm is missing from your system: Make sure you have both the Xpm libraries and development headers correctly installed" >&2;}
  3922. { (exit 1); exit 1; }; }
  3923. fi
  3924. for ac_func in setlocale strchr strrchr strstr
  3925. do
  3926. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3927. echo "$as_me:4262: checking for $ac_func" >&5
  3928. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3929. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3930. echo $ECHO_N "(cached) $ECHO_C" >&6
  3931. else
  3932. cat >conftest.$ac_ext <<_ACEOF
  3933. #line 4268 "configure"
  3934. #include "confdefs.h"
  3935. /* System header to define __stub macros and hopefully few prototypes,
  3936. which can conflict with char $ac_func (); below. */
  3937. #include <assert.h>
  3938. /* Override any gcc2 internal prototype to avoid an error. */
  3939. #ifdef __cplusplus
  3940. extern "C"
  3941. #endif
  3942. /* We use char because int might match the return type of a gcc2
  3943. builtin and then its argument prototype would still apply. */
  3944. char $ac_func ();
  3945. char (*f) ();
  3946. int
  3947. main ()
  3948. {
  3949. /* The GNU C library defines this for functions which it implements
  3950. to always fail with ENOSYS. Some functions are actually named
  3951. something starting with __ and the normal name is an alias. */
  3952. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3953. choke me
  3954. #else
  3955. f = $ac_func;
  3956. #endif
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. rm -f conftest.$ac_objext conftest$ac_exeext
  3962. if { (eval echo "$as_me:4299: \"$ac_link\"") >&5
  3963. (eval $ac_link) 2>&5
  3964. ac_status=$?
  3965. echo "$as_me:4302: \$? = $ac_status" >&5
  3966. (exit $ac_status); } &&
  3967. { ac_try='test -s conftest$ac_exeext'
  3968. { (eval echo "$as_me:4305: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:4308: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; }; then
  3973. eval "$as_ac_var=yes"
  3974. else
  3975. echo "$as_me: failed program was:" >&5
  3976. cat conftest.$ac_ext >&5
  3977. eval "$as_ac_var=no"
  3978. fi
  3979. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3980. fi
  3981. echo "$as_me:4318: result: `eval echo '${'$as_ac_var'}'`" >&5
  3982. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3983. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3984. cat >>confdefs.h <<EOF
  3985. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3986. EOF
  3987. fi
  3988. done
  3989. # Check whether --enable-plugins or --disable-plugins was given.
  3990. if test "${enable_plugins+set}" = set; then
  3991. enableval="$enable_plugins"
  3992. case "${enableval}" in
  3993. no) MY_SUBDIRS="icons panel themes" ;;
  3994. *) MY_SUBDIRS="icons panel plugins themes" ;;
  3995. esac
  3996. else
  3997. MY_SUBDIRS="icons panel plugins themes"
  3998. fi;
  3999. ## Versions of dependencies
  4000. GLIB_REQUIRED_VERSION=2.0.0
  4001. GTK_REQUIRED_VERSION=2.0.0
  4002. PANGO_REQUIRED_VERSION=1.0.0
  4003. succeeded=no
  4004. if test -z "$PKG_CONFIG"; then
  4005. # Extract the first word of "pkg-config", so it can be a program name with args.
  4006. set dummy pkg-config; ac_word=$2
  4007. echo "$as_me:4349: checking for $ac_word" >&5
  4008. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4009. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  4010. echo $ECHO_N "(cached) $ECHO_C" >&6
  4011. else
  4012. case $PKG_CONFIG in
  4013. [\\/]* | ?:[\\/]*)
  4014. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4015. ;;
  4016. *)
  4017. ac_save_IFS=$IFS; IFS=$ac_path_separator
  4018. ac_dummy="$PATH"
  4019. for ac_dir in $ac_dummy; do
  4020. IFS=$ac_save_IFS
  4021. test -z "$ac_dir" && ac_dir=.
  4022. if $as_executable_p "$ac_dir/$ac_word"; then
  4023. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  4024. echo "$as_me:4366: found $ac_dir/$ac_word" >&5
  4025. break
  4026. fi
  4027. done
  4028. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  4029. ;;
  4030. esac
  4031. fi
  4032. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4033. if test -n "$PKG_CONFIG"; then
  4034. echo "$as_me:4378: result: $PKG_CONFIG" >&5
  4035. echo "${ECHO_T}$PKG_CONFIG" >&6
  4036. else
  4037. echo "$as_me:4381: result: no" >&5
  4038. echo "${ECHO_T}no" >&6
  4039. fi
  4040. fi
  4041. if test "$PKG_CONFIG" = "no" ; then
  4042. echo "*** The pkg-config script could not be found. Make sure it is"
  4043. echo "*** in your path, or set the PKG_CONFIG environment variable"
  4044. echo "*** to the full path to pkg-config."
  4045. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  4046. else
  4047. PKG_CONFIG_MIN_VERSION=0.9.0
  4048. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  4049. echo "$as_me:4395: checking for glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0" >&5
  4050. echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0... $ECHO_C" >&6
  4051. if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0" ; then
  4052. echo "$as_me:4399: result: yes" >&5
  4053. echo "${ECHO_T}yes" >&6
  4054. succeeded=yes
  4055. echo "$as_me:4403: checking BASE_DEPENDENCIES_CFLAGS" >&5
  4056. echo $ECHO_N "checking BASE_DEPENDENCIES_CFLAGS... $ECHO_C" >&6
  4057. BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0"`
  4058. echo "$as_me:4406: result: $BASE_DEPENDENCIES_CFLAGS" >&5
  4059. echo "${ECHO_T}$BASE_DEPENDENCIES_CFLAGS" >&6
  4060. echo "$as_me:4409: checking BASE_DEPENDENCIES_LIBS" >&5
  4061. echo $ECHO_N "checking BASE_DEPENDENCIES_LIBS... $ECHO_C" >&6
  4062. BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0"`
  4063. echo "$as_me:4412: result: $BASE_DEPENDENCIES_LIBS" >&5
  4064. echo "${ECHO_T}$BASE_DEPENDENCIES_LIBS" >&6
  4065. else
  4066. BASE_DEPENDENCIES_CFLAGS=""
  4067. BASE_DEPENDENCIES_LIBS=""
  4068. ## If we have a custom action on failure, don't print errors, but
  4069. ## do set a variable so people can do so.
  4070. BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0"`
  4071. echo $BASE_DEPENDENCIES_PKG_ERRORS
  4072. fi
  4073. else
  4074. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  4075. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  4076. fi
  4077. fi
  4078. if test $succeeded = yes; then
  4079. :
  4080. else
  4081. { { echo "$as_me:4432: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  4082. echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION gmodule-2.0 libxml-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  4083. { (exit 1); exit 1; }; }
  4084. fi
  4085. ## libtool support (for plugins)
  4086. # Check whether --enable-static or --disable-static was given.
  4087. if test "${enable_static+set}" = set; then
  4088. enableval="$enable_static"
  4089. p=${PACKAGE-default}
  4090. case $enableval in
  4091. yes) enable_static=yes ;;
  4092. no) enable_static=no ;;
  4093. *)
  4094. enable_static=no
  4095. # Look at the argument we got. We use all the common list separators.
  4096. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4097. for pkg in $enableval; do
  4098. if test "X$pkg" = "X$p"; then
  4099. enable_static=yes
  4100. fi
  4101. done
  4102. IFS="$ac_save_ifs"
  4103. ;;
  4104. esac
  4105. else
  4106. enable_static=no
  4107. fi;
  4108. # Check whether --enable-shared or --disable-shared was given.
  4109. if test "${enable_shared+set}" = set; then
  4110. enableval="$enable_shared"
  4111. p=${PACKAGE-default}
  4112. case $enableval in
  4113. yes) enable_shared=yes ;;
  4114. no) enable_shared=no ;;
  4115. *)
  4116. enable_shared=no
  4117. # Look at the argument we got. We use all the common list separators.
  4118. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4119. for pkg in $enableval; do
  4120. if test "X$pkg" = "X$p"; then
  4121. enable_shared=yes
  4122. fi
  4123. done
  4124. IFS="$ac_save_ifs"
  4125. ;;
  4126. esac
  4127. else
  4128. enable_shared=yes
  4129. fi;
  4130. # Check whether --enable-fast-install or --disable-fast-install was given.
  4131. if test "${enable_fast_install+set}" = set; then
  4132. enableval="$enable_fast_install"
  4133. p=${PACKAGE-default}
  4134. case $enableval in
  4135. yes) enable_fast_install=yes ;;
  4136. no) enable_fast_install=no ;;
  4137. *)
  4138. enable_fast_install=no
  4139. # Look at the argument we got. We use all the common list separators.
  4140. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4141. for pkg in $enableval; do
  4142. if test "X$pkg" = "X$p"; then
  4143. enable_fast_install=yes
  4144. fi
  4145. done
  4146. IFS="$ac_save_ifs"
  4147. ;;
  4148. esac
  4149. else
  4150. enable_fast_install=yes
  4151. fi;
  4152. # Make sure we can run config.sub.
  4153. $ac_config_sub sun4 >/dev/null 2>&1 ||
  4154. { { echo "$as_me:4506: error: cannot run $ac_config_sub" >&5
  4155. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4156. { (exit 1); exit 1; }; }
  4157. echo "$as_me:4510: checking build system type" >&5
  4158. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4159. if test "${ac_cv_build+set}" = set; then
  4160. echo $ECHO_N "(cached) $ECHO_C" >&6
  4161. else
  4162. ac_cv_build_alias=$build_alias
  4163. test -z "$ac_cv_build_alias" &&
  4164. ac_cv_build_alias=`$ac_config_guess`
  4165. test -z "$ac_cv_build_alias" &&
  4166. { { echo "$as_me:4519: error: cannot guess build type; you must specify one" >&5
  4167. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4168. { (exit 1); exit 1; }; }
  4169. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4170. { { echo "$as_me:4523: error: $ac_config_sub $ac_cv_build_alias failed." >&5
  4171. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
  4172. { (exit 1); exit 1; }; }
  4173. fi
  4174. echo "$as_me:4528: result: $ac_cv_build" >&5
  4175. echo "${ECHO_T}$ac_cv_build" >&6
  4176. build=$ac_cv_build
  4177. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4178. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4179. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4180. echo "$as_me:4535: checking host system type" >&5
  4181. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4182. if test "${ac_cv_host+set}" = set; then
  4183. echo $ECHO_N "(cached) $ECHO_C" >&6
  4184. else
  4185. ac_cv_host_alias=$host_alias
  4186. test -z "$ac_cv_host_alias" &&
  4187. ac_cv_host_alias=$ac_cv_build_alias
  4188. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4189. { { echo "$as_me:4544: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4190. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4191. { (exit 1); exit 1; }; }
  4192. fi
  4193. echo "$as_me:4549: result: $ac_cv_host" >&5
  4194. echo "${ECHO_T}$ac_cv_host" >&6
  4195. host=$ac_cv_host
  4196. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4197. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4198. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4199. # Find the correct PATH separator. Usually this is `:', but
  4200. # DJGPP uses `;' like DOS.
  4201. if test "X${PATH_SEPARATOR+set}" != Xset; then
  4202. UNAME=${UNAME-`uname 2>/dev/null`}
  4203. case X$UNAME in
  4204. *-DOS) lt_cv_sys_path_separator=';' ;;
  4205. *) lt_cv_sys_path_separator=':' ;;
  4206. esac
  4207. PATH_SEPARATOR=$lt_cv_sys_path_separator
  4208. fi
  4209. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  4210. if test "${with_gnu_ld+set}" = set; then
  4211. withval="$with_gnu_ld"
  4212. test "$withval" = no || with_gnu_ld=yes
  4213. else
  4214. with_gnu_ld=no
  4215. fi;
  4216. ac_prog=ld
  4217. if test "$GCC" = yes; then
  4218. # Check if gcc -print-prog-name=ld gives a path.
  4219. echo "$as_me:4577: checking for ld used by GCC" >&5
  4220. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  4221. case $host in
  4222. *-*-mingw*)
  4223. # gcc leaves a trailing carriage return which upsets mingw
  4224. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4225. *)
  4226. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4227. esac
  4228. case $ac_prog in
  4229. # Accept absolute paths.
  4230. [\\/]* | [A-Za-z]:[\\/]*)
  4231. re_direlt='/[^/][^/]*/\.\./'
  4232. # Canonicalize the path of ld
  4233. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4234. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4235. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4236. done
  4237. test -z "$LD" && LD="$ac_prog"
  4238. ;;
  4239. "")
  4240. # If it fails, then pretend we aren't using GCC.
  4241. ac_prog=ld
  4242. ;;
  4243. *)
  4244. # If it is relative, then search for the first ld in PATH.
  4245. with_gnu_ld=unknown
  4246. ;;
  4247. esac
  4248. elif test "$with_gnu_ld" = yes; then
  4249. echo "$as_me:4607: checking for GNU ld" >&5
  4250. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4251. else
  4252. echo "$as_me:4610: checking for non-GNU ld" >&5
  4253. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4254. fi
  4255. if test "${lt_cv_path_LD+set}" = set; then
  4256. echo $ECHO_N "(cached) $ECHO_C" >&6
  4257. else
  4258. if test -z "$LD"; then
  4259. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4260. for ac_dir in $PATH; do
  4261. test -z "$ac_dir" && ac_dir=.
  4262. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4263. lt_cv_path_LD="$ac_dir/$ac_prog"
  4264. # Check to see if the program is GNU ld. I'd rather use --version,
  4265. # but apparently some GNU ld's only accept -v.
  4266. # Break only if it was the GNU/non-GNU ld that we prefer.
  4267. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4268. test "$with_gnu_ld" != no && break
  4269. else
  4270. test "$with_gnu_ld" != yes && break
  4271. fi
  4272. fi
  4273. done
  4274. IFS="$ac_save_ifs"
  4275. else
  4276. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4277. fi
  4278. fi
  4279. LD="$lt_cv_path_LD"
  4280. if test -n "$LD"; then
  4281. echo "$as_me:4640: result: $LD" >&5
  4282. echo "${ECHO_T}$LD" >&6
  4283. else
  4284. echo "$as_me:4643: result: no" >&5
  4285. echo "${ECHO_T}no" >&6
  4286. fi
  4287. test -z "$LD" && { { echo "$as_me:4646: error: no acceptable ld found in \$PATH" >&5
  4288. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4289. { (exit 1); exit 1; }; }
  4290. echo "$as_me:4649: checking if the linker ($LD) is GNU ld" >&5
  4291. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4292. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4293. echo $ECHO_N "(cached) $ECHO_C" >&6
  4294. else
  4295. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4296. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4297. lt_cv_prog_gnu_ld=yes
  4298. else
  4299. lt_cv_prog_gnu_ld=no
  4300. fi
  4301. fi
  4302. echo "$as_me:4661: result: $lt_cv_prog_gnu_ld" >&5
  4303. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4304. with_gnu_ld=$lt_cv_prog_gnu_ld
  4305. echo "$as_me:4665: checking for $LD option to reload object files" >&5
  4306. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4307. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4308. echo $ECHO_N "(cached) $ECHO_C" >&6
  4309. else
  4310. lt_cv_ld_reload_flag='-r'
  4311. fi
  4312. echo "$as_me:4672: result: $lt_cv_ld_reload_flag" >&5
  4313. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4314. reload_flag=$lt_cv_ld_reload_flag
  4315. test -n "$reload_flag" && reload_flag=" $reload_flag"
  4316. echo "$as_me:4677: checking for BSD-compatible nm" >&5
  4317. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4318. if test "${lt_cv_path_NM+set}" = set; then
  4319. echo $ECHO_N "(cached) $ECHO_C" >&6
  4320. else
  4321. if test -n "$NM"; then
  4322. # Let the user override the test.
  4323. lt_cv_path_NM="$NM"
  4324. else
  4325. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4326. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4327. test -z "$ac_dir" && ac_dir=.
  4328. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  4329. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  4330. # Check to see if the nm accepts a BSD-compat flag.
  4331. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4332. # nm: unknown option "B" ignored
  4333. # Tru64's nm complains that /dev/null is an invalid object file
  4334. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  4335. lt_cv_path_NM="$tmp_nm -B"
  4336. break
  4337. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4338. lt_cv_path_NM="$tmp_nm -p"
  4339. break
  4340. else
  4341. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4342. continue # so that we can try to find one that supports BSD flags
  4343. fi
  4344. fi
  4345. done
  4346. IFS="$ac_save_ifs"
  4347. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4348. fi
  4349. fi
  4350. NM="$lt_cv_path_NM"
  4351. echo "$as_me:4713: result: $NM" >&5
  4352. echo "${ECHO_T}$NM" >&6
  4353. echo "$as_me:4716: checking whether ln -s works" >&5
  4354. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4355. LN_S=$as_ln_s
  4356. if test "$LN_S" = "ln -s"; then
  4357. echo "$as_me:4720: result: yes" >&5
  4358. echo "${ECHO_T}yes" >&6
  4359. else
  4360. echo "$as_me:4723: result: no, using $LN_S" >&5
  4361. echo "${ECHO_T}no, using $LN_S" >&6
  4362. fi
  4363. echo "$as_me:4727: checking how to recognise dependant libraries" >&5
  4364. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  4365. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4366. echo $ECHO_N "(cached) $ECHO_C" >&6
  4367. else
  4368. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4369. lt_cv_file_magic_test_file=
  4370. lt_cv_deplibs_check_method='unknown'
  4371. # Need to set the preceding variable on all platforms that support
  4372. # interlibrary dependencies.
  4373. # 'none' -- dependencies not supported.
  4374. # `unknown' -- same as none, but documents that we really don't know.
  4375. # 'pass_all' -- all dependencies passed with no checks.
  4376. # 'test_compile' -- check by making test program.
  4377. # 'file_magic [[regex]]' -- check by looking for files in library path
  4378. # which responds to the $file_magic_cmd with a given egrep regex.
  4379. # If you have `file' or equivalent on your system and you're not sure
  4380. # whether `pass_all' will *always* work, you probably want this one.
  4381. case $host_os in
  4382. aix4* | aix5*)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. beos*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. bsdi4*)
  4389. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4390. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4391. lt_cv_file_magic_test_file=/shlib/libc.so
  4392. ;;
  4393. cygwin* | mingw* | pw32*)
  4394. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4395. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4396. ;;
  4397. darwin* | rhapsody*)
  4398. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  4399. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4400. case "$host_os" in
  4401. rhapsody* | darwin1.[012])
  4402. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  4403. ;;
  4404. *) # Darwin 1.3 on
  4405. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  4406. ;;
  4407. esac
  4408. ;;
  4409. freebsd*)
  4410. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4411. case $host_cpu in
  4412. i*86 )
  4413. # Not sure whether the presence of OpenBSD here was a mistake.
  4414. # Let's accept both of them until this is cleared up.
  4415. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  4416. lt_cv_file_magic_cmd=/usr/bin/file
  4417. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4418. ;;
  4419. esac
  4420. else
  4421. lt_cv_deplibs_check_method=pass_all
  4422. fi
  4423. ;;
  4424. gnu*)
  4425. lt_cv_deplibs_check_method=pass_all
  4426. ;;
  4427. hpux10.20*|hpux11*)
  4428. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4429. lt_cv_file_magic_cmd=/usr/bin/file
  4430. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4431. ;;
  4432. irix5* | irix6*)
  4433. case $host_os in
  4434. irix5*)
  4435. # this will be overridden with pass_all, but let us keep it just in case
  4436. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  4437. ;;
  4438. *)
  4439. case $LD in
  4440. *-32|*"-32 ") libmagic=32-bit;;
  4441. *-n32|*"-n32 ") libmagic=N32;;
  4442. *-64|*"-64 ") libmagic=64-bit;;
  4443. *) libmagic=never-match;;
  4444. esac
  4445. # this will be overridden with pass_all, but let us keep it just in case
  4446. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  4447. ;;
  4448. esac
  4449. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  4450. lt_cv_deplibs_check_method=pass_all
  4451. ;;
  4452. # This must be Linux ELF.
  4453. linux-gnu*)
  4454. case $host_cpu in
  4455. alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
  4456. lt_cv_deplibs_check_method=pass_all ;;
  4457. *)
  4458. # glibc up to 2.1.1 does not perform some relocations on ARM
  4459. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  4460. esac
  4461. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  4462. ;;
  4463. netbsd*)
  4464. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  4466. else
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  4468. fi
  4469. ;;
  4470. newos6*)
  4471. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4472. lt_cv_file_magic_cmd=/usr/bin/file
  4473. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4474. ;;
  4475. openbsd*)
  4476. lt_cv_file_magic_cmd=/usr/bin/file
  4477. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4478. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4479. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  4480. else
  4481. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4482. fi
  4483. ;;
  4484. osf3* | osf4* | osf5*)
  4485. # this will be overridden with pass_all, but let us keep it just in case
  4486. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  4487. lt_cv_file_magic_test_file=/shlib/libc.so
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. sco3.2v5*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. solaris*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. lt_cv_file_magic_test_file=/lib/libc.so
  4496. ;;
  4497. sysv5uw[78]* | sysv4*uw2*)
  4498. lt_cv_deplibs_check_method=pass_all
  4499. ;;
  4500. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4501. case $host_vendor in
  4502. motorola)
  4503. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4504. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4505. ;;
  4506. ncr)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. sequent)
  4510. lt_cv_file_magic_cmd='/bin/file'
  4511. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4512. ;;
  4513. sni)
  4514. lt_cv_file_magic_cmd='/bin/file'
  4515. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4516. lt_cv_file_magic_test_file=/lib/libc.so
  4517. ;;
  4518. esac
  4519. ;;
  4520. esac
  4521. fi
  4522. echo "$as_me:4905: result: $lt_cv_deplibs_check_method" >&5
  4523. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4524. file_magic_cmd=$lt_cv_file_magic_cmd
  4525. deplibs_check_method=$lt_cv_deplibs_check_method
  4526. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4527. echo "$as_me:4911: checking command to parse $NM output" >&5
  4528. echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  4529. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4530. echo $ECHO_N "(cached) $ECHO_C" >&6
  4531. else
  4532. # These are sane defaults that work on at least a few old systems.
  4533. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4534. # Character class describing NM global symbol codes.
  4535. symcode='[BCDEGRST]'
  4536. # Regexp to match symbols that can be accessed directly from C.
  4537. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4538. # Transform the above into a raw symbol and a C symbol.
  4539. symxfrm='\1 \2\3 \3'
  4540. # Transform an extracted symbol line into a proper C declaration
  4541. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  4542. # Transform an extracted symbol line into symbol name and symbol address
  4543. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4544. # Define system-specific variables.
  4545. case $host_os in
  4546. aix*)
  4547. symcode='[BCDT]'
  4548. ;;
  4549. cygwin* | mingw* | pw32*)
  4550. symcode='[ABCDGISTW]'
  4551. ;;
  4552. hpux*) # Its linker distinguishes data from code symbols
  4553. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4554. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4555. ;;
  4556. irix*)
  4557. symcode='[BCDEGRST]'
  4558. ;;
  4559. solaris* | sysv5*)
  4560. symcode='[BDT]'
  4561. ;;
  4562. sysv4)
  4563. symcode='[DFNSTU]'
  4564. ;;
  4565. esac
  4566. # Handle CRLF in mingw tool chain
  4567. opt_cr=
  4568. case $host_os in
  4569. mingw*)
  4570. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4571. ;;
  4572. esac
  4573. # If we're using GNU nm, then use its standard symbol codes.
  4574. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  4575. symcode='[ABCDGISTW]'
  4576. fi
  4577. # Try without a prefix undercore, then with it.
  4578. for ac_symprfx in "" "_"; do
  4579. # Write the raw and C identifiers.
  4580. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  4581. # Check to see that the pipe works correctly.
  4582. pipe_works=no
  4583. rm -f conftest*
  4584. cat > conftest.$ac_ext <<EOF
  4585. #ifdef __cplusplus
  4586. extern "C" {
  4587. #endif
  4588. char nm_test_var;
  4589. void nm_test_func(){}
  4590. #ifdef __cplusplus
  4591. }
  4592. #endif
  4593. int main(){nm_test_var='a';nm_test_func();return(0);}
  4594. EOF
  4595. if { (eval echo "$as_me:4992: \"$ac_compile\"") >&5
  4596. (eval $ac_compile) 2>&5
  4597. ac_status=$?
  4598. echo "$as_me:4995: \$? = $ac_status" >&5
  4599. (exit $ac_status); }; then
  4600. # Now try to grab the symbols.
  4601. nlist=conftest.nm
  4602. if { (eval echo "$as_me:4999: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4603. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4604. ac_status=$?
  4605. echo "$as_me:5002: \$? = $ac_status" >&5
  4606. (exit $ac_status); } && test -s "$nlist"; then
  4607. # Try sorting and uniquifying the output.
  4608. if sort "$nlist" | uniq > "$nlist"T; then
  4609. mv -f "$nlist"T "$nlist"
  4610. else
  4611. rm -f "$nlist"T
  4612. fi
  4613. # Make sure that we snagged all the symbols we need.
  4614. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  4615. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  4616. cat <<EOF > conftest.$ac_ext
  4617. #ifdef __cplusplus
  4618. extern "C" {
  4619. #endif
  4620. EOF
  4621. # Now generate the symbol file.
  4622. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  4623. cat <<EOF >> conftest.$ac_ext
  4624. #if defined (__STDC__) && __STDC__
  4625. # define lt_ptr void *
  4626. #else
  4627. # define lt_ptr char *
  4628. # define const
  4629. #endif
  4630. /* The mapping between symbol names and symbols. */
  4631. const struct {
  4632. const char *name;
  4633. lt_ptr address;
  4634. }
  4635. lt_preloaded_symbols[] =
  4636. {
  4637. EOF
  4638. sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  4639. cat <<\EOF >> conftest.$ac_ext
  4640. {0, (lt_ptr) 0}
  4641. };
  4642. #ifdef __cplusplus
  4643. }
  4644. #endif
  4645. EOF
  4646. # Now try linking the two files.
  4647. mv conftest.$ac_objext conftstm.$ac_objext
  4648. save_LIBS="$LIBS"
  4649. save_CFLAGS="$CFLAGS"
  4650. LIBS="conftstm.$ac_objext"
  4651. CFLAGS="$CFLAGS$no_builtin_flag"
  4652. if { (eval echo "$as_me:5054: \"$ac_link\"") >&5
  4653. (eval $ac_link) 2>&5
  4654. ac_status=$?
  4655. echo "$as_me:5057: \$? = $ac_status" >&5
  4656. (exit $ac_status); } && test -s conftest; then
  4657. pipe_works=yes
  4658. fi
  4659. LIBS="$save_LIBS"
  4660. CFLAGS="$save_CFLAGS"
  4661. else
  4662. echo "cannot find nm_test_func in $nlist" >&5
  4663. fi
  4664. else
  4665. echo "cannot find nm_test_var in $nlist" >&5
  4666. fi
  4667. else
  4668. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4669. fi
  4670. else
  4671. echo "$progname: failed program was:" >&5
  4672. cat conftest.$ac_ext >&5
  4673. fi
  4674. rm -f conftest* conftst*
  4675. # Do not use the global_symbol_pipe unless it works.
  4676. if test "$pipe_works" = yes; then
  4677. break
  4678. else
  4679. lt_cv_sys_global_symbol_pipe=
  4680. fi
  4681. done
  4682. fi
  4683. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  4684. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4685. global_symbol_to_cdecl=
  4686. global_symbol_to_c_name_address=
  4687. else
  4688. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  4689. global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  4690. fi
  4691. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  4692. then
  4693. echo "$as_me:5098: result: failed" >&5
  4694. echo "${ECHO_T}failed" >&6
  4695. else
  4696. echo "$as_me:5101: result: ok" >&5
  4697. echo "${ECHO_T}ok" >&6
  4698. fi
  4699. for ac_header in dlfcn.h
  4700. do
  4701. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4702. echo "$as_me:5108: checking for $ac_header" >&5
  4703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4704. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4705. echo $ECHO_N "(cached) $ECHO_C" >&6
  4706. else
  4707. cat >conftest.$ac_ext <<_ACEOF
  4708. #line 5114 "configure"
  4709. #include "confdefs.h"
  4710. #include <$ac_header>
  4711. _ACEOF
  4712. if { (eval echo "$as_me:5118: \"$ac_cpp conftest.$ac_ext\"") >&5
  4713. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4714. ac_status=$?
  4715. egrep -v '^ *\+' conftest.er1 >conftest.err
  4716. rm -f conftest.er1
  4717. cat conftest.err >&5
  4718. echo "$as_me:5124: \$? = $ac_status" >&5
  4719. (exit $ac_status); } >/dev/null; then
  4720. if test -s conftest.err; then
  4721. ac_cpp_err=$ac_c_preproc_warn_flag
  4722. else
  4723. ac_cpp_err=
  4724. fi
  4725. else
  4726. ac_cpp_err=yes
  4727. fi
  4728. if test -z "$ac_cpp_err"; then
  4729. eval "$as_ac_Header=yes"
  4730. else
  4731. echo "$as_me: failed program was:" >&5
  4732. cat conftest.$ac_ext >&5
  4733. eval "$as_ac_Header=no"
  4734. fi
  4735. rm -f conftest.err conftest.$ac_ext
  4736. fi
  4737. echo "$as_me:5143: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4738. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4739. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4740. cat >>confdefs.h <<EOF
  4741. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4742. EOF
  4743. fi
  4744. done
  4745. # Only perform the check for file, if the check method requires it
  4746. case $deplibs_check_method in
  4747. file_magic*)
  4748. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4749. echo "$as_me:5157: checking for ${ac_tool_prefix}file" >&5
  4750. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4751. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4752. echo $ECHO_N "(cached) $ECHO_C" >&6
  4753. else
  4754. case $MAGIC_CMD in
  4755. /*)
  4756. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4757. ;;
  4758. ?:/*)
  4759. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4760. ;;
  4761. *)
  4762. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4763. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4764. ac_dummy="/usr/bin:$PATH"
  4765. for ac_dir in $ac_dummy; do
  4766. test -z "$ac_dir" && ac_dir=.
  4767. if test -f $ac_dir/${ac_tool_prefix}file; then
  4768. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4769. if test -n "$file_magic_test_file"; then
  4770. case $deplibs_check_method in
  4771. "file_magic "*)
  4772. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4774. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4775. egrep "$file_magic_regex" > /dev/null; then
  4776. :
  4777. else
  4778. cat <<EOF 1>&2
  4779. *** Warning: the command libtool uses to detect shared libraries,
  4780. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4781. *** The result is that libtool may fail to recognize shared libraries
  4782. *** as such. This will affect the creation of libtool libraries that
  4783. *** depend on shared libraries, but programs linked with such libtool
  4784. *** libraries will work regardless of this problem. Nevertheless, you
  4785. *** may want to report the problem to your system manager and/or to
  4786. *** bug-libtool@gnu.org
  4787. EOF
  4788. fi ;;
  4789. esac
  4790. fi
  4791. break
  4792. fi
  4793. done
  4794. IFS="$ac_save_ifs"
  4795. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4796. ;;
  4797. esac
  4798. fi
  4799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4800. if test -n "$MAGIC_CMD"; then
  4801. echo "$as_me:5212: result: $MAGIC_CMD" >&5
  4802. echo "${ECHO_T}$MAGIC_CMD" >&6
  4803. else
  4804. echo "$as_me:5215: result: no" >&5
  4805. echo "${ECHO_T}no" >&6
  4806. fi
  4807. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4808. if test -n "$ac_tool_prefix"; then
  4809. echo "$as_me:5221: checking for file" >&5
  4810. echo $ECHO_N "checking for file... $ECHO_C" >&6
  4811. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4812. echo $ECHO_N "(cached) $ECHO_C" >&6
  4813. else
  4814. case $MAGIC_CMD in
  4815. /*)
  4816. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4817. ;;
  4818. ?:/*)
  4819. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4820. ;;
  4821. *)
  4822. ac_save_MAGIC_CMD="$MAGIC_CMD"
  4823. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4824. ac_dummy="/usr/bin:$PATH"
  4825. for ac_dir in $ac_dummy; do
  4826. test -z "$ac_dir" && ac_dir=.
  4827. if test -f $ac_dir/file; then
  4828. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  4829. if test -n "$file_magic_test_file"; then
  4830. case $deplibs_check_method in
  4831. "file_magic "*)
  4832. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4833. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4834. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4835. egrep "$file_magic_regex" > /dev/null; then
  4836. :
  4837. else
  4838. cat <<EOF 1>&2
  4839. *** Warning: the command libtool uses to detect shared libraries,
  4840. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4841. *** The result is that libtool may fail to recognize shared libraries
  4842. *** as such. This will affect the creation of libtool libraries that
  4843. *** depend on shared libraries, but programs linked with such libtool
  4844. *** libraries will work regardless of this problem. Nevertheless, you
  4845. *** may want to report the problem to your system manager and/or to
  4846. *** bug-libtool@gnu.org
  4847. EOF
  4848. fi ;;
  4849. esac
  4850. fi
  4851. break
  4852. fi
  4853. done
  4854. IFS="$ac_save_ifs"
  4855. MAGIC_CMD="$ac_save_MAGIC_CMD"
  4856. ;;
  4857. esac
  4858. fi
  4859. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4860. if test -n "$MAGIC_CMD"; then
  4861. echo "$as_me:5276: result: $MAGIC_CMD" >&5
  4862. echo "${ECHO_T}$MAGIC_CMD" >&6
  4863. else
  4864. echo "$as_me:5279: result: no" >&5
  4865. echo "${ECHO_T}no" >&6
  4866. fi
  4867. else
  4868. MAGIC_CMD=:
  4869. fi
  4870. fi
  4871. fi
  4872. ;;
  4873. esac
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4877. echo "$as_me:5295: checking for $ac_word" >&5
  4878. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4879. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4880. echo $ECHO_N "(cached) $ECHO_C" >&6
  4881. else
  4882. if test -n "$RANLIB"; then
  4883. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4884. else
  4885. ac_save_IFS=$IFS; IFS=$ac_path_separator
  4886. ac_dummy="$PATH"
  4887. for ac_dir in $ac_dummy; do
  4888. IFS=$ac_save_IFS
  4889. test -z "$ac_dir" && ac_dir=.
  4890. $as_executable_p "$ac_dir/$ac_word" || continue
  4891. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4892. echo "$as_me:5310: found $ac_dir/$ac_word" >&5
  4893. break
  4894. done
  4895. fi
  4896. fi
  4897. RANLIB=$ac_cv_prog_RANLIB
  4898. if test -n "$RANLIB"; then
  4899. echo "$as_me:5318: result: $RANLIB" >&5
  4900. echo "${ECHO_T}$RANLIB" >&6
  4901. else
  4902. echo "$as_me:5321: result: no" >&5
  4903. echo "${ECHO_T}no" >&6
  4904. fi
  4905. fi
  4906. if test -z "$ac_cv_prog_RANLIB"; then
  4907. ac_ct_RANLIB=$RANLIB
  4908. # Extract the first word of "ranlib", so it can be a program name with args.
  4909. set dummy ranlib; ac_word=$2
  4910. echo "$as_me:5330: checking for $ac_word" >&5
  4911. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4912. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4913. echo $ECHO_N "(cached) $ECHO_C" >&6
  4914. else
  4915. if test -n "$ac_ct_RANLIB"; then
  4916. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4917. else
  4918. ac_save_IFS=$IFS; IFS=$ac_path_separator
  4919. ac_dummy="$PATH"
  4920. for ac_dir in $ac_dummy; do
  4921. IFS=$ac_save_IFS
  4922. test -z "$ac_dir" && ac_dir=.
  4923. $as_executable_p "$ac_dir/$ac_word" || continue
  4924. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4925. echo "$as_me:5345: found $ac_dir/$ac_word" >&5
  4926. break
  4927. done
  4928. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4929. fi
  4930. fi
  4931. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4932. if test -n "$ac_ct_RANLIB"; then
  4933. echo "$as_me:5354: result: $ac_ct_RANLIB" >&5
  4934. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4935. else
  4936. echo "$as_me:5357: result: no" >&5
  4937. echo "${ECHO_T}no" >&6
  4938. fi
  4939. RANLIB=$ac_ct_RANLIB
  4940. else
  4941. RANLIB="$ac_cv_prog_RANLIB"
  4942. fi
  4943. if test -n "$ac_tool_prefix"; then
  4944. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4945. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4946. echo "$as_me:5369: checking for $ac_word" >&5
  4947. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4948. if test "${ac_cv_prog_STRIP+set}" = set; then
  4949. echo $ECHO_N "(cached) $ECHO_C" >&6
  4950. else
  4951. if test -n "$STRIP"; then
  4952. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4953. else
  4954. ac_save_IFS=$IFS; IFS=$ac_path_separator
  4955. ac_dummy="$PATH"
  4956. for ac_dir in $ac_dummy; do
  4957. IFS=$ac_save_IFS
  4958. test -z "$ac_dir" && ac_dir=.
  4959. $as_executable_p "$ac_dir/$ac_word" || continue
  4960. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4961. echo "$as_me:5384: found $ac_dir/$ac_word" >&5
  4962. break
  4963. done
  4964. fi
  4965. fi
  4966. STRIP=$ac_cv_prog_STRIP
  4967. if test -n "$STRIP"; then
  4968. echo "$as_me:5392: result: $STRIP" >&5
  4969. echo "${ECHO_T}$STRIP" >&6
  4970. else
  4971. echo "$as_me:5395: result: no" >&5
  4972. echo "${ECHO_T}no" >&6
  4973. fi
  4974. fi
  4975. if test -z "$ac_cv_prog_STRIP"; then
  4976. ac_ct_STRIP=$STRIP
  4977. # Extract the first word of "strip", so it can be a program name with args.
  4978. set dummy strip; ac_word=$2
  4979. echo "$as_me:5404: checking for $ac_word" >&5
  4980. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4981. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4982. echo $ECHO_N "(cached) $ECHO_C" >&6
  4983. else
  4984. if test -n "$ac_ct_STRIP"; then
  4985. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4986. else
  4987. ac_save_IFS=$IFS; IFS=$ac_path_separator
  4988. ac_dummy="$PATH"
  4989. for ac_dir in $ac_dummy; do
  4990. IFS=$ac_save_IFS
  4991. test -z "$ac_dir" && ac_dir=.
  4992. $as_executable_p "$ac_dir/$ac_word" || continue
  4993. ac_cv_prog_ac_ct_STRIP="strip"
  4994. echo "$as_me:5419: found $ac_dir/$ac_word" >&5
  4995. break
  4996. done
  4997. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4998. fi
  4999. fi
  5000. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5001. if test -n "$ac_ct_STRIP"; then
  5002. echo "$as_me:5428: result: $ac_ct_STRIP" >&5
  5003. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5004. else
  5005. echo "$as_me:5431: result: no" >&5
  5006. echo "${ECHO_T}no" >&6
  5007. fi
  5008. STRIP=$ac_ct_STRIP
  5009. else
  5010. STRIP="$ac_cv_prog_STRIP"
  5011. fi
  5012. enable_dlopen=no
  5013. enable_win32_dll=no
  5014. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5015. if test "${enable_libtool_lock+set}" = set; then
  5016. enableval="$enable_libtool_lock"
  5017. fi;
  5018. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5019. # Some flags need to be propagated to the compiler or linker for good
  5020. # libtool support.
  5021. case $host in
  5022. *-*-irix6*)
  5023. # Find out which ABI we are using.
  5024. echo '#line 5455 "configure"' > conftest.$ac_ext
  5025. if { (eval echo "$as_me:5456: \"$ac_compile\"") >&5
  5026. (eval $ac_compile) 2>&5
  5027. ac_status=$?
  5028. echo "$as_me:5459: \$? = $ac_status" >&5
  5029. (exit $ac_status); }; then
  5030. case `/usr/bin/file conftest.$ac_objext` in
  5031. *32-bit*)
  5032. LD="${LD-ld} -32"
  5033. ;;
  5034. *N32*)
  5035. LD="${LD-ld} -n32"
  5036. ;;
  5037. *64-bit*)
  5038. LD="${LD-ld} -64"
  5039. ;;
  5040. esac
  5041. fi
  5042. rm -rf conftest*
  5043. ;;
  5044. *-*-sco3.2v5*)
  5045. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5046. SAVE_CFLAGS="$CFLAGS"
  5047. CFLAGS="$CFLAGS -belf"
  5048. echo "$as_me:5480: checking whether the C compiler needs -belf" >&5
  5049. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  5050. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5051. echo $ECHO_N "(cached) $ECHO_C" >&6
  5052. else
  5053. ac_ext=c
  5054. ac_cpp='$CPP $CPPFLAGS'
  5055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5058. cat >conftest.$ac_ext <<_ACEOF
  5059. #line 5493 "configure"
  5060. #include "confdefs.h"
  5061. int
  5062. main ()
  5063. {
  5064. ;
  5065. return 0;
  5066. }
  5067. _ACEOF
  5068. rm -f conftest.$ac_objext conftest$ac_exeext
  5069. if { (eval echo "$as_me:5505: \"$ac_link\"") >&5
  5070. (eval $ac_link) 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:5508: \$? = $ac_status" >&5
  5073. (exit $ac_status); } &&
  5074. { ac_try='test -s conftest$ac_exeext'
  5075. { (eval echo "$as_me:5511: \"$ac_try\"") >&5
  5076. (eval $ac_try) 2>&5
  5077. ac_status=$?
  5078. echo "$as_me:5514: \$? = $ac_status" >&5
  5079. (exit $ac_status); }; }; then
  5080. lt_cv_cc_needs_belf=yes
  5081. else
  5082. echo "$as_me: failed program was:" >&5
  5083. cat conftest.$ac_ext >&5
  5084. lt_cv_cc_needs_belf=no
  5085. fi
  5086. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5087. ac_ext=c
  5088. ac_cpp='$CPP $CPPFLAGS'
  5089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5092. fi
  5093. echo "$as_me:5530: result: $lt_cv_cc_needs_belf" >&5
  5094. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  5095. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5096. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5097. CFLAGS="$SAVE_CFLAGS"
  5098. fi
  5099. ;;
  5100. esac
  5101. # Sed substitution that helps us do robust quoting. It backslashifies
  5102. # metacharacters that are still active within double-quoted strings.
  5103. Xsed='sed -e s/^X//'
  5104. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5105. # Same as above, but do not quote variable references.
  5106. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5107. # Sed substitution to delay expansion of an escaped shell variable in a
  5108. # double_quote_subst'ed string.
  5109. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5110. # Constants:
  5111. rm="rm -f"
  5112. # Global variables:
  5113. default_ofile=libtool
  5114. can_build_shared=yes
  5115. # All known linkers require a `.a' archive for static linking (except M$VC,
  5116. # which needs '.lib').
  5117. libext=a
  5118. ltmain="$ac_aux_dir/ltmain.sh"
  5119. ofile="$default_ofile"
  5120. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5121. need_locks="$enable_libtool_lock"
  5122. old_CC="$CC"
  5123. old_CFLAGS="$CFLAGS"
  5124. # Set sane defaults for various variables
  5125. test -z "$AR" && AR=ar
  5126. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5127. test -z "$AS" && AS=as
  5128. test -z "$CC" && CC=cc
  5129. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5130. test -z "$LD" && LD=ld
  5131. test -z "$LN_S" && LN_S="ln -s"
  5132. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5133. test -z "$NM" && NM=nm
  5134. test -z "$OBJDUMP" && OBJDUMP=objdump
  5135. test -z "$RANLIB" && RANLIB=:
  5136. test -z "$STRIP" && STRIP=:
  5137. test -z "$ac_objext" && ac_objext=o
  5138. if test x"$host" != x"$build"; then
  5139. ac_tool_prefix=${host_alias}-
  5140. else
  5141. ac_tool_prefix=
  5142. fi
  5143. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  5144. case $host_os in
  5145. linux-gnu*) ;;
  5146. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  5147. esac
  5148. case $host_os in
  5149. aix3*)
  5150. # AIX sometimes has problems with the GCC collect2 program. For some
  5151. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5152. # vanish in a puff of smoke.
  5153. if test "X${COLLECT_NAMES+set}" != Xset; then
  5154. COLLECT_NAMES=
  5155. export COLLECT_NAMES
  5156. fi
  5157. ;;
  5158. esac
  5159. # Determine commands to create old-style static archives.
  5160. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5161. old_postinstall_cmds='chmod 644 $oldlib'
  5162. old_postuninstall_cmds=
  5163. if test -n "$RANLIB"; then
  5164. case $host_os in
  5165. openbsd*)
  5166. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5167. ;;
  5168. *)
  5169. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5170. ;;
  5171. esac
  5172. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5173. fi
  5174. # Allow CC to be a program name with arguments.
  5175. set dummy $CC
  5176. compiler="$2"
  5177. echo "$as_me:5630: checking for objdir" >&5
  5178. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5179. rm -f .libs 2>/dev/null
  5180. mkdir .libs 2>/dev/null
  5181. if test -d .libs; then
  5182. objdir=.libs
  5183. else
  5184. # MS-DOS does not allow filenames that begin with a dot.
  5185. objdir=_libs
  5186. fi
  5187. rmdir .libs 2>/dev/null
  5188. echo "$as_me:5641: result: $objdir" >&5
  5189. echo "${ECHO_T}$objdir" >&6
  5190. # Check whether --with-pic or --without-pic was given.
  5191. if test "${with_pic+set}" = set; then
  5192. withval="$with_pic"
  5193. pic_mode="$withval"
  5194. else
  5195. pic_mode=default
  5196. fi;
  5197. test -z "$pic_mode" && pic_mode=default
  5198. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  5199. # in isolation, and that seeing it set (from the cache) indicates that
  5200. # the associated values are set (in the cache) correctly too.
  5201. echo "$as_me:5656: checking for $compiler option to produce PIC" >&5
  5202. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5203. if test "${lt_cv_prog_cc_pic+set}" = set; then
  5204. echo $ECHO_N "(cached) $ECHO_C" >&6
  5205. else
  5206. lt_cv_prog_cc_pic=
  5207. lt_cv_prog_cc_shlib=
  5208. lt_cv_prog_cc_wl=
  5209. lt_cv_prog_cc_static=
  5210. lt_cv_prog_cc_no_builtin=
  5211. lt_cv_prog_cc_can_build_shared=$can_build_shared
  5212. if test "$GCC" = yes; then
  5213. lt_cv_prog_cc_wl='-Wl,'
  5214. lt_cv_prog_cc_static='-static'
  5215. case $host_os in
  5216. aix*)
  5217. # Below there is a dirty hack to force normal static linking with -ldl
  5218. # The problem is because libdl dynamically linked with both libc and
  5219. # libC (AIX C++ library), which obviously doesn't included in libraries
  5220. # list by gcc. This cause undefined symbols with -static flags.
  5221. # This hack allows C programs to be linked with "-static -ldl", but
  5222. # not sure about C++ programs.
  5223. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  5224. ;;
  5225. amigaos*)
  5226. # FIXME: we need at least 68020 code to build shared libraries, but
  5227. # adding the `-m68020' flag to GCC prevents building anything better,
  5228. # like `-m68040'.
  5229. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  5230. ;;
  5231. beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  5232. # PIC is the default for these OSes.
  5233. ;;
  5234. darwin* | rhapsody*)
  5235. # PIC is the default on this platform
  5236. # Common symbols not allowed in MH_DYLIB files
  5237. lt_cv_prog_cc_pic='-fno-common'
  5238. ;;
  5239. cygwin* | mingw* | pw32* | os2*)
  5240. # This hack is so that the source file can tell whether it is being
  5241. # built for inclusion in a dll (and should export symbols for example).
  5242. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  5243. ;;
  5244. sysv4*MP*)
  5245. if test -d /usr/nec; then
  5246. lt_cv_prog_cc_pic=-Kconform_pic
  5247. fi
  5248. ;;
  5249. *)
  5250. lt_cv_prog_cc_pic='-fPIC'
  5251. ;;
  5252. esac
  5253. else
  5254. # PORTME Check for PIC flags for the system compiler.
  5255. case $host_os in
  5256. aix3* | aix4* | aix5*)
  5257. lt_cv_prog_cc_wl='-Wl,'
  5258. # All AIX code is PIC.
  5259. if test "$host_cpu" = ia64; then
  5260. # AIX 5 now supports IA64 processor
  5261. lt_cv_prog_cc_static='-Bstatic'
  5262. else
  5263. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  5264. fi
  5265. ;;
  5266. hpux9* | hpux10* | hpux11*)
  5267. # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  5268. lt_cv_prog_cc_wl='-Wl,'
  5269. lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  5270. lt_cv_prog_cc_pic='+Z'
  5271. ;;
  5272. irix5* | irix6*)
  5273. lt_cv_prog_cc_wl='-Wl,'
  5274. lt_cv_prog_cc_static='-non_shared'
  5275. # PIC (with -KPIC) is the default.
  5276. ;;
  5277. cygwin* | mingw* | pw32* | os2*)
  5278. # This hack is so that the source file can tell whether it is being
  5279. # built for inclusion in a dll (and should export symbols for example).
  5280. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  5281. ;;
  5282. newsos6)
  5283. lt_cv_prog_cc_pic='-KPIC'
  5284. lt_cv_prog_cc_static='-Bstatic'
  5285. ;;
  5286. osf3* | osf4* | osf5*)
  5287. # All OSF/1 code is PIC.
  5288. lt_cv_prog_cc_wl='-Wl,'
  5289. lt_cv_prog_cc_static='-non_shared'
  5290. ;;
  5291. sco3.2v5*)
  5292. lt_cv_prog_cc_pic='-Kpic'
  5293. lt_cv_prog_cc_static='-dn'
  5294. lt_cv_prog_cc_shlib='-belf'
  5295. ;;
  5296. solaris*)
  5297. lt_cv_prog_cc_pic='-KPIC'
  5298. lt_cv_prog_cc_static='-Bstatic'
  5299. lt_cv_prog_cc_wl='-Wl,'
  5300. ;;
  5301. sunos4*)
  5302. lt_cv_prog_cc_pic='-PIC'
  5303. lt_cv_prog_cc_static='-Bstatic'
  5304. lt_cv_prog_cc_wl='-Qoption ld '
  5305. ;;
  5306. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5307. lt_cv_prog_cc_pic='-KPIC'
  5308. lt_cv_prog_cc_static='-Bstatic'
  5309. if test "x$host_vendor" = xsni; then
  5310. lt_cv_prog_cc_wl='-LD'
  5311. else
  5312. lt_cv_prog_cc_wl='-Wl,'
  5313. fi
  5314. ;;
  5315. uts4*)
  5316. lt_cv_prog_cc_pic='-pic'
  5317. lt_cv_prog_cc_static='-Bstatic'
  5318. ;;
  5319. sysv4*MP*)
  5320. if test -d /usr/nec ;then
  5321. lt_cv_prog_cc_pic='-Kconform_pic'
  5322. lt_cv_prog_cc_static='-Bstatic'
  5323. fi
  5324. ;;
  5325. *)
  5326. lt_cv_prog_cc_can_build_shared=no
  5327. ;;
  5328. esac
  5329. fi
  5330. fi
  5331. if test -z "$lt_cv_prog_cc_pic"; then
  5332. echo "$as_me:5803: result: none" >&5
  5333. echo "${ECHO_T}none" >&6
  5334. else
  5335. echo "$as_me:5806: result: $lt_cv_prog_cc_pic" >&5
  5336. echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  5337. # Check to make sure the pic_flag actually works.
  5338. echo "$as_me:5810: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  5339. echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  5340. if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  5341. echo $ECHO_N "(cached) $ECHO_C" >&6
  5342. else
  5343. save_CFLAGS="$CFLAGS"
  5344. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  5345. cat >conftest.$ac_ext <<_ACEOF
  5346. #line 5818 "configure"
  5347. #include "confdefs.h"
  5348. int
  5349. main ()
  5350. {
  5351. ;
  5352. return 0;
  5353. }
  5354. _ACEOF
  5355. rm -f conftest.$ac_objext
  5356. if { (eval echo "$as_me:5830: \"$ac_compile\"") >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. echo "$as_me:5833: \$? = $ac_status" >&5
  5360. (exit $ac_status); } &&
  5361. { ac_try='test -s conftest.$ac_objext'
  5362. { (eval echo "$as_me:5836: \"$ac_try\"") >&5
  5363. (eval $ac_try) 2>&5
  5364. ac_status=$?
  5365. echo "$as_me:5839: \$? = $ac_status" >&5
  5366. (exit $ac_status); }; }; then
  5367. case $host_os in
  5368. hpux9* | hpux10* | hpux11*)
  5369. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  5370. # they create non-PIC objects. So, if there were any warnings, we
  5371. # assume that PIC is not supported.
  5372. if test -s conftest.err; then
  5373. lt_cv_prog_cc_pic_works=no
  5374. else
  5375. lt_cv_prog_cc_pic_works=yes
  5376. fi
  5377. ;;
  5378. *)
  5379. lt_cv_prog_cc_pic_works=yes
  5380. ;;
  5381. esac
  5382. else
  5383. echo "$as_me: failed program was:" >&5
  5384. cat conftest.$ac_ext >&5
  5385. lt_cv_prog_cc_pic_works=no
  5386. fi
  5387. rm -f conftest.$ac_objext conftest.$ac_ext
  5388. CFLAGS="$save_CFLAGS"
  5389. fi
  5390. if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  5391. lt_cv_prog_cc_pic=
  5392. lt_cv_prog_cc_can_build_shared=no
  5393. else
  5394. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  5395. fi
  5396. echo "$as_me:5875: result: $lt_cv_prog_cc_pic_works" >&5
  5397. echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  5398. fi
  5399. # Check for any special shared library compilation flags.
  5400. if test -n "$lt_cv_prog_cc_shlib"; then
  5401. { echo "$as_me:5881: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  5402. echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  5403. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  5404. else
  5405. { echo "$as_me:5885: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5406. echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5407. lt_cv_prog_cc_can_build_shared=no
  5408. fi
  5409. fi
  5410. echo "$as_me:5891: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  5411. echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  5412. if test "${lt_cv_prog_cc_static_works+set}" = set; then
  5413. echo $ECHO_N "(cached) $ECHO_C" >&6
  5414. else
  5415. lt_cv_prog_cc_static_works=no
  5416. save_LDFLAGS="$LDFLAGS"
  5417. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  5418. cat >conftest.$ac_ext <<_ACEOF
  5419. #line 5900 "configure"
  5420. #include "confdefs.h"
  5421. int
  5422. main ()
  5423. {
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext conftest$ac_exeext
  5429. if { (eval echo "$as_me:5912: \"$ac_link\"") >&5
  5430. (eval $ac_link) 2>&5
  5431. ac_status=$?
  5432. echo "$as_me:5915: \$? = $ac_status" >&5
  5433. (exit $ac_status); } &&
  5434. { ac_try='test -s conftest$ac_exeext'
  5435. { (eval echo "$as_me:5918: \"$ac_try\"") >&5
  5436. (eval $ac_try) 2>&5
  5437. ac_status=$?
  5438. echo "$as_me:5921: \$? = $ac_status" >&5
  5439. (exit $ac_status); }; }; then
  5440. lt_cv_prog_cc_static_works=yes
  5441. else
  5442. echo "$as_me: failed program was:" >&5
  5443. cat conftest.$ac_ext >&5
  5444. fi
  5445. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5446. LDFLAGS="$save_LDFLAGS"
  5447. fi
  5448. # Belt *and* braces to stop my trousers falling down:
  5449. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  5450. echo "$as_me:5935: result: $lt_cv_prog_cc_static_works" >&5
  5451. echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  5452. pic_flag="$lt_cv_prog_cc_pic"
  5453. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  5454. wl="$lt_cv_prog_cc_wl"
  5455. link_static_flag="$lt_cv_prog_cc_static"
  5456. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  5457. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  5458. # Check to see if options -o and -c are simultaneously supported by compiler
  5459. echo "$as_me:5946: checking if $compiler supports -c -o file.$ac_objext" >&5
  5460. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5461. if test "${lt_cv_compiler_c_o+set}" = set; then
  5462. echo $ECHO_N "(cached) $ECHO_C" >&6
  5463. else
  5464. $rm -r conftest 2>/dev/null
  5465. mkdir conftest
  5466. cd conftest
  5467. echo "int some_variable = 0;" > conftest.$ac_ext
  5468. mkdir out
  5469. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  5470. # that will create temporary files in the current directory regardless of
  5471. # the output directory. Thus, making CWD read-only will cause this test
  5472. # to fail, enabling locking or at least warning the user not to do parallel
  5473. # builds.
  5474. chmod -w .
  5475. save_CFLAGS="$CFLAGS"
  5476. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  5477. compiler_c_o=no
  5478. if { (eval echo configure:5966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  5479. # The compiler can only warn and ignore the option if not recognized
  5480. # So say no if there are warnings
  5481. if test -s out/conftest.err; then
  5482. lt_cv_compiler_c_o=no
  5483. else
  5484. lt_cv_compiler_c_o=yes
  5485. fi
  5486. else
  5487. # Append any errors to the config.log.
  5488. cat out/conftest.err 1>&5
  5489. lt_cv_compiler_c_o=no
  5490. fi
  5491. CFLAGS="$save_CFLAGS"
  5492. chmod u+w .
  5493. $rm conftest* out/*
  5494. rmdir out
  5495. cd ..
  5496. rmdir conftest
  5497. $rm -r conftest 2>/dev/null
  5498. fi
  5499. compiler_c_o=$lt_cv_compiler_c_o
  5500. echo "$as_me:5990: result: $compiler_c_o" >&5
  5501. echo "${ECHO_T}$compiler_c_o" >&6
  5502. if test x"$compiler_c_o" = x"yes"; then
  5503. # Check to see if we can write to a .lo
  5504. echo "$as_me:5995: checking if $compiler supports -c -o file.lo" >&5
  5505. echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  5506. if test "${lt_cv_compiler_o_lo+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. lt_cv_compiler_o_lo=no
  5510. save_CFLAGS="$CFLAGS"
  5511. CFLAGS="$CFLAGS -c -o conftest.lo"
  5512. save_objext="$ac_objext"
  5513. ac_objext=lo
  5514. cat >conftest.$ac_ext <<_ACEOF
  5515. #line 6007 "configure"
  5516. #include "confdefs.h"
  5517. int
  5518. main ()
  5519. {
  5520. int some_variable = 0;
  5521. ;
  5522. return 0;
  5523. }
  5524. _ACEOF
  5525. rm -f conftest.$ac_objext
  5526. if { (eval echo "$as_me:6019: \"$ac_compile\"") >&5
  5527. (eval $ac_compile) 2>&5
  5528. ac_status=$?
  5529. echo "$as_me:6022: \$? = $ac_status" >&5
  5530. (exit $ac_status); } &&
  5531. { ac_try='test -s conftest.$ac_objext'
  5532. { (eval echo "$as_me:6025: \"$ac_try\"") >&5
  5533. (eval $ac_try) 2>&5
  5534. ac_status=$?
  5535. echo "$as_me:6028: \$? = $ac_status" >&5
  5536. (exit $ac_status); }; }; then
  5537. # The compiler can only warn and ignore the option if not recognized
  5538. # So say no if there are warnings
  5539. if test -s conftest.err; then
  5540. lt_cv_compiler_o_lo=no
  5541. else
  5542. lt_cv_compiler_o_lo=yes
  5543. fi
  5544. else
  5545. echo "$as_me: failed program was:" >&5
  5546. cat conftest.$ac_ext >&5
  5547. fi
  5548. rm -f conftest.$ac_objext conftest.$ac_ext
  5549. ac_objext="$save_objext"
  5550. CFLAGS="$save_CFLAGS"
  5551. fi
  5552. compiler_o_lo=$lt_cv_compiler_o_lo
  5553. echo "$as_me:6049: result: $compiler_o_lo" >&5
  5554. echo "${ECHO_T}$compiler_o_lo" >&6
  5555. else
  5556. compiler_o_lo=no
  5557. fi
  5558. # Check to see if we can do hard links to lock some files if needed
  5559. hard_links="nottested"
  5560. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  5561. # do not overwrite the value of need_locks provided by the user
  5562. echo "$as_me:6059: checking if we can lock with hard links" >&5
  5563. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5564. hard_links=yes
  5565. $rm conftest*
  5566. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5567. touch conftest.a
  5568. ln conftest.a conftest.b 2>&5 || hard_links=no
  5569. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5570. echo "$as_me:6067: result: $hard_links" >&5
  5571. echo "${ECHO_T}$hard_links" >&6
  5572. if test "$hard_links" = no; then
  5573. { echo "$as_me:6070: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5574. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5575. need_locks=warn
  5576. fi
  5577. else
  5578. need_locks=no
  5579. fi
  5580. if test "$GCC" = yes; then
  5581. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  5582. echo "$as_me:6080: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5583. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5584. echo "int some_variable = 0;" > conftest.$ac_ext
  5585. save_CFLAGS="$CFLAGS"
  5586. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  5587. compiler_rtti_exceptions=no
  5588. cat >conftest.$ac_ext <<_ACEOF
  5589. #line 6087 "configure"
  5590. #include "confdefs.h"
  5591. int
  5592. main ()
  5593. {
  5594. int some_variable = 0;
  5595. ;
  5596. return 0;
  5597. }
  5598. _ACEOF
  5599. rm -f conftest.$ac_objext
  5600. if { (eval echo "$as_me:6099: \"$ac_compile\"") >&5
  5601. (eval $ac_compile) 2>&5
  5602. ac_status=$?
  5603. echo "$as_me:6102: \$? = $ac_status" >&5
  5604. (exit $ac_status); } &&
  5605. { ac_try='test -s conftest.$ac_objext'
  5606. { (eval echo "$as_me:6105: \"$ac_try\"") >&5
  5607. (eval $ac_try) 2>&5
  5608. ac_status=$?
  5609. echo "$as_me:6108: \$? = $ac_status" >&5
  5610. (exit $ac_status); }; }; then
  5611. # The compiler can only warn and ignore the option if not recognized
  5612. # So say no if there are warnings
  5613. if test -s conftest.err; then
  5614. compiler_rtti_exceptions=no
  5615. else
  5616. compiler_rtti_exceptions=yes
  5617. fi
  5618. else
  5619. echo "$as_me: failed program was:" >&5
  5620. cat conftest.$ac_ext >&5
  5621. fi
  5622. rm -f conftest.$ac_objext conftest.$ac_ext
  5623. CFLAGS="$save_CFLAGS"
  5624. echo "$as_me:6124: result: $compiler_rtti_exceptions" >&5
  5625. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  5626. if test "$compiler_rtti_exceptions" = "yes"; then
  5627. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  5628. else
  5629. no_builtin_flag=' -fno-builtin'
  5630. fi
  5631. fi
  5632. # See if the linker supports building shared libraries.
  5633. echo "$as_me:6135: checking whether the linker ($LD) supports shared libraries" >&5
  5634. echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  5635. allow_undefined_flag=
  5636. no_undefined_flag=
  5637. need_lib_prefix=unknown
  5638. need_version=unknown
  5639. # when you set need_version to no, make sure it does not cause -set_version
  5640. # flags to be left without arguments
  5641. archive_cmds=
  5642. archive_expsym_cmds=
  5643. old_archive_from_new_cmds=
  5644. old_archive_from_expsyms_cmds=
  5645. export_dynamic_flag_spec=
  5646. whole_archive_flag_spec=
  5647. thread_safe_flag_spec=
  5648. hardcode_into_libs=no
  5649. hardcode_libdir_flag_spec=
  5650. hardcode_libdir_separator=
  5651. hardcode_direct=no
  5652. hardcode_minus_L=no
  5653. hardcode_shlibpath_var=unsupported
  5654. runpath_var=
  5655. link_all_deplibs=unknown
  5656. always_export_symbols=no
  5657. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5658. # include_expsyms should be a list of space-separated symbols to be *always*
  5659. # included in the symbol list
  5660. include_expsyms=
  5661. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  5662. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5663. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5664. # as well as any symbol that contains `d'.
  5665. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5666. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5667. # platforms (ab)use it in PIC code, but their linkers get confused if
  5668. # the symbol is explicitly referenced. Since portable code cannot
  5669. # rely on this symbol name, it's probably fine to never include it in
  5670. # preloaded symbol tables.
  5671. extract_expsyms_cmds=
  5672. case $host_os in
  5673. cygwin* | mingw* | pw32*)
  5674. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5675. # When not using gcc, we currently assume that we are using
  5676. # Microsoft Visual C++.
  5677. if test "$GCC" != yes; then
  5678. with_gnu_ld=no
  5679. fi
  5680. ;;
  5681. openbsd*)
  5682. with_gnu_ld=no
  5683. ;;
  5684. esac
  5685. ld_shlibs=yes
  5686. if test "$with_gnu_ld" = yes; then
  5687. # If archive_cmds runs LD, not CC, wlarc should be empty
  5688. wlarc='${wl}'
  5689. # See if GNU ld supports shared libraries.
  5690. case $host_os in
  5691. aix3* | aix4* | aix5*)
  5692. # On AIX, the GNU linker is very broken
  5693. # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  5694. ld_shlibs=no
  5695. cat <<EOF 1>&2
  5696. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5697. *** to be unable to reliably create shared libraries on AIX.
  5698. *** Therefore, libtool is disabling shared libraries support. If you
  5699. *** really care for shared libraries, you may want to modify your PATH
  5700. *** so that a non-GNU linker is found, and then restart.
  5701. EOF
  5702. ;;
  5703. amigaos*)
  5704. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5705. hardcode_libdir_flag_spec='-L$libdir'
  5706. hardcode_minus_L=yes
  5707. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5708. # that the semantics of dynamic libraries on AmigaOS, at least up
  5709. # to version 4, is to share data among multiple programs linked
  5710. # with the same dynamic library. Since this doesn't match the
  5711. # behavior of shared libraries on other platforms, we can use
  5712. # them.
  5713. ld_shlibs=no
  5714. ;;
  5715. beos*)
  5716. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  5717. allow_undefined_flag=unsupported
  5718. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5719. # support --undefined. This deserves some investigation. FIXME
  5720. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5721. else
  5722. ld_shlibs=no
  5723. fi
  5724. ;;
  5725. cygwin* | mingw* | pw32*)
  5726. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5727. # no search path for DLLs.
  5728. hardcode_libdir_flag_spec='-L$libdir'
  5729. allow_undefined_flag=unsupported
  5730. always_export_symbols=yes
  5731. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  5732. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  5733. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  5734. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  5735. else $CC -o impgen impgen.c ; fi)~
  5736. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  5737. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  5738. # cygwin and mingw dlls have different entry points and sets of symbols
  5739. # to exclude.
  5740. # FIXME: what about values for MSVC?
  5741. dll_entry=__cygwin_dll_entry@12
  5742. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  5743. case $host_os in
  5744. mingw*)
  5745. # mingw values
  5746. dll_entry=_DllMainCRTStartup@12
  5747. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  5748. ;;
  5749. esac
  5750. # mingw and cygwin differ, and it's simplest to just exclude the union
  5751. # of the two symbol sets.
  5752. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  5753. # recent cygwin and mingw systems supply a stub DllMain which the user
  5754. # can override, but on older systems we have to supply one (in ltdll.c)
  5755. if test "x$lt_cv_need_dllmain" = "xyes"; then
  5756. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  5757. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  5758. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  5759. else
  5760. ltdll_obj=
  5761. ltdll_cmds=
  5762. fi
  5763. # Extract the symbol export list from an `--export-all' def file,
  5764. # then regenerate the def file from the symbol export list, so that
  5765. # the compiled dll only exports the symbol export list.
  5766. # Be careful not to strip the DATA tag left be newer dlltools.
  5767. export_symbols_cmds="$ltdll_cmds"'
  5768. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  5769. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  5770. # If the export-symbols file already is a .def file (1st line
  5771. # is EXPORTS), use it as is.
  5772. # If DATA tags from a recent dlltool are present, honour them!
  5773. archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  5774. cp $export_symbols $output_objdir/$soname-def;
  5775. else
  5776. echo EXPORTS > $output_objdir/$soname-def;
  5777. _lt_hint=1;
  5778. cat $export_symbols | while read symbol; do
  5779. set dummy \$symbol;
  5780. case \$# in
  5781. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  5782. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  5783. esac;
  5784. _lt_hint=`expr 1 + \$_lt_hint`;
  5785. done;
  5786. fi~
  5787. '"$ltdll_cmds"'
  5788. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  5789. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  5790. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  5791. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  5792. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  5793. ;;
  5794. netbsd*)
  5795. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5796. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5797. wlarc=
  5798. else
  5799. archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5800. archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5801. fi
  5802. ;;
  5803. solaris* | sysv5*)
  5804. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  5805. ld_shlibs=no
  5806. cat <<EOF 1>&2
  5807. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5808. *** create shared libraries on Solaris systems. Therefore, libtool
  5809. *** is disabling shared libraries support. We urge you to upgrade GNU
  5810. *** binutils to release 2.9.1 or newer. Another option is to modify
  5811. *** your PATH or compiler configuration so that the native linker is
  5812. *** used, and then restart.
  5813. EOF
  5814. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  5815. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5816. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5817. else
  5818. ld_shlibs=no
  5819. fi
  5820. ;;
  5821. sunos4*)
  5822. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5823. wlarc=
  5824. hardcode_direct=yes
  5825. hardcode_shlibpath_var=no
  5826. ;;
  5827. *)
  5828. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  5829. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5830. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5831. else
  5832. ld_shlibs=no
  5833. fi
  5834. ;;
  5835. esac
  5836. if test "$ld_shlibs" = yes; then
  5837. runpath_var=LD_RUN_PATH
  5838. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5839. export_dynamic_flag_spec='${wl}--export-dynamic'
  5840. case $host_os in
  5841. cygwin* | mingw* | pw32*)
  5842. # dlltool doesn't understand --whole-archive et. al.
  5843. whole_archive_flag_spec=
  5844. ;;
  5845. *)
  5846. # ancient GNU ld didn't support --whole-archive et. al.
  5847. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  5848. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5849. else
  5850. whole_archive_flag_spec=
  5851. fi
  5852. ;;
  5853. esac
  5854. fi
  5855. else
  5856. # PORTME fill in a description of your system's linker (not GNU ld)
  5857. case $host_os in
  5858. aix3*)
  5859. allow_undefined_flag=unsupported
  5860. always_export_symbols=yes
  5861. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5862. # Note: this linker hardcodes the directories in LIBPATH if there
  5863. # are no directories specified by -L.
  5864. hardcode_minus_L=yes
  5865. if test "$GCC" = yes && test -z "$link_static_flag"; then
  5866. # Neither direct hardcoding nor static linking is supported with a
  5867. # broken collect2.
  5868. hardcode_direct=unsupported
  5869. fi
  5870. ;;
  5871. aix4* | aix5*)
  5872. if test "$host_cpu" = ia64; then
  5873. # On IA64, the linker does run time linking by default, so we don't
  5874. # have to do anything special.
  5875. aix_use_runtimelinking=no
  5876. exp_sym_flag='-Bexport'
  5877. no_entry_flag=""
  5878. else
  5879. aix_use_runtimelinking=no
  5880. # Test if we are trying to use run time linking or normal
  5881. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5882. # need to do runtime linking.
  5883. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5884. for ld_flag in $LDFLAGS; do
  5885. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5886. aix_use_runtimelinking=yes
  5887. break
  5888. fi
  5889. done
  5890. esac
  5891. exp_sym_flag='-bexport'
  5892. no_entry_flag='-bnoentry'
  5893. fi
  5894. # When large executables or shared objects are built, AIX ld can
  5895. # have problems creating the table of contents. If linking a library
  5896. # or program results in "error TOC overflow" add -mminimal-toc to
  5897. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5898. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5899. hardcode_direct=yes
  5900. archive_cmds=''
  5901. hardcode_libdir_separator=':'
  5902. if test "$GCC" = yes; then
  5903. case $host_os in aix4.[012]|aix4.[012].*)
  5904. collect2name=`${CC} -print-prog-name=collect2`
  5905. if test -f "$collect2name" && \
  5906. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5907. then
  5908. # We have reworked collect2
  5909. hardcode_direct=yes
  5910. else
  5911. # We have old collect2
  5912. hardcode_direct=unsupported
  5913. # It fails to find uninstalled libraries when the uninstalled
  5914. # path is not listed in the libpath. Setting hardcode_minus_L
  5915. # to unsupported forces relinking
  5916. hardcode_minus_L=yes
  5917. hardcode_libdir_flag_spec='-L$libdir'
  5918. hardcode_libdir_separator=
  5919. fi
  5920. esac
  5921. shared_flag='-shared'
  5922. else
  5923. # not using gcc
  5924. if test "$host_cpu" = ia64; then
  5925. shared_flag='${wl}-G'
  5926. else
  5927. if test "$aix_use_runtimelinking" = yes; then
  5928. shared_flag='${wl}-G'
  5929. else
  5930. shared_flag='${wl}-bM:SRE'
  5931. fi
  5932. fi
  5933. fi
  5934. # It seems that -bexpall can do strange things, so it is better to
  5935. # generate a list of symbols to export.
  5936. always_export_symbols=yes
  5937. if test "$aix_use_runtimelinking" = yes; then
  5938. # Warning - without using the other runtime loading flags (-brtl),
  5939. # -berok will link without error, but may produce a broken library.
  5940. allow_undefined_flag='-berok'
  5941. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  5942. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5943. else
  5944. if test "$host_cpu" = ia64; then
  5945. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5946. allow_undefined_flag="-z nodefs"
  5947. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5948. else
  5949. hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  5950. # Warning - without using the other run time loading flags,
  5951. # -berok will link without error, but may produce a broken library.
  5952. allow_undefined_flag='${wl}-berok'
  5953. # This is a bit strange, but is similar to how AIX traditionally builds
  5954. # it's shared libraries.
  5955. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  5956. fi
  5957. fi
  5958. ;;
  5959. amigaos*)
  5960. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5961. hardcode_libdir_flag_spec='-L$libdir'
  5962. hardcode_minus_L=yes
  5963. # see comment about different semantics on the GNU ld section
  5964. ld_shlibs=no
  5965. ;;
  5966. cygwin* | mingw* | pw32*)
  5967. # When not using gcc, we currently assume that we are using
  5968. # Microsoft Visual C++.
  5969. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5970. # no search path for DLLs.
  5971. hardcode_libdir_flag_spec=' '
  5972. allow_undefined_flag=unsupported
  5973. # Tell ltmain to make .lib files, not .a files.
  5974. libext=lib
  5975. # FIXME: Setting linknames here is a bad hack.
  5976. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5977. # The linker will automatically build a .lib file if we build a DLL.
  5978. old_archive_from_new_cmds='true'
  5979. # FIXME: Should let the user specify the lib program.
  5980. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5981. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5982. ;;
  5983. darwin* | rhapsody*)
  5984. case "$host_os" in
  5985. rhapsody* | darwin1.[012])
  5986. allow_undefined_flag='-undefined suppress'
  5987. ;;
  5988. *) # Darwin 1.3 on
  5989. allow_undefined_flag='-flat_namespace -undefined suppress'
  5990. ;;
  5991. esac
  5992. # FIXME: Relying on posixy $() will cause problems for
  5993. # cross-compilation, but unfortunately the echo tests do not
  5994. # yet detect zsh echo's removal of \ escapes.
  5995. archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  5996. # We need to add '_' to the symbols in $export_symbols first
  5997. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  5998. hardcode_direct=yes
  5999. hardcode_shlibpath_var=no
  6000. whole_archive_flag_spec='-all_load $convenience'
  6001. ;;
  6002. freebsd1*)
  6003. ld_shlibs=no
  6004. ;;
  6005. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6006. # support. Future versions do this automatically, but an explicit c++rt0.o
  6007. # does not break anything, and helps significantly (at the cost of a little
  6008. # extra space).
  6009. freebsd2.2*)
  6010. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6011. hardcode_libdir_flag_spec='-R$libdir'
  6012. hardcode_direct=yes
  6013. hardcode_shlibpath_var=no
  6014. ;;
  6015. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6016. freebsd2*)
  6017. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6018. hardcode_direct=yes
  6019. hardcode_minus_L=yes
  6020. hardcode_shlibpath_var=no
  6021. ;;
  6022. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6023. freebsd*)
  6024. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6025. hardcode_libdir_flag_spec='-R$libdir'
  6026. hardcode_direct=yes
  6027. hardcode_shlibpath_var=no
  6028. ;;
  6029. hpux9* | hpux10* | hpux11*)
  6030. case $host_os in
  6031. hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  6032. *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  6033. esac
  6034. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6035. hardcode_libdir_separator=:
  6036. hardcode_direct=yes
  6037. hardcode_minus_L=yes # Not in the search PATH, but as the default
  6038. # location of the library.
  6039. export_dynamic_flag_spec='${wl}-E'
  6040. ;;
  6041. irix5* | irix6*)
  6042. if test "$GCC" = yes; then
  6043. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6044. else
  6045. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6046. fi
  6047. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6048. hardcode_libdir_separator=:
  6049. link_all_deplibs=yes
  6050. ;;
  6051. netbsd*)
  6052. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6054. else
  6055. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6056. fi
  6057. hardcode_libdir_flag_spec='-R$libdir'
  6058. hardcode_direct=yes
  6059. hardcode_shlibpath_var=no
  6060. ;;
  6061. newsos6)
  6062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6063. hardcode_direct=yes
  6064. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6065. hardcode_libdir_separator=:
  6066. hardcode_shlibpath_var=no
  6067. ;;
  6068. openbsd*)
  6069. hardcode_direct=yes
  6070. hardcode_shlibpath_var=no
  6071. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6072. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  6073. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6074. export_dynamic_flag_spec='${wl}-E'
  6075. else
  6076. case "$host_os" in
  6077. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6078. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6079. hardcode_libdir_flag_spec='-R$libdir'
  6080. ;;
  6081. *)
  6082. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  6083. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6084. ;;
  6085. esac
  6086. fi
  6087. ;;
  6088. os2*)
  6089. hardcode_libdir_flag_spec='-L$libdir'
  6090. hardcode_minus_L=yes
  6091. allow_undefined_flag=unsupported
  6092. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6093. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6094. ;;
  6095. osf3*)
  6096. if test "$GCC" = yes; then
  6097. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6098. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6099. else
  6100. allow_undefined_flag=' -expect_unresolved \*'
  6101. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6102. fi
  6103. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6104. hardcode_libdir_separator=:
  6105. ;;
  6106. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6107. if test "$GCC" = yes; then
  6108. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6109. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6110. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6111. else
  6112. allow_undefined_flag=' -expect_unresolved \*'
  6113. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6114. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6115. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  6116. #Both c and cxx compiler support -rpath directly
  6117. hardcode_libdir_flag_spec='-rpath $libdir'
  6118. fi
  6119. hardcode_libdir_separator=:
  6120. ;;
  6121. sco3.2v5*)
  6122. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6123. hardcode_shlibpath_var=no
  6124. runpath_var=LD_RUN_PATH
  6125. hardcode_runpath_var=yes
  6126. export_dynamic_flag_spec='${wl}-Bexport'
  6127. ;;
  6128. solaris*)
  6129. # gcc --version < 3.0 without binutils cannot create self contained
  6130. # shared libraries reliably, requiring libgcc.a to resolve some of
  6131. # the object symbols generated in some cases. Libraries that use
  6132. # assert need libgcc.a to resolve __eprintf, for example. Linking
  6133. # a copy of libgcc.a into every shared library to guarantee resolving
  6134. # such symbols causes other problems: According to Tim Van Holder
  6135. # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  6136. # (to the application) exception stack for one thing.
  6137. no_undefined_flag=' -z defs'
  6138. if test "$GCC" = yes; then
  6139. case `$CC --version 2>/dev/null` in
  6140. [12].*)
  6141. cat <<EOF 1>&2
  6142. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  6143. *** create self contained shared libraries on Solaris systems, without
  6144. *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  6145. *** -no-undefined support, which will at least allow you to build shared
  6146. *** libraries. However, you may find that when you link such libraries
  6147. *** into an application without using GCC, you have to manually add
  6148. *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  6149. *** upgrade to a newer version of GCC. Another option is to rebuild your
  6150. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  6151. EOF
  6152. no_undefined_flag=
  6153. ;;
  6154. esac
  6155. fi
  6156. # $CC -shared without GNU ld will not create a library from C++
  6157. # object files and a static libstdc++, better avoid it by now
  6158. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6159. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6160. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6161. hardcode_libdir_flag_spec='-R$libdir'
  6162. hardcode_shlibpath_var=no
  6163. case $host_os in
  6164. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6165. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  6166. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6167. esac
  6168. link_all_deplibs=yes
  6169. ;;
  6170. sunos4*)
  6171. if test "x$host_vendor" = xsequent; then
  6172. # Use $CC to link under sequent, because it throws in some extra .o
  6173. # files that make .init and .fini sections work.
  6174. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6175. else
  6176. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6177. fi
  6178. hardcode_libdir_flag_spec='-L$libdir'
  6179. hardcode_direct=yes
  6180. hardcode_minus_L=yes
  6181. hardcode_shlibpath_var=no
  6182. ;;
  6183. sysv4)
  6184. if test "x$host_vendor" = xsno; then
  6185. archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6186. hardcode_direct=yes # is this really true???
  6187. else
  6188. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6189. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6190. fi
  6191. runpath_var='LD_RUN_PATH'
  6192. hardcode_shlibpath_var=no
  6193. ;;
  6194. sysv4.3*)
  6195. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6196. hardcode_shlibpath_var=no
  6197. export_dynamic_flag_spec='-Bexport'
  6198. ;;
  6199. sysv5*)
  6200. no_undefined_flag=' -z text'
  6201. # $CC -shared without GNU ld will not create a library from C++
  6202. # object files and a static libstdc++, better avoid it by now
  6203. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6204. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6205. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6206. hardcode_libdir_flag_spec=
  6207. hardcode_shlibpath_var=no
  6208. runpath_var='LD_RUN_PATH'
  6209. ;;
  6210. uts4*)
  6211. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6212. hardcode_libdir_flag_spec='-L$libdir'
  6213. hardcode_shlibpath_var=no
  6214. ;;
  6215. dgux*)
  6216. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6217. hardcode_libdir_flag_spec='-L$libdir'
  6218. hardcode_shlibpath_var=no
  6219. ;;
  6220. sysv4*MP*)
  6221. if test -d /usr/nec; then
  6222. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6223. hardcode_shlibpath_var=no
  6224. runpath_var=LD_RUN_PATH
  6225. hardcode_runpath_var=yes
  6226. ld_shlibs=yes
  6227. fi
  6228. ;;
  6229. sysv4.2uw2*)
  6230. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6231. hardcode_direct=yes
  6232. hardcode_minus_L=no
  6233. hardcode_shlibpath_var=no
  6234. hardcode_runpath_var=yes
  6235. runpath_var=LD_RUN_PATH
  6236. ;;
  6237. sysv5uw7* | unixware7*)
  6238. no_undefined_flag='${wl}-z ${wl}text'
  6239. if test "$GCC" = yes; then
  6240. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6241. else
  6242. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6243. fi
  6244. runpath_var='LD_RUN_PATH'
  6245. hardcode_shlibpath_var=no
  6246. ;;
  6247. *)
  6248. ld_shlibs=no
  6249. ;;
  6250. esac
  6251. fi
  6252. echo "$as_me:6815: result: $ld_shlibs" >&5
  6253. echo "${ECHO_T}$ld_shlibs" >&6
  6254. test "$ld_shlibs" = no && can_build_shared=no
  6255. # Check hardcoding attributes.
  6256. echo "$as_me:6820: checking how to hardcode library paths into programs" >&5
  6257. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  6258. hardcode_action=
  6259. if test -n "$hardcode_libdir_flag_spec" || \
  6260. test -n "$runpath_var"; then
  6261. # We can hardcode non-existant directories.
  6262. if test "$hardcode_direct" != no &&
  6263. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  6264. # have to relink, otherwise we might link with an installed library
  6265. # when we should be linking with a yet-to-be-installed one
  6266. ## test "$hardcode_shlibpath_var" != no &&
  6267. test "$hardcode_minus_L" != no; then
  6268. # Linking always hardcodes the temporary library directory.
  6269. hardcode_action=relink
  6270. else
  6271. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  6272. hardcode_action=immediate
  6273. fi
  6274. else
  6275. # We cannot hardcode anything, or else we can only hardcode existing
  6276. # directories.
  6277. hardcode_action=unsupported
  6278. fi
  6279. echo "$as_me:6844: result: $hardcode_action" >&5
  6280. echo "${ECHO_T}$hardcode_action" >&6
  6281. striplib=
  6282. old_striplib=
  6283. echo "$as_me:6849: checking whether stripping libraries is possible" >&5
  6284. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  6285. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  6286. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  6287. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  6288. echo "$as_me:6854: result: yes" >&5
  6289. echo "${ECHO_T}yes" >&6
  6290. else
  6291. echo "$as_me:6857: result: no" >&5
  6292. echo "${ECHO_T}no" >&6
  6293. fi
  6294. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6295. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6296. # PORTME Fill in your ld.so characteristics
  6297. echo "$as_me:6865: checking dynamic linker characteristics" >&5
  6298. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6299. library_names_spec=
  6300. libname_spec='lib$name'
  6301. soname_spec=
  6302. postinstall_cmds=
  6303. postuninstall_cmds=
  6304. finish_cmds=
  6305. finish_eval=
  6306. shlibpath_var=
  6307. shlibpath_overrides_runpath=unknown
  6308. version_type=none
  6309. dynamic_linker="$host_os ld.so"
  6310. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6311. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6312. case $host_os in
  6313. aix3*)
  6314. version_type=linux
  6315. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  6316. shlibpath_var=LIBPATH
  6317. # AIX has no versioning support, so we append a major version to the name.
  6318. soname_spec='${libname}${release}.so$major'
  6319. ;;
  6320. aix4* | aix5*)
  6321. version_type=linux
  6322. if test "$host_cpu" = ia64; then
  6323. # AIX 5 supports IA64
  6324. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  6325. shlibpath_var=LD_LIBRARY_PATH
  6326. else
  6327. # With GCC up to 2.95.x, collect2 would create an import file
  6328. # for dependence libraries. The import file would start with
  6329. # the line `#! .'. This would cause the generated library to
  6330. # depend on `.', always an invalid library. This was fixed in
  6331. # development snapshots of GCC prior to 3.0.
  6332. case $host_os in
  6333. aix4 | aix4.[01] | aix4.[01].*)
  6334. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6335. echo ' yes '
  6336. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6337. :
  6338. else
  6339. can_build_shared=no
  6340. fi
  6341. ;;
  6342. esac
  6343. # AIX (on Power*) has no versioning support, so currently we can
  6344. # not hardcode correct soname into executable. Probably we can
  6345. # add versioning support to collect2, so additional links can
  6346. # be useful in future.
  6347. if test "$aix_use_runtimelinking" = yes; then
  6348. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6349. # instead of lib<name>.a to let people know that these are not
  6350. # typical AIX shared libraries.
  6351. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6352. else
  6353. # We preserve .a as extension for shared libraries through AIX4.2
  6354. # and later when we are not doing run time linking.
  6355. library_names_spec='${libname}${release}.a $libname.a'
  6356. soname_spec='${libname}${release}.so$major'
  6357. fi
  6358. shlibpath_var=LIBPATH
  6359. fi
  6360. ;;
  6361. amigaos*)
  6362. library_names_spec='$libname.ixlibrary $libname.a'
  6363. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6364. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  6365. ;;
  6366. beos*)
  6367. library_names_spec='${libname}.so'
  6368. dynamic_linker="$host_os ld.so"
  6369. shlibpath_var=LIBRARY_PATH
  6370. ;;
  6371. bsdi4*)
  6372. version_type=linux
  6373. need_version=no
  6374. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6375. soname_spec='${libname}${release}.so$major'
  6376. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6377. shlibpath_var=LD_LIBRARY_PATH
  6378. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6379. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6380. export_dynamic_flag_spec=-rdynamic
  6381. # the default ld.so.conf also contains /usr/contrib/lib and
  6382. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6383. # libtool to hard-code these into programs
  6384. ;;
  6385. cygwin* | mingw* | pw32*)
  6386. version_type=windows
  6387. need_version=no
  6388. need_lib_prefix=no
  6389. case $GCC,$host_os in
  6390. yes,cygwin*)
  6391. library_names_spec='$libname.dll.a'
  6392. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  6393. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  6394. dldir=$destdir/`dirname \$dlpath`~
  6395. test -d \$dldir || mkdir -p \$dldir~
  6396. $install_prog .libs/$dlname \$dldir/$dlname'
  6397. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6398. dlpath=$dir/\$dldll~
  6399. $rm \$dlpath'
  6400. ;;
  6401. yes,mingw*)
  6402. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  6403. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  6404. ;;
  6405. yes,pw32*)
  6406. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  6407. ;;
  6408. *)
  6409. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  6410. ;;
  6411. esac
  6412. dynamic_linker='Win32 ld.exe'
  6413. # FIXME: first we should search . and the directory the executable is in
  6414. shlibpath_var=PATH
  6415. ;;
  6416. darwin* | rhapsody*)
  6417. dynamic_linker="$host_os dyld"
  6418. version_type=darwin
  6419. need_lib_prefix=no
  6420. need_version=no
  6421. # FIXME: Relying on posixy $() will cause problems for
  6422. # cross-compilation, but unfortunately the echo tests do not
  6423. # yet detect zsh echo's removal of \ escapes.
  6424. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  6425. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  6426. shlibpath_overrides_runpath=yes
  6427. shlibpath_var=DYLD_LIBRARY_PATH
  6428. ;;
  6429. freebsd1*)
  6430. dynamic_linker=no
  6431. ;;
  6432. freebsd*)
  6433. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  6434. version_type=freebsd-$objformat
  6435. case $version_type in
  6436. freebsd-elf*)
  6437. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  6438. need_version=no
  6439. need_lib_prefix=no
  6440. ;;
  6441. freebsd-*)
  6442. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  6443. need_version=yes
  6444. ;;
  6445. esac
  6446. shlibpath_var=LD_LIBRARY_PATH
  6447. case $host_os in
  6448. freebsd2*)
  6449. shlibpath_overrides_runpath=yes
  6450. ;;
  6451. *)
  6452. shlibpath_overrides_runpath=no
  6453. hardcode_into_libs=yes
  6454. ;;
  6455. esac
  6456. ;;
  6457. gnu*)
  6458. version_type=linux
  6459. need_lib_prefix=no
  6460. need_version=no
  6461. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  6462. soname_spec='${libname}${release}.so$major'
  6463. shlibpath_var=LD_LIBRARY_PATH
  6464. hardcode_into_libs=yes
  6465. ;;
  6466. hpux9* | hpux10* | hpux11*)
  6467. # Give a soname corresponding to the major version so that dld.sl refuses to
  6468. # link against other versions.
  6469. dynamic_linker="$host_os dld.sl"
  6470. version_type=sunos
  6471. need_lib_prefix=no
  6472. need_version=no
  6473. shlibpath_var=SHLIB_PATH
  6474. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6475. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  6476. soname_spec='${libname}${release}.sl$major'
  6477. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6478. postinstall_cmds='chmod 555 $lib'
  6479. ;;
  6480. irix5* | irix6*)
  6481. version_type=irix
  6482. need_lib_prefix=no
  6483. need_version=no
  6484. soname_spec='${libname}${release}.so$major'
  6485. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  6486. case $host_os in
  6487. irix5*)
  6488. libsuff= shlibsuff=
  6489. ;;
  6490. *)
  6491. case $LD in # libtool.m4 will add one of these switches to LD
  6492. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  6493. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  6494. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6495. *) libsuff= shlibsuff= libmagic=never-match;;
  6496. esac
  6497. ;;
  6498. esac
  6499. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6500. shlibpath_overrides_runpath=no
  6501. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6502. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6503. ;;
  6504. # No shared lib support for Linux oldld, aout, or coff.
  6505. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  6506. dynamic_linker=no
  6507. ;;
  6508. # This must be Linux ELF.
  6509. linux-gnu*)
  6510. version_type=linux
  6511. need_lib_prefix=no
  6512. need_version=no
  6513. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6514. soname_spec='${libname}${release}.so$major'
  6515. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6516. shlibpath_var=LD_LIBRARY_PATH
  6517. shlibpath_overrides_runpath=no
  6518. # This implies no fast_install, which is unacceptable.
  6519. # Some rework will be needed to allow for fast_install
  6520. # before this can be enabled.
  6521. hardcode_into_libs=yes
  6522. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6523. # powerpc, because MkLinux only supported shared libraries with the
  6524. # GNU dynamic linker. Since this was broken with cross compilers,
  6525. # most powerpc-linux boxes support dynamic linking these days and
  6526. # people can always --disable-shared, the test was removed, and we
  6527. # assume the GNU/Linux dynamic linker is in use.
  6528. dynamic_linker='GNU/Linux ld.so'
  6529. ;;
  6530. netbsd*)
  6531. version_type=sunos
  6532. need_lib_prefix=no
  6533. need_version=no
  6534. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6535. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  6536. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6537. dynamic_linker='NetBSD (a.out) ld.so'
  6538. else
  6539. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  6540. soname_spec='${libname}${release}.so$major'
  6541. dynamic_linker='NetBSD ld.elf_so'
  6542. fi
  6543. shlibpath_var=LD_LIBRARY_PATH
  6544. shlibpath_overrides_runpath=yes
  6545. hardcode_into_libs=yes
  6546. ;;
  6547. newsos6)
  6548. version_type=linux
  6549. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6550. shlibpath_var=LD_LIBRARY_PATH
  6551. shlibpath_overrides_runpath=yes
  6552. ;;
  6553. openbsd*)
  6554. version_type=sunos
  6555. need_lib_prefix=no
  6556. need_version=no
  6557. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6558. case "$host_os" in
  6559. openbsd2.[89] | openbsd2.[89].*)
  6560. shlibpath_overrides_runpath=no
  6561. ;;
  6562. *)
  6563. shlibpath_overrides_runpath=yes
  6564. ;;
  6565. esac
  6566. else
  6567. shlibpath_overrides_runpath=yes
  6568. fi
  6569. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  6570. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6571. shlibpath_var=LD_LIBRARY_PATH
  6572. ;;
  6573. os2*)
  6574. libname_spec='$name'
  6575. need_lib_prefix=no
  6576. library_names_spec='$libname.dll $libname.a'
  6577. dynamic_linker='OS/2 ld.exe'
  6578. shlibpath_var=LIBPATH
  6579. ;;
  6580. osf3* | osf4* | osf5*)
  6581. version_type=osf
  6582. need_version=no
  6583. soname_spec='${libname}${release}.so'
  6584. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  6585. shlibpath_var=LD_LIBRARY_PATH
  6586. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6587. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6588. ;;
  6589. sco3.2v5*)
  6590. version_type=osf
  6591. soname_spec='${libname}${release}.so$major'
  6592. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6593. shlibpath_var=LD_LIBRARY_PATH
  6594. ;;
  6595. solaris*)
  6596. version_type=linux
  6597. need_lib_prefix=no
  6598. need_version=no
  6599. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6600. soname_spec='${libname}${release}.so$major'
  6601. shlibpath_var=LD_LIBRARY_PATH
  6602. shlibpath_overrides_runpath=yes
  6603. hardcode_into_libs=yes
  6604. # ldd complains unless libraries are executable
  6605. postinstall_cmds='chmod +x $lib'
  6606. ;;
  6607. sunos4*)
  6608. version_type=sunos
  6609. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  6610. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6611. shlibpath_var=LD_LIBRARY_PATH
  6612. shlibpath_overrides_runpath=yes
  6613. if test "$with_gnu_ld" = yes; then
  6614. need_lib_prefix=no
  6615. fi
  6616. need_version=yes
  6617. ;;
  6618. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6619. version_type=linux
  6620. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6621. soname_spec='${libname}${release}.so$major'
  6622. shlibpath_var=LD_LIBRARY_PATH
  6623. case $host_vendor in
  6624. sni)
  6625. shlibpath_overrides_runpath=no
  6626. ;;
  6627. motorola)
  6628. need_lib_prefix=no
  6629. need_version=no
  6630. shlibpath_overrides_runpath=no
  6631. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6632. ;;
  6633. esac
  6634. ;;
  6635. uts4*)
  6636. version_type=linux
  6637. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6638. soname_spec='${libname}${release}.so$major'
  6639. shlibpath_var=LD_LIBRARY_PATH
  6640. ;;
  6641. dgux*)
  6642. version_type=linux
  6643. need_lib_prefix=no
  6644. need_version=no
  6645. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  6646. soname_spec='${libname}${release}.so$major'
  6647. shlibpath_var=LD_LIBRARY_PATH
  6648. ;;
  6649. sysv4*MP*)
  6650. if test -d /usr/nec ;then
  6651. version_type=linux
  6652. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  6653. soname_spec='$libname.so.$major'
  6654. shlibpath_var=LD_LIBRARY_PATH
  6655. fi
  6656. ;;
  6657. *)
  6658. dynamic_linker=no
  6659. ;;
  6660. esac
  6661. echo "$as_me:7258: result: $dynamic_linker" >&5
  6662. echo "${ECHO_T}$dynamic_linker" >&6
  6663. test "$dynamic_linker" = no && can_build_shared=no
  6664. # Report the final consequences.
  6665. echo "$as_me:7263: checking if libtool supports shared libraries" >&5
  6666. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  6667. echo "$as_me:7265: result: $can_build_shared" >&5
  6668. echo "${ECHO_T}$can_build_shared" >&6
  6669. echo "$as_me:7268: checking whether to build shared libraries" >&5
  6670. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  6671. test "$can_build_shared" = "no" && enable_shared=no
  6672. # On AIX, shared libraries and static libraries use the same namespace, and
  6673. # are all built from PIC.
  6674. case "$host_os" in
  6675. aix3*)
  6676. test "$enable_shared" = yes && enable_static=no
  6677. if test -n "$RANLIB"; then
  6678. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6679. postinstall_cmds='$RANLIB $lib'
  6680. fi
  6681. ;;
  6682. aix4*)
  6683. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6684. test "$enable_shared" = yes && enable_static=no
  6685. fi
  6686. ;;
  6687. esac
  6688. echo "$as_me:7289: result: $enable_shared" >&5
  6689. echo "${ECHO_T}$enable_shared" >&6
  6690. echo "$as_me:7292: checking whether to build static libraries" >&5
  6691. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  6692. # Make sure either enable_shared or enable_static is yes.
  6693. test "$enable_shared" = yes || enable_static=yes
  6694. echo "$as_me:7296: result: $enable_static" >&5
  6695. echo "${ECHO_T}$enable_static" >&6
  6696. if test "$hardcode_action" = relink; then
  6697. # Fast installation is not supported
  6698. enable_fast_install=no
  6699. elif test "$shlibpath_overrides_runpath" = yes ||
  6700. test "$enable_shared" = no; then
  6701. # Fast installation is not necessary
  6702. enable_fast_install=needless
  6703. fi
  6704. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6705. if test "$GCC" = yes; then
  6706. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6707. fi
  6708. if test "x$enable_dlopen" != xyes; then
  6709. enable_dlopen=unknown
  6710. enable_dlopen_self=unknown
  6711. enable_dlopen_self_static=unknown
  6712. else
  6713. lt_cv_dlopen=no
  6714. lt_cv_dlopen_libs=
  6715. case $host_os in
  6716. beos*)
  6717. lt_cv_dlopen="load_add_on"
  6718. lt_cv_dlopen_libs=
  6719. lt_cv_dlopen_self=yes
  6720. ;;
  6721. cygwin* | mingw* | pw32*)
  6722. lt_cv_dlopen="LoadLibrary"
  6723. lt_cv_dlopen_libs=
  6724. ;;
  6725. *)
  6726. echo "$as_me:7334: checking for shl_load" >&5
  6727. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  6728. if test "${ac_cv_func_shl_load+set}" = set; then
  6729. echo $ECHO_N "(cached) $ECHO_C" >&6
  6730. else
  6731. cat >conftest.$ac_ext <<_ACEOF
  6732. #line 7340 "configure"
  6733. #include "confdefs.h"
  6734. /* System header to define __stub macros and hopefully few prototypes,
  6735. which can conflict with char shl_load (); below. */
  6736. #include <assert.h>
  6737. /* Override any gcc2 internal prototype to avoid an error. */
  6738. #ifdef __cplusplus
  6739. extern "C"
  6740. #endif
  6741. /* We use char because int might match the return type of a gcc2
  6742. builtin and then its argument prototype would still apply. */
  6743. char shl_load ();
  6744. char (*f) ();
  6745. int
  6746. main ()
  6747. {
  6748. /* The GNU C library defines this for functions which it implements
  6749. to always fail with ENOSYS. Some functions are actually named
  6750. something starting with __ and the normal name is an alias. */
  6751. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  6752. choke me
  6753. #else
  6754. f = shl_load;
  6755. #endif
  6756. ;
  6757. return 0;
  6758. }
  6759. _ACEOF
  6760. rm -f conftest.$ac_objext conftest$ac_exeext
  6761. if { (eval echo "$as_me:7371: \"$ac_link\"") >&5
  6762. (eval $ac_link) 2>&5
  6763. ac_status=$?
  6764. echo "$as_me:7374: \$? = $ac_status" >&5
  6765. (exit $ac_status); } &&
  6766. { ac_try='test -s conftest$ac_exeext'
  6767. { (eval echo "$as_me:7377: \"$ac_try\"") >&5
  6768. (eval $ac_try) 2>&5
  6769. ac_status=$?
  6770. echo "$as_me:7380: \$? = $ac_status" >&5
  6771. (exit $ac_status); }; }; then
  6772. ac_cv_func_shl_load=yes
  6773. else
  6774. echo "$as_me: failed program was:" >&5
  6775. cat conftest.$ac_ext >&5
  6776. ac_cv_func_shl_load=no
  6777. fi
  6778. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6779. fi
  6780. echo "$as_me:7390: result: $ac_cv_func_shl_load" >&5
  6781. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  6782. if test $ac_cv_func_shl_load = yes; then
  6783. lt_cv_dlopen="shl_load"
  6784. else
  6785. echo "$as_me:7395: checking for shl_load in -ldld" >&5
  6786. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  6787. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  6788. echo $ECHO_N "(cached) $ECHO_C" >&6
  6789. else
  6790. ac_check_lib_save_LIBS=$LIBS
  6791. LIBS="-ldld $LIBS"
  6792. cat >conftest.$ac_ext <<_ACEOF
  6793. #line 7403 "configure"
  6794. #include "confdefs.h"
  6795. /* Override any gcc2 internal prototype to avoid an error. */
  6796. #ifdef __cplusplus
  6797. extern "C"
  6798. #endif
  6799. /* We use char because int might match the return type of a gcc2
  6800. builtin and then its argument prototype would still apply. */
  6801. char shl_load ();
  6802. int
  6803. main ()
  6804. {
  6805. shl_load ();
  6806. ;
  6807. return 0;
  6808. }
  6809. _ACEOF
  6810. rm -f conftest.$ac_objext conftest$ac_exeext
  6811. if { (eval echo "$as_me:7422: \"$ac_link\"") >&5
  6812. (eval $ac_link) 2>&5
  6813. ac_status=$?
  6814. echo "$as_me:7425: \$? = $ac_status" >&5
  6815. (exit $ac_status); } &&
  6816. { ac_try='test -s conftest$ac_exeext'
  6817. { (eval echo "$as_me:7428: \"$ac_try\"") >&5
  6818. (eval $ac_try) 2>&5
  6819. ac_status=$?
  6820. echo "$as_me:7431: \$? = $ac_status" >&5
  6821. (exit $ac_status); }; }; then
  6822. ac_cv_lib_dld_shl_load=yes
  6823. else
  6824. echo "$as_me: failed program was:" >&5
  6825. cat conftest.$ac_ext >&5
  6826. ac_cv_lib_dld_shl_load=no
  6827. fi
  6828. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6829. LIBS=$ac_check_lib_save_LIBS
  6830. fi
  6831. echo "$as_me:7442: result: $ac_cv_lib_dld_shl_load" >&5
  6832. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  6833. if test $ac_cv_lib_dld_shl_load = yes; then
  6834. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  6835. else
  6836. echo "$as_me:7447: checking for dlopen" >&5
  6837. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  6838. if test "${ac_cv_func_dlopen+set}" = set; then
  6839. echo $ECHO_N "(cached) $ECHO_C" >&6
  6840. else
  6841. cat >conftest.$ac_ext <<_ACEOF
  6842. #line 7453 "configure"
  6843. #include "confdefs.h"
  6844. /* System header to define __stub macros and hopefully few prototypes,
  6845. which can conflict with char dlopen (); below. */
  6846. #include <assert.h>
  6847. /* Override any gcc2 internal prototype to avoid an error. */
  6848. #ifdef __cplusplus
  6849. extern "C"
  6850. #endif
  6851. /* We use char because int might match the return type of a gcc2
  6852. builtin and then its argument prototype would still apply. */
  6853. char dlopen ();
  6854. char (*f) ();
  6855. int
  6856. main ()
  6857. {
  6858. /* The GNU C library defines this for functions which it implements
  6859. to always fail with ENOSYS. Some functions are actually named
  6860. something starting with __ and the normal name is an alias. */
  6861. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  6862. choke me
  6863. #else
  6864. f = dlopen;
  6865. #endif
  6866. ;
  6867. return 0;
  6868. }
  6869. _ACEOF
  6870. rm -f conftest.$ac_objext conftest$ac_exeext
  6871. if { (eval echo "$as_me:7484: \"$ac_link\"") >&5
  6872. (eval $ac_link) 2>&5
  6873. ac_status=$?
  6874. echo "$as_me:7487: \$? = $ac_status" >&5
  6875. (exit $ac_status); } &&
  6876. { ac_try='test -s conftest$ac_exeext'
  6877. { (eval echo "$as_me:7490: \"$ac_try\"") >&5
  6878. (eval $ac_try) 2>&5
  6879. ac_status=$?
  6880. echo "$as_me:7493: \$? = $ac_status" >&5
  6881. (exit $ac_status); }; }; then
  6882. ac_cv_func_dlopen=yes
  6883. else
  6884. echo "$as_me: failed program was:" >&5
  6885. cat conftest.$ac_ext >&5
  6886. ac_cv_func_dlopen=no
  6887. fi
  6888. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6889. fi
  6890. echo "$as_me:7503: result: $ac_cv_func_dlopen" >&5
  6891. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  6892. if test $ac_cv_func_dlopen = yes; then
  6893. lt_cv_dlopen="dlopen"
  6894. else
  6895. echo "$as_me:7508: checking for dlopen in -ldl" >&5
  6896. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  6897. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  6898. echo $ECHO_N "(cached) $ECHO_C" >&6
  6899. else
  6900. ac_check_lib_save_LIBS=$LIBS
  6901. LIBS="-ldl $LIBS"
  6902. cat >conftest.$ac_ext <<_ACEOF
  6903. #line 7516 "configure"
  6904. #include "confdefs.h"
  6905. /* Override any gcc2 internal prototype to avoid an error. */
  6906. #ifdef __cplusplus
  6907. extern "C"
  6908. #endif
  6909. /* We use char because int might match the return type of a gcc2
  6910. builtin and then its argument prototype would still apply. */
  6911. char dlopen ();
  6912. int
  6913. main ()
  6914. {
  6915. dlopen ();
  6916. ;
  6917. return 0;
  6918. }
  6919. _ACEOF
  6920. rm -f conftest.$ac_objext conftest$ac_exeext
  6921. if { (eval echo "$as_me:7535: \"$ac_link\"") >&5
  6922. (eval $ac_link) 2>&5
  6923. ac_status=$?
  6924. echo "$as_me:7538: \$? = $ac_status" >&5
  6925. (exit $ac_status); } &&
  6926. { ac_try='test -s conftest$ac_exeext'
  6927. { (eval echo "$as_me:7541: \"$ac_try\"") >&5
  6928. (eval $ac_try) 2>&5
  6929. ac_status=$?
  6930. echo "$as_me:7544: \$? = $ac_status" >&5
  6931. (exit $ac_status); }; }; then
  6932. ac_cv_lib_dl_dlopen=yes
  6933. else
  6934. echo "$as_me: failed program was:" >&5
  6935. cat conftest.$ac_ext >&5
  6936. ac_cv_lib_dl_dlopen=no
  6937. fi
  6938. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6939. LIBS=$ac_check_lib_save_LIBS
  6940. fi
  6941. echo "$as_me:7555: result: $ac_cv_lib_dl_dlopen" >&5
  6942. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  6943. if test $ac_cv_lib_dl_dlopen = yes; then
  6944. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  6945. else
  6946. echo "$as_me:7560: checking for dlopen in -lsvld" >&5
  6947. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  6948. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  6949. echo $ECHO_N "(cached) $ECHO_C" >&6
  6950. else
  6951. ac_check_lib_save_LIBS=$LIBS
  6952. LIBS="-lsvld $LIBS"
  6953. cat >conftest.$ac_ext <<_ACEOF
  6954. #line 7568 "configure"
  6955. #include "confdefs.h"
  6956. /* Override any gcc2 internal prototype to avoid an error. */
  6957. #ifdef __cplusplus
  6958. extern "C"
  6959. #endif
  6960. /* We use char because int might match the return type of a gcc2
  6961. builtin and then its argument prototype would still apply. */
  6962. char dlopen ();
  6963. int
  6964. main ()
  6965. {
  6966. dlopen ();
  6967. ;
  6968. return 0;
  6969. }
  6970. _ACEOF
  6971. rm -f conftest.$ac_objext conftest$ac_exeext
  6972. if { (eval echo "$as_me:7587: \"$ac_link\"") >&5
  6973. (eval $ac_link) 2>&5
  6974. ac_status=$?
  6975. echo "$as_me:7590: \$? = $ac_status" >&5
  6976. (exit $ac_status); } &&
  6977. { ac_try='test -s conftest$ac_exeext'
  6978. { (eval echo "$as_me:7593: \"$ac_try\"") >&5
  6979. (eval $ac_try) 2>&5
  6980. ac_status=$?
  6981. echo "$as_me:7596: \$? = $ac_status" >&5
  6982. (exit $ac_status); }; }; then
  6983. ac_cv_lib_svld_dlopen=yes
  6984. else
  6985. echo "$as_me: failed program was:" >&5
  6986. cat conftest.$ac_ext >&5
  6987. ac_cv_lib_svld_dlopen=no
  6988. fi
  6989. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6990. LIBS=$ac_check_lib_save_LIBS
  6991. fi
  6992. echo "$as_me:7607: result: $ac_cv_lib_svld_dlopen" >&5
  6993. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  6994. if test $ac_cv_lib_svld_dlopen = yes; then
  6995. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  6996. else
  6997. echo "$as_me:7612: checking for dld_link in -ldld" >&5
  6998. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  6999. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7000. echo $ECHO_N "(cached) $ECHO_C" >&6
  7001. else
  7002. ac_check_lib_save_LIBS=$LIBS
  7003. LIBS="-ldld $LIBS"
  7004. cat >conftest.$ac_ext <<_ACEOF
  7005. #line 7620 "configure"
  7006. #include "confdefs.h"
  7007. /* Override any gcc2 internal prototype to avoid an error. */
  7008. #ifdef __cplusplus
  7009. extern "C"
  7010. #endif
  7011. /* We use char because int might match the return type of a gcc2
  7012. builtin and then its argument prototype would still apply. */
  7013. char dld_link ();
  7014. int
  7015. main ()
  7016. {
  7017. dld_link ();
  7018. ;
  7019. return 0;
  7020. }
  7021. _ACEOF
  7022. rm -f conftest.$ac_objext conftest$ac_exeext
  7023. if { (eval echo "$as_me:7639: \"$ac_link\"") >&5
  7024. (eval $ac_link) 2>&5
  7025. ac_status=$?
  7026. echo "$as_me:7642: \$? = $ac_status" >&5
  7027. (exit $ac_status); } &&
  7028. { ac_try='test -s conftest$ac_exeext'
  7029. { (eval echo "$as_me:7645: \"$ac_try\"") >&5
  7030. (eval $ac_try) 2>&5
  7031. ac_status=$?
  7032. echo "$as_me:7648: \$? = $ac_status" >&5
  7033. (exit $ac_status); }; }; then
  7034. ac_cv_lib_dld_dld_link=yes
  7035. else
  7036. echo "$as_me: failed program was:" >&5
  7037. cat conftest.$ac_ext >&5
  7038. ac_cv_lib_dld_dld_link=no
  7039. fi
  7040. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7041. LIBS=$ac_check_lib_save_LIBS
  7042. fi
  7043. echo "$as_me:7659: result: $ac_cv_lib_dld_dld_link" >&5
  7044. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7045. if test $ac_cv_lib_dld_dld_link = yes; then
  7046. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7047. fi
  7048. fi
  7049. fi
  7050. fi
  7051. fi
  7052. fi
  7053. ;;
  7054. esac
  7055. if test "x$lt_cv_dlopen" != xno; then
  7056. enable_dlopen=yes
  7057. else
  7058. enable_dlopen=no
  7059. fi
  7060. case $lt_cv_dlopen in
  7061. dlopen)
  7062. save_CPPFLAGS="$CPPFLAGS"
  7063. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7064. save_LDFLAGS="$LDFLAGS"
  7065. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7066. save_LIBS="$LIBS"
  7067. LIBS="$lt_cv_dlopen_libs $LIBS"
  7068. echo "$as_me:7695: checking whether a program can dlopen itself" >&5
  7069. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7070. if test "${lt_cv_dlopen_self+set}" = set; then
  7071. echo $ECHO_N "(cached) $ECHO_C" >&6
  7072. else
  7073. if test "$cross_compiling" = yes; then :
  7074. lt_cv_dlopen_self=cross
  7075. else
  7076. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7077. lt_status=$lt_dlunknown
  7078. cat > conftest.$ac_ext <<EOF
  7079. #line 7706 "configure"
  7080. #include "confdefs.h"
  7081. #if HAVE_DLFCN_H
  7082. #include <dlfcn.h>
  7083. #endif
  7084. #include <stdio.h>
  7085. #ifdef RTLD_GLOBAL
  7086. # define LT_DLGLOBAL RTLD_GLOBAL
  7087. #else
  7088. # ifdef DL_GLOBAL
  7089. # define LT_DLGLOBAL DL_GLOBAL
  7090. # else
  7091. # define LT_DLGLOBAL 0
  7092. # endif
  7093. #endif
  7094. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7095. find out it does not work in some platform. */
  7096. #ifndef LT_DLLAZY_OR_NOW
  7097. # ifdef RTLD_LAZY
  7098. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7099. # else
  7100. # ifdef DL_LAZY
  7101. # define LT_DLLAZY_OR_NOW DL_LAZY
  7102. # else
  7103. # ifdef RTLD_NOW
  7104. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7105. # else
  7106. # ifdef DL_NOW
  7107. # define LT_DLLAZY_OR_NOW DL_NOW
  7108. # else
  7109. # define LT_DLLAZY_OR_NOW 0
  7110. # endif
  7111. # endif
  7112. # endif
  7113. # endif
  7114. #endif
  7115. #ifdef __cplusplus
  7116. extern "C" void exit (int);
  7117. #endif
  7118. void fnord() { int i=42;}
  7119. int main ()
  7120. {
  7121. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7122. int status = $lt_dlunknown;
  7123. if (self)
  7124. {
  7125. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7126. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7127. /* dlclose (self); */
  7128. }
  7129. exit (status);
  7130. }
  7131. EOF
  7132. if { (eval echo "$as_me:7767: \"$ac_link\"") >&5
  7133. (eval $ac_link) 2>&5
  7134. ac_status=$?
  7135. echo "$as_me:7770: \$? = $ac_status" >&5
  7136. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7137. (./conftest; exit; ) 2>/dev/null
  7138. lt_status=$?
  7139. case x$lt_status in
  7140. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7141. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7142. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7143. esac
  7144. else :
  7145. # compilation failed
  7146. lt_cv_dlopen_self=no
  7147. fi
  7148. fi
  7149. rm -fr conftest*
  7150. fi
  7151. echo "$as_me:7787: result: $lt_cv_dlopen_self" >&5
  7152. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7153. if test "x$lt_cv_dlopen_self" = xyes; then
  7154. LDFLAGS="$LDFLAGS $link_static_flag"
  7155. echo "$as_me:7792: checking whether a statically linked program can dlopen itself" >&5
  7156. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7157. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7158. echo $ECHO_N "(cached) $ECHO_C" >&6
  7159. else
  7160. if test "$cross_compiling" = yes; then :
  7161. lt_cv_dlopen_self_static=cross
  7162. else
  7163. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7164. lt_status=$lt_dlunknown
  7165. cat > conftest.$ac_ext <<EOF
  7166. #line 7803 "configure"
  7167. #include "confdefs.h"
  7168. #if HAVE_DLFCN_H
  7169. #include <dlfcn.h>
  7170. #endif
  7171. #include <stdio.h>
  7172. #ifdef RTLD_GLOBAL
  7173. # define LT_DLGLOBAL RTLD_GLOBAL
  7174. #else
  7175. # ifdef DL_GLOBAL
  7176. # define LT_DLGLOBAL DL_GLOBAL
  7177. # else
  7178. # define LT_DLGLOBAL 0
  7179. # endif
  7180. #endif
  7181. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7182. find out it does not work in some platform. */
  7183. #ifndef LT_DLLAZY_OR_NOW
  7184. # ifdef RTLD_LAZY
  7185. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7186. # else
  7187. # ifdef DL_LAZY
  7188. # define LT_DLLAZY_OR_NOW DL_LAZY
  7189. # else
  7190. # ifdef RTLD_NOW
  7191. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7192. # else
  7193. # ifdef DL_NOW
  7194. # define LT_DLLAZY_OR_NOW DL_NOW
  7195. # else
  7196. # define LT_DLLAZY_OR_NOW 0
  7197. # endif
  7198. # endif
  7199. # endif
  7200. # endif
  7201. #endif
  7202. #ifdef __cplusplus
  7203. extern "C" void exit (int);
  7204. #endif
  7205. void fnord() { int i=42;}
  7206. int main ()
  7207. {
  7208. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7209. int status = $lt_dlunknown;
  7210. if (self)
  7211. {
  7212. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7213. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7214. /* dlclose (self); */
  7215. }
  7216. exit (status);
  7217. }
  7218. EOF
  7219. if { (eval echo "$as_me:7864: \"$ac_link\"") >&5
  7220. (eval $ac_link) 2>&5
  7221. ac_status=$?
  7222. echo "$as_me:7867: \$? = $ac_status" >&5
  7223. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7224. (./conftest; exit; ) 2>/dev/null
  7225. lt_status=$?
  7226. case x$lt_status in
  7227. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7228. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7229. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7230. esac
  7231. else :
  7232. # compilation failed
  7233. lt_cv_dlopen_self_static=no
  7234. fi
  7235. fi
  7236. rm -fr conftest*
  7237. fi
  7238. echo "$as_me:7884: result: $lt_cv_dlopen_self_static" >&5
  7239. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7240. fi
  7241. CPPFLAGS="$save_CPPFLAGS"
  7242. LDFLAGS="$save_LDFLAGS"
  7243. LIBS="$save_LIBS"
  7244. ;;
  7245. esac
  7246. case $lt_cv_dlopen_self in
  7247. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7248. *) enable_dlopen_self=unknown ;;
  7249. esac
  7250. case $lt_cv_dlopen_self_static in
  7251. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7252. *) enable_dlopen_self_static=unknown ;;
  7253. esac
  7254. fi
  7255. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7256. case $archive_cmds in
  7257. *'~'*)
  7258. # FIXME: we may have to deal with multi-command sequences.
  7259. ;;
  7260. '$CC '*)
  7261. # Test whether the compiler implicitly links with -lc since on some
  7262. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7263. # to ld, don't add -lc before -lgcc.
  7264. echo "$as_me:7914: checking whether -lc should be explicitly linked in" >&5
  7265. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7266. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  7267. echo $ECHO_N "(cached) $ECHO_C" >&6
  7268. else
  7269. $rm conftest*
  7270. echo 'static int dummy;' > conftest.$ac_ext
  7271. if { (eval echo "$as_me:7922: \"$ac_compile\"") >&5
  7272. (eval $ac_compile) 2>&5
  7273. ac_status=$?
  7274. echo "$as_me:7925: \$? = $ac_status" >&5
  7275. (exit $ac_status); }; then
  7276. soname=conftest
  7277. lib=conftest
  7278. libobjs=conftest.$ac_objext
  7279. deplibs=
  7280. wl=$lt_cv_prog_cc_wl
  7281. compiler_flags=-v
  7282. linker_flags=-v
  7283. verstring=
  7284. output_objdir=.
  7285. libname=conftest
  7286. save_allow_undefined_flag=$allow_undefined_flag
  7287. allow_undefined_flag=
  7288. if { (eval echo "$as_me:7939: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7289. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7290. ac_status=$?
  7291. echo "$as_me:7942: \$? = $ac_status" >&5
  7292. (exit $ac_status); }
  7293. then
  7294. lt_cv_archive_cmds_need_lc=no
  7295. else
  7296. lt_cv_archive_cmds_need_lc=yes
  7297. fi
  7298. allow_undefined_flag=$save_allow_undefined_flag
  7299. else
  7300. cat conftest.err 1>&5
  7301. fi
  7302. fi
  7303. echo "$as_me:7955: result: $lt_cv_archive_cmds_need_lc" >&5
  7304. echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  7305. ;;
  7306. esac
  7307. fi
  7308. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  7309. # The second clause should only fire when bootstrapping the
  7310. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7311. # with your package, and you will get complaints that there are
  7312. # no rules to generate ltmain.sh.
  7313. if test -f "$ltmain"; then
  7314. :
  7315. else
  7316. # If there is no Makefile yet, we rely on a make rule to execute
  7317. # `config.status --recheck' to rerun these tests and create the
  7318. # libtool script then.
  7319. test -f Makefile && make "$ltmain"
  7320. fi
  7321. if test -f "$ltmain"; then
  7322. trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  7323. $rm -f "${ofile}T"
  7324. echo creating $ofile
  7325. # Now quote all the things that may contain metacharacters while being
  7326. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7327. # variables and quote the copies for generation of the libtool script.
  7328. for var in echo old_CC old_CFLAGS \
  7329. AR AR_FLAGS CC LD LN_S NM SHELL \
  7330. reload_flag reload_cmds wl \
  7331. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  7332. thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  7333. library_names_spec soname_spec \
  7334. RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  7335. old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  7336. postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  7337. old_striplib striplib file_magic_cmd export_symbols_cmds \
  7338. deplibs_check_method allow_undefined_flag no_undefined_flag \
  7339. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  7340. global_symbol_to_c_name_address \
  7341. hardcode_libdir_flag_spec hardcode_libdir_separator \
  7342. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7343. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  7344. case $var in
  7345. reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  7346. old_postinstall_cmds | old_postuninstall_cmds | \
  7347. export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  7348. extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  7349. postinstall_cmds | postuninstall_cmds | \
  7350. finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7351. # Double-quote double-evaled strings.
  7352. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7353. ;;
  7354. *)
  7355. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7356. ;;
  7357. esac
  7358. done
  7359. cat <<__EOF__ > "${ofile}T"
  7360. #! $SHELL
  7361. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7362. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7363. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7364. #
  7365. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  7366. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7367. #
  7368. # This program is free software; you can redistribute it and/or modify
  7369. # it under the terms of the GNU General Public License as published by
  7370. # the Free Software Foundation; either version 2 of the License, or
  7371. # (at your option) any later version.
  7372. #
  7373. # This program is distributed in the hope that it will be useful, but
  7374. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7375. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7376. # General Public License for more details.
  7377. #
  7378. # You should have received a copy of the GNU General Public License
  7379. # along with this program; if not, write to the Free Software
  7380. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7381. #
  7382. # As a special exception to the GNU General Public License, if you
  7383. # distribute this file as part of a program that contains a
  7384. # configuration script generated by Autoconf, you may include it under
  7385. # the same distribution terms that you use for the rest of that program.
  7386. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7387. Xsed="sed -e s/^X//"
  7388. # The HP-UX ksh and POSIX shell print the target directory to stdout
  7389. # if CDPATH is set.
  7390. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  7391. # ### BEGIN LIBTOOL CONFIG
  7392. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7393. # Shell to use when invoking shell scripts.
  7394. SHELL=$lt_SHELL
  7395. # Whether or not to build shared libraries.
  7396. build_libtool_libs=$enable_shared
  7397. # Whether or not to build static libraries.
  7398. build_old_libs=$enable_static
  7399. # Whether or not to add -lc for building shared libraries.
  7400. build_libtool_need_lc=$need_lc
  7401. # Whether or not to optimize for fast installation.
  7402. fast_install=$enable_fast_install
  7403. # The host system.
  7404. host_alias=$host_alias
  7405. host=$host
  7406. # An echo program that does not interpret backslashes.
  7407. echo=$lt_echo
  7408. # The archiver.
  7409. AR=$lt_AR
  7410. AR_FLAGS=$lt_AR_FLAGS
  7411. # The default C compiler.
  7412. CC=$lt_CC
  7413. # Is the compiler the GNU C compiler?
  7414. with_gcc=$GCC
  7415. # The linker used to build libraries.
  7416. LD=$lt_LD
  7417. # Whether we need hard or soft links.
  7418. LN_S=$lt_LN_S
  7419. # A BSD-compatible nm program.
  7420. NM=$lt_NM
  7421. # A symbol stripping program
  7422. STRIP=$STRIP
  7423. # Used to examine libraries when file_magic_cmd begins "file"
  7424. MAGIC_CMD=$MAGIC_CMD
  7425. # Used on cygwin: DLL creation program.
  7426. DLLTOOL="$DLLTOOL"
  7427. # Used on cygwin: object dumper.
  7428. OBJDUMP="$OBJDUMP"
  7429. # Used on cygwin: assembler.
  7430. AS="$AS"
  7431. # The name of the directory that contains temporary libtool files.
  7432. objdir=$objdir
  7433. # How to create reloadable object files.
  7434. reload_flag=$lt_reload_flag
  7435. reload_cmds=$lt_reload_cmds
  7436. # How to pass a linker flag through the compiler.
  7437. wl=$lt_wl
  7438. # Object file suffix (normally "o").
  7439. objext="$ac_objext"
  7440. # Old archive suffix (normally "a").
  7441. libext="$libext"
  7442. # Executable file suffix (normally "").
  7443. exeext="$exeext"
  7444. # Additional compiler flags for building library objects.
  7445. pic_flag=$lt_pic_flag
  7446. pic_mode=$pic_mode
  7447. # Does compiler simultaneously support -c and -o options?
  7448. compiler_c_o=$lt_compiler_c_o
  7449. # Can we write directly to a .lo ?
  7450. compiler_o_lo=$lt_compiler_o_lo
  7451. # Must we lock files when doing compilation ?
  7452. need_locks=$lt_need_locks
  7453. # Do we need the lib prefix for modules?
  7454. need_lib_prefix=$need_lib_prefix
  7455. # Do we need a version for libraries?
  7456. need_version=$need_version
  7457. # Whether dlopen is supported.
  7458. dlopen_support=$enable_dlopen
  7459. # Whether dlopen of programs is supported.
  7460. dlopen_self=$enable_dlopen_self
  7461. # Whether dlopen of statically linked programs is supported.
  7462. dlopen_self_static=$enable_dlopen_self_static
  7463. # Compiler flag to prevent dynamic linking.
  7464. link_static_flag=$lt_link_static_flag
  7465. # Compiler flag to turn off builtin functions.
  7466. no_builtin_flag=$lt_no_builtin_flag
  7467. # Compiler flag to allow reflexive dlopens.
  7468. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  7469. # Compiler flag to generate shared objects directly from archives.
  7470. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  7471. # Compiler flag to generate thread-safe objects.
  7472. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  7473. # Library versioning type.
  7474. version_type=$version_type
  7475. # Format of library name prefix.
  7476. libname_spec=$lt_libname_spec
  7477. # List of archive names. First name is the real one, the rest are links.
  7478. # The last name is the one that the linker finds with -lNAME.
  7479. library_names_spec=$lt_library_names_spec
  7480. # The coded name of the library, if different from the real name.
  7481. soname_spec=$lt_soname_spec
  7482. # Commands used to build and install an old-style archive.
  7483. RANLIB=$lt_RANLIB
  7484. old_archive_cmds=$lt_old_archive_cmds
  7485. old_postinstall_cmds=$lt_old_postinstall_cmds
  7486. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7487. # Create an old-style archive from a shared archive.
  7488. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  7489. # Create a temporary old-style archive to link instead of a shared archive.
  7490. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  7491. # Commands used to build and install a shared archive.
  7492. archive_cmds=$lt_archive_cmds
  7493. archive_expsym_cmds=$lt_archive_expsym_cmds
  7494. postinstall_cmds=$lt_postinstall_cmds
  7495. postuninstall_cmds=$lt_postuninstall_cmds
  7496. # Commands to strip libraries.
  7497. old_striplib=$lt_old_striplib
  7498. striplib=$lt_striplib
  7499. # Method to check whether dependent libraries are shared objects.
  7500. deplibs_check_method=$lt_deplibs_check_method
  7501. # Command to use when deplibs_check_method == file_magic.
  7502. file_magic_cmd=$lt_file_magic_cmd