PageRenderTime 61ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 1ms

/configure

http://github.com/dreamcat4/php-fpm
Shell | 15637 lines | 14000 code | 626 blank | 1011 comment | 494 complexity | f9b00f14c2e54ebbaa357f26ad85320c MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for php-fpm 0.6.
  4. #
  5. # Report bugs to <andrei.nigmatulin@gmail.com>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  255. echo_test_string="`eval $cmd`" &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='php-fpm'
  373. PACKAGE_TARNAME='php-fpm'
  374. PACKAGE_VERSION='0.6'
  375. PACKAGE_STRING='php-fpm 0.6'
  376. PACKAGE_BUGREPORT='andrei.nigmatulin@gmail.com'
  377. ac_unique_file="fpm/fpm.c"
  378. # Factoring default headers for most tests.
  379. ac_includes_default="\
  380. #include <stdio.h>
  381. #if HAVE_SYS_TYPES_H
  382. # include <sys/types.h>
  383. #endif
  384. #if HAVE_SYS_STAT_H
  385. # include <sys/stat.h>
  386. #endif
  387. #if STDC_HEADERS
  388. # include <stdlib.h>
  389. # include <stddef.h>
  390. #else
  391. # if HAVE_STDLIB_H
  392. # include <stdlib.h>
  393. # endif
  394. #endif
  395. #if HAVE_STRING_H
  396. # if !STDC_HEADERS && HAVE_MEMORY_H
  397. # include <memory.h>
  398. # endif
  399. # include <string.h>
  400. #endif
  401. #if HAVE_STRINGS_H
  402. # include <strings.h>
  403. #endif
  404. #if HAVE_INTTYPES_H
  405. # include <inttypes.h>
  406. #else
  407. # if HAVE_STDINT_H
  408. # include <stdint.h>
  409. # endif
  410. #endif
  411. #if HAVE_UNISTD_H
  412. # include <unistd.h>
  413. #endif"
  414. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PHP_OBJS PHP_SRCDIR PHP_BUILDDIR PHP_VERSION XMLCONFIG FPM_TRACE_USE_PTRACE_TRUE FPM_TRACE_USE_PTRACE_FALSE FPM_TRACE_USE_PREAD_TRUE FPM_TRACE_USE_PREAD_FALSE FPM_TRACE_USE_MACH_TRUE FPM_TRACE_USE_MACH_FALSE LIBEVENT_CFLAGS LIBEVENT_LIBS ENDIF AM_CFLAGS php_fpm_ADD_CFLAGS php_fpm_ADD_LIBS fpm_version php_fpm_bin php_fpm_bin_dir php_fpm_bin_path php_fpm_port php_fpm_conf php_fpm_conf_dir php_fpm_conf_path php_fpm_init php_fpm_init_dir php_fpm_init_path php_fpm_log_dir php_fpm_log_path php_fpm_pid_dir php_fpm_pid_path php_fpm_user php_fpm_group LIBOBJS LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CC_set=${CC+set}
  798. ac_env_CC_value=$CC
  799. ac_cv_env_CC_set=${CC+set}
  800. ac_cv_env_CC_value=$CC
  801. ac_env_CFLAGS_set=${CFLAGS+set}
  802. ac_env_CFLAGS_value=$CFLAGS
  803. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  804. ac_cv_env_CFLAGS_value=$CFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CPP_set=${CPP+set}
  814. ac_env_CPP_value=$CPP
  815. ac_cv_env_CPP_set=${CPP+set}
  816. ac_cv_env_CPP_value=$CPP
  817. ac_env_CXX_set=${CXX+set}
  818. ac_env_CXX_value=$CXX
  819. ac_cv_env_CXX_set=${CXX+set}
  820. ac_cv_env_CXX_value=$CXX
  821. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  822. ac_env_CXXFLAGS_value=$CXXFLAGS
  823. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  824. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures php-fpm 0.6 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of php-fpm 0.6:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --disable-dependency-tracking speeds up one-time build
  904. --enable-dependency-tracking do not reject slow dependency extractors
  905. --enable-shared[=PKGS]
  906. build shared libraries [default=yes]
  907. --enable-static[=PKGS]
  908. build static libraries [default=yes]
  909. --enable-fast-install[=PKGS]
  910. optimize for fast installation [default=yes]
  911. --disable-libtool-lock avoid locking (might break parallel builds)
  912. Optional Packages:
  913. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  914. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  915. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  916. --with-pic try to use only PIC/non-PIC objects [default=use
  917. both]
  918. --with-tags[=TAGS]
  919. include additional configurations [automatic]
  920. --with-fpm-bin=[PATH]
  921. Set the path for php-fpm binary
  922. [/usr/local/bin/php-fpm]
  923. --with-fpm-port=[PORT]
  924. Set the tcp port number to listen for cgi requests
  925. [9000]
  926. --with-fpm-conf=[PATH]
  927. Set the path for php-fpm configuration file
  928. [/etc/php-fpm.conf]
  929. --with-fpm-init=[PATH]
  930. Set the path for php-fpm init file
  931. [/etc/init.d/php-fpm]
  932. --with-fpm-log=[PATH]
  933. Set the path for php-fpm log file
  934. [/var/log/php-fpm.log]
  935. --with-fpm-pid=[PATH]
  936. Set the path for php-fpm pid file
  937. [/var/run/php-fpm.pid]
  938. --with-fpm-user=[USER]
  939. Set the user for php-fpm to run as [nobody]
  940. --with-fpm-group=[GRP]
  941. Set the group for php-fpm to run as [nobody]
  942. --with-php-src=DIR full path to php source dir
  943. --with-php-build=DIR full path to php build dir, only needed if differ
  944. from source dir
  945. --with-xml-config=PATH path to xml-config
  946. --with-libevent[=PATH] Path to the libevent, for fpm SAPI [/usr/local]
  947. Some influential environment variables:
  948. CC C compiler command
  949. CFLAGS C compiler flags
  950. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  951. nonstandard directory <lib dir>
  952. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  953. headers in a nonstandard directory <include dir>
  954. CPP C preprocessor
  955. CXX C++ compiler command
  956. CXXFLAGS C++ compiler flags
  957. CXXCPP C++ preprocessor
  958. F77 Fortran 77 compiler command
  959. FFLAGS Fortran 77 compiler flags
  960. Use these variables to override the choices made by `configure' or to help
  961. it to find libraries and programs with nonstandard names/locations.
  962. Report bugs to <andrei.nigmatulin@gmail.com>.
  963. _ACEOF
  964. fi
  965. if test "$ac_init_help" = "recursive"; then
  966. # If there are subdirs, report their specific --help.
  967. ac_popdir=`pwd`
  968. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  969. test -d $ac_dir || continue
  970. ac_builddir=.
  971. if test "$ac_dir" != .; then
  972. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  973. # A "../" for each directory in $ac_dir_suffix.
  974. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  975. else
  976. ac_dir_suffix= ac_top_builddir=
  977. fi
  978. case $srcdir in
  979. .) # No --srcdir option. We are building in place.
  980. ac_srcdir=.
  981. if test -z "$ac_top_builddir"; then
  982. ac_top_srcdir=.
  983. else
  984. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  985. fi ;;
  986. [\\/]* | ?:[\\/]* ) # Absolute path.
  987. ac_srcdir=$srcdir$ac_dir_suffix;
  988. ac_top_srcdir=$srcdir ;;
  989. *) # Relative path.
  990. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  991. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  992. esac
  993. # Do not use `cd foo && pwd` to compute absolute paths, because
  994. # the directories may not exist.
  995. case `pwd` in
  996. .) ac_abs_builddir="$ac_dir";;
  997. *)
  998. case "$ac_dir" in
  999. .) ac_abs_builddir=`pwd`;;
  1000. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1001. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1002. esac;;
  1003. esac
  1004. case $ac_abs_builddir in
  1005. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *)
  1007. case ${ac_top_builddir}. in
  1008. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1009. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1010. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1011. esac;;
  1012. esac
  1013. case $ac_abs_builddir in
  1014. .) ac_abs_srcdir=$ac_srcdir;;
  1015. *)
  1016. case $ac_srcdir in
  1017. .) ac_abs_srcdir=$ac_abs_builddir;;
  1018. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1019. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1020. esac;;
  1021. esac
  1022. case $ac_abs_builddir in
  1023. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *)
  1025. case $ac_top_srcdir in
  1026. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1027. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1028. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1029. esac;;
  1030. esac
  1031. cd $ac_dir
  1032. # Check for guested configure; otherwise get Cygnus style configure.
  1033. if test -f $ac_srcdir/configure.gnu; then
  1034. echo
  1035. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1036. elif test -f $ac_srcdir/configure; then
  1037. echo
  1038. $SHELL $ac_srcdir/configure --help=recursive
  1039. elif test -f $ac_srcdir/configure.ac ||
  1040. test -f $ac_srcdir/configure.in; then
  1041. echo
  1042. $ac_configure --help
  1043. else
  1044. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1045. fi
  1046. cd $ac_popdir
  1047. done
  1048. fi
  1049. test -n "$ac_init_help" && exit 0
  1050. if $ac_init_version; then
  1051. cat <<\_ACEOF
  1052. php-fpm configure 0.6
  1053. generated by GNU Autoconf 2.59
  1054. Copyright (C) 2003 Free Software Foundation, Inc.
  1055. This configure script is free software; the Free Software Foundation
  1056. gives unlimited permission to copy, distribute and modify it.
  1057. _ACEOF
  1058. exit 0
  1059. fi
  1060. exec 5>config.log
  1061. cat >&5 <<_ACEOF
  1062. This file contains any messages produced by compilers while
  1063. running configure, to aid debugging if configure makes a mistake.
  1064. It was created by php-fpm $as_me 0.6, which was
  1065. generated by GNU Autoconf 2.59. Invocation command line was
  1066. $ $0 $@
  1067. _ACEOF
  1068. {
  1069. cat <<_ASUNAME
  1070. ## --------- ##
  1071. ## Platform. ##
  1072. ## --------- ##
  1073. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1074. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1075. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1076. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1077. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1078. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1079. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1080. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1081. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1082. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1083. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1084. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1085. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1086. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1087. _ASUNAME
  1088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1089. for as_dir in $PATH
  1090. do
  1091. IFS=$as_save_IFS
  1092. test -z "$as_dir" && as_dir=.
  1093. echo "PATH: $as_dir"
  1094. done
  1095. } >&5
  1096. cat >&5 <<_ACEOF
  1097. ## ----------- ##
  1098. ## Core tests. ##
  1099. ## ----------- ##
  1100. _ACEOF
  1101. # Keep a trace of the command line.
  1102. # Strip out --no-create and --no-recursion so they do not pile up.
  1103. # Strip out --silent because we don't want to record it for future runs.
  1104. # Also quote any args containing shell meta-characters.
  1105. # Make two passes to allow for proper duplicate-argument suppression.
  1106. ac_configure_args=
  1107. ac_configure_args0=
  1108. ac_configure_args1=
  1109. ac_sep=
  1110. ac_must_keep_next=false
  1111. for ac_pass in 1 2
  1112. do
  1113. for ac_arg
  1114. do
  1115. case $ac_arg in
  1116. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1117. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1118. | -silent | --silent | --silen | --sile | --sil)
  1119. continue ;;
  1120. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1121. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1122. esac
  1123. case $ac_pass in
  1124. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1125. 2)
  1126. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1127. if test $ac_must_keep_next = true; then
  1128. ac_must_keep_next=false # Got value, back to normal.
  1129. else
  1130. case $ac_arg in
  1131. *=* | --config-cache | -C | -disable-* | --disable-* \
  1132. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1133. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1134. | -with-* | --with-* | -without-* | --without-* | --x)
  1135. case "$ac_configure_args0 " in
  1136. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1137. esac
  1138. ;;
  1139. -* ) ac_must_keep_next=true ;;
  1140. esac
  1141. fi
  1142. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1143. # Get rid of the leading space.
  1144. ac_sep=" "
  1145. ;;
  1146. esac
  1147. done
  1148. done
  1149. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1150. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1151. # When interrupted or exit'd, cleanup temporary files, and complete
  1152. # config.log. We remove comments because anyway the quotes in there
  1153. # would cause problems or look ugly.
  1154. # WARNING: Be sure not to use single quotes in there, as some shells,
  1155. # such as our DU 5.0 friend, will then `close' the trap.
  1156. trap 'exit_status=$?
  1157. # Save into config.log some information that might help in debugging.
  1158. {
  1159. echo
  1160. cat <<\_ASBOX
  1161. ## ---------------- ##
  1162. ## Cache variables. ##
  1163. ## ---------------- ##
  1164. _ASBOX
  1165. echo
  1166. # The following way of writing the cache mishandles newlines in values,
  1167. {
  1168. (set) 2>&1 |
  1169. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1170. *ac_space=\ *)
  1171. sed -n \
  1172. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1173. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1174. ;;
  1175. *)
  1176. sed -n \
  1177. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1178. ;;
  1179. esac;
  1180. }
  1181. echo
  1182. cat <<\_ASBOX
  1183. ## ----------------- ##
  1184. ## Output variables. ##
  1185. ## ----------------- ##
  1186. _ASBOX
  1187. echo
  1188. for ac_var in $ac_subst_vars
  1189. do
  1190. eval ac_val=$`echo $ac_var`
  1191. echo "$ac_var='"'"'$ac_val'"'"'"
  1192. done | sort
  1193. echo
  1194. if test -n "$ac_subst_files"; then
  1195. cat <<\_ASBOX
  1196. ## ------------- ##
  1197. ## Output files. ##
  1198. ## ------------- ##
  1199. _ASBOX
  1200. echo
  1201. for ac_var in $ac_subst_files
  1202. do
  1203. eval ac_val=$`echo $ac_var`
  1204. echo "$ac_var='"'"'$ac_val'"'"'"
  1205. done | sort
  1206. echo
  1207. fi
  1208. if test -s confdefs.h; then
  1209. cat <<\_ASBOX
  1210. ## ----------- ##
  1211. ## confdefs.h. ##
  1212. ## ----------- ##
  1213. _ASBOX
  1214. echo
  1215. sed "/^$/d" confdefs.h | sort
  1216. echo
  1217. fi
  1218. test "$ac_signal" != 0 &&
  1219. echo "$as_me: caught signal $ac_signal"
  1220. echo "$as_me: exit $exit_status"
  1221. } >&5
  1222. rm -f core *.core &&
  1223. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1224. exit $exit_status
  1225. ' 0
  1226. for ac_signal in 1 2 13 15; do
  1227. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1228. done
  1229. ac_signal=0
  1230. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1231. rm -rf conftest* confdefs.h
  1232. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1233. echo >confdefs.h
  1234. # Predefined preprocessor variables.
  1235. cat >>confdefs.h <<_ACEOF
  1236. #define PACKAGE_NAME "$PACKAGE_NAME"
  1237. _ACEOF
  1238. cat >>confdefs.h <<_ACEOF
  1239. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1240. _ACEOF
  1241. cat >>confdefs.h <<_ACEOF
  1242. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1243. _ACEOF
  1244. cat >>confdefs.h <<_ACEOF
  1245. #define PACKAGE_STRING "$PACKAGE_STRING"
  1246. _ACEOF
  1247. cat >>confdefs.h <<_ACEOF
  1248. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1249. _ACEOF
  1250. # Let the site file select an alternate cache file if it wants to.
  1251. # Prefer explicitly selected file to automatically selected ones.
  1252. if test -z "$CONFIG_SITE"; then
  1253. if test "x$prefix" != xNONE; then
  1254. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1255. else
  1256. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1257. fi
  1258. fi
  1259. for ac_site_file in $CONFIG_SITE; do
  1260. if test -r "$ac_site_file"; then
  1261. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1262. echo "$as_me: loading site script $ac_site_file" >&6;}
  1263. sed 's/^/| /' "$ac_site_file" >&5
  1264. . "$ac_site_file"
  1265. fi
  1266. done
  1267. if test -r "$cache_file"; then
  1268. # Some versions of bash will fail to source /dev/null (special
  1269. # files actually), so we avoid doing that.
  1270. if test -f "$cache_file"; then
  1271. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1272. echo "$as_me: loading cache $cache_file" >&6;}
  1273. case $cache_file in
  1274. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1275. *) . ./$cache_file;;
  1276. esac
  1277. fi
  1278. else
  1279. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1280. echo "$as_me: creating cache $cache_file" >&6;}
  1281. >$cache_file
  1282. fi
  1283. # Check that the precious variables saved in the cache have kept the same
  1284. # value.
  1285. ac_cache_corrupted=false
  1286. for ac_var in `(set) 2>&1 |
  1287. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1288. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1289. eval ac_new_set=\$ac_env_${ac_var}_set
  1290. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1291. eval ac_new_val="\$ac_env_${ac_var}_value"
  1292. case $ac_old_set,$ac_new_set in
  1293. set,)
  1294. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1295. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1296. ac_cache_corrupted=: ;;
  1297. ,set)
  1298. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1299. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1300. ac_cache_corrupted=: ;;
  1301. ,);;
  1302. *)
  1303. if test "x$ac_old_val" != "x$ac_new_val"; then
  1304. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1305. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1306. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1307. echo "$as_me: former value: $ac_old_val" >&2;}
  1308. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1309. echo "$as_me: current value: $ac_new_val" >&2;}
  1310. ac_cache_corrupted=:
  1311. fi;;
  1312. esac
  1313. # Pass precious variables to config.status.
  1314. if test "$ac_new_set" = set; then
  1315. case $ac_new_val in
  1316. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1317. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1318. *) ac_arg=$ac_var=$ac_new_val ;;
  1319. esac
  1320. case " $ac_configure_args " in
  1321. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1322. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1323. esac
  1324. fi
  1325. done
  1326. if $ac_cache_corrupted; then
  1327. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1328. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1329. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1330. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1331. { (exit 1); exit 1; }; }
  1332. fi
  1333. ac_ext=c
  1334. ac_cpp='$CPP $CPPFLAGS'
  1335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1338. fpm_version="$PACKAGE_VERSION"
  1339. am__api_version="1.9"
  1340. ac_aux_dir=
  1341. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1342. if test -f $ac_dir/install-sh; then
  1343. ac_aux_dir=$ac_dir
  1344. ac_install_sh="$ac_aux_dir/install-sh -c"
  1345. break
  1346. elif test -f $ac_dir/install.sh; then
  1347. ac_aux_dir=$ac_dir
  1348. ac_install_sh="$ac_aux_dir/install.sh -c"
  1349. break
  1350. elif test -f $ac_dir/shtool; then
  1351. ac_aux_dir=$ac_dir
  1352. ac_install_sh="$ac_aux_dir/shtool install -c"
  1353. break
  1354. fi
  1355. done
  1356. if test -z "$ac_aux_dir"; then
  1357. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1358. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1359. { (exit 1); exit 1; }; }
  1360. fi
  1361. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1362. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1363. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1364. # Find a good install program. We prefer a C program (faster),
  1365. # so one script is as good as another. But avoid the broken or
  1366. # incompatible versions:
  1367. # SysV /etc/install, /usr/sbin/install
  1368. # SunOS /usr/etc/install
  1369. # IRIX /sbin/install
  1370. # AIX /bin/install
  1371. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1372. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1373. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1374. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1375. # OS/2's system install, which has a completely different semantic
  1376. # ./install, which can be erroneously created by make from ./install.sh.
  1377. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1378. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1379. if test -z "$INSTALL"; then
  1380. if test "${ac_cv_path_install+set}" = set; then
  1381. echo $ECHO_N "(cached) $ECHO_C" >&6
  1382. else
  1383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1384. for as_dir in $PATH
  1385. do
  1386. IFS=$as_save_IFS
  1387. test -z "$as_dir" && as_dir=.
  1388. # Account for people who put trailing slashes in PATH elements.
  1389. case $as_dir/ in
  1390. ./ | .// | /cC/* | \
  1391. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1392. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1393. /usr/ucb/* ) ;;
  1394. *)
  1395. # OSF1 and SCO ODT 3.0 have their own names for install.
  1396. # Don't use installbsd from OSF since it installs stuff as root
  1397. # by default.
  1398. for ac_prog in ginstall scoinst install; do
  1399. for ac_exec_ext in '' $ac_executable_extensions; do
  1400. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1401. if test $ac_prog = install &&
  1402. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1403. # AIX install. It has an incompatible calling convention.
  1404. :
  1405. elif test $ac_prog = install &&
  1406. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1407. # program-specific install script used by HP pwplus--don't use.
  1408. :
  1409. else
  1410. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1411. break 3
  1412. fi
  1413. fi
  1414. done
  1415. done
  1416. ;;
  1417. esac
  1418. done
  1419. fi
  1420. if test "${ac_cv_path_install+set}" = set; then
  1421. INSTALL=$ac_cv_path_install
  1422. else
  1423. # As a last resort, use the slow shell script. We don't cache a
  1424. # path for INSTALL within a source directory, because that will
  1425. # break other packages using the cache if that directory is
  1426. # removed, or if the path is relative.
  1427. INSTALL=$ac_install_sh
  1428. fi
  1429. fi
  1430. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1431. echo "${ECHO_T}$INSTALL" >&6
  1432. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1433. # It thinks the first close brace ends the variable substitution.
  1434. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1435. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1436. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1437. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1438. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1439. # Just in case
  1440. sleep 1
  1441. echo timestamp > conftest.file
  1442. # Do `set' in a subshell so we don't clobber the current shell's
  1443. # arguments. Must try -L first in case configure is actually a
  1444. # symlink; some systems play weird games with the mod time of symlinks
  1445. # (eg FreeBSD returns the mod time of the symlink's containing
  1446. # directory).
  1447. if (
  1448. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1449. if test "$*" = "X"; then
  1450. # -L didn't work.
  1451. set X `ls -t $srcdir/configure conftest.file`
  1452. fi
  1453. rm -f conftest.file
  1454. if test "$*" != "X $srcdir/configure conftest.file" \
  1455. && test "$*" != "X conftest.file $srcdir/configure"; then
  1456. # If neither matched, then we have a broken ls. This can happen
  1457. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1458. # broken ls alias from the environment. This has actually
  1459. # happened. Such a system could not be considered "sane".
  1460. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1461. alias in your environment" >&5
  1462. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1463. alias in your environment" >&2;}
  1464. { (exit 1); exit 1; }; }
  1465. fi
  1466. test "$2" = conftest.file
  1467. )
  1468. then
  1469. # Ok.
  1470. :
  1471. else
  1472. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1473. Check your system clock" >&5
  1474. echo "$as_me: error: newly created file is older than distributed files!
  1475. Check your system clock" >&2;}
  1476. { (exit 1); exit 1; }; }
  1477. fi
  1478. echo "$as_me:$LINENO: result: yes" >&5
  1479. echo "${ECHO_T}yes" >&6
  1480. test "$program_prefix" != NONE &&
  1481. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1482. # Use a double $ so make ignores it.
  1483. test "$program_suffix" != NONE &&
  1484. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1485. # Double any \ or $. echo might interpret backslashes.
  1486. # By default was `s,x,x', remove it if useless.
  1487. cat <<\_ACEOF >conftest.sed
  1488. s/[\\$]/&&/g;s/;s,x,x,$//
  1489. _ACEOF
  1490. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1491. rm conftest.sed
  1492. # expand $ac_aux_dir to an absolute path
  1493. am_aux_dir=`cd $ac_aux_dir && pwd`
  1494. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1495. # Use eval to expand $SHELL
  1496. if eval "$MISSING --run true"; then
  1497. am_missing_run="$MISSING --run "
  1498. else
  1499. am_missing_run=
  1500. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1501. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1502. fi
  1503. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1504. # We used to keeping the `.' as first argument, in order to
  1505. # allow $(mkdir_p) to be used without argument. As in
  1506. # $(mkdir_p) $(somedir)
  1507. # where $(somedir) is conditionally defined. However this is wrong
  1508. # for two reasons:
  1509. # 1. if the package is installed by a user who cannot write `.'
  1510. # make install will fail,
  1511. # 2. the above comment should most certainly read
  1512. # $(mkdir_p) $(DESTDIR)$(somedir)
  1513. # so it does not work when $(somedir) is undefined and
  1514. # $(DESTDIR) is not.
  1515. # To support the latter case, we have to write
  1516. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1517. # so the `.' trick is pointless.
  1518. mkdir_p='mkdir -p --'
  1519. else
  1520. # On NextStep and OpenStep, the `mkdir' command does not
  1521. # recognize any option. It will interpret all options as
  1522. # directories to create, and then abort because `.' already
  1523. # exists.
  1524. for d in ./-p ./--version;
  1525. do
  1526. test -d $d && rmdir $d
  1527. done
  1528. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1529. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1530. mkdir_p='$(mkinstalldirs)'
  1531. else
  1532. mkdir_p='$(install_sh) -d'
  1533. fi
  1534. fi
  1535. for ac_prog in gawk mawk nawk awk
  1536. do
  1537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1538. set dummy $ac_prog; ac_word=$2
  1539. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1541. if test "${ac_cv_prog_AWK+set}" = set; then
  1542. echo $ECHO_N "(cached) $ECHO_C" >&6
  1543. else
  1544. if test -n "$AWK"; then
  1545. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1546. else
  1547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1548. for as_dir in $PATH
  1549. do
  1550. IFS=$as_save_IFS
  1551. test -z "$as_dir" && as_dir=.
  1552. for ac_exec_ext in '' $ac_executable_extensions; do
  1553. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1554. ac_cv_prog_AWK="$ac_prog"
  1555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1556. break 2
  1557. fi
  1558. done
  1559. done
  1560. fi
  1561. fi
  1562. AWK=$ac_cv_prog_AWK
  1563. if test -n "$AWK"; then
  1564. echo "$as_me:$LINENO: result: $AWK" >&5
  1565. echo "${ECHO_T}$AWK" >&6
  1566. else
  1567. echo "$as_me:$LINENO: result: no" >&5
  1568. echo "${ECHO_T}no" >&6
  1569. fi
  1570. test -n "$AWK" && break
  1571. done
  1572. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1573. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1574. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1575. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1576. echo $ECHO_N "(cached) $ECHO_C" >&6
  1577. else
  1578. cat >conftest.make <<\_ACEOF
  1579. all:
  1580. @echo 'ac_maketemp="$(MAKE)"'
  1581. _ACEOF
  1582. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1583. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1584. if test -n "$ac_maketemp"; then
  1585. eval ac_cv_prog_make_${ac_make}_set=yes
  1586. else
  1587. eval ac_cv_prog_make_${ac_make}_set=no
  1588. fi
  1589. rm -f conftest.make
  1590. fi
  1591. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1592. echo "$as_me:$LINENO: result: yes" >&5
  1593. echo "${ECHO_T}yes" >&6
  1594. SET_MAKE=
  1595. else
  1596. echo "$as_me:$LINENO: result: no" >&5
  1597. echo "${ECHO_T}no" >&6
  1598. SET_MAKE="MAKE=${MAKE-make}"
  1599. fi
  1600. rm -rf .tst 2>/dev/null
  1601. mkdir .tst 2>/dev/null
  1602. if test -d .tst; then
  1603. am__leading_dot=.
  1604. else
  1605. am__leading_dot=_
  1606. fi
  1607. rmdir .tst 2>/dev/null
  1608. # test to see if srcdir already configured
  1609. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1610. test -f $srcdir/config.status; then
  1611. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1612. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1613. { (exit 1); exit 1; }; }
  1614. fi
  1615. # test whether we have cygpath
  1616. if test -z "$CYGPATH_W"; then
  1617. if (cygpath --version) >/dev/null 2>/dev/null; then
  1618. CYGPATH_W='cygpath -w'
  1619. else
  1620. CYGPATH_W=echo
  1621. fi
  1622. fi
  1623. # Define the identity of the package.
  1624. PACKAGE='php-fpm'
  1625. VERSION='0.6'
  1626. cat >>confdefs.h <<_ACEOF
  1627. #define PACKAGE "$PACKAGE"
  1628. _ACEOF
  1629. cat >>confdefs.h <<_ACEOF
  1630. #define VERSION "$VERSION"
  1631. _ACEOF
  1632. # Some tools Automake needs.
  1633. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1634. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1635. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1636. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1637. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1638. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1639. # Installed binaries are usually stripped using `strip' when the user
  1640. # run `make install-strip'. However `strip' might not be the right
  1641. # tool to use in cross-compilation environments, therefore Automake
  1642. # will honor the `STRIP' environment variable to overrule this program.
  1643. if test "$cross_compiling" != no; then
  1644. if test -n "$ac_tool_prefix"; then
  1645. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1646. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1647. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1648. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1649. if test "${ac_cv_prog_STRIP+set}" = set; then
  1650. echo $ECHO_N "(cached) $ECHO_C" >&6
  1651. else
  1652. if test -n "$STRIP"; then
  1653. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1654. else
  1655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1656. for as_dir in $PATH
  1657. do
  1658. IFS=$as_save_IFS
  1659. test -z "$as_dir" && as_dir=.
  1660. for ac_exec_ext in '' $ac_executable_extensions; do
  1661. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1662. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1664. break 2
  1665. fi
  1666. done
  1667. done
  1668. fi
  1669. fi
  1670. STRIP=$ac_cv_prog_STRIP
  1671. if test -n "$STRIP"; then
  1672. echo "$as_me:$LINENO: result: $STRIP" >&5
  1673. echo "${ECHO_T}$STRIP" >&6
  1674. else
  1675. echo "$as_me:$LINENO: result: no" >&5
  1676. echo "${ECHO_T}no" >&6
  1677. fi
  1678. fi
  1679. if test -z "$ac_cv_prog_STRIP"; then
  1680. ac_ct_STRIP=$STRIP
  1681. # Extract the first word of "strip", so it can be a program name with args.
  1682. set dummy strip; ac_word=$2
  1683. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1684. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1685. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1686. echo $ECHO_N "(cached) $ECHO_C" >&6
  1687. else
  1688. if test -n "$ac_ct_STRIP"; then
  1689. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1690. else
  1691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1692. for as_dir in $PATH
  1693. do
  1694. IFS=$as_save_IFS
  1695. test -z "$as_dir" && as_dir=.
  1696. for ac_exec_ext in '' $ac_executable_extensions; do
  1697. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1698. ac_cv_prog_ac_ct_STRIP="strip"
  1699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1700. break 2
  1701. fi
  1702. done
  1703. done
  1704. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1705. fi
  1706. fi
  1707. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1708. if test -n "$ac_ct_STRIP"; then
  1709. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1710. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1711. else
  1712. echo "$as_me:$LINENO: result: no" >&5
  1713. echo "${ECHO_T}no" >&6
  1714. fi
  1715. STRIP=$ac_ct_STRIP
  1716. else
  1717. STRIP="$ac_cv_prog_STRIP"
  1718. fi
  1719. fi
  1720. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1721. # We need awk for the "check" target. The system "awk" is bad on
  1722. # some platforms.
  1723. # Always define AMTAR for backward compatibility.
  1724. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1725. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1726. ac_config_headers="$ac_config_headers fpm_autoconfig.h"
  1727. DEPDIR="${am__leading_dot}deps"
  1728. ac_config_commands="$ac_config_commands depfiles"
  1729. am_make=${MAKE-make}
  1730. cat > confinc << 'END'
  1731. am__doit:
  1732. @echo done
  1733. .PHONY: am__doit
  1734. END
  1735. # If we don't find an include directive, just comment out the code.
  1736. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1737. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1738. am__include="#"
  1739. am__quote=
  1740. _am_result=none
  1741. # First try GNU make style include.
  1742. echo "include confinc" > confmf
  1743. # We grep out `Entering directory' and `Leaving directory'
  1744. # messages which can occur if `w' ends up in MAKEFLAGS.
  1745. # In particular we don't look at `^make:' because GNU make might
  1746. # be invoked under some other name (usually "gmake"), in which
  1747. # case it prints its new name instead of `make'.
  1748. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1749. am__include=include
  1750. am__quote=
  1751. _am_result=GNU
  1752. fi
  1753. # Now try BSD make style include.
  1754. if test "$am__include" = "#"; then
  1755. echo '.include "confinc"' > confmf
  1756. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1757. am__include=.include
  1758. am__quote="\""
  1759. _am_result=BSD
  1760. fi
  1761. fi
  1762. echo "$as_me:$LINENO: result: $_am_result" >&5
  1763. echo "${ECHO_T}$_am_result" >&6
  1764. rm -f confinc confmf
  1765. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  1766. if test "${enable_dependency_tracking+set}" = set; then
  1767. enableval="$enable_dependency_tracking"
  1768. fi;
  1769. if test "x$enable_dependency_tracking" != xno; then
  1770. am_depcomp="$ac_aux_dir/depcomp"
  1771. AMDEPBACKSLASH='\'
  1772. fi
  1773. if test "x$enable_dependency_tracking" != xno; then
  1774. AMDEP_TRUE=
  1775. AMDEP_FALSE='#'
  1776. else
  1777. AMDEP_TRUE='#'
  1778. AMDEP_FALSE=
  1779. fi
  1780. ac_ext=c
  1781. ac_cpp='$CPP $CPPFLAGS'
  1782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1785. if test -n "$ac_tool_prefix"; then
  1786. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1787. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1788. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1789. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1790. if test "${ac_cv_prog_CC+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test -n "$CC"; then
  1794. ac_cv_prog_CC="$CC" # Let the user override the test.
  1795. else
  1796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1797. for as_dir in $PATH
  1798. do
  1799. IFS=$as_save_IFS
  1800. test -z "$as_dir" && as_dir=.
  1801. for ac_exec_ext in '' $ac_executable_extensions; do
  1802. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1803. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1804. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1805. break 2
  1806. fi
  1807. done
  1808. done
  1809. fi
  1810. fi
  1811. CC=$ac_cv_prog_CC
  1812. if test -n "$CC"; then
  1813. echo "$as_me:$LINENO: result: $CC" >&5
  1814. echo "${ECHO_T}$CC" >&6
  1815. else
  1816. echo "$as_me:$LINENO: result: no" >&5
  1817. echo "${ECHO_T}no" >&6
  1818. fi
  1819. fi
  1820. if test -z "$ac_cv_prog_CC"; then
  1821. ac_ct_CC=$CC
  1822. # Extract the first word of "gcc", so it can be a program name with args.
  1823. set dummy gcc; ac_word=$2
  1824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1826. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1827. echo $ECHO_N "(cached) $ECHO_C" >&6
  1828. else
  1829. if test -n "$ac_ct_CC"; then
  1830. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1831. else
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. for ac_exec_ext in '' $ac_executable_extensions; do
  1838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1839. ac_cv_prog_ac_ct_CC="gcc"
  1840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1841. break 2
  1842. fi
  1843. done
  1844. done
  1845. fi
  1846. fi
  1847. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1848. if test -n "$ac_ct_CC"; then
  1849. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1850. echo "${ECHO_T}$ac_ct_CC" >&6
  1851. else
  1852. echo "$as_me:$LINENO: result: no" >&5
  1853. echo "${ECHO_T}no" >&6
  1854. fi
  1855. CC=$ac_ct_CC
  1856. else
  1857. CC="$ac_cv_prog_CC"
  1858. fi
  1859. if test -z "$CC"; then
  1860. if test -n "$ac_tool_prefix"; then
  1861. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1862. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1863. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1864. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1865. if test "${ac_cv_prog_CC+set}" = set; then
  1866. echo $ECHO_N "(cached) $ECHO_C" >&6
  1867. else
  1868. if test -n "$CC"; then
  1869. ac_cv_prog_CC="$CC" # Let the user override the test.
  1870. else
  1871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1872. for as_dir in $PATH
  1873. do
  1874. IFS=$as_save_IFS
  1875. test -z "$as_dir" && as_dir=.
  1876. for ac_exec_ext in '' $ac_executable_extensions; do
  1877. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1878. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1879. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1880. break 2
  1881. fi
  1882. done
  1883. done
  1884. fi
  1885. fi
  1886. CC=$ac_cv_prog_CC
  1887. if test -n "$CC"; then
  1888. echo "$as_me:$LINENO: result: $CC" >&5
  1889. echo "${ECHO_T}$CC" >&6
  1890. else
  1891. echo "$as_me:$LINENO: result: no" >&5
  1892. echo "${ECHO_T}no" >&6
  1893. fi
  1894. fi
  1895. if test -z "$ac_cv_prog_CC"; then
  1896. ac_ct_CC=$CC
  1897. # Extract the first word of "cc", so it can be a program name with args.
  1898. set dummy cc; ac_word=$2
  1899. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1900. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1901. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1902. echo $ECHO_N "(cached) $ECHO_C" >&6
  1903. else
  1904. if test -n "$ac_ct_CC"; then
  1905. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1906. else
  1907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1908. for as_dir in $PATH
  1909. do
  1910. IFS=$as_save_IFS
  1911. test -z "$as_dir" && as_dir=.
  1912. for ac_exec_ext in '' $ac_executable_extensions; do
  1913. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1914. ac_cv_prog_ac_ct_CC="cc"
  1915. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1916. break 2
  1917. fi
  1918. done
  1919. done
  1920. fi
  1921. fi
  1922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1923. if test -n "$ac_ct_CC"; then
  1924. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1925. echo "${ECHO_T}$ac_ct_CC" >&6
  1926. else
  1927. echo "$as_me:$LINENO: result: no" >&5
  1928. echo "${ECHO_T}no" >&6
  1929. fi
  1930. CC=$ac_ct_CC
  1931. else
  1932. CC="$ac_cv_prog_CC"
  1933. fi
  1934. fi
  1935. if test -z "$CC"; then
  1936. # Extract the first word of "cc", so it can be a program name with args.
  1937. set dummy cc; ac_word=$2
  1938. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1940. if test "${ac_cv_prog_CC+set}" = set; then
  1941. echo $ECHO_N "(cached) $ECHO_C" >&6
  1942. else
  1943. if test -n "$CC"; then
  1944. ac_cv_prog_CC="$CC" # Let the user override the test.
  1945. else
  1946. ac_prog_rejected=no
  1947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1948. for as_dir in $PATH
  1949. do
  1950. IFS=$as_save_IFS
  1951. test -z "$as_dir" && as_dir=.
  1952. for ac_exec_ext in '' $ac_executable_extensions; do
  1953. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1954. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1955. ac_prog_rejected=yes
  1956. continue
  1957. fi
  1958. ac_cv_prog_CC="cc"
  1959. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1960. break 2
  1961. fi
  1962. done
  1963. done
  1964. if test $ac_prog_rejected = yes; then
  1965. # We found a bogon in the path, so make sure we never use it.
  1966. set dummy $ac_cv_prog_CC
  1967. shift
  1968. if test $# != 0; then
  1969. # We chose a different compiler from the bogus one.
  1970. # However, it has the same basename, so the bogon will be chosen
  1971. # first if we set CC to just the basename; use the full file name.
  1972. shift
  1973. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1974. fi
  1975. fi
  1976. fi
  1977. fi
  1978. CC=$ac_cv_prog_CC
  1979. if test -n "$CC"; then
  1980. echo "$as_me:$LINENO: result: $CC" >&5
  1981. echo "${ECHO_T}$CC" >&6
  1982. else
  1983. echo "$as_me:$LINENO: result: no" >&5
  1984. echo "${ECHO_T}no" >&6
  1985. fi
  1986. fi
  1987. if test -z "$CC"; then
  1988. if test -n "$ac_tool_prefix"; then
  1989. for ac_prog in cl
  1990. do
  1991. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1992. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1993. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1994. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1995. if test "${ac_cv_prog_CC+set}" = set; then
  1996. echo $ECHO_N "(cached) $ECHO_C" >&6
  1997. else
  1998. if test -n "$CC"; then
  1999. ac_cv_prog_CC="$CC" # Let the user override the test.
  2000. else
  2001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002. for as_dir in $PATH
  2003. do
  2004. IFS=$as_save_IFS
  2005. test -z "$as_dir" && as_dir=.
  2006. for ac_exec_ext in '' $ac_executable_extensions; do
  2007. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2008. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2009. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2010. break 2
  2011. fi
  2012. done
  2013. done
  2014. fi
  2015. fi
  2016. CC=$ac_cv_prog_CC
  2017. if test -n "$CC"; then
  2018. echo "$as_me:$LINENO: result: $CC" >&5
  2019. echo "${ECHO_T}$CC" >&6
  2020. else
  2021. echo "$as_me:$LINENO: result: no" >&5
  2022. echo "${ECHO_T}no" >&6
  2023. fi
  2024. test -n "$CC" && break
  2025. done
  2026. fi
  2027. if test -z "$CC"; then
  2028. ac_ct_CC=$CC
  2029. for ac_prog in cl
  2030. do
  2031. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2032. set dummy $ac_prog; ac_word=$2
  2033. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2034. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2035. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2036. echo $ECHO_N "(cached) $ECHO_C" >&6
  2037. else
  2038. if test -n "$ac_ct_CC"; then
  2039. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2040. else
  2041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2042. for as_dir in $PATH
  2043. do
  2044. IFS=$as_save_IFS
  2045. test -z "$as_dir" && as_dir=.
  2046. for ac_exec_ext in '' $ac_executable_extensions; do
  2047. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2048. ac_cv_prog_ac_ct_CC="$ac_prog"
  2049. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2050. break 2
  2051. fi
  2052. done
  2053. done
  2054. fi
  2055. fi
  2056. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2057. if test -n "$ac_ct_CC"; then
  2058. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2059. echo "${ECHO_T}$ac_ct_CC" >&6
  2060. else
  2061. echo "$as_me:$LINENO: result: no" >&5
  2062. echo "${ECHO_T}no" >&6
  2063. fi
  2064. test -n "$ac_ct_CC" && break
  2065. done
  2066. CC=$ac_ct_CC
  2067. fi
  2068. fi
  2069. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2070. See \`config.log' for more details." >&5
  2071. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2072. See \`config.log' for more details." >&2;}
  2073. { (exit 1); exit 1; }; }
  2074. # Provide some information about the compiler.
  2075. echo "$as_me:$LINENO:" \
  2076. "checking for C compiler version" >&5
  2077. ac_compiler=`set X $ac_compile; echo $2`
  2078. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2079. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2080. ac_status=$?
  2081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2082. (exit $ac_status); }
  2083. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2084. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2085. ac_status=$?
  2086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2087. (exit $ac_status); }
  2088. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2089. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2090. ac_status=$?
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); }
  2093. cat >conftest.$ac_ext <<_ACEOF
  2094. /* confdefs.h. */
  2095. _ACEOF
  2096. cat confdefs.h >>conftest.$ac_ext
  2097. cat >>conftest.$ac_ext <<_ACEOF
  2098. /* end confdefs.h. */
  2099. int
  2100. main ()
  2101. {
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. ac_clean_files_save=$ac_clean_files
  2107. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2108. # Try to create an executable without -o first, disregard a.out.
  2109. # It will help us diagnose broken compilers, and finding out an intuition
  2110. # of exeext.
  2111. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2112. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2113. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2114. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2115. (eval $ac_link_default) 2>&5
  2116. ac_status=$?
  2117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2118. (exit $ac_status); }; then
  2119. # Find the output, starting from the most likely. This scheme is
  2120. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2121. # resort.
  2122. # Be careful to initialize this variable, since it used to be cached.
  2123. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2124. ac_cv_exeext=
  2125. # b.out is created by i960 compilers.
  2126. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2127. do
  2128. test -f "$ac_file" || continue
  2129. case $ac_file in
  2130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2131. ;;
  2132. conftest.$ac_ext )
  2133. # This is the source file.
  2134. ;;
  2135. [ab].out )
  2136. # We found the default executable, but exeext='' is most
  2137. # certainly right.
  2138. break;;
  2139. *.* )
  2140. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2141. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2142. # but it would be cool to find out if it's true. Does anybody
  2143. # maintain Libtool? --akim.
  2144. export ac_cv_exeext
  2145. break;;
  2146. * )
  2147. break;;
  2148. esac
  2149. done
  2150. else
  2151. echo "$as_me: failed program was:" >&5
  2152. sed 's/^/| /' conftest.$ac_ext >&5
  2153. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2154. See \`config.log' for more details." >&5
  2155. echo "$as_me: error: C compiler cannot create executables
  2156. See \`config.log' for more details." >&2;}
  2157. { (exit 77); exit 77; }; }
  2158. fi
  2159. ac_exeext=$ac_cv_exeext
  2160. echo "$as_me:$LINENO: result: $ac_file" >&5
  2161. echo "${ECHO_T}$ac_file" >&6
  2162. # Check the compiler produces executables we can run. If not, either
  2163. # the compiler is broken, or we cross compile.
  2164. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2165. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2166. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2167. # If not cross compiling, check that we can run a simple program.
  2168. if test "$cross_compiling" != yes; then
  2169. if { ac_try='./$ac_file'
  2170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2171. (eval $ac_try) 2>&5
  2172. ac_status=$?
  2173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2174. (exit $ac_status); }; }; then
  2175. cross_compiling=no
  2176. else
  2177. if test "$cross_compiling" = maybe; then
  2178. cross_compiling=yes
  2179. else
  2180. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2181. If you meant to cross compile, use \`--host'.
  2182. See \`config.log' for more details." >&5
  2183. echo "$as_me: error: cannot run C compiled programs.
  2184. If you meant to cross compile, use \`--host'.
  2185. See \`config.log' for more details." >&2;}
  2186. { (exit 1); exit 1; }; }
  2187. fi
  2188. fi
  2189. fi
  2190. echo "$as_me:$LINENO: result: yes" >&5
  2191. echo "${ECHO_T}yes" >&6
  2192. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2193. ac_clean_files=$ac_clean_files_save
  2194. # Check the compiler produces executables we can run. If not, either
  2195. # the compiler is broken, or we cross compile.
  2196. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2197. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2198. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2199. echo "${ECHO_T}$cross_compiling" >&6
  2200. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2201. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2202. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2203. (eval $ac_link) 2>&5
  2204. ac_status=$?
  2205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2206. (exit $ac_status); }; then
  2207. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2208. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2209. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2210. # `rm'.
  2211. for ac_file in conftest.exe conftest conftest.*; do
  2212. test -f "$ac_file" || continue
  2213. case $ac_file in
  2214. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2215. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2216. export ac_cv_exeext
  2217. break;;
  2218. * ) break;;
  2219. esac
  2220. done
  2221. else
  2222. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2223. See \`config.log' for more details." >&5
  2224. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2225. See \`config.log' for more details." >&2;}
  2226. { (exit 1); exit 1; }; }
  2227. fi
  2228. rm -f conftest$ac_cv_exeext
  2229. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2230. echo "${ECHO_T}$ac_cv_exeext" >&6
  2231. rm -f conftest.$ac_ext
  2232. EXEEXT=$ac_cv_exeext
  2233. ac_exeext=$EXEEXT
  2234. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2235. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2236. if test "${ac_cv_objext+set}" = set; then
  2237. echo $ECHO_N "(cached) $ECHO_C" >&6
  2238. else
  2239. cat >conftest.$ac_ext <<_ACEOF
  2240. /* confdefs.h. */
  2241. _ACEOF
  2242. cat confdefs.h >>conftest.$ac_ext
  2243. cat >>conftest.$ac_ext <<_ACEOF
  2244. /* end confdefs.h. */
  2245. int
  2246. main ()
  2247. {
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. rm -f conftest.o conftest.obj
  2253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2254. (eval $ac_compile) 2>&5
  2255. ac_status=$?
  2256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2257. (exit $ac_status); }; then
  2258. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2259. case $ac_file in
  2260. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2261. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2262. break;;
  2263. esac
  2264. done
  2265. else
  2266. echo "$as_me: failed program was:" >&5
  2267. sed 's/^/| /' conftest.$ac_ext >&5
  2268. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2269. See \`config.log' for more details." >&5
  2270. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2271. See \`config.log' for more details." >&2;}
  2272. { (exit 1); exit 1; }; }
  2273. fi
  2274. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2275. fi
  2276. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2277. echo "${ECHO_T}$ac_cv_objext" >&6
  2278. OBJEXT=$ac_cv_objext
  2279. ac_objext=$OBJEXT
  2280. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2281. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2282. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2283. echo $ECHO_N "(cached) $ECHO_C" >&6
  2284. else
  2285. cat >conftest.$ac_ext <<_ACEOF
  2286. /* confdefs.h. */
  2287. _ACEOF
  2288. cat confdefs.h >>conftest.$ac_ext
  2289. cat >>conftest.$ac_ext <<_ACEOF
  2290. /* end confdefs.h. */
  2291. int
  2292. main ()
  2293. {
  2294. #ifndef __GNUC__
  2295. choke me
  2296. #endif
  2297. ;
  2298. return 0;
  2299. }
  2300. _ACEOF
  2301. rm -f conftest.$ac_objext
  2302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2303. (eval $ac_compile) 2>conftest.er1
  2304. ac_status=$?
  2305. grep -v '^ *+' conftest.er1 >conftest.err
  2306. rm -f conftest.er1
  2307. cat conftest.err >&5
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); } &&
  2310. { ac_try='test -z "$ac_c_werror_flag"
  2311. || test ! -s conftest.err'
  2312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2313. (eval $ac_try) 2>&5
  2314. ac_status=$?
  2315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2316. (exit $ac_status); }; } &&
  2317. { ac_try='test -s conftest.$ac_objext'
  2318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2319. (eval $ac_try) 2>&5
  2320. ac_status=$?
  2321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2322. (exit $ac_status); }; }; then
  2323. ac_compiler_gnu=yes
  2324. else
  2325. echo "$as_me: failed program was:" >&5
  2326. sed 's/^/| /' conftest.$ac_ext >&5
  2327. ac_compiler_gnu=no
  2328. fi
  2329. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2330. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2331. fi
  2332. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2333. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2334. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2335. ac_test_CFLAGS=${CFLAGS+set}
  2336. ac_save_CFLAGS=$CFLAGS
  2337. CFLAGS="-g"
  2338. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2339. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2340. if test "${ac_cv_prog_cc_g+set}" = set; then
  2341. echo $ECHO_N "(cached) $ECHO_C" >&6
  2342. else
  2343. cat >conftest.$ac_ext <<_ACEOF
  2344. /* confdefs.h. */
  2345. _ACEOF
  2346. cat confdefs.h >>conftest.$ac_ext
  2347. cat >>conftest.$ac_ext <<_ACEOF
  2348. /* end confdefs.h. */
  2349. int
  2350. main ()
  2351. {
  2352. ;
  2353. return 0;
  2354. }
  2355. _ACEOF
  2356. rm -f conftest.$ac_objext
  2357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2358. (eval $ac_compile) 2>conftest.er1
  2359. ac_status=$?
  2360. grep -v '^ *+' conftest.er1 >conftest.err
  2361. rm -f conftest.er1
  2362. cat conftest.err >&5
  2363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2364. (exit $ac_status); } &&
  2365. { ac_try='test -z "$ac_c_werror_flag"
  2366. || test ! -s conftest.err'
  2367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2368. (eval $ac_try) 2>&5
  2369. ac_status=$?
  2370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371. (exit $ac_status); }; } &&
  2372. { ac_try='test -s conftest.$ac_objext'
  2373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2374. (eval $ac_try) 2>&5
  2375. ac_status=$?
  2376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2377. (exit $ac_status); }; }; then
  2378. ac_cv_prog_cc_g=yes
  2379. else
  2380. echo "$as_me: failed program was:" >&5
  2381. sed 's/^/| /' conftest.$ac_ext >&5
  2382. ac_cv_prog_cc_g=no
  2383. fi
  2384. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2385. fi
  2386. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2387. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2388. if test "$ac_test_CFLAGS" = set; then
  2389. CFLAGS=$ac_save_CFLAGS
  2390. elif test $ac_cv_prog_cc_g = yes; then
  2391. if test "$GCC" = yes; then
  2392. CFLAGS="-g -O2"
  2393. else
  2394. CFLAGS="-g"
  2395. fi
  2396. else
  2397. if test "$GCC" = yes; then
  2398. CFLAGS="-O2"
  2399. else
  2400. CFLAGS=
  2401. fi
  2402. fi
  2403. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2404. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2405. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2406. echo $ECHO_N "(cached) $ECHO_C" >&6
  2407. else
  2408. ac_cv_prog_cc_stdc=no
  2409. ac_save_CC=$CC
  2410. cat >conftest.$ac_ext <<_ACEOF
  2411. /* confdefs.h. */
  2412. _ACEOF
  2413. cat confdefs.h >>conftest.$ac_ext
  2414. cat >>conftest.$ac_ext <<_ACEOF
  2415. /* end confdefs.h. */
  2416. #include <stdarg.h>
  2417. #include <stdio.h>
  2418. #include <sys/types.h>
  2419. #include <sys/stat.h>
  2420. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2421. struct buf { int x; };
  2422. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2423. static char *e (p, i)
  2424. char **p;
  2425. int i;
  2426. {
  2427. return p[i];
  2428. }
  2429. static char *f (char * (*g) (char **, int), char **p, ...)
  2430. {
  2431. char *s;
  2432. va_list v;
  2433. va_start (v,p);
  2434. s = g (p, va_arg (v,int));
  2435. va_end (v);
  2436. return s;
  2437. }
  2438. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2439. function prototypes and stuff, but not '\xHH' hex character constants.
  2440. These don't provoke an error unfortunately, instead are silently treated
  2441. as 'x'. The following induces an error, until -std1 is added to get
  2442. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2443. array size at least. It's necessary to write '\x00'==0 to get something
  2444. that's true only with -std1. */
  2445. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2446. int test (int i, double x);
  2447. struct s1 {int (*f) (int a);};
  2448. struct s2 {int (*f) (double a);};
  2449. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2450. int argc;
  2451. char **argv;
  2452. int
  2453. main ()
  2454. {
  2455. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2456. ;
  2457. return 0;
  2458. }
  2459. _ACEOF
  2460. # Don't try gcc -ansi; that turns off useful extensions and
  2461. # breaks some systems' header files.
  2462. # AIX -qlanglvl=ansi
  2463. # Ultrix and OSF/1 -std1
  2464. # HP-UX 10.20 and later -Ae
  2465. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2466. # SVR4 -Xc -D__EXTENSIONS__
  2467. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2468. do
  2469. CC="$ac_save_CC $ac_arg"
  2470. rm -f conftest.$ac_objext
  2471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2472. (eval $ac_compile) 2>conftest.er1
  2473. ac_status=$?
  2474. grep -v '^ *+' conftest.er1 >conftest.err
  2475. rm -f conftest.er1
  2476. cat conftest.err >&5
  2477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2478. (exit $ac_status); } &&
  2479. { ac_try='test -z "$ac_c_werror_flag"
  2480. || test ! -s conftest.err'
  2481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2482. (eval $ac_try) 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }; } &&
  2486. { ac_try='test -s conftest.$ac_objext'
  2487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2488. (eval $ac_try) 2>&5
  2489. ac_status=$?
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); }; }; then
  2492. ac_cv_prog_cc_stdc=$ac_arg
  2493. break
  2494. else
  2495. echo "$as_me: failed program was:" >&5
  2496. sed 's/^/| /' conftest.$ac_ext >&5
  2497. fi
  2498. rm -f conftest.err conftest.$ac_objext
  2499. done
  2500. rm -f conftest.$ac_ext conftest.$ac_objext
  2501. CC=$ac_save_CC
  2502. fi
  2503. case "x$ac_cv_prog_cc_stdc" in
  2504. x|xno)
  2505. echo "$as_me:$LINENO: result: none needed" >&5
  2506. echo "${ECHO_T}none needed" >&6 ;;
  2507. *)
  2508. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2509. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2510. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2511. esac
  2512. # Some people use a C++ compiler to compile C. Since we use `exit',
  2513. # in C++ we need to declare it. In case someone uses the same compiler
  2514. # for both compiling C and C++ we need to have the C++ compiler decide
  2515. # the declaration of exit, since it's the most demanding environment.
  2516. cat >conftest.$ac_ext <<_ACEOF
  2517. #ifndef __cplusplus
  2518. choke me
  2519. #endif
  2520. _ACEOF
  2521. rm -f conftest.$ac_objext
  2522. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2523. (eval $ac_compile) 2>conftest.er1
  2524. ac_status=$?
  2525. grep -v '^ *+' conftest.er1 >conftest.err
  2526. rm -f conftest.er1
  2527. cat conftest.err >&5
  2528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2529. (exit $ac_status); } &&
  2530. { ac_try='test -z "$ac_c_werror_flag"
  2531. || test ! -s conftest.err'
  2532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2533. (eval $ac_try) 2>&5
  2534. ac_status=$?
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); }; } &&
  2537. { ac_try='test -s conftest.$ac_objext'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; }; then
  2543. for ac_declaration in \
  2544. '' \
  2545. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2546. 'extern "C" void std::exit (int); using std::exit;' \
  2547. 'extern "C" void exit (int) throw ();' \
  2548. 'extern "C" void exit (int);' \
  2549. 'void exit (int);'
  2550. do
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. $ac_declaration
  2558. #include <stdlib.h>
  2559. int
  2560. main ()
  2561. {
  2562. exit (42);
  2563. ;
  2564. return 0;
  2565. }
  2566. _ACEOF
  2567. rm -f conftest.$ac_objext
  2568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2569. (eval $ac_compile) 2>conftest.er1
  2570. ac_status=$?
  2571. grep -v '^ *+' conftest.er1 >conftest.err
  2572. rm -f conftest.er1
  2573. cat conftest.err >&5
  2574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2575. (exit $ac_status); } &&
  2576. { ac_try='test -z "$ac_c_werror_flag"
  2577. || test ! -s conftest.err'
  2578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2579. (eval $ac_try) 2>&5
  2580. ac_status=$?
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); }; } &&
  2583. { ac_try='test -s conftest.$ac_objext'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; }; then
  2589. :
  2590. else
  2591. echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. continue
  2594. fi
  2595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2596. cat >conftest.$ac_ext <<_ACEOF
  2597. /* confdefs.h. */
  2598. _ACEOF
  2599. cat confdefs.h >>conftest.$ac_ext
  2600. cat >>conftest.$ac_ext <<_ACEOF
  2601. /* end confdefs.h. */
  2602. $ac_declaration
  2603. int
  2604. main ()
  2605. {
  2606. exit (42);
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. rm -f conftest.$ac_objext
  2612. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2613. (eval $ac_compile) 2>conftest.er1
  2614. ac_status=$?
  2615. grep -v '^ *+' conftest.er1 >conftest.err
  2616. rm -f conftest.er1
  2617. cat conftest.err >&5
  2618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2619. (exit $ac_status); } &&
  2620. { ac_try='test -z "$ac_c_werror_flag"
  2621. || test ! -s conftest.err'
  2622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2623. (eval $ac_try) 2>&5
  2624. ac_status=$?
  2625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2626. (exit $ac_status); }; } &&
  2627. { ac_try='test -s conftest.$ac_objext'
  2628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2629. (eval $ac_try) 2>&5
  2630. ac_status=$?
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); }; }; then
  2633. break
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. fi
  2638. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2639. done
  2640. rm -f conftest*
  2641. if test -n "$ac_declaration"; then
  2642. echo '#ifdef __cplusplus' >>confdefs.h
  2643. echo $ac_declaration >>confdefs.h
  2644. echo '#endif' >>confdefs.h
  2645. fi
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. fi
  2650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2651. ac_ext=c
  2652. ac_cpp='$CPP $CPPFLAGS'
  2653. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2654. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2655. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2656. depcc="$CC" am_compiler_list=
  2657. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2658. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2659. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2660. echo $ECHO_N "(cached) $ECHO_C" >&6
  2661. else
  2662. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2663. # We make a subdir and do the tests there. Otherwise we can end up
  2664. # making bogus files that we don't know about and never remove. For
  2665. # instance it was reported that on HP-UX the gcc test will end up
  2666. # making a dummy file named `D' -- because `-MD' means `put the output
  2667. # in D'.
  2668. mkdir conftest.dir
  2669. # Copy depcomp to subdir because otherwise we won't find it if we're
  2670. # using a relative directory.
  2671. cp "$am_depcomp" conftest.dir
  2672. cd conftest.dir
  2673. # We will build objects and dependencies in a subdirectory because
  2674. # it helps to detect inapplicable dependency modes. For instance
  2675. # both Tru64's cc and ICC support -MD to output dependencies as a
  2676. # side effect of compilation, but ICC will put the dependencies in
  2677. # the current directory while Tru64 will put them in the object
  2678. # directory.
  2679. mkdir sub
  2680. am_cv_CC_dependencies_compiler_type=none
  2681. if test "$am_compiler_list" = ""; then
  2682. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2683. fi
  2684. for depmode in $am_compiler_list; do
  2685. # Setup a source with many dependencies, because some compilers
  2686. # like to wrap large dependency lists on column 80 (with \), and
  2687. # we should not choose a depcomp mode which is confused by this.
  2688. #
  2689. # We need to recreate these files for each test, as the compiler may
  2690. # overwrite some of them when testing with obscure command lines.
  2691. # This happens at least with the AIX C compiler.
  2692. : > sub/conftest.c
  2693. for i in 1 2 3 4 5 6; do
  2694. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2695. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2696. # Solaris 8's {/usr,}/bin/sh.
  2697. touch sub/conftst$i.h
  2698. done
  2699. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2700. case $depmode in
  2701. nosideeffect)
  2702. # after this tag, mechanisms are not by side-effect, so they'll
  2703. # only be used when explicitly requested
  2704. if test "x$enable_dependency_tracking" = xyes; then
  2705. continue
  2706. else
  2707. break
  2708. fi
  2709. ;;
  2710. none) break ;;
  2711. esac
  2712. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2713. # mode. It turns out that the SunPro C++ compiler does not properly
  2714. # handle `-M -o', and we need to detect this.
  2715. if depmode=$depmode \
  2716. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2717. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2718. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2719. >/dev/null 2>conftest.err &&
  2720. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2721. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2722. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2723. # icc doesn't choke on unknown options, it will just issue warnings
  2724. # or remarks (even with -Werror). So we grep stderr for any message
  2725. # that says an option was ignored or not supported.
  2726. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2727. # icc: Command line warning: ignoring option '-M'; no argument required
  2728. # The diagnosis changed in icc 8.0:
  2729. # icc: Command line remark: option '-MP' not supported
  2730. if (grep 'ignoring option' conftest.err ||
  2731. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2732. am_cv_CC_dependencies_compiler_type=$depmode
  2733. break
  2734. fi
  2735. fi
  2736. done
  2737. cd ..
  2738. rm -rf conftest.dir
  2739. else
  2740. am_cv_CC_dependencies_compiler_type=none
  2741. fi
  2742. fi
  2743. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2744. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2745. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2746. if
  2747. test "x$enable_dependency_tracking" != xno \
  2748. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2749. am__fastdepCC_TRUE=
  2750. am__fastdepCC_FALSE='#'
  2751. else
  2752. am__fastdepCC_TRUE='#'
  2753. am__fastdepCC_FALSE=
  2754. fi
  2755. echo "$as_me:$LINENO: checking for library containing socket" >&5
  2756. echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
  2757. if test "${ac_cv_search_socket+set}" = set; then
  2758. echo $ECHO_N "(cached) $ECHO_C" >&6
  2759. else
  2760. ac_func_search_save_LIBS=$LIBS
  2761. ac_cv_search_socket=no
  2762. cat >conftest.$ac_ext <<_ACEOF
  2763. /* confdefs.h. */
  2764. _ACEOF
  2765. cat confdefs.h >>conftest.$ac_ext
  2766. cat >>conftest.$ac_ext <<_ACEOF
  2767. /* end confdefs.h. */
  2768. /* Override any gcc2 internal prototype to avoid an error. */
  2769. #ifdef __cplusplus
  2770. extern "C"
  2771. #endif
  2772. /* We use char because int might match the return type of a gcc2
  2773. builtin and then its argument prototype would still apply. */
  2774. char socket ();
  2775. int
  2776. main ()
  2777. {
  2778. socket ();
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. rm -f conftest.$ac_objext conftest$ac_exeext
  2784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2785. (eval $ac_link) 2>conftest.er1
  2786. ac_status=$?
  2787. grep -v '^ *+' conftest.er1 >conftest.err
  2788. rm -f conftest.er1
  2789. cat conftest.err >&5
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); } &&
  2792. { ac_try='test -z "$ac_c_werror_flag"
  2793. || test ! -s conftest.err'
  2794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2795. (eval $ac_try) 2>&5
  2796. ac_status=$?
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); }; } &&
  2799. { ac_try='test -s conftest$ac_exeext'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; }; then
  2805. ac_cv_search_socket="none required"
  2806. else
  2807. echo "$as_me: failed program was:" >&5
  2808. sed 's/^/| /' conftest.$ac_ext >&5
  2809. fi
  2810. rm -f conftest.err conftest.$ac_objext \
  2811. conftest$ac_exeext conftest.$ac_ext
  2812. if test "$ac_cv_search_socket" = no; then
  2813. for ac_lib in socket; do
  2814. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. /* Override any gcc2 internal prototype to avoid an error. */
  2822. #ifdef __cplusplus
  2823. extern "C"
  2824. #endif
  2825. /* We use char because int might match the return type of a gcc2
  2826. builtin and then its argument prototype would still apply. */
  2827. char socket ();
  2828. int
  2829. main ()
  2830. {
  2831. socket ();
  2832. ;
  2833. return 0;
  2834. }
  2835. _ACEOF
  2836. rm -f conftest.$ac_objext conftest$ac_exeext
  2837. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2838. (eval $ac_link) 2>conftest.er1
  2839. ac_status=$?
  2840. grep -v '^ *+' conftest.er1 >conftest.err
  2841. rm -f conftest.er1
  2842. cat conftest.err >&5
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); } &&
  2845. { ac_try='test -z "$ac_c_werror_flag"
  2846. || test ! -s conftest.err'
  2847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2848. (eval $ac_try) 2>&5
  2849. ac_status=$?
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); }; } &&
  2852. { ac_try='test -s conftest$ac_exeext'
  2853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2854. (eval $ac_try) 2>&5
  2855. ac_status=$?
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); }; }; then
  2858. ac_cv_search_socket="-l$ac_lib"
  2859. break
  2860. else
  2861. echo "$as_me: failed program was:" >&5
  2862. sed 's/^/| /' conftest.$ac_ext >&5
  2863. fi
  2864. rm -f conftest.err conftest.$ac_objext \
  2865. conftest$ac_exeext conftest.$ac_ext
  2866. done
  2867. fi
  2868. LIBS=$ac_func_search_save_LIBS
  2869. fi
  2870. echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
  2871. echo "${ECHO_T}$ac_cv_search_socket" >&6
  2872. if test "$ac_cv_search_socket" != no; then
  2873. test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
  2874. fi
  2875. echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
  2876. echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6
  2877. if test "${ac_cv_search_inet_addr+set}" = set; then
  2878. echo $ECHO_N "(cached) $ECHO_C" >&6
  2879. else
  2880. ac_func_search_save_LIBS=$LIBS
  2881. ac_cv_search_inet_addr=no
  2882. cat >conftest.$ac_ext <<_ACEOF
  2883. /* confdefs.h. */
  2884. _ACEOF
  2885. cat confdefs.h >>conftest.$ac_ext
  2886. cat >>conftest.$ac_ext <<_ACEOF
  2887. /* end confdefs.h. */
  2888. /* Override any gcc2 internal prototype to avoid an error. */
  2889. #ifdef __cplusplus
  2890. extern "C"
  2891. #endif
  2892. /* We use char because int might match the return type of a gcc2
  2893. builtin and then its argument prototype would still apply. */
  2894. char inet_addr ();
  2895. int
  2896. main ()
  2897. {
  2898. inet_addr ();
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. rm -f conftest.$ac_objext conftest$ac_exeext
  2904. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2905. (eval $ac_link) 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. (exit $ac_status); } &&
  2912. { ac_try='test -z "$ac_c_werror_flag"
  2913. || test ! -s conftest.err'
  2914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2915. (eval $ac_try) 2>&5
  2916. ac_status=$?
  2917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918. (exit $ac_status); }; } &&
  2919. { ac_try='test -s conftest$ac_exeext'
  2920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2921. (eval $ac_try) 2>&5
  2922. ac_status=$?
  2923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924. (exit $ac_status); }; }; then
  2925. ac_cv_search_inet_addr="none required"
  2926. else
  2927. echo "$as_me: failed program was:" >&5
  2928. sed 's/^/| /' conftest.$ac_ext >&5
  2929. fi
  2930. rm -f conftest.err conftest.$ac_objext \
  2931. conftest$ac_exeext conftest.$ac_ext
  2932. if test "$ac_cv_search_inet_addr" = no; then
  2933. for ac_lib in nsl; do
  2934. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2935. cat >conftest.$ac_ext <<_ACEOF
  2936. /* confdefs.h. */
  2937. _ACEOF
  2938. cat confdefs.h >>conftest.$ac_ext
  2939. cat >>conftest.$ac_ext <<_ACEOF
  2940. /* end confdefs.h. */
  2941. /* Override any gcc2 internal prototype to avoid an error. */
  2942. #ifdef __cplusplus
  2943. extern "C"
  2944. #endif
  2945. /* We use char because int might match the return type of a gcc2
  2946. builtin and then its argument prototype would still apply. */
  2947. char inet_addr ();
  2948. int
  2949. main ()
  2950. {
  2951. inet_addr ();
  2952. ;
  2953. return 0;
  2954. }
  2955. _ACEOF
  2956. rm -f conftest.$ac_objext conftest$ac_exeext
  2957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2958. (eval $ac_link) 2>conftest.er1
  2959. ac_status=$?
  2960. grep -v '^ *+' conftest.er1 >conftest.err
  2961. rm -f conftest.er1
  2962. cat conftest.err >&5
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); } &&
  2965. { ac_try='test -z "$ac_c_werror_flag"
  2966. || test ! -s conftest.err'
  2967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2968. (eval $ac_try) 2>&5
  2969. ac_status=$?
  2970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }; } &&
  2972. { ac_try='test -s conftest$ac_exeext'
  2973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2974. (eval $ac_try) 2>&5
  2975. ac_status=$?
  2976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2977. (exit $ac_status); }; }; then
  2978. ac_cv_search_inet_addr="-l$ac_lib"
  2979. break
  2980. else
  2981. echo "$as_me: failed program was:" >&5
  2982. sed 's/^/| /' conftest.$ac_ext >&5
  2983. fi
  2984. rm -f conftest.err conftest.$ac_objext \
  2985. conftest$ac_exeext conftest.$ac_ext
  2986. done
  2987. fi
  2988. LIBS=$ac_func_search_save_LIBS
  2989. fi
  2990. echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
  2991. echo "${ECHO_T}$ac_cv_search_inet_addr" >&6
  2992. if test "$ac_cv_search_inet_addr" != no; then
  2993. test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
  2994. fi
  2995. ac_ext=c
  2996. ac_cpp='$CPP $CPPFLAGS'
  2997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3000. if test -n "$ac_tool_prefix"; then
  3001. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3002. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3003. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3005. if test "${ac_cv_prog_CC+set}" = set; then
  3006. echo $ECHO_N "(cached) $ECHO_C" >&6
  3007. else
  3008. if test -n "$CC"; then
  3009. ac_cv_prog_CC="$CC" # Let the user override the test.
  3010. else
  3011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3012. for as_dir in $PATH
  3013. do
  3014. IFS=$as_save_IFS
  3015. test -z "$as_dir" && as_dir=.
  3016. for ac_exec_ext in '' $ac_executable_extensions; do
  3017. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3018. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3020. break 2
  3021. fi
  3022. done
  3023. done
  3024. fi
  3025. fi
  3026. CC=$ac_cv_prog_CC
  3027. if test -n "$CC"; then
  3028. echo "$as_me:$LINENO: result: $CC" >&5
  3029. echo "${ECHO_T}$CC" >&6
  3030. else
  3031. echo "$as_me:$LINENO: result: no" >&5
  3032. echo "${ECHO_T}no" >&6
  3033. fi
  3034. fi
  3035. if test -z "$ac_cv_prog_CC"; then
  3036. ac_ct_CC=$CC
  3037. # Extract the first word of "gcc", so it can be a program name with args.
  3038. set dummy gcc; ac_word=$2
  3039. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3040. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3041. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -n "$ac_ct_CC"; then
  3045. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3054. ac_cv_prog_ac_ct_CC="gcc"
  3055. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. fi
  3061. fi
  3062. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3063. if test -n "$ac_ct_CC"; then
  3064. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3065. echo "${ECHO_T}$ac_ct_CC" >&6
  3066. else
  3067. echo "$as_me:$LINENO: result: no" >&5
  3068. echo "${ECHO_T}no" >&6
  3069. fi
  3070. CC=$ac_ct_CC
  3071. else
  3072. CC="$ac_cv_prog_CC"
  3073. fi
  3074. if test -z "$CC"; then
  3075. if test -n "$ac_tool_prefix"; then
  3076. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3077. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3078. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3079. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3080. if test "${ac_cv_prog_CC+set}" = set; then
  3081. echo $ECHO_N "(cached) $ECHO_C" >&6
  3082. else
  3083. if test -n "$CC"; then
  3084. ac_cv_prog_CC="$CC" # Let the user override the test.
  3085. else
  3086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3087. for as_dir in $PATH
  3088. do
  3089. IFS=$as_save_IFS
  3090. test -z "$as_dir" && as_dir=.
  3091. for ac_exec_ext in '' $ac_executable_extensions; do
  3092. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3093. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3094. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3095. break 2
  3096. fi
  3097. done
  3098. done
  3099. fi
  3100. fi
  3101. CC=$ac_cv_prog_CC
  3102. if test -n "$CC"; then
  3103. echo "$as_me:$LINENO: result: $CC" >&5
  3104. echo "${ECHO_T}$CC" >&6
  3105. else
  3106. echo "$as_me:$LINENO: result: no" >&5
  3107. echo "${ECHO_T}no" >&6
  3108. fi
  3109. fi
  3110. if test -z "$ac_cv_prog_CC"; then
  3111. ac_ct_CC=$CC
  3112. # Extract the first word of "cc", so it can be a program name with args.
  3113. set dummy cc; ac_word=$2
  3114. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3115. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3116. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3117. echo $ECHO_N "(cached) $ECHO_C" >&6
  3118. else
  3119. if test -n "$ac_ct_CC"; then
  3120. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3121. else
  3122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3123. for as_dir in $PATH
  3124. do
  3125. IFS=$as_save_IFS
  3126. test -z "$as_dir" && as_dir=.
  3127. for ac_exec_ext in '' $ac_executable_extensions; do
  3128. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3129. ac_cv_prog_ac_ct_CC="cc"
  3130. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3131. break 2
  3132. fi
  3133. done
  3134. done
  3135. fi
  3136. fi
  3137. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3138. if test -n "$ac_ct_CC"; then
  3139. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3140. echo "${ECHO_T}$ac_ct_CC" >&6
  3141. else
  3142. echo "$as_me:$LINENO: result: no" >&5
  3143. echo "${ECHO_T}no" >&6
  3144. fi
  3145. CC=$ac_ct_CC
  3146. else
  3147. CC="$ac_cv_prog_CC"
  3148. fi
  3149. fi
  3150. if test -z "$CC"; then
  3151. # Extract the first word of "cc", so it can be a program name with args.
  3152. set dummy cc; ac_word=$2
  3153. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3154. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3155. if test "${ac_cv_prog_CC+set}" = set; then
  3156. echo $ECHO_N "(cached) $ECHO_C" >&6
  3157. else
  3158. if test -n "$CC"; then
  3159. ac_cv_prog_CC="$CC" # Let the user override the test.
  3160. else
  3161. ac_prog_rejected=no
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3169. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3170. ac_prog_rejected=yes
  3171. continue
  3172. fi
  3173. ac_cv_prog_CC="cc"
  3174. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3175. break 2
  3176. fi
  3177. done
  3178. done
  3179. if test $ac_prog_rejected = yes; then
  3180. # We found a bogon in the path, so make sure we never use it.
  3181. set dummy $ac_cv_prog_CC
  3182. shift
  3183. if test $# != 0; then
  3184. # We chose a different compiler from the bogus one.
  3185. # However, it has the same basename, so the bogon will be chosen
  3186. # first if we set CC to just the basename; use the full file name.
  3187. shift
  3188. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3189. fi
  3190. fi
  3191. fi
  3192. fi
  3193. CC=$ac_cv_prog_CC
  3194. if test -n "$CC"; then
  3195. echo "$as_me:$LINENO: result: $CC" >&5
  3196. echo "${ECHO_T}$CC" >&6
  3197. else
  3198. echo "$as_me:$LINENO: result: no" >&5
  3199. echo "${ECHO_T}no" >&6
  3200. fi
  3201. fi
  3202. if test -z "$CC"; then
  3203. if test -n "$ac_tool_prefix"; then
  3204. for ac_prog in cl
  3205. do
  3206. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3207. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3208. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3209. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3210. if test "${ac_cv_prog_CC+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. if test -n "$CC"; then
  3214. ac_cv_prog_CC="$CC" # Let the user override the test.
  3215. else
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3223. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3224. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. echo "$as_me:$LINENO: result: $CC" >&5
  3234. echo "${ECHO_T}$CC" >&6
  3235. else
  3236. echo "$as_me:$LINENO: result: no" >&5
  3237. echo "${ECHO_T}no" >&6
  3238. fi
  3239. test -n "$CC" && break
  3240. done
  3241. fi
  3242. if test -z "$CC"; then
  3243. ac_ct_CC=$CC
  3244. for ac_prog in cl
  3245. do
  3246. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3247. set dummy $ac_prog; ac_word=$2
  3248. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3250. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3251. echo $ECHO_N "(cached) $ECHO_C" >&6
  3252. else
  3253. if test -n "$ac_ct_CC"; then
  3254. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3255. else
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3263. ac_cv_prog_ac_ct_CC="$ac_prog"
  3264. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. fi
  3270. fi
  3271. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3272. if test -n "$ac_ct_CC"; then
  3273. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3274. echo "${ECHO_T}$ac_ct_CC" >&6
  3275. else
  3276. echo "$as_me:$LINENO: result: no" >&5
  3277. echo "${ECHO_T}no" >&6
  3278. fi
  3279. test -n "$ac_ct_CC" && break
  3280. done
  3281. CC=$ac_ct_CC
  3282. fi
  3283. fi
  3284. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3285. See \`config.log' for more details." >&5
  3286. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3287. See \`config.log' for more details." >&2;}
  3288. { (exit 1); exit 1; }; }
  3289. # Provide some information about the compiler.
  3290. echo "$as_me:$LINENO:" \
  3291. "checking for C compiler version" >&5
  3292. ac_compiler=`set X $ac_compile; echo $2`
  3293. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3294. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3295. ac_status=$?
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); }
  3298. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3299. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3300. ac_status=$?
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); }
  3303. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3304. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3305. ac_status=$?
  3306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3307. (exit $ac_status); }
  3308. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3309. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  3310. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3311. echo $ECHO_N "(cached) $ECHO_C" >&6
  3312. else
  3313. cat >conftest.$ac_ext <<_ACEOF
  3314. /* confdefs.h. */
  3315. _ACEOF
  3316. cat confdefs.h >>conftest.$ac_ext
  3317. cat >>conftest.$ac_ext <<_ACEOF
  3318. /* end confdefs.h. */
  3319. int
  3320. main ()
  3321. {
  3322. #ifndef __GNUC__
  3323. choke me
  3324. #endif
  3325. ;
  3326. return 0;
  3327. }
  3328. _ACEOF
  3329. rm -f conftest.$ac_objext
  3330. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3331. (eval $ac_compile) 2>conftest.er1
  3332. ac_status=$?
  3333. grep -v '^ *+' conftest.er1 >conftest.err
  3334. rm -f conftest.er1
  3335. cat conftest.err >&5
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); } &&
  3338. { ac_try='test -z "$ac_c_werror_flag"
  3339. || test ! -s conftest.err'
  3340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3341. (eval $ac_try) 2>&5
  3342. ac_status=$?
  3343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. (exit $ac_status); }; } &&
  3345. { ac_try='test -s conftest.$ac_objext'
  3346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3347. (eval $ac_try) 2>&5
  3348. ac_status=$?
  3349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3350. (exit $ac_status); }; }; then
  3351. ac_compiler_gnu=yes
  3352. else
  3353. echo "$as_me: failed program was:" >&5
  3354. sed 's/^/| /' conftest.$ac_ext >&5
  3355. ac_compiler_gnu=no
  3356. fi
  3357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3359. fi
  3360. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3361. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  3362. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3363. ac_test_CFLAGS=${CFLAGS+set}
  3364. ac_save_CFLAGS=$CFLAGS
  3365. CFLAGS="-g"
  3366. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3367. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  3368. if test "${ac_cv_prog_cc_g+set}" = set; then
  3369. echo $ECHO_N "(cached) $ECHO_C" >&6
  3370. else
  3371. cat >conftest.$ac_ext <<_ACEOF
  3372. /* confdefs.h. */
  3373. _ACEOF
  3374. cat confdefs.h >>conftest.$ac_ext
  3375. cat >>conftest.$ac_ext <<_ACEOF
  3376. /* end confdefs.h. */
  3377. int
  3378. main ()
  3379. {
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. rm -f conftest.$ac_objext
  3385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3386. (eval $ac_compile) 2>conftest.er1
  3387. ac_status=$?
  3388. grep -v '^ *+' conftest.er1 >conftest.err
  3389. rm -f conftest.er1
  3390. cat conftest.err >&5
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); } &&
  3393. { ac_try='test -z "$ac_c_werror_flag"
  3394. || test ! -s conftest.err'
  3395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3396. (eval $ac_try) 2>&5
  3397. ac_status=$?
  3398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3399. (exit $ac_status); }; } &&
  3400. { ac_try='test -s conftest.$ac_objext'
  3401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3402. (eval $ac_try) 2>&5
  3403. ac_status=$?
  3404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3405. (exit $ac_status); }; }; then
  3406. ac_cv_prog_cc_g=yes
  3407. else
  3408. echo "$as_me: failed program was:" >&5
  3409. sed 's/^/| /' conftest.$ac_ext >&5
  3410. ac_cv_prog_cc_g=no
  3411. fi
  3412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3413. fi
  3414. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3415. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  3416. if test "$ac_test_CFLAGS" = set; then
  3417. CFLAGS=$ac_save_CFLAGS
  3418. elif test $ac_cv_prog_cc_g = yes; then
  3419. if test "$GCC" = yes; then
  3420. CFLAGS="-g -O2"
  3421. else
  3422. CFLAGS="-g"
  3423. fi
  3424. else
  3425. if test "$GCC" = yes; then
  3426. CFLAGS="-O2"
  3427. else
  3428. CFLAGS=
  3429. fi
  3430. fi
  3431. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  3432. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  3433. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  3434. echo $ECHO_N "(cached) $ECHO_C" >&6
  3435. else
  3436. ac_cv_prog_cc_stdc=no
  3437. ac_save_CC=$CC
  3438. cat >conftest.$ac_ext <<_ACEOF
  3439. /* confdefs.h. */
  3440. _ACEOF
  3441. cat confdefs.h >>conftest.$ac_ext
  3442. cat >>conftest.$ac_ext <<_ACEOF
  3443. /* end confdefs.h. */
  3444. #include <stdarg.h>
  3445. #include <stdio.h>
  3446. #include <sys/types.h>
  3447. #include <sys/stat.h>
  3448. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3449. struct buf { int x; };
  3450. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3451. static char *e (p, i)
  3452. char **p;
  3453. int i;
  3454. {
  3455. return p[i];
  3456. }
  3457. static char *f (char * (*g) (char **, int), char **p, ...)
  3458. {
  3459. char *s;
  3460. va_list v;
  3461. va_start (v,p);
  3462. s = g (p, va_arg (v,int));
  3463. va_end (v);
  3464. return s;
  3465. }
  3466. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3467. function prototypes and stuff, but not '\xHH' hex character constants.
  3468. These don't provoke an error unfortunately, instead are silently treated
  3469. as 'x'. The following induces an error, until -std1 is added to get
  3470. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3471. array size at least. It's necessary to write '\x00'==0 to get something
  3472. that's true only with -std1. */
  3473. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3474. int test (int i, double x);
  3475. struct s1 {int (*f) (int a);};
  3476. struct s2 {int (*f) (double a);};
  3477. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3478. int argc;
  3479. char **argv;
  3480. int
  3481. main ()
  3482. {
  3483. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. # Don't try gcc -ansi; that turns off useful extensions and
  3489. # breaks some systems' header files.
  3490. # AIX -qlanglvl=ansi
  3491. # Ultrix and OSF/1 -std1
  3492. # HP-UX 10.20 and later -Ae
  3493. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3494. # SVR4 -Xc -D__EXTENSIONS__
  3495. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3496. do
  3497. CC="$ac_save_CC $ac_arg"
  3498. rm -f conftest.$ac_objext
  3499. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3500. (eval $ac_compile) 2>conftest.er1
  3501. ac_status=$?
  3502. grep -v '^ *+' conftest.er1 >conftest.err
  3503. rm -f conftest.er1
  3504. cat conftest.err >&5
  3505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3506. (exit $ac_status); } &&
  3507. { ac_try='test -z "$ac_c_werror_flag"
  3508. || test ! -s conftest.err'
  3509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3510. (eval $ac_try) 2>&5
  3511. ac_status=$?
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); }; } &&
  3514. { ac_try='test -s conftest.$ac_objext'
  3515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3516. (eval $ac_try) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); }; }; then
  3520. ac_cv_prog_cc_stdc=$ac_arg
  3521. break
  3522. else
  3523. echo "$as_me: failed program was:" >&5
  3524. sed 's/^/| /' conftest.$ac_ext >&5
  3525. fi
  3526. rm -f conftest.err conftest.$ac_objext
  3527. done
  3528. rm -f conftest.$ac_ext conftest.$ac_objext
  3529. CC=$ac_save_CC
  3530. fi
  3531. case "x$ac_cv_prog_cc_stdc" in
  3532. x|xno)
  3533. echo "$as_me:$LINENO: result: none needed" >&5
  3534. echo "${ECHO_T}none needed" >&6 ;;
  3535. *)
  3536. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3537. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3538. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3539. esac
  3540. # Some people use a C++ compiler to compile C. Since we use `exit',
  3541. # in C++ we need to declare it. In case someone uses the same compiler
  3542. # for both compiling C and C++ we need to have the C++ compiler decide
  3543. # the declaration of exit, since it's the most demanding environment.
  3544. cat >conftest.$ac_ext <<_ACEOF
  3545. #ifndef __cplusplus
  3546. choke me
  3547. #endif
  3548. _ACEOF
  3549. rm -f conftest.$ac_objext
  3550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3551. (eval $ac_compile) 2>conftest.er1
  3552. ac_status=$?
  3553. grep -v '^ *+' conftest.er1 >conftest.err
  3554. rm -f conftest.er1
  3555. cat conftest.err >&5
  3556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3557. (exit $ac_status); } &&
  3558. { ac_try='test -z "$ac_c_werror_flag"
  3559. || test ! -s conftest.err'
  3560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3561. (eval $ac_try) 2>&5
  3562. ac_status=$?
  3563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3564. (exit $ac_status); }; } &&
  3565. { ac_try='test -s conftest.$ac_objext'
  3566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3567. (eval $ac_try) 2>&5
  3568. ac_status=$?
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); }; }; then
  3571. for ac_declaration in \
  3572. '' \
  3573. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3574. 'extern "C" void std::exit (int); using std::exit;' \
  3575. 'extern "C" void exit (int) throw ();' \
  3576. 'extern "C" void exit (int);' \
  3577. 'void exit (int);'
  3578. do
  3579. cat >conftest.$ac_ext <<_ACEOF
  3580. /* confdefs.h. */
  3581. _ACEOF
  3582. cat confdefs.h >>conftest.$ac_ext
  3583. cat >>conftest.$ac_ext <<_ACEOF
  3584. /* end confdefs.h. */
  3585. $ac_declaration
  3586. #include <stdlib.h>
  3587. int
  3588. main ()
  3589. {
  3590. exit (42);
  3591. ;
  3592. return 0;
  3593. }
  3594. _ACEOF
  3595. rm -f conftest.$ac_objext
  3596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3597. (eval $ac_compile) 2>conftest.er1
  3598. ac_status=$?
  3599. grep -v '^ *+' conftest.er1 >conftest.err
  3600. rm -f conftest.er1
  3601. cat conftest.err >&5
  3602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); } &&
  3604. { ac_try='test -z "$ac_c_werror_flag"
  3605. || test ! -s conftest.err'
  3606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3607. (eval $ac_try) 2>&5
  3608. ac_status=$?
  3609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); }; } &&
  3611. { ac_try='test -s conftest.$ac_objext'
  3612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3613. (eval $ac_try) 2>&5
  3614. ac_status=$?
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); }; }; then
  3617. :
  3618. else
  3619. echo "$as_me: failed program was:" >&5
  3620. sed 's/^/| /' conftest.$ac_ext >&5
  3621. continue
  3622. fi
  3623. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. cat >conftest.$ac_ext <<_ACEOF
  3625. /* confdefs.h. */
  3626. _ACEOF
  3627. cat confdefs.h >>conftest.$ac_ext
  3628. cat >>conftest.$ac_ext <<_ACEOF
  3629. /* end confdefs.h. */
  3630. $ac_declaration
  3631. int
  3632. main ()
  3633. {
  3634. exit (42);
  3635. ;
  3636. return 0;
  3637. }
  3638. _ACEOF
  3639. rm -f conftest.$ac_objext
  3640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3641. (eval $ac_compile) 2>conftest.er1
  3642. ac_status=$?
  3643. grep -v '^ *+' conftest.er1 >conftest.err
  3644. rm -f conftest.er1
  3645. cat conftest.err >&5
  3646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. (exit $ac_status); } &&
  3648. { ac_try='test -z "$ac_c_werror_flag"
  3649. || test ! -s conftest.err'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; } &&
  3655. { ac_try='test -s conftest.$ac_objext'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; }; then
  3661. break
  3662. else
  3663. echo "$as_me: failed program was:" >&5
  3664. sed 's/^/| /' conftest.$ac_ext >&5
  3665. fi
  3666. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. done
  3668. rm -f conftest*
  3669. if test -n "$ac_declaration"; then
  3670. echo '#ifdef __cplusplus' >>confdefs.h
  3671. echo $ac_declaration >>confdefs.h
  3672. echo '#endif' >>confdefs.h
  3673. fi
  3674. else
  3675. echo "$as_me: failed program was:" >&5
  3676. sed 's/^/| /' conftest.$ac_ext >&5
  3677. fi
  3678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3679. ac_ext=c
  3680. ac_cpp='$CPP $CPPFLAGS'
  3681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3684. depcc="$CC" am_compiler_list=
  3685. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3686. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3687. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3691. # We make a subdir and do the tests there. Otherwise we can end up
  3692. # making bogus files that we don't know about and never remove. For
  3693. # instance it was reported that on HP-UX the gcc test will end up
  3694. # making a dummy file named `D' -- because `-MD' means `put the output
  3695. # in D'.
  3696. mkdir conftest.dir
  3697. # Copy depcomp to subdir because otherwise we won't find it if we're
  3698. # using a relative directory.
  3699. cp "$am_depcomp" conftest.dir
  3700. cd conftest.dir
  3701. # We will build objects and dependencies in a subdirectory because
  3702. # it helps to detect inapplicable dependency modes. For instance
  3703. # both Tru64's cc and ICC support -MD to output dependencies as a
  3704. # side effect of compilation, but ICC will put the dependencies in
  3705. # the current directory while Tru64 will put them in the object
  3706. # directory.
  3707. mkdir sub
  3708. am_cv_CC_dependencies_compiler_type=none
  3709. if test "$am_compiler_list" = ""; then
  3710. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3711. fi
  3712. for depmode in $am_compiler_list; do
  3713. # Setup a source with many dependencies, because some compilers
  3714. # like to wrap large dependency lists on column 80 (with \), and
  3715. # we should not choose a depcomp mode which is confused by this.
  3716. #
  3717. # We need to recreate these files for each test, as the compiler may
  3718. # overwrite some of them when testing with obscure command lines.
  3719. # This happens at least with the AIX C compiler.
  3720. : > sub/conftest.c
  3721. for i in 1 2 3 4 5 6; do
  3722. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3723. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3724. # Solaris 8's {/usr,}/bin/sh.
  3725. touch sub/conftst$i.h
  3726. done
  3727. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3728. case $depmode in
  3729. nosideeffect)
  3730. # after this tag, mechanisms are not by side-effect, so they'll
  3731. # only be used when explicitly requested
  3732. if test "x$enable_dependency_tracking" = xyes; then
  3733. continue
  3734. else
  3735. break
  3736. fi
  3737. ;;
  3738. none) break ;;
  3739. esac
  3740. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3741. # mode. It turns out that the SunPro C++ compiler does not properly
  3742. # handle `-M -o', and we need to detect this.
  3743. if depmode=$depmode \
  3744. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3745. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3746. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3747. >/dev/null 2>conftest.err &&
  3748. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3749. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3750. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3751. # icc doesn't choke on unknown options, it will just issue warnings
  3752. # or remarks (even with -Werror). So we grep stderr for any message
  3753. # that says an option was ignored or not supported.
  3754. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3755. # icc: Command line warning: ignoring option '-M'; no argument required
  3756. # The diagnosis changed in icc 8.0:
  3757. # icc: Command line remark: option '-MP' not supported
  3758. if (grep 'ignoring option' conftest.err ||
  3759. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3760. am_cv_CC_dependencies_compiler_type=$depmode
  3761. break
  3762. fi
  3763. fi
  3764. done
  3765. cd ..
  3766. rm -rf conftest.dir
  3767. else
  3768. am_cv_CC_dependencies_compiler_type=none
  3769. fi
  3770. fi
  3771. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3772. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3773. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3774. if
  3775. test "x$enable_dependency_tracking" != xno \
  3776. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3777. am__fastdepCC_TRUE=
  3778. am__fastdepCC_FALSE='#'
  3779. else
  3780. am__fastdepCC_TRUE='#'
  3781. am__fastdepCC_FALSE=
  3782. fi
  3783. ac_ext=c
  3784. ac_cpp='$CPP $CPPFLAGS'
  3785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3788. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3789. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3790. # On Suns, sometimes $CPP names a directory.
  3791. if test -n "$CPP" && test -d "$CPP"; then
  3792. CPP=
  3793. fi
  3794. if test -z "$CPP"; then
  3795. if test "${ac_cv_prog_CPP+set}" = set; then
  3796. echo $ECHO_N "(cached) $ECHO_C" >&6
  3797. else
  3798. # Double quotes because CPP needs to be expanded
  3799. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3800. do
  3801. ac_preproc_ok=false
  3802. for ac_c_preproc_warn_flag in '' yes
  3803. do
  3804. # Use a header file that comes with gcc, so configuring glibc
  3805. # with a fresh cross-compiler works.
  3806. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3807. # <limits.h> exists even on freestanding compilers.
  3808. # On the NeXT, cc -E runs the code through the compiler's parser,
  3809. # not just through cpp. "Syntax error" is here to catch this case.
  3810. cat >conftest.$ac_ext <<_ACEOF
  3811. /* confdefs.h. */
  3812. _ACEOF
  3813. cat confdefs.h >>conftest.$ac_ext
  3814. cat >>conftest.$ac_ext <<_ACEOF
  3815. /* end confdefs.h. */
  3816. #ifdef __STDC__
  3817. # include <limits.h>
  3818. #else
  3819. # include <assert.h>
  3820. #endif
  3821. Syntax error
  3822. _ACEOF
  3823. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3824. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3825. ac_status=$?
  3826. grep -v '^ *+' conftest.er1 >conftest.err
  3827. rm -f conftest.er1
  3828. cat conftest.err >&5
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); } >/dev/null; then
  3831. if test -s conftest.err; then
  3832. ac_cpp_err=$ac_c_preproc_warn_flag
  3833. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3834. else
  3835. ac_cpp_err=
  3836. fi
  3837. else
  3838. ac_cpp_err=yes
  3839. fi
  3840. if test -z "$ac_cpp_err"; then
  3841. :
  3842. else
  3843. echo "$as_me: failed program was:" >&5
  3844. sed 's/^/| /' conftest.$ac_ext >&5
  3845. # Broken: fails on valid input.
  3846. continue
  3847. fi
  3848. rm -f conftest.err conftest.$ac_ext
  3849. # OK, works on sane cases. Now check whether non-existent headers
  3850. # can be detected and how.
  3851. cat >conftest.$ac_ext <<_ACEOF
  3852. /* confdefs.h. */
  3853. _ACEOF
  3854. cat confdefs.h >>conftest.$ac_ext
  3855. cat >>conftest.$ac_ext <<_ACEOF
  3856. /* end confdefs.h. */
  3857. #include <ac_nonexistent.h>
  3858. _ACEOF
  3859. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3860. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3861. ac_status=$?
  3862. grep -v '^ *+' conftest.er1 >conftest.err
  3863. rm -f conftest.er1
  3864. cat conftest.err >&5
  3865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3866. (exit $ac_status); } >/dev/null; then
  3867. if test -s conftest.err; then
  3868. ac_cpp_err=$ac_c_preproc_warn_flag
  3869. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3870. else
  3871. ac_cpp_err=
  3872. fi
  3873. else
  3874. ac_cpp_err=yes
  3875. fi
  3876. if test -z "$ac_cpp_err"; then
  3877. # Broken: success on invalid input.
  3878. continue
  3879. else
  3880. echo "$as_me: failed program was:" >&5
  3881. sed 's/^/| /' conftest.$ac_ext >&5
  3882. # Passes both tests.
  3883. ac_preproc_ok=:
  3884. break
  3885. fi
  3886. rm -f conftest.err conftest.$ac_ext
  3887. done
  3888. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3889. rm -f conftest.err conftest.$ac_ext
  3890. if $ac_preproc_ok; then
  3891. break
  3892. fi
  3893. done
  3894. ac_cv_prog_CPP=$CPP
  3895. fi
  3896. CPP=$ac_cv_prog_CPP
  3897. else
  3898. ac_cv_prog_CPP=$CPP
  3899. fi
  3900. echo "$as_me:$LINENO: result: $CPP" >&5
  3901. echo "${ECHO_T}$CPP" >&6
  3902. ac_preproc_ok=false
  3903. for ac_c_preproc_warn_flag in '' yes
  3904. do
  3905. # Use a header file that comes with gcc, so configuring glibc
  3906. # with a fresh cross-compiler works.
  3907. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3908. # <limits.h> exists even on freestanding compilers.
  3909. # On the NeXT, cc -E runs the code through the compiler's parser,
  3910. # not just through cpp. "Syntax error" is here to catch this case.
  3911. cat >conftest.$ac_ext <<_ACEOF
  3912. /* confdefs.h. */
  3913. _ACEOF
  3914. cat confdefs.h >>conftest.$ac_ext
  3915. cat >>conftest.$ac_ext <<_ACEOF
  3916. /* end confdefs.h. */
  3917. #ifdef __STDC__
  3918. # include <limits.h>
  3919. #else
  3920. # include <assert.h>
  3921. #endif
  3922. Syntax error
  3923. _ACEOF
  3924. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3925. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3926. ac_status=$?
  3927. grep -v '^ *+' conftest.er1 >conftest.err
  3928. rm -f conftest.er1
  3929. cat conftest.err >&5
  3930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. (exit $ac_status); } >/dev/null; then
  3932. if test -s conftest.err; then
  3933. ac_cpp_err=$ac_c_preproc_warn_flag
  3934. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3935. else
  3936. ac_cpp_err=
  3937. fi
  3938. else
  3939. ac_cpp_err=yes
  3940. fi
  3941. if test -z "$ac_cpp_err"; then
  3942. :
  3943. else
  3944. echo "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946. # Broken: fails on valid input.
  3947. continue
  3948. fi
  3949. rm -f conftest.err conftest.$ac_ext
  3950. # OK, works on sane cases. Now check whether non-existent headers
  3951. # can be detected and how.
  3952. cat >conftest.$ac_ext <<_ACEOF
  3953. /* confdefs.h. */
  3954. _ACEOF
  3955. cat confdefs.h >>conftest.$ac_ext
  3956. cat >>conftest.$ac_ext <<_ACEOF
  3957. /* end confdefs.h. */
  3958. #include <ac_nonexistent.h>
  3959. _ACEOF
  3960. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3961. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3962. ac_status=$?
  3963. grep -v '^ *+' conftest.er1 >conftest.err
  3964. rm -f conftest.er1
  3965. cat conftest.err >&5
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); } >/dev/null; then
  3968. if test -s conftest.err; then
  3969. ac_cpp_err=$ac_c_preproc_warn_flag
  3970. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3971. else
  3972. ac_cpp_err=
  3973. fi
  3974. else
  3975. ac_cpp_err=yes
  3976. fi
  3977. if test -z "$ac_cpp_err"; then
  3978. # Broken: success on invalid input.
  3979. continue
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. # Passes both tests.
  3984. ac_preproc_ok=:
  3985. break
  3986. fi
  3987. rm -f conftest.err conftest.$ac_ext
  3988. done
  3989. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3990. rm -f conftest.err conftest.$ac_ext
  3991. if $ac_preproc_ok; then
  3992. :
  3993. else
  3994. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3995. See \`config.log' for more details." >&5
  3996. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3997. See \`config.log' for more details." >&2;}
  3998. { (exit 1); exit 1; }; }
  3999. fi
  4000. ac_ext=c
  4001. ac_cpp='$CPP $CPPFLAGS'
  4002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4005. # Find a good install program. We prefer a C program (faster),
  4006. # so one script is as good as another. But avoid the broken or
  4007. # incompatible versions:
  4008. # SysV /etc/install, /usr/sbin/install
  4009. # SunOS /usr/etc/install
  4010. # IRIX /sbin/install
  4011. # AIX /bin/install
  4012. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4013. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4014. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4015. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4016. # OS/2's system install, which has a completely different semantic
  4017. # ./install, which can be erroneously created by make from ./install.sh.
  4018. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4019. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4020. if test -z "$INSTALL"; then
  4021. if test "${ac_cv_path_install+set}" = set; then
  4022. echo $ECHO_N "(cached) $ECHO_C" >&6
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. # Account for people who put trailing slashes in PATH elements.
  4030. case $as_dir/ in
  4031. ./ | .// | /cC/* | \
  4032. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4033. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4034. /usr/ucb/* ) ;;
  4035. *)
  4036. # OSF1 and SCO ODT 3.0 have their own names for install.
  4037. # Don't use installbsd from OSF since it installs stuff as root
  4038. # by default.
  4039. for ac_prog in ginstall scoinst install; do
  4040. for ac_exec_ext in '' $ac_executable_extensions; do
  4041. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4042. if test $ac_prog = install &&
  4043. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4044. # AIX install. It has an incompatible calling convention.
  4045. :
  4046. elif test $ac_prog = install &&
  4047. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4048. # program-specific install script used by HP pwplus--don't use.
  4049. :
  4050. else
  4051. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4052. break 3
  4053. fi
  4054. fi
  4055. done
  4056. done
  4057. ;;
  4058. esac
  4059. done
  4060. fi
  4061. if test "${ac_cv_path_install+set}" = set; then
  4062. INSTALL=$ac_cv_path_install
  4063. else
  4064. # As a last resort, use the slow shell script. We don't cache a
  4065. # path for INSTALL within a source directory, because that will
  4066. # break other packages using the cache if that directory is
  4067. # removed, or if the path is relative.
  4068. INSTALL=$ac_install_sh
  4069. fi
  4070. fi
  4071. echo "$as_me:$LINENO: result: $INSTALL" >&5
  4072. echo "${ECHO_T}$INSTALL" >&6
  4073. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4074. # It thinks the first close brace ends the variable substitution.
  4075. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4076. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4077. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4078. # Check whether --enable-shared or --disable-shared was given.
  4079. if test "${enable_shared+set}" = set; then
  4080. enableval="$enable_shared"
  4081. p=${PACKAGE-default}
  4082. case $enableval in
  4083. yes) enable_shared=yes ;;
  4084. no) enable_shared=no ;;
  4085. *)
  4086. enable_shared=no
  4087. # Look at the argument we got. We use all the common list separators.
  4088. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4089. for pkg in $enableval; do
  4090. IFS="$lt_save_ifs"
  4091. if test "X$pkg" = "X$p"; then
  4092. enable_shared=yes
  4093. fi
  4094. done
  4095. IFS="$lt_save_ifs"
  4096. ;;
  4097. esac
  4098. else
  4099. enable_shared=yes
  4100. fi;
  4101. # Check whether --enable-static or --disable-static was given.
  4102. if test "${enable_static+set}" = set; then
  4103. enableval="$enable_static"
  4104. p=${PACKAGE-default}
  4105. case $enableval in
  4106. yes) enable_static=yes ;;
  4107. no) enable_static=no ;;
  4108. *)
  4109. enable_static=no
  4110. # Look at the argument we got. We use all the common list separators.
  4111. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4112. for pkg in $enableval; do
  4113. IFS="$lt_save_ifs"
  4114. if test "X$pkg" = "X$p"; then
  4115. enable_static=yes
  4116. fi
  4117. done
  4118. IFS="$lt_save_ifs"
  4119. ;;
  4120. esac
  4121. else
  4122. enable_static=yes
  4123. fi;
  4124. # Check whether --enable-fast-install or --disable-fast-install was given.
  4125. if test "${enable_fast_install+set}" = set; then
  4126. enableval="$enable_fast_install"
  4127. p=${PACKAGE-default}
  4128. case $enableval in
  4129. yes) enable_fast_install=yes ;;
  4130. no) enable_fast_install=no ;;
  4131. *)
  4132. enable_fast_install=no
  4133. # Look at the argument we got. We use all the common list separators.
  4134. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4135. for pkg in $enableval; do
  4136. IFS="$lt_save_ifs"
  4137. if test "X$pkg" = "X$p"; then
  4138. enable_fast_install=yes
  4139. fi
  4140. done
  4141. IFS="$lt_save_ifs"
  4142. ;;
  4143. esac
  4144. else
  4145. enable_fast_install=yes
  4146. fi;
  4147. # Make sure we can run config.sub.
  4148. $ac_config_sub sun4 >/dev/null 2>&1 ||
  4149. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  4150. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4151. { (exit 1); exit 1; }; }
  4152. echo "$as_me:$LINENO: checking build system type" >&5
  4153. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4154. if test "${ac_cv_build+set}" = set; then
  4155. echo $ECHO_N "(cached) $ECHO_C" >&6
  4156. else
  4157. ac_cv_build_alias=$build_alias
  4158. test -z "$ac_cv_build_alias" &&
  4159. ac_cv_build_alias=`$ac_config_guess`
  4160. test -z "$ac_cv_build_alias" &&
  4161. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4162. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4163. { (exit 1); exit 1; }; }
  4164. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4165. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  4166. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  4167. { (exit 1); exit 1; }; }
  4168. fi
  4169. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4170. echo "${ECHO_T}$ac_cv_build" >&6
  4171. build=$ac_cv_build
  4172. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4173. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4174. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4175. echo "$as_me:$LINENO: checking host system type" >&5
  4176. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4177. if test "${ac_cv_host+set}" = set; then
  4178. echo $ECHO_N "(cached) $ECHO_C" >&6
  4179. else
  4180. ac_cv_host_alias=$host_alias
  4181. test -z "$ac_cv_host_alias" &&
  4182. ac_cv_host_alias=$ac_cv_build_alias
  4183. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4184. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4185. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4186. { (exit 1); exit 1; }; }
  4187. fi
  4188. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4189. echo "${ECHO_T}$ac_cv_host" >&6
  4190. host=$ac_cv_host
  4191. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4192. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4193. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4194. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4195. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  4196. if test "${lt_cv_path_SED+set}" = set; then
  4197. echo $ECHO_N "(cached) $ECHO_C" >&6
  4198. else
  4199. # Loop through the user's path and test for sed and gsed.
  4200. # Then use that list of sed's as ones to test for truncation.
  4201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. for as_dir in $PATH
  4203. do
  4204. IFS=$as_save_IFS
  4205. test -z "$as_dir" && as_dir=.
  4206. for lt_ac_prog in sed gsed; do
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  4209. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4210. fi
  4211. done
  4212. done
  4213. done
  4214. lt_ac_max=0
  4215. lt_ac_count=0
  4216. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4217. # along with /bin/sed that truncates output.
  4218. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4219. test ! -f $lt_ac_sed && continue
  4220. cat /dev/null > conftest.in
  4221. lt_ac_count=0
  4222. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4223. # Check for GNU sed and select it if it is found.
  4224. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4225. lt_cv_path_SED=$lt_ac_sed
  4226. break
  4227. fi
  4228. while true; do
  4229. cat conftest.in conftest.in >conftest.tmp
  4230. mv conftest.tmp conftest.in
  4231. cp conftest.in conftest.nl
  4232. echo >>conftest.nl
  4233. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4234. cmp -s conftest.out conftest.nl || break
  4235. # 10000 chars as input seems more than enough
  4236. test $lt_ac_count -gt 10 && break
  4237. lt_ac_count=`expr $lt_ac_count + 1`
  4238. if test $lt_ac_count -gt $lt_ac_max; then
  4239. lt_ac_max=$lt_ac_count
  4240. lt_cv_path_SED=$lt_ac_sed
  4241. fi
  4242. done
  4243. done
  4244. fi
  4245. SED=$lt_cv_path_SED
  4246. echo "$as_me:$LINENO: result: $SED" >&5
  4247. echo "${ECHO_T}$SED" >&6
  4248. echo "$as_me:$LINENO: checking for egrep" >&5
  4249. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4250. if test "${ac_cv_prog_egrep+set}" = set; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. else
  4253. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4254. then ac_cv_prog_egrep='grep -E'
  4255. else ac_cv_prog_egrep='egrep'
  4256. fi
  4257. fi
  4258. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4259. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4260. EGREP=$ac_cv_prog_egrep
  4261. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  4262. if test "${with_gnu_ld+set}" = set; then
  4263. withval="$with_gnu_ld"
  4264. test "$withval" = no || with_gnu_ld=yes
  4265. else
  4266. with_gnu_ld=no
  4267. fi;
  4268. ac_prog=ld
  4269. if test "$GCC" = yes; then
  4270. # Check if gcc -print-prog-name=ld gives a path.
  4271. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4272. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  4273. case $host in
  4274. *-*-mingw*)
  4275. # gcc leaves a trailing carriage return which upsets mingw
  4276. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4277. *)
  4278. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4279. esac
  4280. case $ac_prog in
  4281. # Accept absolute paths.
  4282. [\\/]* | ?:[\\/]*)
  4283. re_direlt='/[^/][^/]*/\.\./'
  4284. # Canonicalize the pathname of ld
  4285. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4286. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4287. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4288. done
  4289. test -z "$LD" && LD="$ac_prog"
  4290. ;;
  4291. "")
  4292. # If it fails, then pretend we aren't using GCC.
  4293. ac_prog=ld
  4294. ;;
  4295. *)
  4296. # If it is relative, then search for the first ld in PATH.
  4297. with_gnu_ld=unknown
  4298. ;;
  4299. esac
  4300. elif test "$with_gnu_ld" = yes; then
  4301. echo "$as_me:$LINENO: checking for GNU ld" >&5
  4302. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4303. else
  4304. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4305. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4306. fi
  4307. if test "${lt_cv_path_LD+set}" = set; then
  4308. echo $ECHO_N "(cached) $ECHO_C" >&6
  4309. else
  4310. if test -z "$LD"; then
  4311. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4312. for ac_dir in $PATH; do
  4313. IFS="$lt_save_ifs"
  4314. test -z "$ac_dir" && ac_dir=.
  4315. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4316. lt_cv_path_LD="$ac_dir/$ac_prog"
  4317. # Check to see if the program is GNU ld. I'd rather use --version,
  4318. # but apparently some GNU ld's only accept -v.
  4319. # Break only if it was the GNU/non-GNU ld that we prefer.
  4320. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4321. *GNU* | *'with BFD'*)
  4322. test "$with_gnu_ld" != no && break
  4323. ;;
  4324. *)
  4325. test "$with_gnu_ld" != yes && break
  4326. ;;
  4327. esac
  4328. fi
  4329. done
  4330. IFS="$lt_save_ifs"
  4331. else
  4332. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4333. fi
  4334. fi
  4335. LD="$lt_cv_path_LD"
  4336. if test -n "$LD"; then
  4337. echo "$as_me:$LINENO: result: $LD" >&5
  4338. echo "${ECHO_T}$LD" >&6
  4339. else
  4340. echo "$as_me:$LINENO: result: no" >&5
  4341. echo "${ECHO_T}no" >&6
  4342. fi
  4343. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4344. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4345. { (exit 1); exit 1; }; }
  4346. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4347. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4348. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4349. echo $ECHO_N "(cached) $ECHO_C" >&6
  4350. else
  4351. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4352. case `$LD -v 2>&1 </dev/null` in
  4353. *GNU* | *'with BFD'*)
  4354. lt_cv_prog_gnu_ld=yes
  4355. ;;
  4356. *)
  4357. lt_cv_prog_gnu_ld=no
  4358. ;;
  4359. esac
  4360. fi
  4361. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4362. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4363. with_gnu_ld=$lt_cv_prog_gnu_ld
  4364. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4365. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4366. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4367. echo $ECHO_N "(cached) $ECHO_C" >&6
  4368. else
  4369. lt_cv_ld_reload_flag='-r'
  4370. fi
  4371. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4372. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4373. reload_flag=$lt_cv_ld_reload_flag
  4374. case $reload_flag in
  4375. "" | " "*) ;;
  4376. *) reload_flag=" $reload_flag" ;;
  4377. esac
  4378. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4379. case $host_os in
  4380. darwin*)
  4381. if test "$GCC" = yes; then
  4382. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  4383. else
  4384. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4385. fi
  4386. ;;
  4387. esac
  4388. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4389. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4390. if test "${lt_cv_path_NM+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. if test -n "$NM"; then
  4394. # Let the user override the test.
  4395. lt_cv_path_NM="$NM"
  4396. else
  4397. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4398. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4399. IFS="$lt_save_ifs"
  4400. test -z "$ac_dir" && ac_dir=.
  4401. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4402. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4403. # Check to see if the nm accepts a BSD-compat flag.
  4404. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4405. # nm: unknown option "B" ignored
  4406. # Tru64's nm complains that /dev/null is an invalid object file
  4407. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4408. */dev/null* | *'Invalid file or object type'*)
  4409. lt_cv_path_NM="$tmp_nm -B"
  4410. break
  4411. ;;
  4412. *)
  4413. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4414. */dev/null*)
  4415. lt_cv_path_NM="$tmp_nm -p"
  4416. break
  4417. ;;
  4418. *)
  4419. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4420. continue # so that we can try to find one that supports BSD flags
  4421. ;;
  4422. esac
  4423. esac
  4424. fi
  4425. done
  4426. IFS="$lt_save_ifs"
  4427. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4428. fi
  4429. fi
  4430. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4431. echo "${ECHO_T}$lt_cv_path_NM" >&6
  4432. NM="$lt_cv_path_NM"
  4433. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4434. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4435. LN_S=$as_ln_s
  4436. if test "$LN_S" = "ln -s"; then
  4437. echo "$as_me:$LINENO: result: yes" >&5
  4438. echo "${ECHO_T}yes" >&6
  4439. else
  4440. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4441. echo "${ECHO_T}no, using $LN_S" >&6
  4442. fi
  4443. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  4444. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  4445. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4446. echo $ECHO_N "(cached) $ECHO_C" >&6
  4447. else
  4448. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4449. lt_cv_file_magic_test_file=
  4450. lt_cv_deplibs_check_method='unknown'
  4451. # Need to set the preceding variable on all platforms that support
  4452. # interlibrary dependencies.
  4453. # 'none' -- dependencies not supported.
  4454. # `unknown' -- same as none, but documents that we really don't know.
  4455. # 'pass_all' -- all dependencies passed with no checks.
  4456. # 'test_compile' -- check by making test program.
  4457. # 'file_magic [[regex]]' -- check by looking for files in library path
  4458. # which responds to the $file_magic_cmd with a given extended regex.
  4459. # If you have `file' or equivalent on your system and you're not sure
  4460. # whether `pass_all' will *always* work, you probably want this one.
  4461. case $host_os in
  4462. aix4* | aix5*)
  4463. lt_cv_deplibs_check_method=pass_all
  4464. ;;
  4465. beos*)
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. bsdi[45]*)
  4469. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4470. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4471. lt_cv_file_magic_test_file=/shlib/libc.so
  4472. ;;
  4473. cygwin*)
  4474. # func_win32_libid is a shell function defined in ltmain.sh
  4475. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4476. lt_cv_file_magic_cmd='func_win32_libid'
  4477. ;;
  4478. mingw* | pw32*)
  4479. # Base MSYS/MinGW do not provide the 'file' command needed by
  4480. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4481. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4482. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4483. ;;
  4484. darwin* | rhapsody*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. freebsd* | kfreebsd*-gnu | dragonfly*)
  4488. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4489. case $host_cpu in
  4490. i*86 )
  4491. # Not sure whether the presence of OpenBSD here was a mistake.
  4492. # Let's accept both of them until this is cleared up.
  4493. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4494. lt_cv_file_magic_cmd=/usr/bin/file
  4495. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4496. ;;
  4497. esac
  4498. else
  4499. lt_cv_deplibs_check_method=pass_all
  4500. fi
  4501. ;;
  4502. gnu*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. hpux10.20* | hpux11*)
  4506. lt_cv_file_magic_cmd=/usr/bin/file
  4507. case "$host_cpu" in
  4508. ia64*)
  4509. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4510. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4511. ;;
  4512. hppa*64*)
  4513. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4514. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4515. ;;
  4516. *)
  4517. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4518. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4519. ;;
  4520. esac
  4521. ;;
  4522. irix5* | irix6* | nonstopux*)
  4523. case $LD in
  4524. *-32|*"-32 ") libmagic=32-bit;;
  4525. *-n32|*"-n32 ") libmagic=N32;;
  4526. *-64|*"-64 ") libmagic=64-bit;;
  4527. *) libmagic=never-match;;
  4528. esac
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. # This must be Linux ELF.
  4532. linux*)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. netbsd*)
  4536. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4537. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4538. else
  4539. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4540. fi
  4541. ;;
  4542. newos6*)
  4543. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4544. lt_cv_file_magic_cmd=/usr/bin/file
  4545. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4546. ;;
  4547. nto-qnx*)
  4548. lt_cv_deplibs_check_method=unknown
  4549. ;;
  4550. openbsd*)
  4551. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4552. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4553. else
  4554. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4555. fi
  4556. ;;
  4557. osf3* | osf4* | osf5*)
  4558. lt_cv_deplibs_check_method=pass_all
  4559. ;;
  4560. sco3.2v5*)
  4561. lt_cv_deplibs_check_method=pass_all
  4562. ;;
  4563. solaris*)
  4564. lt_cv_deplibs_check_method=pass_all
  4565. ;;
  4566. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4567. case $host_vendor in
  4568. motorola)
  4569. 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]'
  4570. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4571. ;;
  4572. ncr)
  4573. lt_cv_deplibs_check_method=pass_all
  4574. ;;
  4575. sequent)
  4576. lt_cv_file_magic_cmd='/bin/file'
  4577. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4578. ;;
  4579. sni)
  4580. lt_cv_file_magic_cmd='/bin/file'
  4581. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4582. lt_cv_file_magic_test_file=/lib/libc.so
  4583. ;;
  4584. siemens)
  4585. lt_cv_deplibs_check_method=pass_all
  4586. ;;
  4587. esac
  4588. ;;
  4589. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4590. lt_cv_deplibs_check_method=pass_all
  4591. ;;
  4592. esac
  4593. fi
  4594. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4595. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4596. file_magic_cmd=$lt_cv_file_magic_cmd
  4597. deplibs_check_method=$lt_cv_deplibs_check_method
  4598. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4599. # If no C compiler was specified, use CC.
  4600. LTCC=${LTCC-"$CC"}
  4601. # Allow CC to be a program name with arguments.
  4602. compiler=$CC
  4603. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  4604. if test "${enable_libtool_lock+set}" = set; then
  4605. enableval="$enable_libtool_lock"
  4606. fi;
  4607. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4608. # Some flags need to be propagated to the compiler or linker for good
  4609. # libtool support.
  4610. case $host in
  4611. ia64-*-hpux*)
  4612. # Find out which ABI we are using.
  4613. echo 'int i;' > conftest.$ac_ext
  4614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4615. (eval $ac_compile) 2>&5
  4616. ac_status=$?
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); }; then
  4619. case `/usr/bin/file conftest.$ac_objext` in
  4620. *ELF-32*)
  4621. HPUX_IA64_MODE="32"
  4622. ;;
  4623. *ELF-64*)
  4624. HPUX_IA64_MODE="64"
  4625. ;;
  4626. esac
  4627. fi
  4628. rm -rf conftest*
  4629. ;;
  4630. *-*-irix6*)
  4631. # Find out which ABI we are using.
  4632. echo '#line 5096 "configure"' > conftest.$ac_ext
  4633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4634. (eval $ac_compile) 2>&5
  4635. ac_status=$?
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); }; then
  4638. if test "$lt_cv_prog_gnu_ld" = yes; then
  4639. case `/usr/bin/file conftest.$ac_objext` in
  4640. *32-bit*)
  4641. LD="${LD-ld} -melf32bsmip"
  4642. ;;
  4643. *N32*)
  4644. LD="${LD-ld} -melf32bmipn32"
  4645. ;;
  4646. *64-bit*)
  4647. LD="${LD-ld} -melf64bmip"
  4648. ;;
  4649. esac
  4650. else
  4651. case `/usr/bin/file conftest.$ac_objext` in
  4652. *32-bit*)
  4653. LD="${LD-ld} -32"
  4654. ;;
  4655. *N32*)
  4656. LD="${LD-ld} -n32"
  4657. ;;
  4658. *64-bit*)
  4659. LD="${LD-ld} -64"
  4660. ;;
  4661. esac
  4662. fi
  4663. fi
  4664. rm -rf conftest*
  4665. ;;
  4666. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4667. # Find out which ABI we are using.
  4668. echo 'int i;' > conftest.$ac_ext
  4669. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4670. (eval $ac_compile) 2>&5
  4671. ac_status=$?
  4672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4673. (exit $ac_status); }; then
  4674. case "`/usr/bin/file conftest.o`" in
  4675. *32-bit*)
  4676. case $host in
  4677. x86_64-*linux*)
  4678. LD="${LD-ld} -m elf_i386"
  4679. ;;
  4680. ppc64-*linux*|powerpc64-*linux*)
  4681. LD="${LD-ld} -m elf32ppclinux"
  4682. ;;
  4683. s390x-*linux*)
  4684. LD="${LD-ld} -m elf_s390"
  4685. ;;
  4686. sparc64-*linux*)
  4687. LD="${LD-ld} -m elf32_sparc"
  4688. ;;
  4689. esac
  4690. ;;
  4691. *64-bit*)
  4692. case $host in
  4693. x86_64-*linux*)
  4694. LD="${LD-ld} -m elf_x86_64"
  4695. ;;
  4696. ppc*-*linux*|powerpc*-*linux*)
  4697. LD="${LD-ld} -m elf64ppc"
  4698. ;;
  4699. s390*-*linux*)
  4700. LD="${LD-ld} -m elf64_s390"
  4701. ;;
  4702. sparc*-*linux*)
  4703. LD="${LD-ld} -m elf64_sparc"
  4704. ;;
  4705. esac
  4706. ;;
  4707. esac
  4708. fi
  4709. rm -rf conftest*
  4710. ;;
  4711. *-*-sco3.2v5*)
  4712. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4713. SAVE_CFLAGS="$CFLAGS"
  4714. CFLAGS="$CFLAGS -belf"
  4715. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4716. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4717. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4718. echo $ECHO_N "(cached) $ECHO_C" >&6
  4719. else
  4720. ac_ext=c
  4721. ac_cpp='$CPP $CPPFLAGS'
  4722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4725. cat >conftest.$ac_ext <<_ACEOF
  4726. /* confdefs.h. */
  4727. _ACEOF
  4728. cat confdefs.h >>conftest.$ac_ext
  4729. cat >>conftest.$ac_ext <<_ACEOF
  4730. /* end confdefs.h. */
  4731. int
  4732. main ()
  4733. {
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. rm -f conftest.$ac_objext conftest$ac_exeext
  4739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4740. (eval $ac_link) 2>conftest.er1
  4741. ac_status=$?
  4742. grep -v '^ *+' conftest.er1 >conftest.err
  4743. rm -f conftest.er1
  4744. cat conftest.err >&5
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); } &&
  4747. { ac_try='test -z "$ac_c_werror_flag"
  4748. || test ! -s conftest.err'
  4749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4750. (eval $ac_try) 2>&5
  4751. ac_status=$?
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); }; } &&
  4754. { ac_try='test -s conftest$ac_exeext'
  4755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4756. (eval $ac_try) 2>&5
  4757. ac_status=$?
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); }; }; then
  4760. lt_cv_cc_needs_belf=yes
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. lt_cv_cc_needs_belf=no
  4765. fi
  4766. rm -f conftest.err conftest.$ac_objext \
  4767. conftest$ac_exeext conftest.$ac_ext
  4768. ac_ext=c
  4769. ac_cpp='$CPP $CPPFLAGS'
  4770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4773. fi
  4774. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4775. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4776. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4777. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4778. CFLAGS="$SAVE_CFLAGS"
  4779. fi
  4780. ;;
  4781. esac
  4782. need_locks="$enable_libtool_lock"
  4783. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4784. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4785. if test "${ac_cv_header_stdc+set}" = set; then
  4786. echo $ECHO_N "(cached) $ECHO_C" >&6
  4787. else
  4788. cat >conftest.$ac_ext <<_ACEOF
  4789. /* confdefs.h. */
  4790. _ACEOF
  4791. cat confdefs.h >>conftest.$ac_ext
  4792. cat >>conftest.$ac_ext <<_ACEOF
  4793. /* end confdefs.h. */
  4794. #include <stdlib.h>
  4795. #include <stdarg.h>
  4796. #include <string.h>
  4797. #include <float.h>
  4798. int
  4799. main ()
  4800. {
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4807. (eval $ac_compile) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } &&
  4814. { ac_try='test -z "$ac_c_werror_flag"
  4815. || test ! -s conftest.err'
  4816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4817. (eval $ac_try) 2>&5
  4818. ac_status=$?
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); }; } &&
  4821. { ac_try='test -s conftest.$ac_objext'
  4822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4823. (eval $ac_try) 2>&5
  4824. ac_status=$?
  4825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826. (exit $ac_status); }; }; then
  4827. ac_cv_header_stdc=yes
  4828. else
  4829. echo "$as_me: failed program was:" >&5
  4830. sed 's/^/| /' conftest.$ac_ext >&5
  4831. ac_cv_header_stdc=no
  4832. fi
  4833. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4834. if test $ac_cv_header_stdc = yes; then
  4835. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. #include <string.h>
  4843. _ACEOF
  4844. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4845. $EGREP "memchr" >/dev/null 2>&1; then
  4846. :
  4847. else
  4848. ac_cv_header_stdc=no
  4849. fi
  4850. rm -f conftest*
  4851. fi
  4852. if test $ac_cv_header_stdc = yes; then
  4853. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. #include <stdlib.h>
  4861. _ACEOF
  4862. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4863. $EGREP "free" >/dev/null 2>&1; then
  4864. :
  4865. else
  4866. ac_cv_header_stdc=no
  4867. fi
  4868. rm -f conftest*
  4869. fi
  4870. if test $ac_cv_header_stdc = yes; then
  4871. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4872. if test "$cross_compiling" = yes; then
  4873. :
  4874. else
  4875. cat >conftest.$ac_ext <<_ACEOF
  4876. /* confdefs.h. */
  4877. _ACEOF
  4878. cat confdefs.h >>conftest.$ac_ext
  4879. cat >>conftest.$ac_ext <<_ACEOF
  4880. /* end confdefs.h. */
  4881. #include <ctype.h>
  4882. #if ((' ' & 0x0FF) == 0x020)
  4883. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4884. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4885. #else
  4886. # define ISLOWER(c) \
  4887. (('a' <= (c) && (c) <= 'i') \
  4888. || ('j' <= (c) && (c) <= 'r') \
  4889. || ('s' <= (c) && (c) <= 'z'))
  4890. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4891. #endif
  4892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4893. int
  4894. main ()
  4895. {
  4896. int i;
  4897. for (i = 0; i < 256; i++)
  4898. if (XOR (islower (i), ISLOWER (i))
  4899. || toupper (i) != TOUPPER (i))
  4900. exit(2);
  4901. exit (0);
  4902. }
  4903. _ACEOF
  4904. rm -f conftest$ac_exeext
  4905. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4906. (eval $ac_link) 2>&5
  4907. ac_status=$?
  4908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4909. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4911. (eval $ac_try) 2>&5
  4912. ac_status=$?
  4913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. (exit $ac_status); }; }; then
  4915. :
  4916. else
  4917. echo "$as_me: program exited with status $ac_status" >&5
  4918. echo "$as_me: failed program was:" >&5
  4919. sed 's/^/| /' conftest.$ac_ext >&5
  4920. ( exit $ac_status )
  4921. ac_cv_header_stdc=no
  4922. fi
  4923. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4924. fi
  4925. fi
  4926. fi
  4927. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4928. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4929. if test $ac_cv_header_stdc = yes; then
  4930. cat >>confdefs.h <<\_ACEOF
  4931. #define STDC_HEADERS 1
  4932. _ACEOF
  4933. fi
  4934. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4935. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4936. inttypes.h stdint.h unistd.h
  4937. do
  4938. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4939. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4940. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4941. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4942. echo $ECHO_N "(cached) $ECHO_C" >&6
  4943. else
  4944. cat >conftest.$ac_ext <<_ACEOF
  4945. /* confdefs.h. */
  4946. _ACEOF
  4947. cat confdefs.h >>conftest.$ac_ext
  4948. cat >>conftest.$ac_ext <<_ACEOF
  4949. /* end confdefs.h. */
  4950. $ac_includes_default
  4951. #include <$ac_header>
  4952. _ACEOF
  4953. rm -f conftest.$ac_objext
  4954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4955. (eval $ac_compile) 2>conftest.er1
  4956. ac_status=$?
  4957. grep -v '^ *+' conftest.er1 >conftest.err
  4958. rm -f conftest.er1
  4959. cat conftest.err >&5
  4960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); } &&
  4962. { ac_try='test -z "$ac_c_werror_flag"
  4963. || test ! -s conftest.err'
  4964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4965. (eval $ac_try) 2>&5
  4966. ac_status=$?
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); }; } &&
  4969. { ac_try='test -s conftest.$ac_objext'
  4970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4971. (eval $ac_try) 2>&5
  4972. ac_status=$?
  4973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4974. (exit $ac_status); }; }; then
  4975. eval "$as_ac_Header=yes"
  4976. else
  4977. echo "$as_me: failed program was:" >&5
  4978. sed 's/^/| /' conftest.$ac_ext >&5
  4979. eval "$as_ac_Header=no"
  4980. fi
  4981. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4982. fi
  4983. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4984. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4985. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4986. cat >>confdefs.h <<_ACEOF
  4987. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4988. _ACEOF
  4989. fi
  4990. done
  4991. for ac_header in dlfcn.h
  4992. do
  4993. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4994. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4995. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4996. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4997. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4998. echo $ECHO_N "(cached) $ECHO_C" >&6
  4999. fi
  5000. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5001. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5002. else
  5003. # Is the header compilable?
  5004. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5005. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5006. cat >conftest.$ac_ext <<_ACEOF
  5007. /* confdefs.h. */
  5008. _ACEOF
  5009. cat confdefs.h >>conftest.$ac_ext
  5010. cat >>conftest.$ac_ext <<_ACEOF
  5011. /* end confdefs.h. */
  5012. $ac_includes_default
  5013. #include <$ac_header>
  5014. _ACEOF
  5015. rm -f conftest.$ac_objext
  5016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5017. (eval $ac_compile) 2>conftest.er1
  5018. ac_status=$?
  5019. grep -v '^ *+' conftest.er1 >conftest.err
  5020. rm -f conftest.er1
  5021. cat conftest.err >&5
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); } &&
  5024. { ac_try='test -z "$ac_c_werror_flag"
  5025. || test ! -s conftest.err'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; } &&
  5031. { ac_try='test -s conftest.$ac_objext'
  5032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5033. (eval $ac_try) 2>&5
  5034. ac_status=$?
  5035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. (exit $ac_status); }; }; then
  5037. ac_header_compiler=yes
  5038. else
  5039. echo "$as_me: failed program was:" >&5
  5040. sed 's/^/| /' conftest.$ac_ext >&5
  5041. ac_header_compiler=no
  5042. fi
  5043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5045. echo "${ECHO_T}$ac_header_compiler" >&6
  5046. # Is the header present?
  5047. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5048. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5049. cat >conftest.$ac_ext <<_ACEOF
  5050. /* confdefs.h. */
  5051. _ACEOF
  5052. cat confdefs.h >>conftest.$ac_ext
  5053. cat >>conftest.$ac_ext <<_ACEOF
  5054. /* end confdefs.h. */
  5055. #include <$ac_header>
  5056. _ACEOF
  5057. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5058. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5059. ac_status=$?
  5060. grep -v '^ *+' conftest.er1 >conftest.err
  5061. rm -f conftest.er1
  5062. cat conftest.err >&5
  5063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); } >/dev/null; then
  5065. if test -s conftest.err; then
  5066. ac_cpp_err=$ac_c_preproc_warn_flag
  5067. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5068. else
  5069. ac_cpp_err=
  5070. fi
  5071. else
  5072. ac_cpp_err=yes
  5073. fi
  5074. if test -z "$ac_cpp_err"; then
  5075. ac_header_preproc=yes
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. ac_header_preproc=no
  5080. fi
  5081. rm -f conftest.err conftest.$ac_ext
  5082. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5083. echo "${ECHO_T}$ac_header_preproc" >&6
  5084. # So? What about this header?
  5085. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5086. yes:no: )
  5087. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5088. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5090. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5091. ac_header_preproc=yes
  5092. ;;
  5093. no:yes:* )
  5094. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5095. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5096. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5097. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5098. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5099. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5100. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5101. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5103. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5104. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5105. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5106. (
  5107. cat <<\_ASBOX
  5108. ## ------------------------------------------ ##
  5109. ## Report this to andrei.nigmatulin@gmail.com ##
  5110. ## ------------------------------------------ ##
  5111. _ASBOX
  5112. ) |
  5113. sed "s/^/$as_me: WARNING: /" >&2
  5114. ;;
  5115. esac
  5116. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5118. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5119. echo $ECHO_N "(cached) $ECHO_C" >&6
  5120. else
  5121. eval "$as_ac_Header=\$ac_header_preproc"
  5122. fi
  5123. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5124. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5125. fi
  5126. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5127. cat >>confdefs.h <<_ACEOF
  5128. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5129. _ACEOF
  5130. fi
  5131. done
  5132. ac_ext=cc
  5133. ac_cpp='$CXXCPP $CPPFLAGS'
  5134. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5135. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5136. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5137. if test -n "$ac_tool_prefix"; then
  5138. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5139. do
  5140. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5141. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5144. if test "${ac_cv_prog_CXX+set}" = set; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. if test -n "$CXX"; then
  5148. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5149. else
  5150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5151. for as_dir in $PATH
  5152. do
  5153. IFS=$as_save_IFS
  5154. test -z "$as_dir" && as_dir=.
  5155. for ac_exec_ext in '' $ac_executable_extensions; do
  5156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5157. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5159. break 2
  5160. fi
  5161. done
  5162. done
  5163. fi
  5164. fi
  5165. CXX=$ac_cv_prog_CXX
  5166. if test -n "$CXX"; then
  5167. echo "$as_me:$LINENO: result: $CXX" >&5
  5168. echo "${ECHO_T}$CXX" >&6
  5169. else
  5170. echo "$as_me:$LINENO: result: no" >&5
  5171. echo "${ECHO_T}no" >&6
  5172. fi
  5173. test -n "$CXX" && break
  5174. done
  5175. fi
  5176. if test -z "$CXX"; then
  5177. ac_ct_CXX=$CXX
  5178. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  5179. do
  5180. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5181. set dummy $ac_prog; ac_word=$2
  5182. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5183. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5184. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  5185. echo $ECHO_N "(cached) $ECHO_C" >&6
  5186. else
  5187. if test -n "$ac_ct_CXX"; then
  5188. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5189. else
  5190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5191. for as_dir in $PATH
  5192. do
  5193. IFS=$as_save_IFS
  5194. test -z "$as_dir" && as_dir=.
  5195. for ac_exec_ext in '' $ac_executable_extensions; do
  5196. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5197. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5198. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5199. break 2
  5200. fi
  5201. done
  5202. done
  5203. fi
  5204. fi
  5205. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5206. if test -n "$ac_ct_CXX"; then
  5207. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  5208. echo "${ECHO_T}$ac_ct_CXX" >&6
  5209. else
  5210. echo "$as_me:$LINENO: result: no" >&5
  5211. echo "${ECHO_T}no" >&6
  5212. fi
  5213. test -n "$ac_ct_CXX" && break
  5214. done
  5215. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  5216. CXX=$ac_ct_CXX
  5217. fi
  5218. # Provide some information about the compiler.
  5219. echo "$as_me:$LINENO:" \
  5220. "checking for C++ compiler version" >&5
  5221. ac_compiler=`set X $ac_compile; echo $2`
  5222. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5223. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5224. ac_status=$?
  5225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5226. (exit $ac_status); }
  5227. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5228. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5229. ac_status=$?
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }
  5232. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5233. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5234. ac_status=$?
  5235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); }
  5237. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5238. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  5239. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5240. echo $ECHO_N "(cached) $ECHO_C" >&6
  5241. else
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. int
  5249. main ()
  5250. {
  5251. #ifndef __GNUC__
  5252. choke me
  5253. #endif
  5254. ;
  5255. return 0;
  5256. }
  5257. _ACEOF
  5258. rm -f conftest.$ac_objext
  5259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5260. (eval $ac_compile) 2>conftest.er1
  5261. ac_status=$?
  5262. grep -v '^ *+' conftest.er1 >conftest.err
  5263. rm -f conftest.er1
  5264. cat conftest.err >&5
  5265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); } &&
  5267. { ac_try='test -z "$ac_cxx_werror_flag"
  5268. || test ! -s conftest.err'
  5269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5270. (eval $ac_try) 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; } &&
  5274. { ac_try='test -s conftest.$ac_objext'
  5275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5276. (eval $ac_try) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; }; then
  5280. ac_compiler_gnu=yes
  5281. else
  5282. echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. ac_compiler_gnu=no
  5285. fi
  5286. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5287. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5288. fi
  5289. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5290. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  5291. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5292. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5293. ac_save_CXXFLAGS=$CXXFLAGS
  5294. CXXFLAGS="-g"
  5295. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5296. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  5297. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5298. echo $ECHO_N "(cached) $ECHO_C" >&6
  5299. else
  5300. cat >conftest.$ac_ext <<_ACEOF
  5301. /* confdefs.h. */
  5302. _ACEOF
  5303. cat confdefs.h >>conftest.$ac_ext
  5304. cat >>conftest.$ac_ext <<_ACEOF
  5305. /* end confdefs.h. */
  5306. int
  5307. main ()
  5308. {
  5309. ;
  5310. return 0;
  5311. }
  5312. _ACEOF
  5313. rm -f conftest.$ac_objext
  5314. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5315. (eval $ac_compile) 2>conftest.er1
  5316. ac_status=$?
  5317. grep -v '^ *+' conftest.er1 >conftest.err
  5318. rm -f conftest.er1
  5319. cat conftest.err >&5
  5320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. (exit $ac_status); } &&
  5322. { ac_try='test -z "$ac_cxx_werror_flag"
  5323. || test ! -s conftest.err'
  5324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5325. (eval $ac_try) 2>&5
  5326. ac_status=$?
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); }; } &&
  5329. { ac_try='test -s conftest.$ac_objext'
  5330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5331. (eval $ac_try) 2>&5
  5332. ac_status=$?
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); }; }; then
  5335. ac_cv_prog_cxx_g=yes
  5336. else
  5337. echo "$as_me: failed program was:" >&5
  5338. sed 's/^/| /' conftest.$ac_ext >&5
  5339. ac_cv_prog_cxx_g=no
  5340. fi
  5341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5342. fi
  5343. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5344. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  5345. if test "$ac_test_CXXFLAGS" = set; then
  5346. CXXFLAGS=$ac_save_CXXFLAGS
  5347. elif test $ac_cv_prog_cxx_g = yes; then
  5348. if test "$GXX" = yes; then
  5349. CXXFLAGS="-g -O2"
  5350. else
  5351. CXXFLAGS="-g"
  5352. fi
  5353. else
  5354. if test "$GXX" = yes; then
  5355. CXXFLAGS="-O2"
  5356. else
  5357. CXXFLAGS=
  5358. fi
  5359. fi
  5360. for ac_declaration in \
  5361. '' \
  5362. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  5363. 'extern "C" void std::exit (int); using std::exit;' \
  5364. 'extern "C" void exit (int) throw ();' \
  5365. 'extern "C" void exit (int);' \
  5366. 'void exit (int);'
  5367. do
  5368. cat >conftest.$ac_ext <<_ACEOF
  5369. /* confdefs.h. */
  5370. _ACEOF
  5371. cat confdefs.h >>conftest.$ac_ext
  5372. cat >>conftest.$ac_ext <<_ACEOF
  5373. /* end confdefs.h. */
  5374. $ac_declaration
  5375. #include <stdlib.h>
  5376. int
  5377. main ()
  5378. {
  5379. exit (42);
  5380. ;
  5381. return 0;
  5382. }
  5383. _ACEOF
  5384. rm -f conftest.$ac_objext
  5385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5386. (eval $ac_compile) 2>conftest.er1
  5387. ac_status=$?
  5388. grep -v '^ *+' conftest.er1 >conftest.err
  5389. rm -f conftest.er1
  5390. cat conftest.err >&5
  5391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. (exit $ac_status); } &&
  5393. { ac_try='test -z "$ac_cxx_werror_flag"
  5394. || test ! -s conftest.err'
  5395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5396. (eval $ac_try) 2>&5
  5397. ac_status=$?
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); }; } &&
  5400. { ac_try='test -s conftest.$ac_objext'
  5401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5402. (eval $ac_try) 2>&5
  5403. ac_status=$?
  5404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5405. (exit $ac_status); }; }; then
  5406. :
  5407. else
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. continue
  5411. fi
  5412. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5413. cat >conftest.$ac_ext <<_ACEOF
  5414. /* confdefs.h. */
  5415. _ACEOF
  5416. cat confdefs.h >>conftest.$ac_ext
  5417. cat >>conftest.$ac_ext <<_ACEOF
  5418. /* end confdefs.h. */
  5419. $ac_declaration
  5420. int
  5421. main ()
  5422. {
  5423. exit (42);
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext
  5429. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5430. (eval $ac_compile) 2>conftest.er1
  5431. ac_status=$?
  5432. grep -v '^ *+' conftest.er1 >conftest.err
  5433. rm -f conftest.er1
  5434. cat conftest.err >&5
  5435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5436. (exit $ac_status); } &&
  5437. { ac_try='test -z "$ac_cxx_werror_flag"
  5438. || test ! -s conftest.err'
  5439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5440. (eval $ac_try) 2>&5
  5441. ac_status=$?
  5442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443. (exit $ac_status); }; } &&
  5444. { ac_try='test -s conftest.$ac_objext'
  5445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5446. (eval $ac_try) 2>&5
  5447. ac_status=$?
  5448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5449. (exit $ac_status); }; }; then
  5450. break
  5451. else
  5452. echo "$as_me: failed program was:" >&5
  5453. sed 's/^/| /' conftest.$ac_ext >&5
  5454. fi
  5455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5456. done
  5457. rm -f conftest*
  5458. if test -n "$ac_declaration"; then
  5459. echo '#ifdef __cplusplus' >>confdefs.h
  5460. echo $ac_declaration >>confdefs.h
  5461. echo '#endif' >>confdefs.h
  5462. fi
  5463. ac_ext=cc
  5464. ac_cpp='$CXXCPP $CPPFLAGS'
  5465. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5466. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5467. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5468. depcc="$CXX" am_compiler_list=
  5469. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5470. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  5471. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5472. echo $ECHO_N "(cached) $ECHO_C" >&6
  5473. else
  5474. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5475. # We make a subdir and do the tests there. Otherwise we can end up
  5476. # making bogus files that we don't know about and never remove. For
  5477. # instance it was reported that on HP-UX the gcc test will end up
  5478. # making a dummy file named `D' -- because `-MD' means `put the output
  5479. # in D'.
  5480. mkdir conftest.dir
  5481. # Copy depcomp to subdir because otherwise we won't find it if we're
  5482. # using a relative directory.
  5483. cp "$am_depcomp" conftest.dir
  5484. cd conftest.dir
  5485. # We will build objects and dependencies in a subdirectory because
  5486. # it helps to detect inapplicable dependency modes. For instance
  5487. # both Tru64's cc and ICC support -MD to output dependencies as a
  5488. # side effect of compilation, but ICC will put the dependencies in
  5489. # the current directory while Tru64 will put them in the object
  5490. # directory.
  5491. mkdir sub
  5492. am_cv_CXX_dependencies_compiler_type=none
  5493. if test "$am_compiler_list" = ""; then
  5494. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5495. fi
  5496. for depmode in $am_compiler_list; do
  5497. # Setup a source with many dependencies, because some compilers
  5498. # like to wrap large dependency lists on column 80 (with \), and
  5499. # we should not choose a depcomp mode which is confused by this.
  5500. #
  5501. # We need to recreate these files for each test, as the compiler may
  5502. # overwrite some of them when testing with obscure command lines.
  5503. # This happens at least with the AIX C compiler.
  5504. : > sub/conftest.c
  5505. for i in 1 2 3 4 5 6; do
  5506. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5507. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5508. # Solaris 8's {/usr,}/bin/sh.
  5509. touch sub/conftst$i.h
  5510. done
  5511. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5512. case $depmode in
  5513. nosideeffect)
  5514. # after this tag, mechanisms are not by side-effect, so they'll
  5515. # only be used when explicitly requested
  5516. if test "x$enable_dependency_tracking" = xyes; then
  5517. continue
  5518. else
  5519. break
  5520. fi
  5521. ;;
  5522. none) break ;;
  5523. esac
  5524. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5525. # mode. It turns out that the SunPro C++ compiler does not properly
  5526. # handle `-M -o', and we need to detect this.
  5527. if depmode=$depmode \
  5528. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5529. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5530. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5531. >/dev/null 2>conftest.err &&
  5532. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5533. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5534. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5535. # icc doesn't choke on unknown options, it will just issue warnings
  5536. # or remarks (even with -Werror). So we grep stderr for any message
  5537. # that says an option was ignored or not supported.
  5538. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5539. # icc: Command line warning: ignoring option '-M'; no argument required
  5540. # The diagnosis changed in icc 8.0:
  5541. # icc: Command line remark: option '-MP' not supported
  5542. if (grep 'ignoring option' conftest.err ||
  5543. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5544. am_cv_CXX_dependencies_compiler_type=$depmode
  5545. break
  5546. fi
  5547. fi
  5548. done
  5549. cd ..
  5550. rm -rf conftest.dir
  5551. else
  5552. am_cv_CXX_dependencies_compiler_type=none
  5553. fi
  5554. fi
  5555. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5556. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  5557. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5558. if
  5559. test "x$enable_dependency_tracking" != xno \
  5560. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5561. am__fastdepCXX_TRUE=
  5562. am__fastdepCXX_FALSE='#'
  5563. else
  5564. am__fastdepCXX_TRUE='#'
  5565. am__fastdepCXX_FALSE=
  5566. fi
  5567. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5568. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5569. (test "X$CXX" != "Xg++"))) ; then
  5570. ac_ext=cc
  5571. ac_cpp='$CXXCPP $CPPFLAGS'
  5572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5575. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5576. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  5577. if test -z "$CXXCPP"; then
  5578. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. # Double quotes because CXXCPP needs to be expanded
  5582. for CXXCPP in "$CXX -E" "/lib/cpp"
  5583. do
  5584. ac_preproc_ok=false
  5585. for ac_cxx_preproc_warn_flag in '' yes
  5586. do
  5587. # Use a header file that comes with gcc, so configuring glibc
  5588. # with a fresh cross-compiler works.
  5589. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5590. # <limits.h> exists even on freestanding compilers.
  5591. # On the NeXT, cc -E runs the code through the compiler's parser,
  5592. # not just through cpp. "Syntax error" is here to catch this case.
  5593. cat >conftest.$ac_ext <<_ACEOF
  5594. /* confdefs.h. */
  5595. _ACEOF
  5596. cat confdefs.h >>conftest.$ac_ext
  5597. cat >>conftest.$ac_ext <<_ACEOF
  5598. /* end confdefs.h. */
  5599. #ifdef __STDC__
  5600. # include <limits.h>
  5601. #else
  5602. # include <assert.h>
  5603. #endif
  5604. Syntax error
  5605. _ACEOF
  5606. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5607. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5608. ac_status=$?
  5609. grep -v '^ *+' conftest.er1 >conftest.err
  5610. rm -f conftest.er1
  5611. cat conftest.err >&5
  5612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5613. (exit $ac_status); } >/dev/null; then
  5614. if test -s conftest.err; then
  5615. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5616. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5617. else
  5618. ac_cpp_err=
  5619. fi
  5620. else
  5621. ac_cpp_err=yes
  5622. fi
  5623. if test -z "$ac_cpp_err"; then
  5624. :
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. # Broken: fails on valid input.
  5629. continue
  5630. fi
  5631. rm -f conftest.err conftest.$ac_ext
  5632. # OK, works on sane cases. Now check whether non-existent headers
  5633. # can be detected and how.
  5634. cat >conftest.$ac_ext <<_ACEOF
  5635. /* confdefs.h. */
  5636. _ACEOF
  5637. cat confdefs.h >>conftest.$ac_ext
  5638. cat >>conftest.$ac_ext <<_ACEOF
  5639. /* end confdefs.h. */
  5640. #include <ac_nonexistent.h>
  5641. _ACEOF
  5642. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5643. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5644. ac_status=$?
  5645. grep -v '^ *+' conftest.er1 >conftest.err
  5646. rm -f conftest.er1
  5647. cat conftest.err >&5
  5648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5649. (exit $ac_status); } >/dev/null; then
  5650. if test -s conftest.err; then
  5651. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5652. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5653. else
  5654. ac_cpp_err=
  5655. fi
  5656. else
  5657. ac_cpp_err=yes
  5658. fi
  5659. if test -z "$ac_cpp_err"; then
  5660. # Broken: success on invalid input.
  5661. continue
  5662. else
  5663. echo "$as_me: failed program was:" >&5
  5664. sed 's/^/| /' conftest.$ac_ext >&5
  5665. # Passes both tests.
  5666. ac_preproc_ok=:
  5667. break
  5668. fi
  5669. rm -f conftest.err conftest.$ac_ext
  5670. done
  5671. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5672. rm -f conftest.err conftest.$ac_ext
  5673. if $ac_preproc_ok; then
  5674. break
  5675. fi
  5676. done
  5677. ac_cv_prog_CXXCPP=$CXXCPP
  5678. fi
  5679. CXXCPP=$ac_cv_prog_CXXCPP
  5680. else
  5681. ac_cv_prog_CXXCPP=$CXXCPP
  5682. fi
  5683. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5684. echo "${ECHO_T}$CXXCPP" >&6
  5685. ac_preproc_ok=false
  5686. for ac_cxx_preproc_warn_flag in '' yes
  5687. do
  5688. # Use a header file that comes with gcc, so configuring glibc
  5689. # with a fresh cross-compiler works.
  5690. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5691. # <limits.h> exists even on freestanding compilers.
  5692. # On the NeXT, cc -E runs the code through the compiler's parser,
  5693. # not just through cpp. "Syntax error" is here to catch this case.
  5694. cat >conftest.$ac_ext <<_ACEOF
  5695. /* confdefs.h. */
  5696. _ACEOF
  5697. cat confdefs.h >>conftest.$ac_ext
  5698. cat >>conftest.$ac_ext <<_ACEOF
  5699. /* end confdefs.h. */
  5700. #ifdef __STDC__
  5701. # include <limits.h>
  5702. #else
  5703. # include <assert.h>
  5704. #endif
  5705. Syntax error
  5706. _ACEOF
  5707. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5708. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5709. ac_status=$?
  5710. grep -v '^ *+' conftest.er1 >conftest.err
  5711. rm -f conftest.er1
  5712. cat conftest.err >&5
  5713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714. (exit $ac_status); } >/dev/null; then
  5715. if test -s conftest.err; then
  5716. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5717. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5718. else
  5719. ac_cpp_err=
  5720. fi
  5721. else
  5722. ac_cpp_err=yes
  5723. fi
  5724. if test -z "$ac_cpp_err"; then
  5725. :
  5726. else
  5727. echo "$as_me: failed program was:" >&5
  5728. sed 's/^/| /' conftest.$ac_ext >&5
  5729. # Broken: fails on valid input.
  5730. continue
  5731. fi
  5732. rm -f conftest.err conftest.$ac_ext
  5733. # OK, works on sane cases. Now check whether non-existent headers
  5734. # can be detected and how.
  5735. cat >conftest.$ac_ext <<_ACEOF
  5736. /* confdefs.h. */
  5737. _ACEOF
  5738. cat confdefs.h >>conftest.$ac_ext
  5739. cat >>conftest.$ac_ext <<_ACEOF
  5740. /* end confdefs.h. */
  5741. #include <ac_nonexistent.h>
  5742. _ACEOF
  5743. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5744. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5745. ac_status=$?
  5746. grep -v '^ *+' conftest.er1 >conftest.err
  5747. rm -f conftest.er1
  5748. cat conftest.err >&5
  5749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5750. (exit $ac_status); } >/dev/null; then
  5751. if test -s conftest.err; then
  5752. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5753. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5754. else
  5755. ac_cpp_err=
  5756. fi
  5757. else
  5758. ac_cpp_err=yes
  5759. fi
  5760. if test -z "$ac_cpp_err"; then
  5761. # Broken: success on invalid input.
  5762. continue
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. # Passes both tests.
  5767. ac_preproc_ok=:
  5768. break
  5769. fi
  5770. rm -f conftest.err conftest.$ac_ext
  5771. done
  5772. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5773. rm -f conftest.err conftest.$ac_ext
  5774. if $ac_preproc_ok; then
  5775. :
  5776. else
  5777. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5778. See \`config.log' for more details." >&5
  5779. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5780. See \`config.log' for more details." >&2;}
  5781. { (exit 1); exit 1; }; }
  5782. fi
  5783. ac_ext=cc
  5784. ac_cpp='$CXXCPP $CPPFLAGS'
  5785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5788. fi
  5789. ac_ext=f
  5790. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5791. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5792. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5793. if test -n "$ac_tool_prefix"; then
  5794. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5795. do
  5796. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5797. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5798. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5799. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5800. if test "${ac_cv_prog_F77+set}" = set; then
  5801. echo $ECHO_N "(cached) $ECHO_C" >&6
  5802. else
  5803. if test -n "$F77"; then
  5804. ac_cv_prog_F77="$F77" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5813. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5814. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. fi
  5820. fi
  5821. F77=$ac_cv_prog_F77
  5822. if test -n "$F77"; then
  5823. echo "$as_me:$LINENO: result: $F77" >&5
  5824. echo "${ECHO_T}$F77" >&6
  5825. else
  5826. echo "$as_me:$LINENO: result: no" >&5
  5827. echo "${ECHO_T}no" >&6
  5828. fi
  5829. test -n "$F77" && break
  5830. done
  5831. fi
  5832. if test -z "$F77"; then
  5833. ac_ct_F77=$F77
  5834. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  5835. do
  5836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5837. set dummy $ac_prog; ac_word=$2
  5838. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5839. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5840. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5841. echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. else
  5843. if test -n "$ac_ct_F77"; then
  5844. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_ac_ct_F77="$ac_prog"
  5854. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. fi
  5860. fi
  5861. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5862. if test -n "$ac_ct_F77"; then
  5863. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5864. echo "${ECHO_T}$ac_ct_F77" >&6
  5865. else
  5866. echo "$as_me:$LINENO: result: no" >&5
  5867. echo "${ECHO_T}no" >&6
  5868. fi
  5869. test -n "$ac_ct_F77" && break
  5870. done
  5871. F77=$ac_ct_F77
  5872. fi
  5873. # Provide some information about the compiler.
  5874. echo "$as_me:6441:" \
  5875. "checking for Fortran 77 compiler version" >&5
  5876. ac_compiler=`set X $ac_compile; echo $2`
  5877. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5878. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5879. ac_status=$?
  5880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5881. (exit $ac_status); }
  5882. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5883. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5884. ac_status=$?
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); }
  5887. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5888. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5889. ac_status=$?
  5890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891. (exit $ac_status); }
  5892. rm -f a.out
  5893. # If we don't use `.F' as extension, the preprocessor is not run on the
  5894. # input file. (Note that this only needs to work for GNU compilers.)
  5895. ac_save_ext=$ac_ext
  5896. ac_ext=F
  5897. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5898. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5899. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5900. echo $ECHO_N "(cached) $ECHO_C" >&6
  5901. else
  5902. cat >conftest.$ac_ext <<_ACEOF
  5903. program main
  5904. #ifndef __GNUC__
  5905. choke me
  5906. #endif
  5907. end
  5908. _ACEOF
  5909. rm -f conftest.$ac_objext
  5910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5911. (eval $ac_compile) 2>conftest.er1
  5912. ac_status=$?
  5913. grep -v '^ *+' conftest.er1 >conftest.err
  5914. rm -f conftest.er1
  5915. cat conftest.err >&5
  5916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5917. (exit $ac_status); } &&
  5918. { ac_try='test -z "$ac_f77_werror_flag"
  5919. || test ! -s conftest.err'
  5920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5921. (eval $ac_try) 2>&5
  5922. ac_status=$?
  5923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5924. (exit $ac_status); }; } &&
  5925. { ac_try='test -s conftest.$ac_objext'
  5926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5927. (eval $ac_try) 2>&5
  5928. ac_status=$?
  5929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5930. (exit $ac_status); }; }; then
  5931. ac_compiler_gnu=yes
  5932. else
  5933. echo "$as_me: failed program was:" >&5
  5934. sed 's/^/| /' conftest.$ac_ext >&5
  5935. ac_compiler_gnu=no
  5936. fi
  5937. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5938. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5939. fi
  5940. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5941. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5942. ac_ext=$ac_save_ext
  5943. ac_test_FFLAGS=${FFLAGS+set}
  5944. ac_save_FFLAGS=$FFLAGS
  5945. FFLAGS=
  5946. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5947. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5948. if test "${ac_cv_prog_f77_g+set}" = set; then
  5949. echo $ECHO_N "(cached) $ECHO_C" >&6
  5950. else
  5951. FFLAGS=-g
  5952. cat >conftest.$ac_ext <<_ACEOF
  5953. program main
  5954. end
  5955. _ACEOF
  5956. rm -f conftest.$ac_objext
  5957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5958. (eval $ac_compile) 2>conftest.er1
  5959. ac_status=$?
  5960. grep -v '^ *+' conftest.er1 >conftest.err
  5961. rm -f conftest.er1
  5962. cat conftest.err >&5
  5963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5964. (exit $ac_status); } &&
  5965. { ac_try='test -z "$ac_f77_werror_flag"
  5966. || test ! -s conftest.err'
  5967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. (eval $ac_try) 2>&5
  5969. ac_status=$?
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); }; } &&
  5972. { ac_try='test -s conftest.$ac_objext'
  5973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5974. (eval $ac_try) 2>&5
  5975. ac_status=$?
  5976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5977. (exit $ac_status); }; }; then
  5978. ac_cv_prog_f77_g=yes
  5979. else
  5980. echo "$as_me: failed program was:" >&5
  5981. sed 's/^/| /' conftest.$ac_ext >&5
  5982. ac_cv_prog_f77_g=no
  5983. fi
  5984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5985. fi
  5986. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5987. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5988. if test "$ac_test_FFLAGS" = set; then
  5989. FFLAGS=$ac_save_FFLAGS
  5990. elif test $ac_cv_prog_f77_g = yes; then
  5991. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5992. FFLAGS="-g -O2"
  5993. else
  5994. FFLAGS="-g"
  5995. fi
  5996. else
  5997. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5998. FFLAGS="-O2"
  5999. else
  6000. FFLAGS=
  6001. fi
  6002. fi
  6003. G77=`test $ac_compiler_gnu = yes && echo yes`
  6004. ac_ext=c
  6005. ac_cpp='$CPP $CPPFLAGS'
  6006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6009. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6010. # find the maximum length of command line arguments
  6011. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6012. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  6013. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6014. echo $ECHO_N "(cached) $ECHO_C" >&6
  6015. else
  6016. i=0
  6017. teststring="ABCD"
  6018. case $build_os in
  6019. msdosdjgpp*)
  6020. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6021. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6022. # during glob expansion). Even if it were fixed, the result of this
  6023. # check would be larger than it should be.
  6024. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6025. ;;
  6026. gnu*)
  6027. # Under GNU Hurd, this test is not required because there is
  6028. # no limit to the length of command line arguments.
  6029. # Libtool will interpret -1 as no limit whatsoever
  6030. lt_cv_sys_max_cmd_len=-1;
  6031. ;;
  6032. cygwin* | mingw*)
  6033. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6034. # about 5 minutes as the teststring grows exponentially.
  6035. # Worse, since 9x/ME are not pre-emptively multitasking,
  6036. # you end up with a "frozen" computer, even though with patience
  6037. # the test eventually succeeds (with a max line length of 256k).
  6038. # Instead, let's just punt: use the minimum linelength reported by
  6039. # all of the supported platforms: 8192 (on NT/2K/XP).
  6040. lt_cv_sys_max_cmd_len=8192;
  6041. ;;
  6042. amigaos*)
  6043. # On AmigaOS with pdksh, this test takes hours, literally.
  6044. # So we just punt and use a minimum line length of 8192.
  6045. lt_cv_sys_max_cmd_len=8192;
  6046. ;;
  6047. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6048. # This has been around since 386BSD, at least. Likely further.
  6049. if test -x /sbin/sysctl; then
  6050. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6051. elif test -x /usr/sbin/sysctl; then
  6052. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6053. else
  6054. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  6055. fi
  6056. # And add a safety zone
  6057. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6058. ;;
  6059. osf*)
  6060. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6061. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6062. # nice to cause kernel panics so lets avoid the loop below.
  6063. # First set a reasonable default.
  6064. lt_cv_sys_max_cmd_len=16384
  6065. #
  6066. if test -x /sbin/sysconfig; then
  6067. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6068. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6069. esac
  6070. fi
  6071. ;;
  6072. *)
  6073. # If test is not a shell built-in, we'll probably end up computing a
  6074. # maximum length that is only half of the actual maximum length, but
  6075. # we can't tell.
  6076. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6077. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6078. = "XX$teststring") >/dev/null 2>&1 &&
  6079. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6080. lt_cv_sys_max_cmd_len=$new_result &&
  6081. test $i != 17 # 1/2 MB should be enough
  6082. do
  6083. i=`expr $i + 1`
  6084. teststring=$teststring$teststring
  6085. done
  6086. teststring=
  6087. # Add a significant safety factor because C++ compilers can tack on massive
  6088. # amounts of additional arguments before passing them to the linker.
  6089. # It appears as though 1/2 is a usable value.
  6090. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6091. ;;
  6092. esac
  6093. fi
  6094. if test -n $lt_cv_sys_max_cmd_len ; then
  6095. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6096. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  6097. else
  6098. echo "$as_me:$LINENO: result: none" >&5
  6099. echo "${ECHO_T}none" >&6
  6100. fi
  6101. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6102. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6103. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  6104. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6105. echo $ECHO_N "(cached) $ECHO_C" >&6
  6106. else
  6107. # These are sane defaults that work on at least a few old systems.
  6108. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6109. # Character class describing NM global symbol codes.
  6110. symcode='[BCDEGRST]'
  6111. # Regexp to match symbols that can be accessed directly from C.
  6112. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6113. # Transform an extracted symbol line into a proper C declaration
  6114. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6115. # Transform an extracted symbol line into symbol name and symbol address
  6116. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6117. # Define system-specific variables.
  6118. case $host_os in
  6119. aix*)
  6120. symcode='[BCDT]'
  6121. ;;
  6122. cygwin* | mingw* | pw32*)
  6123. symcode='[ABCDGISTW]'
  6124. ;;
  6125. hpux*) # Its linker distinguishes data from code symbols
  6126. if test "$host_cpu" = ia64; then
  6127. symcode='[ABCDEGRST]'
  6128. fi
  6129. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6130. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6131. ;;
  6132. linux*)
  6133. if test "$host_cpu" = ia64; then
  6134. symcode='[ABCDGIRSTW]'
  6135. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6136. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6137. fi
  6138. ;;
  6139. irix* | nonstopux*)
  6140. symcode='[BCDEGRST]'
  6141. ;;
  6142. osf*)
  6143. symcode='[BCDEGQRST]'
  6144. ;;
  6145. solaris* | sysv5*)
  6146. symcode='[BDRT]'
  6147. ;;
  6148. sysv4)
  6149. symcode='[DFNSTU]'
  6150. ;;
  6151. esac
  6152. # Handle CRLF in mingw tool chain
  6153. opt_cr=
  6154. case $build_os in
  6155. mingw*)
  6156. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6157. ;;
  6158. esac
  6159. # If we're using GNU nm, then use its standard symbol codes.
  6160. case `$NM -V 2>&1` in
  6161. *GNU* | *'with BFD'*)
  6162. symcode='[ABCDGIRSTW]' ;;
  6163. esac
  6164. # Try without a prefix undercore, then with it.
  6165. for ac_symprfx in "" "_"; do
  6166. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6167. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6168. # Write the raw and C identifiers.
  6169. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6170. # Check to see that the pipe works correctly.
  6171. pipe_works=no
  6172. rm -f conftest*
  6173. cat > conftest.$ac_ext <<EOF
  6174. #ifdef __cplusplus
  6175. extern "C" {
  6176. #endif
  6177. char nm_test_var;
  6178. void nm_test_func(){}
  6179. #ifdef __cplusplus
  6180. }
  6181. #endif
  6182. int main(){nm_test_var='a';nm_test_func();return(0);}
  6183. EOF
  6184. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6185. (eval $ac_compile) 2>&5
  6186. ac_status=$?
  6187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6188. (exit $ac_status); }; then
  6189. # Now try to grab the symbols.
  6190. nlist=conftest.nm
  6191. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6192. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6193. ac_status=$?
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } && test -s "$nlist"; then
  6196. # Try sorting and uniquifying the output.
  6197. if sort "$nlist" | uniq > "$nlist"T; then
  6198. mv -f "$nlist"T "$nlist"
  6199. else
  6200. rm -f "$nlist"T
  6201. fi
  6202. # Make sure that we snagged all the symbols we need.
  6203. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6204. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6205. cat <<EOF > conftest.$ac_ext
  6206. #ifdef __cplusplus
  6207. extern "C" {
  6208. #endif
  6209. EOF
  6210. # Now generate the symbol file.
  6211. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6212. cat <<EOF >> conftest.$ac_ext
  6213. #if defined (__STDC__) && __STDC__
  6214. # define lt_ptr_t void *
  6215. #else
  6216. # define lt_ptr_t char *
  6217. # define const
  6218. #endif
  6219. /* The mapping between symbol names and symbols. */
  6220. const struct {
  6221. const char *name;
  6222. lt_ptr_t address;
  6223. }
  6224. lt_preloaded_symbols[] =
  6225. {
  6226. EOF
  6227. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6228. cat <<\EOF >> conftest.$ac_ext
  6229. {0, (lt_ptr_t) 0}
  6230. };
  6231. #ifdef __cplusplus
  6232. }
  6233. #endif
  6234. EOF
  6235. # Now try linking the two files.
  6236. mv conftest.$ac_objext conftstm.$ac_objext
  6237. lt_save_LIBS="$LIBS"
  6238. lt_save_CFLAGS="$CFLAGS"
  6239. LIBS="conftstm.$ac_objext"
  6240. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6241. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6242. (eval $ac_link) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6246. pipe_works=yes
  6247. fi
  6248. LIBS="$lt_save_LIBS"
  6249. CFLAGS="$lt_save_CFLAGS"
  6250. else
  6251. echo "cannot find nm_test_func in $nlist" >&5
  6252. fi
  6253. else
  6254. echo "cannot find nm_test_var in $nlist" >&5
  6255. fi
  6256. else
  6257. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6258. fi
  6259. else
  6260. echo "$progname: failed program was:" >&5
  6261. cat conftest.$ac_ext >&5
  6262. fi
  6263. rm -f conftest* conftst*
  6264. # Do not use the global_symbol_pipe unless it works.
  6265. if test "$pipe_works" = yes; then
  6266. break
  6267. else
  6268. lt_cv_sys_global_symbol_pipe=
  6269. fi
  6270. done
  6271. fi
  6272. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6273. lt_cv_sys_global_symbol_to_cdecl=
  6274. fi
  6275. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6276. echo "$as_me:$LINENO: result: failed" >&5
  6277. echo "${ECHO_T}failed" >&6
  6278. else
  6279. echo "$as_me:$LINENO: result: ok" >&5
  6280. echo "${ECHO_T}ok" >&6
  6281. fi
  6282. echo "$as_me:$LINENO: checking for objdir" >&5
  6283. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  6284. if test "${lt_cv_objdir+set}" = set; then
  6285. echo $ECHO_N "(cached) $ECHO_C" >&6
  6286. else
  6287. rm -f .libs 2>/dev/null
  6288. mkdir .libs 2>/dev/null
  6289. if test -d .libs; then
  6290. lt_cv_objdir=.libs
  6291. else
  6292. # MS-DOS does not allow filenames that begin with a dot.
  6293. lt_cv_objdir=_libs
  6294. fi
  6295. rmdir .libs 2>/dev/null
  6296. fi
  6297. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6298. echo "${ECHO_T}$lt_cv_objdir" >&6
  6299. objdir=$lt_cv_objdir
  6300. case $host_os in
  6301. aix3*)
  6302. # AIX sometimes has problems with the GCC collect2 program. For some
  6303. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6304. # vanish in a puff of smoke.
  6305. if test "X${COLLECT_NAMES+set}" != Xset; then
  6306. COLLECT_NAMES=
  6307. export COLLECT_NAMES
  6308. fi
  6309. ;;
  6310. esac
  6311. # Sed substitution that helps us do robust quoting. It backslashifies
  6312. # metacharacters that are still active within double-quoted strings.
  6313. Xsed='sed -e s/^X//'
  6314. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6315. # Same as above, but do not quote variable references.
  6316. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6317. # Sed substitution to delay expansion of an escaped shell variable in a
  6318. # double_quote_subst'ed string.
  6319. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6320. # Sed substitution to avoid accidental globbing in evaled expressions
  6321. no_glob_subst='s/\*/\\\*/g'
  6322. # Constants:
  6323. rm="rm -f"
  6324. # Global variables:
  6325. default_ofile=libtool
  6326. can_build_shared=yes
  6327. # All known linkers require a `.a' archive for static linking (except M$VC,
  6328. # which needs '.lib').
  6329. libext=a
  6330. ltmain="$ac_aux_dir/ltmain.sh"
  6331. ofile="$default_ofile"
  6332. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6333. if test -n "$ac_tool_prefix"; then
  6334. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6335. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6336. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6338. if test "${ac_cv_prog_AR+set}" = set; then
  6339. echo $ECHO_N "(cached) $ECHO_C" >&6
  6340. else
  6341. if test -n "$AR"; then
  6342. ac_cv_prog_AR="$AR" # Let the user override the test.
  6343. else
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6351. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. fi
  6358. fi
  6359. AR=$ac_cv_prog_AR
  6360. if test -n "$AR"; then
  6361. echo "$as_me:$LINENO: result: $AR" >&5
  6362. echo "${ECHO_T}$AR" >&6
  6363. else
  6364. echo "$as_me:$LINENO: result: no" >&5
  6365. echo "${ECHO_T}no" >&6
  6366. fi
  6367. fi
  6368. if test -z "$ac_cv_prog_AR"; then
  6369. ac_ct_AR=$AR
  6370. # Extract the first word of "ar", so it can be a program name with args.
  6371. set dummy ar; ac_word=$2
  6372. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6374. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6375. echo $ECHO_N "(cached) $ECHO_C" >&6
  6376. else
  6377. if test -n "$ac_ct_AR"; then
  6378. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6387. ac_cv_prog_ac_ct_AR="ar"
  6388. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  6394. fi
  6395. fi
  6396. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6397. if test -n "$ac_ct_AR"; then
  6398. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6399. echo "${ECHO_T}$ac_ct_AR" >&6
  6400. else
  6401. echo "$as_me:$LINENO: result: no" >&5
  6402. echo "${ECHO_T}no" >&6
  6403. fi
  6404. AR=$ac_ct_AR
  6405. else
  6406. AR="$ac_cv_prog_AR"
  6407. fi
  6408. if test -n "$ac_tool_prefix"; then
  6409. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6410. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6411. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6412. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6413. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6414. echo $ECHO_N "(cached) $ECHO_C" >&6
  6415. else
  6416. if test -n "$RANLIB"; then
  6417. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6418. else
  6419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420. for as_dir in $PATH
  6421. do
  6422. IFS=$as_save_IFS
  6423. test -z "$as_dir" && as_dir=.
  6424. for ac_exec_ext in '' $ac_executable_extensions; do
  6425. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6426. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6427. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6428. break 2
  6429. fi
  6430. done
  6431. done
  6432. fi
  6433. fi
  6434. RANLIB=$ac_cv_prog_RANLIB
  6435. if test -n "$RANLIB"; then
  6436. echo "$as_me:$LINENO: result: $RANLIB" >&5
  6437. echo "${ECHO_T}$RANLIB" >&6
  6438. else
  6439. echo "$as_me:$LINENO: result: no" >&5
  6440. echo "${ECHO_T}no" >&6
  6441. fi
  6442. fi
  6443. if test -z "$ac_cv_prog_RANLIB"; then
  6444. ac_ct_RANLIB=$RANLIB
  6445. # Extract the first word of "ranlib", so it can be a program name with args.
  6446. set dummy ranlib; ac_word=$2
  6447. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6448. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6449. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6450. echo $ECHO_N "(cached) $ECHO_C" >&6
  6451. else
  6452. if test -n "$ac_ct_RANLIB"; then
  6453. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6454. else
  6455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6456. for as_dir in $PATH
  6457. do
  6458. IFS=$as_save_IFS
  6459. test -z "$as_dir" && as_dir=.
  6460. for ac_exec_ext in '' $ac_executable_extensions; do
  6461. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6462. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6463. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6464. break 2
  6465. fi
  6466. done
  6467. done
  6468. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  6469. fi
  6470. fi
  6471. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6472. if test -n "$ac_ct_RANLIB"; then
  6473. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6474. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  6475. else
  6476. echo "$as_me:$LINENO: result: no" >&5
  6477. echo "${ECHO_T}no" >&6
  6478. fi
  6479. RANLIB=$ac_ct_RANLIB
  6480. else
  6481. RANLIB="$ac_cv_prog_RANLIB"
  6482. fi
  6483. if test -n "$ac_tool_prefix"; then
  6484. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6485. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6486. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6487. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6488. if test "${ac_cv_prog_STRIP+set}" = set; then
  6489. echo $ECHO_N "(cached) $ECHO_C" >&6
  6490. else
  6491. if test -n "$STRIP"; then
  6492. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6493. else
  6494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6495. for as_dir in $PATH
  6496. do
  6497. IFS=$as_save_IFS
  6498. test -z "$as_dir" && as_dir=.
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6502. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. fi
  6508. fi
  6509. STRIP=$ac_cv_prog_STRIP
  6510. if test -n "$STRIP"; then
  6511. echo "$as_me:$LINENO: result: $STRIP" >&5
  6512. echo "${ECHO_T}$STRIP" >&6
  6513. else
  6514. echo "$as_me:$LINENO: result: no" >&5
  6515. echo "${ECHO_T}no" >&6
  6516. fi
  6517. fi
  6518. if test -z "$ac_cv_prog_STRIP"; then
  6519. ac_ct_STRIP=$STRIP
  6520. # Extract the first word of "strip", so it can be a program name with args.
  6521. set dummy strip; ac_word=$2
  6522. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6524. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6525. echo $ECHO_N "(cached) $ECHO_C" >&6
  6526. else
  6527. if test -n "$ac_ct_STRIP"; then
  6528. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. test -z "$as_dir" && as_dir=.
  6535. for ac_exec_ext in '' $ac_executable_extensions; do
  6536. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6537. ac_cv_prog_ac_ct_STRIP="strip"
  6538. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6539. break 2
  6540. fi
  6541. done
  6542. done
  6543. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  6544. fi
  6545. fi
  6546. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6547. if test -n "$ac_ct_STRIP"; then
  6548. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6549. echo "${ECHO_T}$ac_ct_STRIP" >&6
  6550. else
  6551. echo "$as_me:$LINENO: result: no" >&5
  6552. echo "${ECHO_T}no" >&6
  6553. fi
  6554. STRIP=$ac_ct_STRIP
  6555. else
  6556. STRIP="$ac_cv_prog_STRIP"
  6557. fi
  6558. old_CC="$CC"
  6559. old_CFLAGS="$CFLAGS"
  6560. # Set sane defaults for various variables
  6561. test -z "$AR" && AR=ar
  6562. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6563. test -z "$AS" && AS=as
  6564. test -z "$CC" && CC=cc
  6565. test -z "$LTCC" && LTCC=$CC
  6566. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6567. test -z "$LD" && LD=ld
  6568. test -z "$LN_S" && LN_S="ln -s"
  6569. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6570. test -z "$NM" && NM=nm
  6571. test -z "$SED" && SED=sed
  6572. test -z "$OBJDUMP" && OBJDUMP=objdump
  6573. test -z "$RANLIB" && RANLIB=:
  6574. test -z "$STRIP" && STRIP=:
  6575. test -z "$ac_objext" && ac_objext=o
  6576. # Determine commands to create old-style static archives.
  6577. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6578. old_postinstall_cmds='chmod 644 $oldlib'
  6579. old_postuninstall_cmds=
  6580. if test -n "$RANLIB"; then
  6581. case $host_os in
  6582. openbsd*)
  6583. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  6584. ;;
  6585. *)
  6586. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  6587. ;;
  6588. esac
  6589. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6590. fi
  6591. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  6592. # Only perform the check for file, if the check method requires it
  6593. case $deplibs_check_method in
  6594. file_magic*)
  6595. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6596. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6597. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  6598. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6599. echo $ECHO_N "(cached) $ECHO_C" >&6
  6600. else
  6601. case $MAGIC_CMD in
  6602. [\\/*] | ?:[\\/]*)
  6603. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6604. ;;
  6605. *)
  6606. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6607. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6608. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6609. for ac_dir in $ac_dummy; do
  6610. IFS="$lt_save_ifs"
  6611. test -z "$ac_dir" && ac_dir=.
  6612. if test -f $ac_dir/${ac_tool_prefix}file; then
  6613. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6614. if test -n "$file_magic_test_file"; then
  6615. case $deplibs_check_method in
  6616. "file_magic "*)
  6617. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6618. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6619. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6620. $EGREP "$file_magic_regex" > /dev/null; then
  6621. :
  6622. else
  6623. cat <<EOF 1>&2
  6624. *** Warning: the command libtool uses to detect shared libraries,
  6625. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6626. *** The result is that libtool may fail to recognize shared libraries
  6627. *** as such. This will affect the creation of libtool libraries that
  6628. *** depend on shared libraries, but programs linked with such libtool
  6629. *** libraries will work regardless of this problem. Nevertheless, you
  6630. *** may want to report the problem to your system manager and/or to
  6631. *** bug-libtool@gnu.org
  6632. EOF
  6633. fi ;;
  6634. esac
  6635. fi
  6636. break
  6637. fi
  6638. done
  6639. IFS="$lt_save_ifs"
  6640. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6641. ;;
  6642. esac
  6643. fi
  6644. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6645. if test -n "$MAGIC_CMD"; then
  6646. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6647. echo "${ECHO_T}$MAGIC_CMD" >&6
  6648. else
  6649. echo "$as_me:$LINENO: result: no" >&5
  6650. echo "${ECHO_T}no" >&6
  6651. fi
  6652. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6653. if test -n "$ac_tool_prefix"; then
  6654. echo "$as_me:$LINENO: checking for file" >&5
  6655. echo $ECHO_N "checking for file... $ECHO_C" >&6
  6656. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6657. echo $ECHO_N "(cached) $ECHO_C" >&6
  6658. else
  6659. case $MAGIC_CMD in
  6660. [\\/*] | ?:[\\/]*)
  6661. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6662. ;;
  6663. *)
  6664. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6665. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6666. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6667. for ac_dir in $ac_dummy; do
  6668. IFS="$lt_save_ifs"
  6669. test -z "$ac_dir" && ac_dir=.
  6670. if test -f $ac_dir/file; then
  6671. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6672. if test -n "$file_magic_test_file"; then
  6673. case $deplibs_check_method in
  6674. "file_magic "*)
  6675. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  6676. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6677. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6678. $EGREP "$file_magic_regex" > /dev/null; then
  6679. :
  6680. else
  6681. cat <<EOF 1>&2
  6682. *** Warning: the command libtool uses to detect shared libraries,
  6683. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6684. *** The result is that libtool may fail to recognize shared libraries
  6685. *** as such. This will affect the creation of libtool libraries that
  6686. *** depend on shared libraries, but programs linked with such libtool
  6687. *** libraries will work regardless of this problem. Nevertheless, you
  6688. *** may want to report the problem to your system manager and/or to
  6689. *** bug-libtool@gnu.org
  6690. EOF
  6691. fi ;;
  6692. esac
  6693. fi
  6694. break
  6695. fi
  6696. done
  6697. IFS="$lt_save_ifs"
  6698. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6699. ;;
  6700. esac
  6701. fi
  6702. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6703. if test -n "$MAGIC_CMD"; then
  6704. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6705. echo "${ECHO_T}$MAGIC_CMD" >&6
  6706. else
  6707. echo "$as_me:$LINENO: result: no" >&5
  6708. echo "${ECHO_T}no" >&6
  6709. fi
  6710. else
  6711. MAGIC_CMD=:
  6712. fi
  6713. fi
  6714. fi
  6715. ;;
  6716. esac
  6717. enable_dlopen=no
  6718. enable_win32_dll=no
  6719. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  6720. if test "${enable_libtool_lock+set}" = set; then
  6721. enableval="$enable_libtool_lock"
  6722. fi;
  6723. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6724. # Check whether --with-pic or --without-pic was given.
  6725. if test "${with_pic+set}" = set; then
  6726. withval="$with_pic"
  6727. pic_mode="$withval"
  6728. else
  6729. pic_mode=default
  6730. fi;
  6731. test -z "$pic_mode" && pic_mode=default
  6732. # Use C for the default configuration in the libtool script
  6733. tagname=
  6734. lt_save_CC="$CC"
  6735. ac_ext=c
  6736. ac_cpp='$CPP $CPPFLAGS'
  6737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6740. # Source file extension for C test sources.
  6741. ac_ext=c
  6742. # Object file extension for compiled C test sources.
  6743. objext=o
  6744. objext=$objext
  6745. # Code to be used in simple compile tests
  6746. lt_simple_compile_test_code="int some_variable = 0;\n"
  6747. # Code to be used in simple link tests
  6748. lt_simple_link_test_code='int main(){return(0);}\n'
  6749. # If no C compiler was specified, use CC.
  6750. LTCC=${LTCC-"$CC"}
  6751. # Allow CC to be a program name with arguments.
  6752. compiler=$CC
  6753. #
  6754. # Check for any special shared library compilation flags.
  6755. #
  6756. lt_prog_cc_shlib=
  6757. if test "$GCC" = no; then
  6758. case $host_os in
  6759. sco3.2v5*)
  6760. lt_prog_cc_shlib='-belf'
  6761. ;;
  6762. esac
  6763. fi
  6764. if test -n "$lt_prog_cc_shlib"; then
  6765. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  6766. echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  6767. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  6768. else
  6769. { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6770. echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6771. lt_cv_prog_cc_can_build_shared=no
  6772. fi
  6773. fi
  6774. #
  6775. # Check to make sure the static flag actually works.
  6776. #
  6777. echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  6778. echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  6779. if test "${lt_prog_compiler_static_works+set}" = set; then
  6780. echo $ECHO_N "(cached) $ECHO_C" >&6
  6781. else
  6782. lt_prog_compiler_static_works=no
  6783. save_LDFLAGS="$LDFLAGS"
  6784. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  6785. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6786. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6787. # The compiler can only warn and ignore the option if not recognized
  6788. # So say no if there are warnings
  6789. if test -s conftest.err; then
  6790. # Append any errors to the config.log.
  6791. cat conftest.err 1>&5
  6792. else
  6793. lt_prog_compiler_static_works=yes
  6794. fi
  6795. fi
  6796. $rm conftest*
  6797. LDFLAGS="$save_LDFLAGS"
  6798. fi
  6799. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6800. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6801. if test x"$lt_prog_compiler_static_works" = xyes; then
  6802. :
  6803. else
  6804. lt_prog_compiler_static=
  6805. fi
  6806. lt_prog_compiler_no_builtin_flag=
  6807. if test "$GCC" = yes; then
  6808. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6809. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6810. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  6811. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6812. echo $ECHO_N "(cached) $ECHO_C" >&6
  6813. else
  6814. lt_cv_prog_compiler_rtti_exceptions=no
  6815. ac_outfile=conftest.$ac_objext
  6816. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6817. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6818. # Insert the option either (1) after the last *FLAGS variable, or
  6819. # (2) before a word containing "conftest.", or (3) at the end.
  6820. # Note that $ac_compile itself does not contain backslashes and begins
  6821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6822. # The option is referenced via a variable to avoid confusing sed.
  6823. lt_compile=`echo "$ac_compile" | $SED \
  6824. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6825. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6826. -e 's:$: $lt_compiler_flag:'`
  6827. (eval echo "\"\$as_me:7510: $lt_compile\"" >&5)
  6828. (eval "$lt_compile" 2>conftest.err)
  6829. ac_status=$?
  6830. cat conftest.err >&5
  6831. echo "$as_me:7514: \$? = $ac_status" >&5
  6832. if (exit $ac_status) && test -s "$ac_outfile"; then
  6833. # The compiler can only warn and ignore the option if not recognized
  6834. # So say no if there are warnings
  6835. if test ! -s conftest.err; then
  6836. lt_cv_prog_compiler_rtti_exceptions=yes
  6837. fi
  6838. fi
  6839. $rm conftest*
  6840. fi
  6841. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6842. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  6843. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6844. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6845. else
  6846. :
  6847. fi
  6848. fi
  6849. lt_prog_compiler_wl=
  6850. lt_prog_compiler_pic=
  6851. lt_prog_compiler_static=
  6852. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6853. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  6854. if test "$GCC" = yes; then
  6855. lt_prog_compiler_wl='-Wl,'
  6856. lt_prog_compiler_static='-static'
  6857. case $host_os in
  6858. aix*)
  6859. # All AIX code is PIC.
  6860. if test "$host_cpu" = ia64; then
  6861. # AIX 5 now supports IA64 processor
  6862. lt_prog_compiler_static='-Bstatic'
  6863. fi
  6864. ;;
  6865. amigaos*)
  6866. # FIXME: we need at least 68020 code to build shared libraries, but
  6867. # adding the `-m68020' flag to GCC prevents building anything better,
  6868. # like `-m68040'.
  6869. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6870. ;;
  6871. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6872. # PIC is the default for these OSes.
  6873. ;;
  6874. mingw* | pw32* | os2*)
  6875. # This hack is so that the source file can tell whether it is being
  6876. # built for inclusion in a dll (and should export symbols for example).
  6877. lt_prog_compiler_pic='-DDLL_EXPORT'
  6878. ;;
  6879. darwin* | rhapsody*)
  6880. # PIC is the default on this platform
  6881. # Common symbols not allowed in MH_DYLIB files
  6882. lt_prog_compiler_pic='-fno-common'
  6883. ;;
  6884. msdosdjgpp*)
  6885. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6886. # on systems that don't support them.
  6887. lt_prog_compiler_can_build_shared=no
  6888. enable_shared=no
  6889. ;;
  6890. sysv4*MP*)
  6891. if test -d /usr/nec; then
  6892. lt_prog_compiler_pic=-Kconform_pic
  6893. fi
  6894. ;;
  6895. hpux*)
  6896. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6897. # not for PA HP-UX.
  6898. case "$host_cpu" in
  6899. hppa*64*|ia64*)
  6900. # +Z the default
  6901. ;;
  6902. *)
  6903. lt_prog_compiler_pic='-fPIC'
  6904. ;;
  6905. esac
  6906. ;;
  6907. *)
  6908. lt_prog_compiler_pic='-fPIC'
  6909. ;;
  6910. esac
  6911. else
  6912. # PORTME Check for flag to pass linker flags through the system compiler.
  6913. case $host_os in
  6914. aix*)
  6915. lt_prog_compiler_wl='-Wl,'
  6916. if test "$host_cpu" = ia64; then
  6917. # AIX 5 now supports IA64 processor
  6918. lt_prog_compiler_static='-Bstatic'
  6919. else
  6920. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6921. fi
  6922. ;;
  6923. darwin*)
  6924. # PIC is the default on this platform
  6925. # Common symbols not allowed in MH_DYLIB files
  6926. case "$cc_basename" in
  6927. xlc*)
  6928. lt_prog_compiler_pic='-qnocommon'
  6929. lt_prog_compiler_wl='-Wl,'
  6930. ;;
  6931. esac
  6932. ;;
  6933. mingw* | pw32* | os2*)
  6934. # This hack is so that the source file can tell whether it is being
  6935. # built for inclusion in a dll (and should export symbols for example).
  6936. lt_prog_compiler_pic='-DDLL_EXPORT'
  6937. ;;
  6938. hpux9* | hpux10* | hpux11*)
  6939. lt_prog_compiler_wl='-Wl,'
  6940. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6941. # not for PA HP-UX.
  6942. case "$host_cpu" in
  6943. hppa*64*|ia64*)
  6944. # +Z the default
  6945. ;;
  6946. *)
  6947. lt_prog_compiler_pic='+Z'
  6948. ;;
  6949. esac
  6950. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6951. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6952. ;;
  6953. irix5* | irix6* | nonstopux*)
  6954. lt_prog_compiler_wl='-Wl,'
  6955. # PIC (with -KPIC) is the default.
  6956. lt_prog_compiler_static='-non_shared'
  6957. ;;
  6958. newsos6)
  6959. lt_prog_compiler_pic='-KPIC'
  6960. lt_prog_compiler_static='-Bstatic'
  6961. ;;
  6962. linux*)
  6963. case $cc_basename in
  6964. icc* | ecc*)
  6965. lt_prog_compiler_wl='-Wl,'
  6966. lt_prog_compiler_pic='-KPIC'
  6967. lt_prog_compiler_static='-static'
  6968. ;;
  6969. pgcc | pgf77 | pgf90)
  6970. # Portland Group compilers (*not* the Pentium gcc compiler,
  6971. # which looks to be a dead project)
  6972. lt_prog_compiler_wl='-Wl,'
  6973. lt_prog_compiler_pic='-fpic'
  6974. lt_prog_compiler_static='-static'
  6975. ;;
  6976. ccc*)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. # All Alpha code is PIC.
  6979. lt_prog_compiler_static='-non_shared'
  6980. ;;
  6981. esac
  6982. ;;
  6983. osf3* | osf4* | osf5*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # All OSF/1 code is PIC.
  6986. lt_prog_compiler_static='-non_shared'
  6987. ;;
  6988. sco3.2v5*)
  6989. lt_prog_compiler_pic='-Kpic'
  6990. lt_prog_compiler_static='-dn'
  6991. ;;
  6992. solaris*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. lt_prog_compiler_pic='-KPIC'
  6995. lt_prog_compiler_static='-Bstatic'
  6996. ;;
  6997. sunos4*)
  6998. lt_prog_compiler_wl='-Qoption ld '
  6999. lt_prog_compiler_pic='-PIC'
  7000. lt_prog_compiler_static='-Bstatic'
  7001. ;;
  7002. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7003. lt_prog_compiler_wl='-Wl,'
  7004. lt_prog_compiler_pic='-KPIC'
  7005. lt_prog_compiler_static='-Bstatic'
  7006. ;;
  7007. sysv4*MP*)
  7008. if test -d /usr/nec ;then
  7009. lt_prog_compiler_pic='-Kconform_pic'
  7010. lt_prog_compiler_static='-Bstatic'
  7011. fi
  7012. ;;
  7013. unicos*)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. lt_prog_compiler_can_build_shared=no
  7016. ;;
  7017. uts4*)
  7018. lt_prog_compiler_pic='-pic'
  7019. lt_prog_compiler_static='-Bstatic'
  7020. ;;
  7021. *)
  7022. lt_prog_compiler_can_build_shared=no
  7023. ;;
  7024. esac
  7025. fi
  7026. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7027. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  7028. #
  7029. # Check to make sure the PIC flag actually works.
  7030. #
  7031. if test -n "$lt_prog_compiler_pic"; then
  7032. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7033. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  7034. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7035. echo $ECHO_N "(cached) $ECHO_C" >&6
  7036. else
  7037. lt_prog_compiler_pic_works=no
  7038. ac_outfile=conftest.$ac_objext
  7039. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7040. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7041. # Insert the option either (1) after the last *FLAGS variable, or
  7042. # (2) before a word containing "conftest.", or (3) at the end.
  7043. # Note that $ac_compile itself does not contain backslashes and begins
  7044. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7045. # The option is referenced via a variable to avoid confusing sed.
  7046. lt_compile=`echo "$ac_compile" | $SED \
  7047. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7048. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7049. -e 's:$: $lt_compiler_flag:'`
  7050. (eval echo "\"\$as_me:7765: $lt_compile\"" >&5)
  7051. (eval "$lt_compile" 2>conftest.err)
  7052. ac_status=$?
  7053. cat conftest.err >&5
  7054. echo "$as_me:7769: \$? = $ac_status" >&5
  7055. if (exit $ac_status) && test -s "$ac_outfile"; then
  7056. # The compiler can only warn and ignore the option if not recognized
  7057. # So say no if there are warnings
  7058. if test ! -s conftest.err; then
  7059. lt_prog_compiler_pic_works=yes
  7060. fi
  7061. fi
  7062. $rm conftest*
  7063. fi
  7064. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7065. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  7066. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7067. case $lt_prog_compiler_pic in
  7068. "" | " "*) ;;
  7069. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7070. esac
  7071. else
  7072. lt_prog_compiler_pic=
  7073. lt_prog_compiler_can_build_shared=no
  7074. fi
  7075. fi
  7076. case "$host_os" in
  7077. # For platforms which do not support PIC, -DPIC is meaningless:
  7078. *djgpp*)
  7079. lt_prog_compiler_pic=
  7080. ;;
  7081. *)
  7082. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7083. ;;
  7084. esac
  7085. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7086. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  7087. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7088. echo $ECHO_N "(cached) $ECHO_C" >&6
  7089. else
  7090. lt_cv_prog_compiler_c_o=no
  7091. $rm -r conftest 2>/dev/null
  7092. mkdir conftest
  7093. cd conftest
  7094. mkdir out
  7095. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7096. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7097. # Insert the option either (1) after the last *FLAGS variable, or
  7098. # (2) before a word containing "conftest.", or (3) at the end.
  7099. # Note that $ac_compile itself does not contain backslashes and begins
  7100. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7101. lt_compile=`echo "$ac_compile" | $SED \
  7102. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  7103. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7104. -e 's:$: $lt_compiler_flag:'`
  7105. (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
  7106. (eval "$lt_compile" 2>out/conftest.err)
  7107. ac_status=$?
  7108. cat out/conftest.err >&5
  7109. echo "$as_me:7829: \$? = $ac_status" >&5
  7110. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7111. then
  7112. # The compiler can only warn and ignore the option if not recognized
  7113. # So say no if there are warnings
  7114. if test ! -s out/conftest.err; then
  7115. lt_cv_prog_compiler_c_o=yes
  7116. fi
  7117. fi
  7118. chmod u+w .
  7119. $rm conftest*
  7120. # SGI C++ compiler will create directory out/ii_files/ for
  7121. # template instantiation
  7122. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7123. $rm out/* && rmdir out
  7124. cd ..
  7125. rmdir conftest
  7126. $rm conftest*
  7127. fi
  7128. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7129. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  7130. hard_links="nottested"
  7131. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7132. # do not overwrite the value of need_locks provided by the user
  7133. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7134. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  7135. hard_links=yes
  7136. $rm conftest*
  7137. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7138. touch conftest.a
  7139. ln conftest.a conftest.b 2>&5 || hard_links=no
  7140. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7141. echo "$as_me:$LINENO: result: $hard_links" >&5
  7142. echo "${ECHO_T}$hard_links" >&6
  7143. if test "$hard_links" = no; then
  7144. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7145. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7146. need_locks=warn
  7147. fi
  7148. else
  7149. need_locks=no
  7150. fi
  7151. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7152. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  7153. runpath_var=
  7154. allow_undefined_flag=
  7155. enable_shared_with_static_runtimes=no
  7156. archive_cmds=
  7157. archive_expsym_cmds=
  7158. old_archive_From_new_cmds=
  7159. old_archive_from_expsyms_cmds=
  7160. export_dynamic_flag_spec=
  7161. whole_archive_flag_spec=
  7162. thread_safe_flag_spec=
  7163. hardcode_libdir_flag_spec=
  7164. hardcode_libdir_flag_spec_ld=
  7165. hardcode_libdir_separator=
  7166. hardcode_direct=no
  7167. hardcode_minus_L=no
  7168. hardcode_shlibpath_var=unsupported
  7169. link_all_deplibs=unknown
  7170. hardcode_automatic=no
  7171. module_cmds=
  7172. module_expsym_cmds=
  7173. always_export_symbols=no
  7174. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7175. # include_expsyms should be a list of space-separated symbols to be *always*
  7176. # included in the symbol list
  7177. include_expsyms=
  7178. # exclude_expsyms can be an extended regexp of symbols to exclude
  7179. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7180. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7181. # as well as any symbol that contains `d'.
  7182. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7183. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7184. # platforms (ab)use it in PIC code, but their linkers get confused if
  7185. # the symbol is explicitly referenced. Since portable code cannot
  7186. # rely on this symbol name, it's probably fine to never include it in
  7187. # preloaded symbol tables.
  7188. extract_expsyms_cmds=
  7189. case $host_os in
  7190. cygwin* | mingw* | pw32*)
  7191. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7192. # When not using gcc, we currently assume that we are using
  7193. # Microsoft Visual C++.
  7194. if test "$GCC" != yes; then
  7195. with_gnu_ld=no
  7196. fi
  7197. ;;
  7198. openbsd*)
  7199. with_gnu_ld=no
  7200. ;;
  7201. esac
  7202. ld_shlibs=yes
  7203. if test "$with_gnu_ld" = yes; then
  7204. # If archive_cmds runs LD, not CC, wlarc should be empty
  7205. wlarc='${wl}'
  7206. # See if GNU ld supports shared libraries.
  7207. case $host_os in
  7208. aix3* | aix4* | aix5*)
  7209. # On AIX/PPC, the GNU linker is very broken
  7210. if test "$host_cpu" != ia64; then
  7211. ld_shlibs=no
  7212. cat <<EOF 1>&2
  7213. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7214. *** to be unable to reliably create shared libraries on AIX.
  7215. *** Therefore, libtool is disabling shared libraries support. If you
  7216. *** really care for shared libraries, you may want to modify your PATH
  7217. *** so that a non-GNU linker is found, and then restart.
  7218. EOF
  7219. fi
  7220. ;;
  7221. amigaos*)
  7222. 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)'
  7223. hardcode_libdir_flag_spec='-L$libdir'
  7224. hardcode_minus_L=yes
  7225. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7226. # that the semantics of dynamic libraries on AmigaOS, at least up
  7227. # to version 4, is to share data among multiple programs linked
  7228. # with the same dynamic library. Since this doesn't match the
  7229. # behavior of shared libraries on other platforms, we can't use
  7230. # them.
  7231. ld_shlibs=no
  7232. ;;
  7233. beos*)
  7234. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7235. allow_undefined_flag=unsupported
  7236. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7237. # support --undefined. This deserves some investigation. FIXME
  7238. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7239. else
  7240. ld_shlibs=no
  7241. fi
  7242. ;;
  7243. cygwin* | mingw* | pw32*)
  7244. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7245. # as there is no search path for DLLs.
  7246. hardcode_libdir_flag_spec='-L$libdir'
  7247. allow_undefined_flag=unsupported
  7248. always_export_symbols=no
  7249. enable_shared_with_static_runtimes=yes
  7250. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7251. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7252. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7253. # If the export-symbols file already is a .def file (1st line
  7254. # is EXPORTS), use it as is; otherwise, prepend...
  7255. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7256. cp $export_symbols $output_objdir/$soname.def;
  7257. else
  7258. echo EXPORTS > $output_objdir/$soname.def;
  7259. cat $export_symbols >> $output_objdir/$soname.def;
  7260. fi~
  7261. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7262. else
  7263. ld_shlibs=no
  7264. fi
  7265. ;;
  7266. netbsd*)
  7267. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7268. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7269. wlarc=
  7270. else
  7271. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7272. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7273. fi
  7274. ;;
  7275. solaris* | sysv5*)
  7276. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7277. ld_shlibs=no
  7278. cat <<EOF 1>&2
  7279. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7280. *** create shared libraries on Solaris systems. Therefore, libtool
  7281. *** is disabling shared libraries support. We urge you to upgrade GNU
  7282. *** binutils to release 2.9.1 or newer. Another option is to modify
  7283. *** your PATH or compiler configuration so that the native linker is
  7284. *** used, and then restart.
  7285. EOF
  7286. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7287. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7288. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7289. else
  7290. ld_shlibs=no
  7291. fi
  7292. ;;
  7293. sunos4*)
  7294. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7295. wlarc=
  7296. hardcode_direct=yes
  7297. hardcode_shlibpath_var=no
  7298. ;;
  7299. linux*)
  7300. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7301. tmp_addflag=
  7302. case $CC,$host_cpu in
  7303. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  7304. tmp_addflag=' -fpic' ;;
  7305. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7306. tmp_addflag=' -i_dynamic' ;;
  7307. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7308. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7309. ifc* | ifort*) # Intel Fortran compiler
  7310. tmp_addflag=' -nofor_main' ;;
  7311. esac
  7312. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7313. supports_anon_versioning=no
  7314. case `$LD -v 2>/dev/null` in
  7315. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7316. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7317. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7318. *\ 2.11.*) ;; # other 2.11 versions
  7319. *) supports_anon_versioning=yes ;;
  7320. esac
  7321. if test $supports_anon_versioning = yes; then
  7322. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7323. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7324. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7325. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7326. else
  7327. archive_expsym_cmds=$archive_cmds
  7328. fi
  7329. else
  7330. ld_shlibs=no
  7331. fi
  7332. ;;
  7333. *)
  7334. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7335. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7336. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7337. else
  7338. ld_shlibs=no
  7339. fi
  7340. ;;
  7341. esac
  7342. if test "$ld_shlibs" = yes; then
  7343. runpath_var=LD_RUN_PATH
  7344. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7345. export_dynamic_flag_spec='${wl}--export-dynamic'
  7346. # ancient GNU ld didn't support --whole-archive et. al.
  7347. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7348. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7349. else
  7350. whole_archive_flag_spec=
  7351. fi
  7352. fi
  7353. else
  7354. # PORTME fill in a description of your system's linker (not GNU ld)
  7355. case $host_os in
  7356. aix3*)
  7357. allow_undefined_flag=unsupported
  7358. always_export_symbols=yes
  7359. 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'
  7360. # Note: this linker hardcodes the directories in LIBPATH if there
  7361. # are no directories specified by -L.
  7362. hardcode_minus_L=yes
  7363. if test "$GCC" = yes && test -z "$link_static_flag"; then
  7364. # Neither direct hardcoding nor static linking is supported with a
  7365. # broken collect2.
  7366. hardcode_direct=unsupported
  7367. fi
  7368. ;;
  7369. aix4* | aix5*)
  7370. if test "$host_cpu" = ia64; then
  7371. # On IA64, the linker does run time linking by default, so we don't
  7372. # have to do anything special.
  7373. aix_use_runtimelinking=no
  7374. exp_sym_flag='-Bexport'
  7375. no_entry_flag=""
  7376. else
  7377. # If we're using GNU nm, then we don't want the "-C" option.
  7378. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7379. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7380. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7381. else
  7382. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7383. fi
  7384. aix_use_runtimelinking=no
  7385. # Test if we are trying to use run time linking or normal
  7386. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7387. # need to do runtime linking.
  7388. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7389. for ld_flag in $LDFLAGS; do
  7390. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7391. aix_use_runtimelinking=yes
  7392. break
  7393. fi
  7394. done
  7395. esac
  7396. exp_sym_flag='-bexport'
  7397. no_entry_flag='-bnoentry'
  7398. fi
  7399. # When large executables or shared objects are built, AIX ld can
  7400. # have problems creating the table of contents. If linking a library
  7401. # or program results in "error TOC overflow" add -mminimal-toc to
  7402. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7403. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7404. archive_cmds=''
  7405. hardcode_direct=yes
  7406. hardcode_libdir_separator=':'
  7407. link_all_deplibs=yes
  7408. if test "$GCC" = yes; then
  7409. case $host_os in aix4.[012]|aix4.[012].*)
  7410. # We only want to do this on AIX 4.2 and lower, the check
  7411. # below for broken collect2 doesn't work under 4.3+
  7412. collect2name=`${CC} -print-prog-name=collect2`
  7413. if test -f "$collect2name" && \
  7414. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7415. then
  7416. # We have reworked collect2
  7417. hardcode_direct=yes
  7418. else
  7419. # We have old collect2
  7420. hardcode_direct=unsupported
  7421. # It fails to find uninstalled libraries when the uninstalled
  7422. # path is not listed in the libpath. Setting hardcode_minus_L
  7423. # to unsupported forces relinking
  7424. hardcode_minus_L=yes
  7425. hardcode_libdir_flag_spec='-L$libdir'
  7426. hardcode_libdir_separator=
  7427. fi
  7428. esac
  7429. shared_flag='-shared'
  7430. if test "$aix_use_runtimelinking" = yes; then
  7431. shared_flag="$shared_flag "'${wl}-G'
  7432. fi
  7433. else
  7434. # not using gcc
  7435. if test "$host_cpu" = ia64; then
  7436. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7437. # chokes on -Wl,-G. The following line is correct:
  7438. shared_flag='-G'
  7439. else
  7440. if test "$aix_use_runtimelinking" = yes; then
  7441. shared_flag='${wl}-G'
  7442. else
  7443. shared_flag='${wl}-bM:SRE'
  7444. fi
  7445. fi
  7446. fi
  7447. # It seems that -bexpall does not export symbols beginning with
  7448. # underscore (_), so it is better to generate a list of symbols to export.
  7449. always_export_symbols=yes
  7450. if test "$aix_use_runtimelinking" = yes; then
  7451. # Warning - without using the other runtime loading flags (-brtl),
  7452. # -berok will link without error, but may produce a broken library.
  7453. allow_undefined_flag='-berok'
  7454. # Determine the default libpath from the value encoded in an empty executable.
  7455. cat >conftest.$ac_ext <<_ACEOF
  7456. /* confdefs.h. */
  7457. _ACEOF
  7458. cat confdefs.h >>conftest.$ac_ext
  7459. cat >>conftest.$ac_ext <<_ACEOF
  7460. /* end confdefs.h. */
  7461. int
  7462. main ()
  7463. {
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. rm -f conftest.$ac_objext conftest$ac_exeext
  7469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7470. (eval $ac_link) 2>conftest.er1
  7471. ac_status=$?
  7472. grep -v '^ *+' conftest.er1 >conftest.err
  7473. rm -f conftest.er1
  7474. cat conftest.err >&5
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); } &&
  7477. { ac_try='test -z "$ac_c_werror_flag"
  7478. || test ! -s conftest.err'
  7479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. (eval $ac_try) 2>&5
  7481. ac_status=$?
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); }; } &&
  7484. { ac_try='test -s conftest$ac_exeext'
  7485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7486. (eval $ac_try) 2>&5
  7487. ac_status=$?
  7488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7489. (exit $ac_status); }; }; then
  7490. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7491. }'`
  7492. # Check for a 64-bit object if we didn't find anything.
  7493. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7494. }'`; fi
  7495. else
  7496. echo "$as_me: failed program was:" >&5
  7497. sed 's/^/| /' conftest.$ac_ext >&5
  7498. fi
  7499. rm -f conftest.err conftest.$ac_objext \
  7500. conftest$ac_exeext conftest.$ac_ext
  7501. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7502. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7503. 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"
  7504. else
  7505. if test "$host_cpu" = ia64; then
  7506. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7507. allow_undefined_flag="-z nodefs"
  7508. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  7509. else
  7510. # Determine the default libpath from the value encoded in an empty executable.
  7511. cat >conftest.$ac_ext <<_ACEOF
  7512. /* confdefs.h. */
  7513. _ACEOF
  7514. cat confdefs.h >>conftest.$ac_ext
  7515. cat >>conftest.$ac_ext <<_ACEOF
  7516. /* end confdefs.h. */
  7517. int
  7518. main ()
  7519. {
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. rm -f conftest.$ac_objext conftest$ac_exeext
  7525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7526. (eval $ac_link) 2>conftest.er1
  7527. ac_status=$?
  7528. grep -v '^ *+' conftest.er1 >conftest.err
  7529. rm -f conftest.er1
  7530. cat conftest.err >&5
  7531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. (exit $ac_status); } &&
  7533. { ac_try='test -z "$ac_c_werror_flag"
  7534. || test ! -s conftest.err'
  7535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7536. (eval $ac_try) 2>&5
  7537. ac_status=$?
  7538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7539. (exit $ac_status); }; } &&
  7540. { ac_try='test -s conftest$ac_exeext'
  7541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7542. (eval $ac_try) 2>&5
  7543. ac_status=$?
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); }; }; then
  7546. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7547. }'`
  7548. # Check for a 64-bit object if we didn't find anything.
  7549. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7550. }'`; fi
  7551. else
  7552. echo "$as_me: failed program was:" >&5
  7553. sed 's/^/| /' conftest.$ac_ext >&5
  7554. fi
  7555. rm -f conftest.err conftest.$ac_objext \
  7556. conftest$ac_exeext conftest.$ac_ext
  7557. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7558. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7559. # Warning - without using the other run time loading flags,
  7560. # -berok will link without error, but may produce a broken library.
  7561. no_undefined_flag=' ${wl}-bernotok'
  7562. allow_undefined_flag=' ${wl}-berok'
  7563. # -bexpall does not export symbols beginning with underscore (_)
  7564. always_export_symbols=yes
  7565. # Exported symbols can be pulled into shared objects from archives
  7566. whole_archive_flag_spec=' '
  7567. archive_cmds_need_lc=yes
  7568. # This is similar to how AIX traditionally builds it's shared libraries.
  7569. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7570. fi
  7571. fi
  7572. ;;
  7573. amigaos*)
  7574. 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)'
  7575. hardcode_libdir_flag_spec='-L$libdir'
  7576. hardcode_minus_L=yes
  7577. # see comment about different semantics on the GNU ld section
  7578. ld_shlibs=no
  7579. ;;
  7580. bsdi[45]*)
  7581. export_dynamic_flag_spec=-rdynamic
  7582. ;;
  7583. cygwin* | mingw* | pw32*)
  7584. # When not using gcc, we currently assume that we are using
  7585. # Microsoft Visual C++.
  7586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7587. # no search path for DLLs.
  7588. hardcode_libdir_flag_spec=' '
  7589. allow_undefined_flag=unsupported
  7590. # Tell ltmain to make .lib files, not .a files.
  7591. libext=lib
  7592. # Tell ltmain to make .dll files, not .so files.
  7593. shrext_cmds=".dll"
  7594. # FIXME: Setting linknames here is a bad hack.
  7595. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7596. # The linker will automatically build a .lib file if we build a DLL.
  7597. old_archive_From_new_cmds='true'
  7598. # FIXME: Should let the user specify the lib program.
  7599. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7600. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7601. enable_shared_with_static_runtimes=yes
  7602. ;;
  7603. darwin* | rhapsody*)
  7604. case "$host_os" in
  7605. rhapsody* | darwin1.[012])
  7606. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7607. ;;
  7608. *) # Darwin 1.3 on
  7609. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7610. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7611. else
  7612. case ${MACOSX_DEPLOYMENT_TARGET} in
  7613. 10.[012])
  7614. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7615. ;;
  7616. 10.*)
  7617. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7618. ;;
  7619. esac
  7620. fi
  7621. ;;
  7622. esac
  7623. archive_cmds_need_lc=no
  7624. hardcode_direct=no
  7625. hardcode_automatic=yes
  7626. hardcode_shlibpath_var=unsupported
  7627. whole_archive_flag_spec=''
  7628. link_all_deplibs=yes
  7629. if test "$GCC" = yes ; then
  7630. output_verbose_link_cmd='echo'
  7631. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7632. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7633. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7634. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7635. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7636. else
  7637. case "$cc_basename" in
  7638. xlc*)
  7639. output_verbose_link_cmd='echo'
  7640. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7641. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7642. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  7643. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7644. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7645. ;;
  7646. *)
  7647. ld_shlibs=no
  7648. ;;
  7649. esac
  7650. fi
  7651. ;;
  7652. dgux*)
  7653. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7654. hardcode_libdir_flag_spec='-L$libdir'
  7655. hardcode_shlibpath_var=no
  7656. ;;
  7657. freebsd1*)
  7658. ld_shlibs=no
  7659. ;;
  7660. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7661. # support. Future versions do this automatically, but an explicit c++rt0.o
  7662. # does not break anything, and helps significantly (at the cost of a little
  7663. # extra space).
  7664. freebsd2.2*)
  7665. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7666. hardcode_libdir_flag_spec='-R$libdir'
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. ;;
  7670. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7671. freebsd2*)
  7672. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7673. hardcode_direct=yes
  7674. hardcode_minus_L=yes
  7675. hardcode_shlibpath_var=no
  7676. ;;
  7677. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7678. freebsd* | kfreebsd*-gnu | dragonfly*)
  7679. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7680. hardcode_libdir_flag_spec='-R$libdir'
  7681. hardcode_direct=yes
  7682. hardcode_shlibpath_var=no
  7683. ;;
  7684. hpux9*)
  7685. if test "$GCC" = yes; then
  7686. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7687. else
  7688. 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'
  7689. fi
  7690. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7691. hardcode_libdir_separator=:
  7692. hardcode_direct=yes
  7693. # hardcode_minus_L: Not really in the search PATH,
  7694. # but as the default location of the library.
  7695. hardcode_minus_L=yes
  7696. export_dynamic_flag_spec='${wl}-E'
  7697. ;;
  7698. hpux10* | hpux11*)
  7699. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7700. case "$host_cpu" in
  7701. hppa*64*|ia64*)
  7702. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7703. ;;
  7704. *)
  7705. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7706. ;;
  7707. esac
  7708. else
  7709. case "$host_cpu" in
  7710. hppa*64*|ia64*)
  7711. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  7712. ;;
  7713. *)
  7714. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7715. ;;
  7716. esac
  7717. fi
  7718. if test "$with_gnu_ld" = no; then
  7719. case "$host_cpu" in
  7720. hppa*64*)
  7721. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7722. hardcode_libdir_flag_spec_ld='+b $libdir'
  7723. hardcode_libdir_separator=:
  7724. hardcode_direct=no
  7725. hardcode_shlibpath_var=no
  7726. ;;
  7727. ia64*)
  7728. hardcode_libdir_flag_spec='-L$libdir'
  7729. hardcode_direct=no
  7730. hardcode_shlibpath_var=no
  7731. # hardcode_minus_L: Not really in the search PATH,
  7732. # but as the default location of the library.
  7733. hardcode_minus_L=yes
  7734. ;;
  7735. *)
  7736. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7737. hardcode_libdir_separator=:
  7738. hardcode_direct=yes
  7739. export_dynamic_flag_spec='${wl}-E'
  7740. # hardcode_minus_L: Not really in the search PATH,
  7741. # but as the default location of the library.
  7742. hardcode_minus_L=yes
  7743. ;;
  7744. esac
  7745. fi
  7746. ;;
  7747. irix5* | irix6* | nonstopux*)
  7748. if test "$GCC" = yes; then
  7749. 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'
  7750. else
  7751. 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'
  7752. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7753. fi
  7754. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7755. hardcode_libdir_separator=:
  7756. link_all_deplibs=yes
  7757. ;;
  7758. netbsd*)
  7759. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7760. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7761. else
  7762. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7763. fi
  7764. hardcode_libdir_flag_spec='-R$libdir'
  7765. hardcode_direct=yes
  7766. hardcode_shlibpath_var=no
  7767. ;;
  7768. newsos6)
  7769. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7770. hardcode_direct=yes
  7771. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7772. hardcode_libdir_separator=:
  7773. hardcode_shlibpath_var=no
  7774. ;;
  7775. openbsd*)
  7776. hardcode_direct=yes
  7777. hardcode_shlibpath_var=no
  7778. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7779. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7780. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7781. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7782. export_dynamic_flag_spec='${wl}-E'
  7783. else
  7784. case $host_os in
  7785. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7786. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7787. hardcode_libdir_flag_spec='-R$libdir'
  7788. ;;
  7789. *)
  7790. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7791. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7792. ;;
  7793. esac
  7794. fi
  7795. ;;
  7796. os2*)
  7797. hardcode_libdir_flag_spec='-L$libdir'
  7798. hardcode_minus_L=yes
  7799. allow_undefined_flag=unsupported
  7800. 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'
  7801. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7802. ;;
  7803. osf3*)
  7804. if test "$GCC" = yes; then
  7805. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7806. 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'
  7807. else
  7808. allow_undefined_flag=' -expect_unresolved \*'
  7809. 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'
  7810. fi
  7811. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7812. hardcode_libdir_separator=:
  7813. ;;
  7814. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7815. if test "$GCC" = yes; then
  7816. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7817. 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'
  7818. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7819. else
  7820. allow_undefined_flag=' -expect_unresolved \*'
  7821. 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'
  7822. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7823. $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'
  7824. # Both c and cxx compiler support -rpath directly
  7825. hardcode_libdir_flag_spec='-rpath $libdir'
  7826. fi
  7827. hardcode_libdir_separator=:
  7828. ;;
  7829. sco3.2v5*)
  7830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7831. hardcode_shlibpath_var=no
  7832. export_dynamic_flag_spec='${wl}-Bexport'
  7833. runpath_var=LD_RUN_PATH
  7834. hardcode_runpath_var=yes
  7835. ;;
  7836. solaris*)
  7837. no_undefined_flag=' -z text'
  7838. if test "$GCC" = yes; then
  7839. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7840. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7841. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7842. else
  7843. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7844. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7845. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7846. fi
  7847. hardcode_libdir_flag_spec='-R$libdir'
  7848. hardcode_shlibpath_var=no
  7849. case $host_os in
  7850. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7851. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  7852. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  7853. esac
  7854. link_all_deplibs=yes
  7855. ;;
  7856. sunos4*)
  7857. if test "x$host_vendor" = xsequent; then
  7858. # Use $CC to link under sequent, because it throws in some extra .o
  7859. # files that make .init and .fini sections work.
  7860. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7861. else
  7862. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7863. fi
  7864. hardcode_libdir_flag_spec='-L$libdir'
  7865. hardcode_direct=yes
  7866. hardcode_minus_L=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. sysv4)
  7870. case $host_vendor in
  7871. sni)
  7872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7873. hardcode_direct=yes # is this really true???
  7874. ;;
  7875. siemens)
  7876. ## LD is ld it makes a PLAMLIB
  7877. ## CC just makes a GrossModule.
  7878. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7879. reload_cmds='$CC -r -o $output$reload_objs'
  7880. hardcode_direct=no
  7881. ;;
  7882. motorola)
  7883. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7884. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7885. ;;
  7886. esac
  7887. runpath_var='LD_RUN_PATH'
  7888. hardcode_shlibpath_var=no
  7889. ;;
  7890. sysv4.3*)
  7891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7892. hardcode_shlibpath_var=no
  7893. export_dynamic_flag_spec='-Bexport'
  7894. ;;
  7895. sysv4*MP*)
  7896. if test -d /usr/nec; then
  7897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7898. hardcode_shlibpath_var=no
  7899. runpath_var=LD_RUN_PATH
  7900. hardcode_runpath_var=yes
  7901. ld_shlibs=yes
  7902. fi
  7903. ;;
  7904. sysv4.2uw2*)
  7905. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7906. hardcode_direct=yes
  7907. hardcode_minus_L=no
  7908. hardcode_shlibpath_var=no
  7909. hardcode_runpath_var=yes
  7910. runpath_var=LD_RUN_PATH
  7911. ;;
  7912. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  7913. no_undefined_flag='${wl}-z ${wl}text'
  7914. if test "$GCC" = yes; then
  7915. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7916. else
  7917. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7918. fi
  7919. runpath_var='LD_RUN_PATH'
  7920. hardcode_shlibpath_var=no
  7921. ;;
  7922. sysv5*)
  7923. no_undefined_flag=' -z text'
  7924. # $CC -shared without GNU ld will not create a library from C++
  7925. # object files and a static libstdc++, better avoid it by now
  7926. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7927. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7928. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7929. hardcode_libdir_flag_spec=
  7930. hardcode_shlibpath_var=no
  7931. runpath_var='LD_RUN_PATH'
  7932. ;;
  7933. uts4*)
  7934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7935. hardcode_libdir_flag_spec='-L$libdir'
  7936. hardcode_shlibpath_var=no
  7937. ;;
  7938. *)
  7939. ld_shlibs=no
  7940. ;;
  7941. esac
  7942. fi
  7943. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7944. echo "${ECHO_T}$ld_shlibs" >&6
  7945. test "$ld_shlibs" = no && can_build_shared=no
  7946. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7947. if test "$GCC" = yes; then
  7948. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7949. fi
  7950. #
  7951. # Do we need to explicitly link libc?
  7952. #
  7953. case "x$archive_cmds_need_lc" in
  7954. x|xyes)
  7955. # Assume -lc should be added
  7956. archive_cmds_need_lc=yes
  7957. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7958. case $archive_cmds in
  7959. *'~'*)
  7960. # FIXME: we may have to deal with multi-command sequences.
  7961. ;;
  7962. '$CC '*)
  7963. # Test whether the compiler implicitly links with -lc since on some
  7964. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7965. # to ld, don't add -lc before -lgcc.
  7966. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7967. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7968. $rm conftest*
  7969. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7971. (eval $ac_compile) 2>&5
  7972. ac_status=$?
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. (exit $ac_status); } 2>conftest.err; then
  7975. soname=conftest
  7976. lib=conftest
  7977. libobjs=conftest.$ac_objext
  7978. deplibs=
  7979. wl=$lt_prog_compiler_wl
  7980. compiler_flags=-v
  7981. linker_flags=-v
  7982. verstring=
  7983. output_objdir=.
  7984. libname=conftest
  7985. lt_save_allow_undefined_flag=$allow_undefined_flag
  7986. allow_undefined_flag=
  7987. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7988. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }
  7992. then
  7993. archive_cmds_need_lc=no
  7994. else
  7995. archive_cmds_need_lc=yes
  7996. fi
  7997. allow_undefined_flag=$lt_save_allow_undefined_flag
  7998. else
  7999. cat conftest.err 1>&5
  8000. fi
  8001. $rm conftest*
  8002. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8003. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  8004. ;;
  8005. esac
  8006. fi
  8007. ;;
  8008. esac
  8009. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8010. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  8011. library_names_spec=
  8012. libname_spec='lib$name'
  8013. soname_spec=
  8014. shrext_cmds=".so"
  8015. postinstall_cmds=
  8016. postuninstall_cmds=
  8017. finish_cmds=
  8018. finish_eval=
  8019. shlibpath_var=
  8020. shlibpath_overrides_runpath=unknown
  8021. version_type=none
  8022. dynamic_linker="$host_os ld.so"
  8023. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8024. if test "$GCC" = yes; then
  8025. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8026. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  8027. # if the path contains ";" then we assume it to be the separator
  8028. # otherwise default to the standard path separator (i.e. ":") - it is
  8029. # assumed that no part of a normal pathname contains ";" but that should
  8030. # okay in the real world where ";" in dirpaths is itself problematic.
  8031. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8032. else
  8033. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8034. fi
  8035. else
  8036. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8037. fi
  8038. need_lib_prefix=unknown
  8039. hardcode_into_libs=no
  8040. # when you set need_version to no, make sure it does not cause -set_version
  8041. # flags to be left without arguments
  8042. need_version=unknown
  8043. case $host_os in
  8044. aix3*)
  8045. version_type=linux
  8046. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8047. shlibpath_var=LIBPATH
  8048. # AIX 3 has no versioning support, so we append a major version to the name.
  8049. soname_spec='${libname}${release}${shared_ext}$major'
  8050. ;;
  8051. aix4* | aix5*)
  8052. version_type=linux
  8053. need_lib_prefix=no
  8054. need_version=no
  8055. hardcode_into_libs=yes
  8056. if test "$host_cpu" = ia64; then
  8057. # AIX 5 supports IA64
  8058. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8059. shlibpath_var=LD_LIBRARY_PATH
  8060. else
  8061. # With GCC up to 2.95.x, collect2 would create an import file
  8062. # for dependence libraries. The import file would start with
  8063. # the line `#! .'. This would cause the generated library to
  8064. # depend on `.', always an invalid library. This was fixed in
  8065. # development snapshots of GCC prior to 3.0.
  8066. case $host_os in
  8067. aix4 | aix4.[01] | aix4.[01].*)
  8068. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8069. echo ' yes '
  8070. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8071. :
  8072. else
  8073. can_build_shared=no
  8074. fi
  8075. ;;
  8076. esac
  8077. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8078. # soname into executable. Probably we can add versioning support to
  8079. # collect2, so additional links can be useful in future.
  8080. if test "$aix_use_runtimelinking" = yes; then
  8081. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8082. # instead of lib<name>.a to let people know that these are not
  8083. # typical AIX shared libraries.
  8084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8085. else
  8086. # We preserve .a as extension for shared libraries through AIX4.2
  8087. # and later when we are not doing run time linking.
  8088. library_names_spec='${libname}${release}.a $libname.a'
  8089. soname_spec='${libname}${release}${shared_ext}$major'
  8090. fi
  8091. shlibpath_var=LIBPATH
  8092. fi
  8093. ;;
  8094. amigaos*)
  8095. library_names_spec='$libname.ixlibrary $libname.a'
  8096. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8097. 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'
  8098. ;;
  8099. beos*)
  8100. library_names_spec='${libname}${shared_ext}'
  8101. dynamic_linker="$host_os ld.so"
  8102. shlibpath_var=LIBRARY_PATH
  8103. ;;
  8104. bsdi[45]*)
  8105. version_type=linux
  8106. need_version=no
  8107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8108. soname_spec='${libname}${release}${shared_ext}$major'
  8109. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8110. shlibpath_var=LD_LIBRARY_PATH
  8111. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8112. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8113. # the default ld.so.conf also contains /usr/contrib/lib and
  8114. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8115. # libtool to hard-code these into programs
  8116. ;;
  8117. cygwin* | mingw* | pw32*)
  8118. version_type=windows
  8119. shrext_cmds=".dll"
  8120. need_version=no
  8121. need_lib_prefix=no
  8122. case $GCC,$host_os in
  8123. yes,cygwin* | yes,mingw* | yes,pw32*)
  8124. library_names_spec='$libname.dll.a'
  8125. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8126. postinstall_cmds='base_file=`basename \${file}`~
  8127. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8128. dldir=$destdir/`dirname \$dlpath`~
  8129. test -d \$dldir || mkdir -p \$dldir~
  8130. $install_prog $dir/$dlname \$dldir/$dlname'
  8131. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8132. dlpath=$dir/\$dldll~
  8133. $rm \$dlpath'
  8134. shlibpath_overrides_runpath=yes
  8135. case $host_os in
  8136. cygwin*)
  8137. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8138. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8139. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8140. ;;
  8141. mingw*)
  8142. # MinGW DLLs use traditional 'lib' prefix
  8143. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8144. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8145. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8146. # It is most probably a Windows format PATH printed by
  8147. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8148. # path with ; separators, and with drive letters. We can handle the
  8149. # drive letters (cygwin fileutils understands them), so leave them,
  8150. # especially as we might pass files found there to a mingw objdump,
  8151. # which wouldn't understand a cygwinified path. Ahh.
  8152. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8153. else
  8154. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8155. fi
  8156. ;;
  8157. pw32*)
  8158. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8159. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8160. ;;
  8161. esac
  8162. ;;
  8163. *)
  8164. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8165. ;;
  8166. esac
  8167. dynamic_linker='Win32 ld.exe'
  8168. # FIXME: first we should search . and the directory the executable is in
  8169. shlibpath_var=PATH
  8170. ;;
  8171. darwin* | rhapsody*)
  8172. dynamic_linker="$host_os dyld"
  8173. version_type=darwin
  8174. need_lib_prefix=no
  8175. need_version=no
  8176. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8177. soname_spec='${libname}${release}${major}$shared_ext'
  8178. shlibpath_overrides_runpath=yes
  8179. shlibpath_var=DYLD_LIBRARY_PATH
  8180. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  8181. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8182. if test "$GCC" = yes; then
  8183. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8184. else
  8185. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8186. fi
  8187. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8188. ;;
  8189. dgux*)
  8190. version_type=linux
  8191. need_lib_prefix=no
  8192. need_version=no
  8193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8194. soname_spec='${libname}${release}${shared_ext}$major'
  8195. shlibpath_var=LD_LIBRARY_PATH
  8196. ;;
  8197. freebsd1*)
  8198. dynamic_linker=no
  8199. ;;
  8200. kfreebsd*-gnu)
  8201. version_type=linux
  8202. need_lib_prefix=no
  8203. need_version=no
  8204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. shlibpath_var=LD_LIBRARY_PATH
  8207. shlibpath_overrides_runpath=no
  8208. hardcode_into_libs=yes
  8209. dynamic_linker='GNU ld.so'
  8210. ;;
  8211. freebsd* | dragonfly*)
  8212. # DragonFly does not have aout. When/if they implement a new
  8213. # versioning mechanism, adjust this.
  8214. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  8215. version_type=freebsd-$objformat
  8216. case $version_type in
  8217. freebsd-elf*)
  8218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8219. need_version=no
  8220. need_lib_prefix=no
  8221. ;;
  8222. freebsd-*)
  8223. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8224. need_version=yes
  8225. ;;
  8226. esac
  8227. shlibpath_var=LD_LIBRARY_PATH
  8228. case $host_os in
  8229. freebsd2*)
  8230. shlibpath_overrides_runpath=yes
  8231. ;;
  8232. freebsd3.[01]* | freebsdelf3.[01]*)
  8233. shlibpath_overrides_runpath=yes
  8234. hardcode_into_libs=yes
  8235. ;;
  8236. *) # from 3.2 on
  8237. shlibpath_overrides_runpath=no
  8238. hardcode_into_libs=yes
  8239. ;;
  8240. esac
  8241. ;;
  8242. gnu*)
  8243. version_type=linux
  8244. need_lib_prefix=no
  8245. need_version=no
  8246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8247. soname_spec='${libname}${release}${shared_ext}$major'
  8248. shlibpath_var=LD_LIBRARY_PATH
  8249. hardcode_into_libs=yes
  8250. ;;
  8251. hpux9* | hpux10* | hpux11*)
  8252. # Give a soname corresponding to the major version so that dld.sl refuses to
  8253. # link against other versions.
  8254. version_type=sunos
  8255. need_lib_prefix=no
  8256. need_version=no
  8257. case "$host_cpu" in
  8258. ia64*)
  8259. shrext_cmds='.so'
  8260. hardcode_into_libs=yes
  8261. dynamic_linker="$host_os dld.so"
  8262. shlibpath_var=LD_LIBRARY_PATH
  8263. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8265. soname_spec='${libname}${release}${shared_ext}$major'
  8266. if test "X$HPUX_IA64_MODE" = X32; then
  8267. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8268. else
  8269. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8270. fi
  8271. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8272. ;;
  8273. hppa*64*)
  8274. shrext_cmds='.sl'
  8275. hardcode_into_libs=yes
  8276. dynamic_linker="$host_os dld.sl"
  8277. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8278. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8280. soname_spec='${libname}${release}${shared_ext}$major'
  8281. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8282. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8283. ;;
  8284. *)
  8285. shrext_cmds='.sl'
  8286. dynamic_linker="$host_os dld.sl"
  8287. shlibpath_var=SHLIB_PATH
  8288. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8290. soname_spec='${libname}${release}${shared_ext}$major'
  8291. ;;
  8292. esac
  8293. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8294. postinstall_cmds='chmod 555 $lib'
  8295. ;;
  8296. irix5* | irix6* | nonstopux*)
  8297. case $host_os in
  8298. nonstopux*) version_type=nonstopux ;;
  8299. *)
  8300. if test "$lt_cv_prog_gnu_ld" = yes; then
  8301. version_type=linux
  8302. else
  8303. version_type=irix
  8304. fi ;;
  8305. esac
  8306. need_lib_prefix=no
  8307. need_version=no
  8308. soname_spec='${libname}${release}${shared_ext}$major'
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8310. case $host_os in
  8311. irix5* | nonstopux*)
  8312. libsuff= shlibsuff=
  8313. ;;
  8314. *)
  8315. case $LD in # libtool.m4 will add one of these switches to LD
  8316. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8317. libsuff= shlibsuff= libmagic=32-bit;;
  8318. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8319. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8320. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8321. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8322. *) libsuff= shlibsuff= libmagic=never-match;;
  8323. esac
  8324. ;;
  8325. esac
  8326. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8327. shlibpath_overrides_runpath=no
  8328. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8329. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8330. hardcode_into_libs=yes
  8331. ;;
  8332. # No shared lib support for Linux oldld, aout, or coff.
  8333. linux*oldld* | linux*aout* | linux*coff*)
  8334. dynamic_linker=no
  8335. ;;
  8336. # This must be Linux ELF.
  8337. linux*)
  8338. version_type=linux
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8344. shlibpath_var=LD_LIBRARY_PATH
  8345. shlibpath_overrides_runpath=no
  8346. # This implies no fast_install, which is unacceptable.
  8347. # Some rework will be needed to allow for fast_install
  8348. # before this can be enabled.
  8349. hardcode_into_libs=yes
  8350. # Append ld.so.conf contents to the search path
  8351. if test -f /etc/ld.so.conf; then
  8352. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8353. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8354. fi
  8355. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8356. # powerpc, because MkLinux only supported shared libraries with the
  8357. # GNU dynamic linker. Since this was broken with cross compilers,
  8358. # most powerpc-linux boxes support dynamic linking these days and
  8359. # people can always --disable-shared, the test was removed, and we
  8360. # assume the GNU/Linux dynamic linker is in use.
  8361. dynamic_linker='GNU/Linux ld.so'
  8362. ;;
  8363. knetbsd*-gnu)
  8364. version_type=linux
  8365. need_lib_prefix=no
  8366. need_version=no
  8367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8368. soname_spec='${libname}${release}${shared_ext}$major'
  8369. shlibpath_var=LD_LIBRARY_PATH
  8370. shlibpath_overrides_runpath=no
  8371. hardcode_into_libs=yes
  8372. dynamic_linker='GNU ld.so'
  8373. ;;
  8374. netbsd*)
  8375. version_type=sunos
  8376. need_lib_prefix=no
  8377. need_version=no
  8378. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8381. dynamic_linker='NetBSD (a.out) ld.so'
  8382. else
  8383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8384. soname_spec='${libname}${release}${shared_ext}$major'
  8385. dynamic_linker='NetBSD ld.elf_so'
  8386. fi
  8387. shlibpath_var=LD_LIBRARY_PATH
  8388. shlibpath_overrides_runpath=yes
  8389. hardcode_into_libs=yes
  8390. ;;
  8391. newsos6)
  8392. version_type=linux
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8394. shlibpath_var=LD_LIBRARY_PATH
  8395. shlibpath_overrides_runpath=yes
  8396. ;;
  8397. nto-qnx*)
  8398. version_type=linux
  8399. need_lib_prefix=no
  8400. need_version=no
  8401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8402. soname_spec='${libname}${release}${shared_ext}$major'
  8403. shlibpath_var=LD_LIBRARY_PATH
  8404. shlibpath_overrides_runpath=yes
  8405. ;;
  8406. openbsd*)
  8407. version_type=sunos
  8408. need_lib_prefix=no
  8409. need_version=no
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8411. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8412. shlibpath_var=LD_LIBRARY_PATH
  8413. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8414. case $host_os in
  8415. openbsd2.[89] | openbsd2.[89].*)
  8416. shlibpath_overrides_runpath=no
  8417. ;;
  8418. *)
  8419. shlibpath_overrides_runpath=yes
  8420. ;;
  8421. esac
  8422. else
  8423. shlibpath_overrides_runpath=yes
  8424. fi
  8425. ;;
  8426. os2*)
  8427. libname_spec='$name'
  8428. shrext_cmds=".dll"
  8429. need_lib_prefix=no
  8430. library_names_spec='$libname${shared_ext} $libname.a'
  8431. dynamic_linker='OS/2 ld.exe'
  8432. shlibpath_var=LIBPATH
  8433. ;;
  8434. osf3* | osf4* | osf5*)
  8435. version_type=osf
  8436. need_lib_prefix=no
  8437. need_version=no
  8438. soname_spec='${libname}${release}${shared_ext}$major'
  8439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8440. shlibpath_var=LD_LIBRARY_PATH
  8441. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8442. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8443. ;;
  8444. sco3.2v5*)
  8445. version_type=osf
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8448. shlibpath_var=LD_LIBRARY_PATH
  8449. ;;
  8450. solaris*)
  8451. version_type=linux
  8452. need_lib_prefix=no
  8453. need_version=no
  8454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8455. soname_spec='${libname}${release}${shared_ext}$major'
  8456. shlibpath_var=LD_LIBRARY_PATH
  8457. shlibpath_overrides_runpath=yes
  8458. hardcode_into_libs=yes
  8459. # ldd complains unless libraries are executable
  8460. postinstall_cmds='chmod +x $lib'
  8461. ;;
  8462. sunos4*)
  8463. version_type=sunos
  8464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8465. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8466. shlibpath_var=LD_LIBRARY_PATH
  8467. shlibpath_overrides_runpath=yes
  8468. if test "$with_gnu_ld" = yes; then
  8469. need_lib_prefix=no
  8470. fi
  8471. need_version=yes
  8472. ;;
  8473. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8474. version_type=linux
  8475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8476. soname_spec='${libname}${release}${shared_ext}$major'
  8477. shlibpath_var=LD_LIBRARY_PATH
  8478. case $host_vendor in
  8479. sni)
  8480. shlibpath_overrides_runpath=no
  8481. need_lib_prefix=no
  8482. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8483. runpath_var=LD_RUN_PATH
  8484. ;;
  8485. siemens)
  8486. need_lib_prefix=no
  8487. ;;
  8488. motorola)
  8489. need_lib_prefix=no
  8490. need_version=no
  8491. shlibpath_overrides_runpath=no
  8492. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8493. ;;
  8494. esac
  8495. ;;
  8496. sysv4*MP*)
  8497. if test -d /usr/nec ;then
  8498. version_type=linux
  8499. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8500. soname_spec='$libname${shared_ext}.$major'
  8501. shlibpath_var=LD_LIBRARY_PATH
  8502. fi
  8503. ;;
  8504. uts4*)
  8505. version_type=linux
  8506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8507. soname_spec='${libname}${release}${shared_ext}$major'
  8508. shlibpath_var=LD_LIBRARY_PATH
  8509. ;;
  8510. *)
  8511. dynamic_linker=no
  8512. ;;
  8513. esac
  8514. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8515. echo "${ECHO_T}$dynamic_linker" >&6
  8516. test "$dynamic_linker" = no && can_build_shared=no
  8517. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8518. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  8519. hardcode_action=
  8520. if test -n "$hardcode_libdir_flag_spec" || \
  8521. test -n "$runpath_var" || \
  8522. test "X$hardcode_automatic" = "Xyes" ; then
  8523. # We can hardcode non-existant directories.
  8524. if test "$hardcode_direct" != no &&
  8525. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8526. # have to relink, otherwise we might link with an installed library
  8527. # when we should be linking with a yet-to-be-installed one
  8528. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8529. test "$hardcode_minus_L" != no; then
  8530. # Linking always hardcodes the temporary library directory.
  8531. hardcode_action=relink
  8532. else
  8533. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8534. hardcode_action=immediate
  8535. fi
  8536. else
  8537. # We cannot hardcode anything, or else we can only hardcode existing
  8538. # directories.
  8539. hardcode_action=unsupported
  8540. fi
  8541. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8542. echo "${ECHO_T}$hardcode_action" >&6
  8543. if test "$hardcode_action" = relink; then
  8544. # Fast installation is not supported
  8545. enable_fast_install=no
  8546. elif test "$shlibpath_overrides_runpath" = yes ||
  8547. test "$enable_shared" = no; then
  8548. # Fast installation is not necessary
  8549. enable_fast_install=needless
  8550. fi
  8551. striplib=
  8552. old_striplib=
  8553. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8554. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  8555. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8556. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8557. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8558. echo "$as_me:$LINENO: result: yes" >&5
  8559. echo "${ECHO_T}yes" >&6
  8560. else
  8561. # FIXME - insert some real tests, host_os isn't really good enough
  8562. case $host_os in
  8563. darwin*)
  8564. if test -n "$STRIP" ; then
  8565. striplib="$STRIP -x"
  8566. echo "$as_me:$LINENO: result: yes" >&5
  8567. echo "${ECHO_T}yes" >&6
  8568. else
  8569. echo "$as_me:$LINENO: result: no" >&5
  8570. echo "${ECHO_T}no" >&6
  8571. fi
  8572. ;;
  8573. *)
  8574. echo "$as_me:$LINENO: result: no" >&5
  8575. echo "${ECHO_T}no" >&6
  8576. ;;
  8577. esac
  8578. fi
  8579. if test "x$enable_dlopen" != xyes; then
  8580. enable_dlopen=unknown
  8581. enable_dlopen_self=unknown
  8582. enable_dlopen_self_static=unknown
  8583. else
  8584. lt_cv_dlopen=no
  8585. lt_cv_dlopen_libs=
  8586. case $host_os in
  8587. beos*)
  8588. lt_cv_dlopen="load_add_on"
  8589. lt_cv_dlopen_libs=
  8590. lt_cv_dlopen_self=yes
  8591. ;;
  8592. mingw* | pw32*)
  8593. lt_cv_dlopen="LoadLibrary"
  8594. lt_cv_dlopen_libs=
  8595. ;;
  8596. cygwin*)
  8597. lt_cv_dlopen="dlopen"
  8598. lt_cv_dlopen_libs=
  8599. ;;
  8600. darwin*)
  8601. # if libdl is installed we need to link against it
  8602. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8603. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8604. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8605. echo $ECHO_N "(cached) $ECHO_C" >&6
  8606. else
  8607. ac_check_lib_save_LIBS=$LIBS
  8608. LIBS="-ldl $LIBS"
  8609. cat >conftest.$ac_ext <<_ACEOF
  8610. /* confdefs.h. */
  8611. _ACEOF
  8612. cat confdefs.h >>conftest.$ac_ext
  8613. cat >>conftest.$ac_ext <<_ACEOF
  8614. /* end confdefs.h. */
  8615. /* Override any gcc2 internal prototype to avoid an error. */
  8616. #ifdef __cplusplus
  8617. extern "C"
  8618. #endif
  8619. /* We use char because int might match the return type of a gcc2
  8620. builtin and then its argument prototype would still apply. */
  8621. char dlopen ();
  8622. int
  8623. main ()
  8624. {
  8625. dlopen ();
  8626. ;
  8627. return 0;
  8628. }
  8629. _ACEOF
  8630. rm -f conftest.$ac_objext conftest$ac_exeext
  8631. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8632. (eval $ac_link) 2>conftest.er1
  8633. ac_status=$?
  8634. grep -v '^ *+' conftest.er1 >conftest.err
  8635. rm -f conftest.er1
  8636. cat conftest.err >&5
  8637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); } &&
  8639. { ac_try='test -z "$ac_c_werror_flag"
  8640. || test ! -s conftest.err'
  8641. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8642. (eval $ac_try) 2>&5
  8643. ac_status=$?
  8644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8645. (exit $ac_status); }; } &&
  8646. { ac_try='test -s conftest$ac_exeext'
  8647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8648. (eval $ac_try) 2>&5
  8649. ac_status=$?
  8650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8651. (exit $ac_status); }; }; then
  8652. ac_cv_lib_dl_dlopen=yes
  8653. else
  8654. echo "$as_me: failed program was:" >&5
  8655. sed 's/^/| /' conftest.$ac_ext >&5
  8656. ac_cv_lib_dl_dlopen=no
  8657. fi
  8658. rm -f conftest.err conftest.$ac_objext \
  8659. conftest$ac_exeext conftest.$ac_ext
  8660. LIBS=$ac_check_lib_save_LIBS
  8661. fi
  8662. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8663. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8664. if test $ac_cv_lib_dl_dlopen = yes; then
  8665. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8666. else
  8667. lt_cv_dlopen="dyld"
  8668. lt_cv_dlopen_libs=
  8669. lt_cv_dlopen_self=yes
  8670. fi
  8671. ;;
  8672. *)
  8673. echo "$as_me:$LINENO: checking for shl_load" >&5
  8674. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8675. if test "${ac_cv_func_shl_load+set}" = set; then
  8676. echo $ECHO_N "(cached) $ECHO_C" >&6
  8677. else
  8678. cat >conftest.$ac_ext <<_ACEOF
  8679. /* confdefs.h. */
  8680. _ACEOF
  8681. cat confdefs.h >>conftest.$ac_ext
  8682. cat >>conftest.$ac_ext <<_ACEOF
  8683. /* end confdefs.h. */
  8684. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8685. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8686. #define shl_load innocuous_shl_load
  8687. /* System header to define __stub macros and hopefully few prototypes,
  8688. which can conflict with char shl_load (); below.
  8689. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8690. <limits.h> exists even on freestanding compilers. */
  8691. #ifdef __STDC__
  8692. # include <limits.h>
  8693. #else
  8694. # include <assert.h>
  8695. #endif
  8696. #undef shl_load
  8697. /* Override any gcc2 internal prototype to avoid an error. */
  8698. #ifdef __cplusplus
  8699. extern "C"
  8700. {
  8701. #endif
  8702. /* We use char because int might match the return type of a gcc2
  8703. builtin and then its argument prototype would still apply. */
  8704. char shl_load ();
  8705. /* The GNU C library defines this for functions which it implements
  8706. to always fail with ENOSYS. Some functions are actually named
  8707. something starting with __ and the normal name is an alias. */
  8708. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8709. choke me
  8710. #else
  8711. char (*f) () = shl_load;
  8712. #endif
  8713. #ifdef __cplusplus
  8714. }
  8715. #endif
  8716. int
  8717. main ()
  8718. {
  8719. return f != shl_load;
  8720. ;
  8721. return 0;
  8722. }
  8723. _ACEOF
  8724. rm -f conftest.$ac_objext conftest$ac_exeext
  8725. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8726. (eval $ac_link) 2>conftest.er1
  8727. ac_status=$?
  8728. grep -v '^ *+' conftest.er1 >conftest.err
  8729. rm -f conftest.er1
  8730. cat conftest.err >&5
  8731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8732. (exit $ac_status); } &&
  8733. { ac_try='test -z "$ac_c_werror_flag"
  8734. || test ! -s conftest.err'
  8735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8736. (eval $ac_try) 2>&5
  8737. ac_status=$?
  8738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8739. (exit $ac_status); }; } &&
  8740. { ac_try='test -s conftest$ac_exeext'
  8741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8742. (eval $ac_try) 2>&5
  8743. ac_status=$?
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); }; }; then
  8746. ac_cv_func_shl_load=yes
  8747. else
  8748. echo "$as_me: failed program was:" >&5
  8749. sed 's/^/| /' conftest.$ac_ext >&5
  8750. ac_cv_func_shl_load=no
  8751. fi
  8752. rm -f conftest.err conftest.$ac_objext \
  8753. conftest$ac_exeext conftest.$ac_ext
  8754. fi
  8755. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8756. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8757. if test $ac_cv_func_shl_load = yes; then
  8758. lt_cv_dlopen="shl_load"
  8759. else
  8760. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8761. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8762. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. else
  8765. ac_check_lib_save_LIBS=$LIBS
  8766. LIBS="-ldld $LIBS"
  8767. cat >conftest.$ac_ext <<_ACEOF
  8768. /* confdefs.h. */
  8769. _ACEOF
  8770. cat confdefs.h >>conftest.$ac_ext
  8771. cat >>conftest.$ac_ext <<_ACEOF
  8772. /* end confdefs.h. */
  8773. /* Override any gcc2 internal prototype to avoid an error. */
  8774. #ifdef __cplusplus
  8775. extern "C"
  8776. #endif
  8777. /* We use char because int might match the return type of a gcc2
  8778. builtin and then its argument prototype would still apply. */
  8779. char shl_load ();
  8780. int
  8781. main ()
  8782. {
  8783. shl_load ();
  8784. ;
  8785. return 0;
  8786. }
  8787. _ACEOF
  8788. rm -f conftest.$ac_objext conftest$ac_exeext
  8789. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8790. (eval $ac_link) 2>conftest.er1
  8791. ac_status=$?
  8792. grep -v '^ *+' conftest.er1 >conftest.err
  8793. rm -f conftest.er1
  8794. cat conftest.err >&5
  8795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8796. (exit $ac_status); } &&
  8797. { ac_try='test -z "$ac_c_werror_flag"
  8798. || test ! -s conftest.err'
  8799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8800. (eval $ac_try) 2>&5
  8801. ac_status=$?
  8802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8803. (exit $ac_status); }; } &&
  8804. { ac_try='test -s conftest$ac_exeext'
  8805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8806. (eval $ac_try) 2>&5
  8807. ac_status=$?
  8808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8809. (exit $ac_status); }; }; then
  8810. ac_cv_lib_dld_shl_load=yes
  8811. else
  8812. echo "$as_me: failed program was:" >&5
  8813. sed 's/^/| /' conftest.$ac_ext >&5
  8814. ac_cv_lib_dld_shl_load=no
  8815. fi
  8816. rm -f conftest.err conftest.$ac_objext \
  8817. conftest$ac_exeext conftest.$ac_ext
  8818. LIBS=$ac_check_lib_save_LIBS
  8819. fi
  8820. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8821. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8822. if test $ac_cv_lib_dld_shl_load = yes; then
  8823. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8824. else
  8825. echo "$as_me:$LINENO: checking for dlopen" >&5
  8826. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8827. if test "${ac_cv_func_dlopen+set}" = set; then
  8828. echo $ECHO_N "(cached) $ECHO_C" >&6
  8829. else
  8830. cat >conftest.$ac_ext <<_ACEOF
  8831. /* confdefs.h. */
  8832. _ACEOF
  8833. cat confdefs.h >>conftest.$ac_ext
  8834. cat >>conftest.$ac_ext <<_ACEOF
  8835. /* end confdefs.h. */
  8836. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8838. #define dlopen innocuous_dlopen
  8839. /* System header to define __stub macros and hopefully few prototypes,
  8840. which can conflict with char dlopen (); below.
  8841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8842. <limits.h> exists even on freestanding compilers. */
  8843. #ifdef __STDC__
  8844. # include <limits.h>
  8845. #else
  8846. # include <assert.h>
  8847. #endif
  8848. #undef dlopen
  8849. /* Override any gcc2 internal prototype to avoid an error. */
  8850. #ifdef __cplusplus
  8851. extern "C"
  8852. {
  8853. #endif
  8854. /* We use char because int might match the return type of a gcc2
  8855. builtin and then its argument prototype would still apply. */
  8856. char dlopen ();
  8857. /* The GNU C library defines this for functions which it implements
  8858. to always fail with ENOSYS. Some functions are actually named
  8859. something starting with __ and the normal name is an alias. */
  8860. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8861. choke me
  8862. #else
  8863. char (*f) () = dlopen;
  8864. #endif
  8865. #ifdef __cplusplus
  8866. }
  8867. #endif
  8868. int
  8869. main ()
  8870. {
  8871. return f != dlopen;
  8872. ;
  8873. return 0;
  8874. }
  8875. _ACEOF
  8876. rm -f conftest.$ac_objext conftest$ac_exeext
  8877. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8878. (eval $ac_link) 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } &&
  8885. { ac_try='test -z "$ac_c_werror_flag"
  8886. || test ! -s conftest.err'
  8887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8888. (eval $ac_try) 2>&5
  8889. ac_status=$?
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); }; } &&
  8892. { ac_try='test -s conftest$ac_exeext'
  8893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8894. (eval $ac_try) 2>&5
  8895. ac_status=$?
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); }; }; then
  8898. ac_cv_func_dlopen=yes
  8899. else
  8900. echo "$as_me: failed program was:" >&5
  8901. sed 's/^/| /' conftest.$ac_ext >&5
  8902. ac_cv_func_dlopen=no
  8903. fi
  8904. rm -f conftest.err conftest.$ac_objext \
  8905. conftest$ac_exeext conftest.$ac_ext
  8906. fi
  8907. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8908. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8909. if test $ac_cv_func_dlopen = yes; then
  8910. lt_cv_dlopen="dlopen"
  8911. else
  8912. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8913. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8914. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8915. echo $ECHO_N "(cached) $ECHO_C" >&6
  8916. else
  8917. ac_check_lib_save_LIBS=$LIBS
  8918. LIBS="-ldl $LIBS"
  8919. cat >conftest.$ac_ext <<_ACEOF
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. /* Override any gcc2 internal prototype to avoid an error. */
  8926. #ifdef __cplusplus
  8927. extern "C"
  8928. #endif
  8929. /* We use char because int might match the return type of a gcc2
  8930. builtin and then its argument prototype would still apply. */
  8931. char dlopen ();
  8932. int
  8933. main ()
  8934. {
  8935. dlopen ();
  8936. ;
  8937. return 0;
  8938. }
  8939. _ACEOF
  8940. rm -f conftest.$ac_objext conftest$ac_exeext
  8941. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8942. (eval $ac_link) 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } &&
  8949. { ac_try='test -z "$ac_c_werror_flag"
  8950. || test ! -s conftest.err'
  8951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8952. (eval $ac_try) 2>&5
  8953. ac_status=$?
  8954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955. (exit $ac_status); }; } &&
  8956. { ac_try='test -s conftest$ac_exeext'
  8957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8958. (eval $ac_try) 2>&5
  8959. ac_status=$?
  8960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8961. (exit $ac_status); }; }; then
  8962. ac_cv_lib_dl_dlopen=yes
  8963. else
  8964. echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. ac_cv_lib_dl_dlopen=no
  8967. fi
  8968. rm -f conftest.err conftest.$ac_objext \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. LIBS=$ac_check_lib_save_LIBS
  8971. fi
  8972. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8973. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8974. if test $ac_cv_lib_dl_dlopen = yes; then
  8975. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8976. else
  8977. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8978. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8979. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8980. echo $ECHO_N "(cached) $ECHO_C" >&6
  8981. else
  8982. ac_check_lib_save_LIBS=$LIBS
  8983. LIBS="-lsvld $LIBS"
  8984. cat >conftest.$ac_ext <<_ACEOF
  8985. /* confdefs.h. */
  8986. _ACEOF
  8987. cat confdefs.h >>conftest.$ac_ext
  8988. cat >>conftest.$ac_ext <<_ACEOF
  8989. /* end confdefs.h. */
  8990. /* Override any gcc2 internal prototype to avoid an error. */
  8991. #ifdef __cplusplus
  8992. extern "C"
  8993. #endif
  8994. /* We use char because int might match the return type of a gcc2
  8995. builtin and then its argument prototype would still apply. */
  8996. char dlopen ();
  8997. int
  8998. main ()
  8999. {
  9000. dlopen ();
  9001. ;
  9002. return 0;
  9003. }
  9004. _ACEOF
  9005. rm -f conftest.$ac_objext conftest$ac_exeext
  9006. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9007. (eval $ac_link) 2>conftest.er1
  9008. ac_status=$?
  9009. grep -v '^ *+' conftest.er1 >conftest.err
  9010. rm -f conftest.er1
  9011. cat conftest.err >&5
  9012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013. (exit $ac_status); } &&
  9014. { ac_try='test -z "$ac_c_werror_flag"
  9015. || test ! -s conftest.err'
  9016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9017. (eval $ac_try) 2>&5
  9018. ac_status=$?
  9019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9020. (exit $ac_status); }; } &&
  9021. { ac_try='test -s conftest$ac_exeext'
  9022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9023. (eval $ac_try) 2>&5
  9024. ac_status=$?
  9025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); }; }; then
  9027. ac_cv_lib_svld_dlopen=yes
  9028. else
  9029. echo "$as_me: failed program was:" >&5
  9030. sed 's/^/| /' conftest.$ac_ext >&5
  9031. ac_cv_lib_svld_dlopen=no
  9032. fi
  9033. rm -f conftest.err conftest.$ac_objext \
  9034. conftest$ac_exeext conftest.$ac_ext
  9035. LIBS=$ac_check_lib_save_LIBS
  9036. fi
  9037. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9038. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9039. if test $ac_cv_lib_svld_dlopen = yes; then
  9040. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9041. else
  9042. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9043. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9044. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9045. echo $ECHO_N "(cached) $ECHO_C" >&6
  9046. else
  9047. ac_check_lib_save_LIBS=$LIBS
  9048. LIBS="-ldld $LIBS"
  9049. cat >conftest.$ac_ext <<_ACEOF
  9050. /* confdefs.h. */
  9051. _ACEOF
  9052. cat confdefs.h >>conftest.$ac_ext
  9053. cat >>conftest.$ac_ext <<_ACEOF
  9054. /* end confdefs.h. */
  9055. /* Override any gcc2 internal prototype to avoid an error. */
  9056. #ifdef __cplusplus
  9057. extern "C"
  9058. #endif
  9059. /* We use char because int might match the return type of a gcc2
  9060. builtin and then its argument prototype would still apply. */
  9061. char dld_link ();
  9062. int
  9063. main ()
  9064. {
  9065. dld_link ();
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext conftest$ac_exeext
  9071. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9072. (eval $ac_link) 2>conftest.er1
  9073. ac_status=$?
  9074. grep -v '^ *+' conftest.er1 >conftest.err
  9075. rm -f conftest.er1
  9076. cat conftest.err >&5
  9077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9078. (exit $ac_status); } &&
  9079. { ac_try='test -z "$ac_c_werror_flag"
  9080. || test ! -s conftest.err'
  9081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9082. (eval $ac_try) 2>&5
  9083. ac_status=$?
  9084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9085. (exit $ac_status); }; } &&
  9086. { ac_try='test -s conftest$ac_exeext'
  9087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9088. (eval $ac_try) 2>&5
  9089. ac_status=$?
  9090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9091. (exit $ac_status); }; }; then
  9092. ac_cv_lib_dld_dld_link=yes
  9093. else
  9094. echo "$as_me: failed program was:" >&5
  9095. sed 's/^/| /' conftest.$ac_ext >&5
  9096. ac_cv_lib_dld_dld_link=no
  9097. fi
  9098. rm -f conftest.err conftest.$ac_objext \
  9099. conftest$ac_exeext conftest.$ac_ext
  9100. LIBS=$ac_check_lib_save_LIBS
  9101. fi
  9102. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9103. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  9104. if test $ac_cv_lib_dld_dld_link = yes; then
  9105. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9106. fi
  9107. fi
  9108. fi
  9109. fi
  9110. fi
  9111. fi
  9112. ;;
  9113. esac
  9114. if test "x$lt_cv_dlopen" != xno; then
  9115. enable_dlopen=yes
  9116. else
  9117. enable_dlopen=no
  9118. fi
  9119. case $lt_cv_dlopen in
  9120. dlopen)
  9121. save_CPPFLAGS="$CPPFLAGS"
  9122. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9123. save_LDFLAGS="$LDFLAGS"
  9124. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9125. save_LIBS="$LIBS"
  9126. LIBS="$lt_cv_dlopen_libs $LIBS"
  9127. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9128. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  9129. if test "${lt_cv_dlopen_self+set}" = set; then
  9130. echo $ECHO_N "(cached) $ECHO_C" >&6
  9131. else
  9132. if test "$cross_compiling" = yes; then :
  9133. lt_cv_dlopen_self=cross
  9134. else
  9135. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9136. lt_status=$lt_dlunknown
  9137. cat > conftest.$ac_ext <<EOF
  9138. #line 10025 "configure"
  9139. #include "confdefs.h"
  9140. #if HAVE_DLFCN_H
  9141. #include <dlfcn.h>
  9142. #endif
  9143. #include <stdio.h>
  9144. #ifdef RTLD_GLOBAL
  9145. # define LT_DLGLOBAL RTLD_GLOBAL
  9146. #else
  9147. # ifdef DL_GLOBAL
  9148. # define LT_DLGLOBAL DL_GLOBAL
  9149. # else
  9150. # define LT_DLGLOBAL 0
  9151. # endif
  9152. #endif
  9153. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9154. find out it does not work in some platform. */
  9155. #ifndef LT_DLLAZY_OR_NOW
  9156. # ifdef RTLD_LAZY
  9157. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9158. # else
  9159. # ifdef DL_LAZY
  9160. # define LT_DLLAZY_OR_NOW DL_LAZY
  9161. # else
  9162. # ifdef RTLD_NOW
  9163. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9164. # else
  9165. # ifdef DL_NOW
  9166. # define LT_DLLAZY_OR_NOW DL_NOW
  9167. # else
  9168. # define LT_DLLAZY_OR_NOW 0
  9169. # endif
  9170. # endif
  9171. # endif
  9172. # endif
  9173. #endif
  9174. #ifdef __cplusplus
  9175. extern "C" void exit (int);
  9176. #endif
  9177. void fnord() { int i=42;}
  9178. int main ()
  9179. {
  9180. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9181. int status = $lt_dlunknown;
  9182. if (self)
  9183. {
  9184. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9185. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9186. /* dlclose (self); */
  9187. }
  9188. exit (status);
  9189. }
  9190. EOF
  9191. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9192. (eval $ac_link) 2>&5
  9193. ac_status=$?
  9194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9195. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9196. (./conftest; exit; ) 2>/dev/null
  9197. lt_status=$?
  9198. case x$lt_status in
  9199. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9200. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9201. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  9202. esac
  9203. else :
  9204. # compilation failed
  9205. lt_cv_dlopen_self=no
  9206. fi
  9207. fi
  9208. rm -fr conftest*
  9209. fi
  9210. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9211. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  9212. if test "x$lt_cv_dlopen_self" = xyes; then
  9213. LDFLAGS="$LDFLAGS $link_static_flag"
  9214. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9215. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  9216. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9217. echo $ECHO_N "(cached) $ECHO_C" >&6
  9218. else
  9219. if test "$cross_compiling" = yes; then :
  9220. lt_cv_dlopen_self_static=cross
  9221. else
  9222. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9223. lt_status=$lt_dlunknown
  9224. cat > conftest.$ac_ext <<EOF
  9225. #line 10123 "configure"
  9226. #include "confdefs.h"
  9227. #if HAVE_DLFCN_H
  9228. #include <dlfcn.h>
  9229. #endif
  9230. #include <stdio.h>
  9231. #ifdef RTLD_GLOBAL
  9232. # define LT_DLGLOBAL RTLD_GLOBAL
  9233. #else
  9234. # ifdef DL_GLOBAL
  9235. # define LT_DLGLOBAL DL_GLOBAL
  9236. # else
  9237. # define LT_DLGLOBAL 0
  9238. # endif
  9239. #endif
  9240. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9241. find out it does not work in some platform. */
  9242. #ifndef LT_DLLAZY_OR_NOW
  9243. # ifdef RTLD_LAZY
  9244. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9245. # else
  9246. # ifdef DL_LAZY
  9247. # define LT_DLLAZY_OR_NOW DL_LAZY
  9248. # else
  9249. # ifdef RTLD_NOW
  9250. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9251. # else
  9252. # ifdef DL_NOW
  9253. # define LT_DLLAZY_OR_NOW DL_NOW
  9254. # else
  9255. # define LT_DLLAZY_OR_NOW 0
  9256. # endif
  9257. # endif
  9258. # endif
  9259. # endif
  9260. #endif
  9261. #ifdef __cplusplus
  9262. extern "C" void exit (int);
  9263. #endif
  9264. void fnord() { int i=42;}
  9265. int main ()
  9266. {
  9267. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9268. int status = $lt_dlunknown;
  9269. if (self)
  9270. {
  9271. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9272. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9273. /* dlclose (self); */
  9274. }
  9275. exit (status);
  9276. }
  9277. EOF
  9278. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9279. (eval $ac_link) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9283. (./conftest; exit; ) 2>/dev/null
  9284. lt_status=$?
  9285. case x$lt_status in
  9286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9288. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  9289. esac
  9290. else :
  9291. # compilation failed
  9292. lt_cv_dlopen_self_static=no
  9293. fi
  9294. fi
  9295. rm -fr conftest*
  9296. fi
  9297. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9298. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  9299. fi
  9300. CPPFLAGS="$save_CPPFLAGS"
  9301. LDFLAGS="$save_LDFLAGS"
  9302. LIBS="$save_LIBS"
  9303. ;;
  9304. esac
  9305. case $lt_cv_dlopen_self in
  9306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9307. *) enable_dlopen_self=unknown ;;
  9308. esac
  9309. case $lt_cv_dlopen_self_static in
  9310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9311. *) enable_dlopen_self_static=unknown ;;
  9312. esac
  9313. fi
  9314. # Report which librarie types wil actually be built
  9315. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9316. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9317. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9318. echo "${ECHO_T}$can_build_shared" >&6
  9319. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9320. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9321. test "$can_build_shared" = "no" && enable_shared=no
  9322. # On AIX, shared libraries and static libraries use the same namespace, and
  9323. # are all built from PIC.
  9324. case "$host_os" in
  9325. aix3*)
  9326. test "$enable_shared" = yes && enable_static=no
  9327. if test -n "$RANLIB"; then
  9328. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9329. postinstall_cmds='$RANLIB $lib'
  9330. fi
  9331. ;;
  9332. aix4* | aix5*)
  9333. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9334. test "$enable_shared" = yes && enable_static=no
  9335. fi
  9336. ;;
  9337. esac
  9338. echo "$as_me:$LINENO: result: $enable_shared" >&5
  9339. echo "${ECHO_T}$enable_shared" >&6
  9340. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9341. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9342. # Make sure either enable_shared or enable_static is yes.
  9343. test "$enable_shared" = yes || enable_static=yes
  9344. echo "$as_me:$LINENO: result: $enable_static" >&5
  9345. echo "${ECHO_T}$enable_static" >&6
  9346. # The else clause should only fire when bootstrapping the
  9347. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9348. # with your package, and you will get complaints that there are
  9349. # no rules to generate ltmain.sh.
  9350. if test -f "$ltmain"; then
  9351. # See if we are running on zsh, and set the options which allow our commands through
  9352. # without removal of \ escapes.
  9353. if test -n "${ZSH_VERSION+set}" ; then
  9354. setopt NO_GLOB_SUBST
  9355. fi
  9356. # Now quote all the things that may contain metacharacters while being
  9357. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9358. # variables and quote the copies for generation of the libtool script.
  9359. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  9360. SED SHELL STRIP \
  9361. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9362. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9363. deplibs_check_method reload_flag reload_cmds need_locks \
  9364. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9365. lt_cv_sys_global_symbol_to_c_name_address \
  9366. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9367. old_postinstall_cmds old_postuninstall_cmds \
  9368. compiler \
  9369. CC \
  9370. LD \
  9371. lt_prog_compiler_wl \
  9372. lt_prog_compiler_pic \
  9373. lt_prog_compiler_static \
  9374. lt_prog_compiler_no_builtin_flag \
  9375. export_dynamic_flag_spec \
  9376. thread_safe_flag_spec \
  9377. whole_archive_flag_spec \
  9378. enable_shared_with_static_runtimes \
  9379. old_archive_cmds \
  9380. old_archive_from_new_cmds \
  9381. predep_objects \
  9382. postdep_objects \
  9383. predeps \
  9384. postdeps \
  9385. compiler_lib_search_path \
  9386. archive_cmds \
  9387. archive_expsym_cmds \
  9388. postinstall_cmds \
  9389. postuninstall_cmds \
  9390. old_archive_from_expsyms_cmds \
  9391. allow_undefined_flag \
  9392. no_undefined_flag \
  9393. export_symbols_cmds \
  9394. hardcode_libdir_flag_spec \
  9395. hardcode_libdir_flag_spec_ld \
  9396. hardcode_libdir_separator \
  9397. hardcode_automatic \
  9398. module_cmds \
  9399. module_expsym_cmds \
  9400. lt_cv_prog_compiler_c_o \
  9401. exclude_expsyms \
  9402. include_expsyms; do
  9403. case $var in
  9404. old_archive_cmds | \
  9405. old_archive_from_new_cmds | \
  9406. archive_cmds | \
  9407. archive_expsym_cmds | \
  9408. module_cmds | \
  9409. module_expsym_cmds | \
  9410. old_archive_from_expsyms_cmds | \
  9411. export_symbols_cmds | \
  9412. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9413. postinstall_cmds | postuninstall_cmds | \
  9414. old_postinstall_cmds | old_postuninstall_cmds | \
  9415. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9416. # Double-quote double-evaled strings.
  9417. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9418. ;;
  9419. *)
  9420. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9421. ;;
  9422. esac
  9423. done
  9424. case $lt_echo in
  9425. *'\$0 --fallback-echo"')
  9426. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9427. ;;
  9428. esac
  9429. cfgfile="${ofile}T"
  9430. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9431. $rm -f "$cfgfile"
  9432. { echo "$as_me:$LINENO: creating $ofile" >&5
  9433. echo "$as_me: creating $ofile" >&6;}
  9434. cat <<__EOF__ >> "$cfgfile"
  9435. #! $SHELL
  9436. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9437. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9438. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9439. #
  9440. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9441. # Free Software Foundation, Inc.
  9442. #
  9443. # This file is part of GNU Libtool:
  9444. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9445. #
  9446. # This program is free software; you can redistribute it and/or modify
  9447. # it under the terms of the GNU General Public License as published by
  9448. # the Free Software Foundation; either version 2 of the License, or
  9449. # (at your option) any later version.
  9450. #
  9451. # This program is distributed in the hope that it will be useful, but
  9452. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9453. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9454. # General Public License for more details.
  9455. #
  9456. # You should have received a copy of the GNU General Public License
  9457. # along with this program; if not, write to the Free Software
  9458. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  9459. #
  9460. # As a special exception to the GNU General Public License, if you
  9461. # distribute this file as part of a program that contains a
  9462. # configuration script generated by Autoconf, you may include it under
  9463. # the same distribution terms that you use for the rest of that program.
  9464. # A sed program that does not truncate output.
  9465. SED=$lt_SED
  9466. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9467. Xsed="$SED -e s/^X//"
  9468. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9469. # if CDPATH is set.
  9470. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9471. # The names of the tagged configurations supported by this script.
  9472. available_tags=
  9473. # ### BEGIN LIBTOOL CONFIG
  9474. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9475. # Shell to use when invoking shell scripts.
  9476. SHELL=$lt_SHELL
  9477. # Whether or not to build shared libraries.
  9478. build_libtool_libs=$enable_shared
  9479. # Whether or not to build static libraries.
  9480. build_old_libs=$enable_static
  9481. # Whether or not to add -lc for building shared libraries.
  9482. build_libtool_need_lc=$archive_cmds_need_lc
  9483. # Whether or not to disallow shared libs when runtime libs are static
  9484. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9485. # Whether or not to optimize for fast installation.
  9486. fast_install=$enable_fast_install
  9487. # The host system.
  9488. host_alias=$host_alias
  9489. host=$host
  9490. host_os=$host_os
  9491. # The build system.
  9492. build_alias=$build_alias
  9493. build=$build
  9494. build_os=$build_os
  9495. # An echo program that does not interpret backslashes.
  9496. echo=$lt_echo
  9497. # The archiver.
  9498. AR=$lt_AR
  9499. AR_FLAGS=$lt_AR_FLAGS
  9500. # A C compiler.
  9501. LTCC=$lt_LTCC
  9502. # A language-specific compiler.
  9503. CC=$lt_compiler
  9504. # Is the compiler the GNU C compiler?
  9505. with_gcc=$GCC
  9506. # An ERE matcher.
  9507. EGREP=$lt_EGREP
  9508. # The linker used to build libraries.
  9509. LD=$lt_LD
  9510. # Whether we need hard or soft links.
  9511. LN_S=$lt_LN_S
  9512. # A BSD-compatible nm program.
  9513. NM=$lt_NM
  9514. # A symbol stripping program
  9515. STRIP=$lt_STRIP
  9516. # Used to examine libraries when file_magic_cmd begins "file"
  9517. MAGIC_CMD=$MAGIC_CMD
  9518. # Used on cygwin: DLL creation program.
  9519. DLLTOOL="$DLLTOOL"
  9520. # Used on cygwin: object dumper.
  9521. OBJDUMP="$OBJDUMP"
  9522. # Used on cygwin: assembler.
  9523. AS="$AS"
  9524. # The name of the directory that contains temporary libtool files.
  9525. objdir=$objdir
  9526. # How to create reloadable object files.
  9527. reload_flag=$lt_reload_flag
  9528. reload_cmds=$lt_reload_cmds
  9529. # How to pass a linker flag through the compiler.
  9530. wl=$lt_lt_prog_compiler_wl
  9531. # Object file suffix (normally "o").
  9532. objext="$ac_objext"
  9533. # Old archive suffix (normally "a").
  9534. libext="$libext"
  9535. # Shared library suffix (normally ".so").
  9536. shrext_cmds='$shrext_cmds'
  9537. # Executable file suffix (normally "").
  9538. exeext="$exeext"
  9539. # Additional compiler flags for building library objects.
  9540. pic_flag=$lt_lt_prog_compiler_pic
  9541. pic_mode=$pic_mode
  9542. # What is the maximum length of a command?
  9543. max_cmd_len=$lt_cv_sys_max_cmd_len
  9544. # Does compiler simultaneously support -c and -o options?
  9545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9546. # Must we lock files when doing compilation ?
  9547. need_locks=$lt_need_locks
  9548. # Do we need the lib prefix for modules?
  9549. need_lib_prefix=$need_lib_prefix
  9550. # Do we need a version for libraries?
  9551. need_version=$need_version
  9552. # Whether dlopen is supported.
  9553. dlopen_support=$enable_dlopen
  9554. # Whether dlopen of programs is supported.
  9555. dlopen_self=$enable_dlopen_self
  9556. # Whether dlopen of statically linked programs is supported.
  9557. dlopen_self_static=$enable_dlopen_self_static
  9558. # Compiler flag to prevent dynamic linking.
  9559. link_static_flag=$lt_lt_prog_compiler_static
  9560. # Compiler flag to turn off builtin functions.
  9561. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9562. # Compiler flag to allow reflexive dlopens.
  9563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9564. # Compiler flag to generate shared objects directly from archives.
  9565. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9566. # Compiler flag to generate thread-safe objects.
  9567. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9568. # Library versioning type.
  9569. version_type=$version_type
  9570. # Format of library name prefix.
  9571. libname_spec=$lt_libname_spec
  9572. # List of archive names. First name is the real one, the rest are links.
  9573. # The last name is the one that the linker finds with -lNAME.
  9574. library_names_spec=$lt_library_names_spec
  9575. # The coded name of the library, if different from the real name.
  9576. soname_spec=$lt_soname_spec
  9577. # Commands used to build and install an old-style archive.
  9578. RANLIB=$lt_RANLIB
  9579. old_archive_cmds=$lt_old_archive_cmds
  9580. old_postinstall_cmds=$lt_old_postinstall_cmds
  9581. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9582. # Create an old-style archive from a shared archive.
  9583. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9584. # Create a temporary old-style archive to link instead of a shared archive.
  9585. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9586. # Commands used to build and install a shared archive.
  9587. archive_cmds=$lt_archive_cmds
  9588. archive_expsym_cmds=$lt_archive_expsym_cmds
  9589. postinstall_cmds=$lt_postinstall_cmds
  9590. postuninstall_cmds=$lt_postuninstall_cmds
  9591. # Commands used to build a loadable module (assumed same as above if empty)
  9592. module_cmds=$lt_module_cmds
  9593. module_expsym_cmds=$lt_module_expsym_cmds
  9594. # Commands to strip libraries.
  9595. old_striplib=$lt_old_striplib
  9596. striplib=$lt_striplib
  9597. # Dependencies to place before the objects being linked to create a
  9598. # shared library.
  9599. predep_objects=$lt_predep_objects
  9600. # Dependencies to place after the objects being linked to create a
  9601. # shared library.
  9602. postdep_objects=$lt_postdep_objects
  9603. # Dependencies to place before the objects being linked to create a
  9604. # shared library.
  9605. predeps=$lt_predeps
  9606. # Dependencies to place after the objects being linked to create a
  9607. # shared library.
  9608. postdeps=$lt_postdeps
  9609. # The library search path used internally by the compiler when linking
  9610. # a shared library.
  9611. compiler_lib_search_path=$lt_compiler_lib_search_path
  9612. # Method to check whether dependent libraries are shared objects.
  9613. deplibs_check_method=$lt_deplibs_check_method
  9614. # Command to use when deplibs_check_method == file_magic.
  9615. file_magic_cmd=$lt_file_magic_cmd
  9616. # Flag that allows shared libraries with undefined symbols to be built.
  9617. allow_undefined_flag=$lt_allow_undefined_flag
  9618. # Flag that forces no undefined symbols.
  9619. no_undefined_flag=$lt_no_undefined_flag
  9620. # Commands used to finish a libtool library installation in a directory.
  9621. finish_cmds=$lt_finish_cmds
  9622. # Same as above, but a single script fragment to be evaled but not shown.
  9623. finish_eval=$lt_finish_eval
  9624. # Take the output of nm and produce a listing of raw symbols and C names.
  9625. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9626. # Transform the output of nm in a proper C declaration
  9627. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9628. # Transform the output of nm in a C name address pair
  9629. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9630. # This is the shared library runtime path variable.
  9631. runpath_var=$runpath_var
  9632. # This is the shared library path variable.
  9633. shlibpath_var=$shlibpath_var
  9634. # Is shlibpath searched before the hard-coded library search path?
  9635. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9636. # How to hardcode a shared library path into an executable.
  9637. hardcode_action=$hardcode_action
  9638. # Whether we should hardcode library paths into libraries.
  9639. hardcode_into_libs=$hardcode_into_libs
  9640. # Flag to hardcode \$libdir into a binary during linking.
  9641. # This must work even if \$libdir does not exist.
  9642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9643. # If ld is used when linking, flag to hardcode \$libdir into
  9644. # a binary during linking. This must work even if \$libdir does
  9645. # not exist.
  9646. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9647. # Whether we need a single -rpath flag with a separated argument.
  9648. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9649. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9650. # resulting binary.
  9651. hardcode_direct=$hardcode_direct
  9652. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9653. # resulting binary.
  9654. hardcode_minus_L=$hardcode_minus_L
  9655. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9656. # the resulting binary.
  9657. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9658. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9659. # and all subsequent libraries and executables linked against it.
  9660. hardcode_automatic=$hardcode_automatic
  9661. # Variables whose values should be saved in libtool wrapper scripts and
  9662. # restored at relink time.
  9663. variables_saved_for_relink="$variables_saved_for_relink"
  9664. # Whether libtool must link a program against all its dependency libraries.
  9665. link_all_deplibs=$link_all_deplibs
  9666. # Compile-time system search path for libraries
  9667. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9668. # Run-time system search path for libraries
  9669. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9670. # Fix the shell variable \$srcfile for the compiler.
  9671. fix_srcfile_path="$fix_srcfile_path"
  9672. # Set to yes if exported symbols are required.
  9673. always_export_symbols=$always_export_symbols
  9674. # The commands to list exported symbols.
  9675. export_symbols_cmds=$lt_export_symbols_cmds
  9676. # The commands to extract the exported symbol list from a shared archive.
  9677. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9678. # Symbols that should not be listed in the preloaded symbols.
  9679. exclude_expsyms=$lt_exclude_expsyms
  9680. # Symbols that must always be exported.
  9681. include_expsyms=$lt_include_expsyms
  9682. # ### END LIBTOOL CONFIG
  9683. __EOF__
  9684. case $host_os in
  9685. aix3*)
  9686. cat <<\EOF >> "$cfgfile"
  9687. # AIX sometimes has problems with the GCC collect2 program. For some
  9688. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9689. # vanish in a puff of smoke.
  9690. if test "X${COLLECT_NAMES+set}" != Xset; then
  9691. COLLECT_NAMES=
  9692. export COLLECT_NAMES
  9693. fi
  9694. EOF
  9695. ;;
  9696. esac
  9697. # We use sed instead of cat because bash on DJGPP gets confused if
  9698. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9699. # text mode, it properly converts lines to CR/LF. This bash problem
  9700. # is reportedly fixed, but why not run on old versions too?
  9701. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9702. mv -f "$cfgfile" "$ofile" || \
  9703. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9704. chmod +x "$ofile"
  9705. else
  9706. # If there is no Makefile yet, we rely on a make rule to execute
  9707. # `config.status --recheck' to rerun these tests and create the
  9708. # libtool script then.
  9709. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9710. if test -f "$ltmain_in"; then
  9711. test -f Makefile && make "$ltmain"
  9712. fi
  9713. fi
  9714. ac_ext=c
  9715. ac_cpp='$CPP $CPPFLAGS'
  9716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9719. CC="$lt_save_CC"
  9720. # Check whether --with-tags or --without-tags was given.
  9721. if test "${with_tags+set}" = set; then
  9722. withval="$with_tags"
  9723. tagnames="$withval"
  9724. fi;
  9725. if test -f "$ltmain" && test -n "$tagnames"; then
  9726. if test ! -f "${ofile}"; then
  9727. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9728. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9729. fi
  9730. if test -z "$LTCC"; then
  9731. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9732. if test -z "$LTCC"; then
  9733. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9734. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9735. else
  9736. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9737. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9738. fi
  9739. fi
  9740. # Extract list of available tagged configurations in $ofile.
  9741. # Note that this assumes the entire list is on one line.
  9742. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9743. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9744. for tagname in $tagnames; do
  9745. IFS="$lt_save_ifs"
  9746. # Check whether tagname contains only valid characters
  9747. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9748. "") ;;
  9749. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9750. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9751. { (exit 1); exit 1; }; }
  9752. ;;
  9753. esac
  9754. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9755. then
  9756. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9757. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9758. { (exit 1); exit 1; }; }
  9759. fi
  9760. # Update the list of available tags.
  9761. if test -n "$tagname"; then
  9762. echo appending configuration tag \"$tagname\" to $ofile
  9763. case $tagname in
  9764. CXX)
  9765. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9766. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9767. (test "X$CXX" != "Xg++"))) ; then
  9768. ac_ext=cc
  9769. ac_cpp='$CXXCPP $CPPFLAGS'
  9770. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9771. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9772. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9773. archive_cmds_need_lc_CXX=no
  9774. allow_undefined_flag_CXX=
  9775. always_export_symbols_CXX=no
  9776. archive_expsym_cmds_CXX=
  9777. export_dynamic_flag_spec_CXX=
  9778. hardcode_direct_CXX=no
  9779. hardcode_libdir_flag_spec_CXX=
  9780. hardcode_libdir_flag_spec_ld_CXX=
  9781. hardcode_libdir_separator_CXX=
  9782. hardcode_minus_L_CXX=no
  9783. hardcode_automatic_CXX=no
  9784. module_cmds_CXX=
  9785. module_expsym_cmds_CXX=
  9786. link_all_deplibs_CXX=unknown
  9787. old_archive_cmds_CXX=$old_archive_cmds
  9788. no_undefined_flag_CXX=
  9789. whole_archive_flag_spec_CXX=
  9790. enable_shared_with_static_runtimes_CXX=no
  9791. # Dependencies to place before and after the object being linked:
  9792. predep_objects_CXX=
  9793. postdep_objects_CXX=
  9794. predeps_CXX=
  9795. postdeps_CXX=
  9796. compiler_lib_search_path_CXX=
  9797. # Source file extension for C++ test sources.
  9798. ac_ext=cc
  9799. # Object file extension for compiled C++ test sources.
  9800. objext=o
  9801. objext_CXX=$objext
  9802. # Code to be used in simple compile tests
  9803. lt_simple_compile_test_code="int some_variable = 0;\n"
  9804. # Code to be used in simple link tests
  9805. lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  9806. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9807. # If no C compiler was specified, use CC.
  9808. LTCC=${LTCC-"$CC"}
  9809. # Allow CC to be a program name with arguments.
  9810. compiler=$CC
  9811. # Allow CC to be a program name with arguments.
  9812. lt_save_CC=$CC
  9813. lt_save_LD=$LD
  9814. lt_save_GCC=$GCC
  9815. GCC=$GXX
  9816. lt_save_with_gnu_ld=$with_gnu_ld
  9817. lt_save_path_LD=$lt_cv_path_LD
  9818. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9819. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9820. else
  9821. unset lt_cv_prog_gnu_ld
  9822. fi
  9823. if test -n "${lt_cv_path_LDCXX+set}"; then
  9824. lt_cv_path_LD=$lt_cv_path_LDCXX
  9825. else
  9826. unset lt_cv_path_LD
  9827. fi
  9828. test -z "${LDCXX+set}" || LD=$LDCXX
  9829. CC=${CXX-"c++"}
  9830. compiler=$CC
  9831. compiler_CXX=$CC
  9832. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  9833. # We don't want -fno-exception wen compiling C++ code, so set the
  9834. # no_builtin_flag separately
  9835. if test "$GXX" = yes; then
  9836. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9837. else
  9838. lt_prog_compiler_no_builtin_flag_CXX=
  9839. fi
  9840. if test "$GXX" = yes; then
  9841. # Set up default GNU C++ configuration
  9842. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9843. if test "${with_gnu_ld+set}" = set; then
  9844. withval="$with_gnu_ld"
  9845. test "$withval" = no || with_gnu_ld=yes
  9846. else
  9847. with_gnu_ld=no
  9848. fi;
  9849. ac_prog=ld
  9850. if test "$GCC" = yes; then
  9851. # Check if gcc -print-prog-name=ld gives a path.
  9852. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9853. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9854. case $host in
  9855. *-*-mingw*)
  9856. # gcc leaves a trailing carriage return which upsets mingw
  9857. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9858. *)
  9859. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9860. esac
  9861. case $ac_prog in
  9862. # Accept absolute paths.
  9863. [\\/]* | ?:[\\/]*)
  9864. re_direlt='/[^/][^/]*/\.\./'
  9865. # Canonicalize the pathname of ld
  9866. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9867. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9868. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9869. done
  9870. test -z "$LD" && LD="$ac_prog"
  9871. ;;
  9872. "")
  9873. # If it fails, then pretend we aren't using GCC.
  9874. ac_prog=ld
  9875. ;;
  9876. *)
  9877. # If it is relative, then search for the first ld in PATH.
  9878. with_gnu_ld=unknown
  9879. ;;
  9880. esac
  9881. elif test "$with_gnu_ld" = yes; then
  9882. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9883. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9884. else
  9885. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9886. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9887. fi
  9888. if test "${lt_cv_path_LD+set}" = set; then
  9889. echo $ECHO_N "(cached) $ECHO_C" >&6
  9890. else
  9891. if test -z "$LD"; then
  9892. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9893. for ac_dir in $PATH; do
  9894. IFS="$lt_save_ifs"
  9895. test -z "$ac_dir" && ac_dir=.
  9896. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9897. lt_cv_path_LD="$ac_dir/$ac_prog"
  9898. # Check to see if the program is GNU ld. I'd rather use --version,
  9899. # but apparently some GNU ld's only accept -v.
  9900. # Break only if it was the GNU/non-GNU ld that we prefer.
  9901. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9902. *GNU* | *'with BFD'*)
  9903. test "$with_gnu_ld" != no && break
  9904. ;;
  9905. *)
  9906. test "$with_gnu_ld" != yes && break
  9907. ;;
  9908. esac
  9909. fi
  9910. done
  9911. IFS="$lt_save_ifs"
  9912. else
  9913. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9914. fi
  9915. fi
  9916. LD="$lt_cv_path_LD"
  9917. if test -n "$LD"; then
  9918. echo "$as_me:$LINENO: result: $LD" >&5
  9919. echo "${ECHO_T}$LD" >&6
  9920. else
  9921. echo "$as_me:$LINENO: result: no" >&5
  9922. echo "${ECHO_T}no" >&6
  9923. fi
  9924. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9925. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9926. { (exit 1); exit 1; }; }
  9927. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9928. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9929. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9930. echo $ECHO_N "(cached) $ECHO_C" >&6
  9931. else
  9932. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  9933. case `$LD -v 2>&1 </dev/null` in
  9934. *GNU* | *'with BFD'*)
  9935. lt_cv_prog_gnu_ld=yes
  9936. ;;
  9937. *)
  9938. lt_cv_prog_gnu_ld=no
  9939. ;;
  9940. esac
  9941. fi
  9942. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9943. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9944. with_gnu_ld=$lt_cv_prog_gnu_ld
  9945. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9946. # archiving commands below assume that GNU ld is being used.
  9947. if test "$with_gnu_ld" = yes; then
  9948. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9949. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9950. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9951. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9952. # If archive_cmds runs LD, not CC, wlarc should be empty
  9953. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9954. # investigate it a little bit more. (MM)
  9955. wlarc='${wl}'
  9956. # ancient GNU ld didn't support --whole-archive et. al.
  9957. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9958. grep 'no-whole-archive' > /dev/null; then
  9959. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9960. else
  9961. whole_archive_flag_spec_CXX=
  9962. fi
  9963. else
  9964. with_gnu_ld=no
  9965. wlarc=
  9966. # A generic and very simple default shared library creation
  9967. # command for GNU C++ for the case where it uses the native
  9968. # linker, instead of GNU ld. If possible, this setting should
  9969. # overridden to take advantage of the native linker features on
  9970. # the platform it is being used on.
  9971. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9972. fi
  9973. # Commands to make compiler produce verbose output that lists
  9974. # what "hidden" libraries, object files and flags are used when
  9975. # linking a shared library.
  9976. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9977. else
  9978. GXX=no
  9979. with_gnu_ld=no
  9980. wlarc=
  9981. fi
  9982. # PORTME: fill in a description of your system's C++ link characteristics
  9983. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9984. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9985. ld_shlibs_CXX=yes
  9986. case $host_os in
  9987. aix3*)
  9988. # FIXME: insert proper C++ library support
  9989. ld_shlibs_CXX=no
  9990. ;;
  9991. aix4* | aix5*)
  9992. if test "$host_cpu" = ia64; then
  9993. # On IA64, the linker does run time linking by default, so we don't
  9994. # have to do anything special.
  9995. aix_use_runtimelinking=no
  9996. exp_sym_flag='-Bexport'
  9997. no_entry_flag=""
  9998. else
  9999. aix_use_runtimelinking=no
  10000. # Test if we are trying to use run time linking or normal
  10001. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10002. # need to do runtime linking.
  10003. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10004. for ld_flag in $LDFLAGS; do
  10005. case $ld_flag in
  10006. *-brtl*)
  10007. aix_use_runtimelinking=yes
  10008. break
  10009. ;;
  10010. esac
  10011. done
  10012. esac
  10013. exp_sym_flag='-bexport'
  10014. no_entry_flag='-bnoentry'
  10015. fi
  10016. # When large executables or shared objects are built, AIX ld can
  10017. # have problems creating the table of contents. If linking a library
  10018. # or program results in "error TOC overflow" add -mminimal-toc to
  10019. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10020. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10021. archive_cmds_CXX=''
  10022. hardcode_direct_CXX=yes
  10023. hardcode_libdir_separator_CXX=':'
  10024. link_all_deplibs_CXX=yes
  10025. if test "$GXX" = yes; then
  10026. case $host_os in aix4.[012]|aix4.[012].*)
  10027. # We only want to do this on AIX 4.2 and lower, the check
  10028. # below for broken collect2 doesn't work under 4.3+
  10029. collect2name=`${CC} -print-prog-name=collect2`
  10030. if test -f "$collect2name" && \
  10031. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10032. then
  10033. # We have reworked collect2
  10034. hardcode_direct_CXX=yes
  10035. else
  10036. # We have old collect2
  10037. hardcode_direct_CXX=unsupported
  10038. # It fails to find uninstalled libraries when the uninstalled
  10039. # path is not listed in the libpath. Setting hardcode_minus_L
  10040. # to unsupported forces relinking
  10041. hardcode_minus_L_CXX=yes
  10042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10043. hardcode_libdir_separator_CXX=
  10044. fi
  10045. esac
  10046. shared_flag='-shared'
  10047. if test "$aix_use_runtimelinking" = yes; then
  10048. shared_flag="$shared_flag "'${wl}-G'
  10049. fi
  10050. else
  10051. # not using gcc
  10052. if test "$host_cpu" = ia64; then
  10053. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10054. # chokes on -Wl,-G. The following line is correct:
  10055. shared_flag='-G'
  10056. else
  10057. if test "$aix_use_runtimelinking" = yes; then
  10058. shared_flag='${wl}-G'
  10059. else
  10060. shared_flag='${wl}-bM:SRE'
  10061. fi
  10062. fi
  10063. fi
  10064. # It seems that -bexpall does not export symbols beginning with
  10065. # underscore (_), so it is better to generate a list of symbols to export.
  10066. always_export_symbols_CXX=yes
  10067. if test "$aix_use_runtimelinking" = yes; then
  10068. # Warning - without using the other runtime loading flags (-brtl),
  10069. # -berok will link without error, but may produce a broken library.
  10070. allow_undefined_flag_CXX='-berok'
  10071. # Determine the default libpath from the value encoded in an empty executable.
  10072. cat >conftest.$ac_ext <<_ACEOF
  10073. /* confdefs.h. */
  10074. _ACEOF
  10075. cat confdefs.h >>conftest.$ac_ext
  10076. cat >>conftest.$ac_ext <<_ACEOF
  10077. /* end confdefs.h. */
  10078. int
  10079. main ()
  10080. {
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. rm -f conftest.$ac_objext conftest$ac_exeext
  10086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10087. (eval $ac_link) 2>conftest.er1
  10088. ac_status=$?
  10089. grep -v '^ *+' conftest.er1 >conftest.err
  10090. rm -f conftest.er1
  10091. cat conftest.err >&5
  10092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10093. (exit $ac_status); } &&
  10094. { ac_try='test -z "$ac_cxx_werror_flag"
  10095. || test ! -s conftest.err'
  10096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10097. (eval $ac_try) 2>&5
  10098. ac_status=$?
  10099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10100. (exit $ac_status); }; } &&
  10101. { ac_try='test -s conftest$ac_exeext'
  10102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10103. (eval $ac_try) 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }; }; then
  10107. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10108. }'`
  10109. # Check for a 64-bit object if we didn't find anything.
  10110. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10111. }'`; fi
  10112. else
  10113. echo "$as_me: failed program was:" >&5
  10114. sed 's/^/| /' conftest.$ac_ext >&5
  10115. fi
  10116. rm -f conftest.err conftest.$ac_objext \
  10117. conftest$ac_exeext conftest.$ac_ext
  10118. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10119. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10120. archive_expsym_cmds_CXX="\$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"
  10121. else
  10122. if test "$host_cpu" = ia64; then
  10123. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10124. allow_undefined_flag_CXX="-z nodefs"
  10125. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  10126. else
  10127. # Determine the default libpath from the value encoded in an empty executable.
  10128. cat >conftest.$ac_ext <<_ACEOF
  10129. /* confdefs.h. */
  10130. _ACEOF
  10131. cat confdefs.h >>conftest.$ac_ext
  10132. cat >>conftest.$ac_ext <<_ACEOF
  10133. /* end confdefs.h. */
  10134. int
  10135. main ()
  10136. {
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. rm -f conftest.$ac_objext conftest$ac_exeext
  10142. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10143. (eval $ac_link) 2>conftest.er1
  10144. ac_status=$?
  10145. grep -v '^ *+' conftest.er1 >conftest.err
  10146. rm -f conftest.er1
  10147. cat conftest.err >&5
  10148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. (exit $ac_status); } &&
  10150. { ac_try='test -z "$ac_cxx_werror_flag"
  10151. || test ! -s conftest.err'
  10152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10153. (eval $ac_try) 2>&5
  10154. ac_status=$?
  10155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10156. (exit $ac_status); }; } &&
  10157. { ac_try='test -s conftest$ac_exeext'
  10158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10159. (eval $ac_try) 2>&5
  10160. ac_status=$?
  10161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10162. (exit $ac_status); }; }; then
  10163. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10164. }'`
  10165. # Check for a 64-bit object if we didn't find anything.
  10166. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10167. }'`; fi
  10168. else
  10169. echo "$as_me: failed program was:" >&5
  10170. sed 's/^/| /' conftest.$ac_ext >&5
  10171. fi
  10172. rm -f conftest.err conftest.$ac_objext \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10175. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10176. # Warning - without using the other run time loading flags,
  10177. # -berok will link without error, but may produce a broken library.
  10178. no_undefined_flag_CXX=' ${wl}-bernotok'
  10179. allow_undefined_flag_CXX=' ${wl}-berok'
  10180. # -bexpall does not export symbols beginning with underscore (_)
  10181. always_export_symbols_CXX=yes
  10182. # Exported symbols can be pulled into shared objects from archives
  10183. whole_archive_flag_spec_CXX=' '
  10184. archive_cmds_need_lc_CXX=yes
  10185. # This is similar to how AIX traditionally builds it's shared libraries.
  10186. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10187. fi
  10188. fi
  10189. ;;
  10190. chorus*)
  10191. case $cc_basename in
  10192. *)
  10193. # FIXME: insert proper C++ library support
  10194. ld_shlibs_CXX=no
  10195. ;;
  10196. esac
  10197. ;;
  10198. cygwin* | mingw* | pw32*)
  10199. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10200. # as there is no search path for DLLs.
  10201. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10202. allow_undefined_flag_CXX=unsupported
  10203. always_export_symbols_CXX=no
  10204. enable_shared_with_static_runtimes_CXX=yes
  10205. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10206. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10207. # If the export-symbols file already is a .def file (1st line
  10208. # is EXPORTS), use it as is; otherwise, prepend...
  10209. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10210. cp $export_symbols $output_objdir/$soname.def;
  10211. else
  10212. echo EXPORTS > $output_objdir/$soname.def;
  10213. cat $export_symbols >> $output_objdir/$soname.def;
  10214. fi~
  10215. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  10216. else
  10217. ld_shlibs_CXX=no
  10218. fi
  10219. ;;
  10220. darwin* | rhapsody*)
  10221. case "$host_os" in
  10222. rhapsody* | darwin1.[012])
  10223. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10224. ;;
  10225. *) # Darwin 1.3 on
  10226. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10227. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10228. else
  10229. case ${MACOSX_DEPLOYMENT_TARGET} in
  10230. 10.[012])
  10231. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10232. ;;
  10233. 10.*)
  10234. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10235. ;;
  10236. esac
  10237. fi
  10238. ;;
  10239. esac
  10240. archive_cmds_need_lc_CXX=no
  10241. hardcode_direct_CXX=no
  10242. hardcode_automatic_CXX=yes
  10243. hardcode_shlibpath_var_CXX=unsupported
  10244. whole_archive_flag_spec_CXX=''
  10245. link_all_deplibs_CXX=yes
  10246. if test "$GXX" = yes ; then
  10247. lt_int_apple_cc_single_mod=no
  10248. output_verbose_link_cmd='echo'
  10249. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10250. lt_int_apple_cc_single_mod=yes
  10251. fi
  10252. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10253. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10254. else
  10255. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10256. fi
  10257. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10258. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10259. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10260. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10261. else
  10262. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10263. fi
  10264. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10265. else
  10266. case "$cc_basename" in
  10267. xlc*)
  10268. output_verbose_link_cmd='echo'
  10269. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  10270. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10271. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10272. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10273. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10274. ;;
  10275. *)
  10276. ld_shlibs_CXX=no
  10277. ;;
  10278. esac
  10279. fi
  10280. ;;
  10281. dgux*)
  10282. case $cc_basename in
  10283. ec++)
  10284. # FIXME: insert proper C++ library support
  10285. ld_shlibs_CXX=no
  10286. ;;
  10287. ghcx)
  10288. # Green Hills C++ Compiler
  10289. # FIXME: insert proper C++ library support
  10290. ld_shlibs_CXX=no
  10291. ;;
  10292. *)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. esac
  10297. ;;
  10298. freebsd[12]*)
  10299. # C++ shared libraries reported to be fairly broken before switch to ELF
  10300. ld_shlibs_CXX=no
  10301. ;;
  10302. freebsd-elf*)
  10303. archive_cmds_need_lc_CXX=no
  10304. ;;
  10305. freebsd* | kfreebsd*-gnu | dragonfly*)
  10306. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10307. # conventions
  10308. ld_shlibs_CXX=yes
  10309. ;;
  10310. gnu*)
  10311. ;;
  10312. hpux9*)
  10313. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10314. hardcode_libdir_separator_CXX=:
  10315. export_dynamic_flag_spec_CXX='${wl}-E'
  10316. hardcode_direct_CXX=yes
  10317. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10318. # but as the default
  10319. # location of the library.
  10320. case $cc_basename in
  10321. CC)
  10322. # FIXME: insert proper C++ library support
  10323. ld_shlibs_CXX=no
  10324. ;;
  10325. aCC)
  10326. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10327. # Commands to make compiler produce verbose output that lists
  10328. # what "hidden" libraries, object files and flags are used when
  10329. # linking a shared library.
  10330. #
  10331. # There doesn't appear to be a way to prevent this compiler from
  10332. # explicitly linking system object files so we need to strip them
  10333. # from the output so that they don't get included in the library
  10334. # dependencies.
  10335. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10336. ;;
  10337. *)
  10338. if test "$GXX" = yes; then
  10339. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10340. else
  10341. # FIXME: insert proper C++ library support
  10342. ld_shlibs_CXX=no
  10343. fi
  10344. ;;
  10345. esac
  10346. ;;
  10347. hpux10*|hpux11*)
  10348. if test $with_gnu_ld = no; then
  10349. case "$host_cpu" in
  10350. hppa*64*)
  10351. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10352. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10353. hardcode_libdir_separator_CXX=:
  10354. ;;
  10355. ia64*)
  10356. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10357. ;;
  10358. *)
  10359. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10360. hardcode_libdir_separator_CXX=:
  10361. export_dynamic_flag_spec_CXX='${wl}-E'
  10362. ;;
  10363. esac
  10364. fi
  10365. case "$host_cpu" in
  10366. hppa*64*)
  10367. hardcode_direct_CXX=no
  10368. hardcode_shlibpath_var_CXX=no
  10369. ;;
  10370. ia64*)
  10371. hardcode_direct_CXX=no
  10372. hardcode_shlibpath_var_CXX=no
  10373. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10374. # but as the default
  10375. # location of the library.
  10376. ;;
  10377. *)
  10378. hardcode_direct_CXX=yes
  10379. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10380. # but as the default
  10381. # location of the library.
  10382. ;;
  10383. esac
  10384. case $cc_basename in
  10385. CC)
  10386. # FIXME: insert proper C++ library support
  10387. ld_shlibs_CXX=no
  10388. ;;
  10389. aCC)
  10390. case "$host_cpu" in
  10391. hppa*64*|ia64*)
  10392. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10393. ;;
  10394. *)
  10395. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10396. ;;
  10397. esac
  10398. # Commands to make compiler produce verbose output that lists
  10399. # what "hidden" libraries, object files and flags are used when
  10400. # linking a shared library.
  10401. #
  10402. # There doesn't appear to be a way to prevent this compiler from
  10403. # explicitly linking system object files so we need to strip them
  10404. # from the output so that they don't get included in the library
  10405. # dependencies.
  10406. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10407. ;;
  10408. *)
  10409. if test "$GXX" = yes; then
  10410. if test $with_gnu_ld = no; then
  10411. case "$host_cpu" in
  10412. ia64*|hppa*64*)
  10413. archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  10414. ;;
  10415. *)
  10416. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10417. ;;
  10418. esac
  10419. fi
  10420. else
  10421. # FIXME: insert proper C++ library support
  10422. ld_shlibs_CXX=no
  10423. fi
  10424. ;;
  10425. esac
  10426. ;;
  10427. irix5* | irix6*)
  10428. case $cc_basename in
  10429. CC)
  10430. # SGI C++
  10431. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10432. # Archives containing C++ object files must be created using
  10433. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10434. # necessary to make sure instantiated templates are included
  10435. # in the archive.
  10436. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10437. ;;
  10438. *)
  10439. if test "$GXX" = yes; then
  10440. if test "$with_gnu_ld" = no; then
  10441. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10442. else
  10443. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10444. fi
  10445. fi
  10446. link_all_deplibs_CXX=yes
  10447. ;;
  10448. esac
  10449. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10450. hardcode_libdir_separator_CXX=:
  10451. ;;
  10452. linux*)
  10453. case $cc_basename in
  10454. KCC)
  10455. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10456. # KCC will only create a shared library if the output file
  10457. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10458. # to its proper name (with version) after linking.
  10459. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10460. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10461. # Commands to make compiler produce verbose output that lists
  10462. # what "hidden" libraries, object files and flags are used when
  10463. # linking a shared library.
  10464. #
  10465. # There doesn't appear to be a way to prevent this compiler from
  10466. # explicitly linking system object files so we need to strip them
  10467. # from the output so that they don't get included in the library
  10468. # dependencies.
  10469. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10470. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10471. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10472. # Archives containing C++ object files must be created using
  10473. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10474. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10475. ;;
  10476. icpc)
  10477. # Intel C++
  10478. with_gnu_ld=yes
  10479. # version 8.0 and above of icpc choke on multiply defined symbols
  10480. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10481. # earlier do not add the objects themselves.
  10482. case `$CC -V 2>&1` in
  10483. *"Version 7."*)
  10484. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10485. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10486. ;;
  10487. *) # Version 8.0 or newer
  10488. tmp_idyn=
  10489. case $host_cpu in
  10490. ia64*) tmp_idyn=' -i_dynamic';;
  10491. esac
  10492. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10493. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10494. ;;
  10495. esac
  10496. archive_cmds_need_lc_CXX=no
  10497. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10498. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10499. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10500. ;;
  10501. pgCC)
  10502. # Portland Group C++ compiler
  10503. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10504. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10505. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10506. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10507. ;;
  10508. cxx)
  10509. # Compaq C++
  10510. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10511. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10512. runpath_var=LD_RUN_PATH
  10513. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10514. hardcode_libdir_separator_CXX=:
  10515. # Commands to make compiler produce verbose output that lists
  10516. # what "hidden" libraries, object files and flags are used when
  10517. # linking a shared library.
  10518. #
  10519. # There doesn't appear to be a way to prevent this compiler from
  10520. # explicitly linking system object files so we need to strip them
  10521. # from the output so that they don't get included in the library
  10522. # dependencies.
  10523. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10524. ;;
  10525. esac
  10526. ;;
  10527. lynxos*)
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. ;;
  10531. m88k*)
  10532. # FIXME: insert proper C++ library support
  10533. ld_shlibs_CXX=no
  10534. ;;
  10535. mvs*)
  10536. case $cc_basename in
  10537. cxx)
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. *)
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. ;;
  10545. esac
  10546. ;;
  10547. netbsd*)
  10548. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10549. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10550. wlarc=
  10551. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10552. hardcode_direct_CXX=yes
  10553. hardcode_shlibpath_var_CXX=no
  10554. fi
  10555. # Workaround some broken pre-1.5 toolchains
  10556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10557. ;;
  10558. openbsd2*)
  10559. # C++ shared libraries are fairly broken
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. openbsd*)
  10563. hardcode_direct_CXX=yes
  10564. hardcode_shlibpath_var_CXX=no
  10565. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10566. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10567. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10568. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10569. export_dynamic_flag_spec_CXX='${wl}-E'
  10570. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10571. fi
  10572. output_verbose_link_cmd='echo'
  10573. ;;
  10574. osf3*)
  10575. case $cc_basename in
  10576. KCC)
  10577. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10578. # KCC will only create a shared library if the output file
  10579. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10580. # to its proper name (with version) after linking.
  10581. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10582. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10583. hardcode_libdir_separator_CXX=:
  10584. # Archives containing C++ object files must be created using
  10585. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10586. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10587. ;;
  10588. RCC)
  10589. # Rational C++ 2.4.1
  10590. # FIXME: insert proper C++ library support
  10591. ld_shlibs_CXX=no
  10592. ;;
  10593. cxx)
  10594. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10595. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10596. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10597. hardcode_libdir_separator_CXX=:
  10598. # Commands to make compiler produce verbose output that lists
  10599. # what "hidden" libraries, object files and flags are used when
  10600. # linking a shared library.
  10601. #
  10602. # There doesn't appear to be a way to prevent this compiler from
  10603. # explicitly linking system object files so we need to strip them
  10604. # from the output so that they don't get included in the library
  10605. # dependencies.
  10606. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10607. ;;
  10608. *)
  10609. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10610. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10611. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10612. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10613. hardcode_libdir_separator_CXX=:
  10614. # Commands to make compiler produce verbose output that lists
  10615. # what "hidden" libraries, object files and flags are used when
  10616. # linking a shared library.
  10617. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10618. else
  10619. # FIXME: insert proper C++ library support
  10620. ld_shlibs_CXX=no
  10621. fi
  10622. ;;
  10623. esac
  10624. ;;
  10625. osf4* | osf5*)
  10626. case $cc_basename in
  10627. KCC)
  10628. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10629. # KCC will only create a shared library if the output file
  10630. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10631. # to its proper name (with version) after linking.
  10632. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10633. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10634. hardcode_libdir_separator_CXX=:
  10635. # Archives containing C++ object files must be created using
  10636. # the KAI C++ compiler.
  10637. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10638. ;;
  10639. RCC)
  10640. # Rational C++ 2.4.1
  10641. # FIXME: insert proper C++ library support
  10642. ld_shlibs_CXX=no
  10643. ;;
  10644. cxx)
  10645. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10646. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  10647. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10648. echo "-hidden">> $lib.exp~
  10649. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  10650. $rm $lib.exp'
  10651. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10652. hardcode_libdir_separator_CXX=:
  10653. # Commands to make compiler produce verbose output that lists
  10654. # what "hidden" libraries, object files and flags are used when
  10655. # linking a shared library.
  10656. #
  10657. # There doesn't appear to be a way to prevent this compiler from
  10658. # explicitly linking system object files so we need to strip them
  10659. # from the output so that they don't get included in the library
  10660. # dependencies.
  10661. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10662. ;;
  10663. *)
  10664. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10665. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10666. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  10667. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10668. hardcode_libdir_separator_CXX=:
  10669. # Commands to make compiler produce verbose output that lists
  10670. # what "hidden" libraries, object files and flags are used when
  10671. # linking a shared library.
  10672. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10673. else
  10674. # FIXME: insert proper C++ library support
  10675. ld_shlibs_CXX=no
  10676. fi
  10677. ;;
  10678. esac
  10679. ;;
  10680. psos*)
  10681. # FIXME: insert proper C++ library support
  10682. ld_shlibs_CXX=no
  10683. ;;
  10684. sco*)
  10685. archive_cmds_need_lc_CXX=no
  10686. case $cc_basename in
  10687. CC)
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. ;;
  10691. *)
  10692. # FIXME: insert proper C++ library support
  10693. ld_shlibs_CXX=no
  10694. ;;
  10695. esac
  10696. ;;
  10697. sunos4*)
  10698. case $cc_basename in
  10699. CC)
  10700. # Sun C++ 4.x
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. lcc)
  10705. # Lucid
  10706. # FIXME: insert proper C++ library support
  10707. ld_shlibs_CXX=no
  10708. ;;
  10709. *)
  10710. # FIXME: insert proper C++ library support
  10711. ld_shlibs_CXX=no
  10712. ;;
  10713. esac
  10714. ;;
  10715. solaris*)
  10716. case $cc_basename in
  10717. CC)
  10718. # Sun C++ 4.2, 5.x and Centerline C++
  10719. no_undefined_flag_CXX=' -zdefs'
  10720. archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10721. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10722. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10723. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10724. hardcode_shlibpath_var_CXX=no
  10725. case $host_os in
  10726. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10727. *)
  10728. # The C++ compiler is used as linker so we must use $wl
  10729. # flag to pass the commands to the underlying system
  10730. # linker.
  10731. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10732. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10733. ;;
  10734. esac
  10735. link_all_deplibs_CXX=yes
  10736. # Commands to make compiler produce verbose output that lists
  10737. # what "hidden" libraries, object files and flags are used when
  10738. # linking a shared library.
  10739. #
  10740. # There doesn't appear to be a way to prevent this compiler from
  10741. # explicitly linking system object files so we need to strip them
  10742. # from the output so that they don't get included in the library
  10743. # dependencies.
  10744. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10745. # Archives containing C++ object files must be created using
  10746. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10747. # necessary to make sure instantiated templates are included
  10748. # in the archive.
  10749. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10750. ;;
  10751. gcx)
  10752. # Green Hills C++ Compiler
  10753. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10754. # The C++ compiler must be used to create the archive.
  10755. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10756. ;;
  10757. *)
  10758. # GNU C++ compiler with Solaris linker
  10759. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10760. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10761. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10762. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10763. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10764. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10765. # Commands to make compiler produce verbose output that lists
  10766. # what "hidden" libraries, object files and flags are used when
  10767. # linking a shared library.
  10768. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10769. else
  10770. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10771. # platform.
  10772. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10773. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10774. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10775. # Commands to make compiler produce verbose output that lists
  10776. # what "hidden" libraries, object files and flags are used when
  10777. # linking a shared library.
  10778. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10779. fi
  10780. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10781. fi
  10782. ;;
  10783. esac
  10784. ;;
  10785. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10786. archive_cmds_need_lc_CXX=no
  10787. ;;
  10788. tandem*)
  10789. case $cc_basename in
  10790. NCC)
  10791. # NonStop-UX NCC 3.20
  10792. # FIXME: insert proper C++ library support
  10793. ld_shlibs_CXX=no
  10794. ;;
  10795. *)
  10796. # FIXME: insert proper C++ library support
  10797. ld_shlibs_CXX=no
  10798. ;;
  10799. esac
  10800. ;;
  10801. vxworks*)
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. *)
  10806. # FIXME: insert proper C++ library support
  10807. ld_shlibs_CXX=no
  10808. ;;
  10809. esac
  10810. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10811. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10812. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10813. GCC_CXX="$GXX"
  10814. LD_CXX="$LD"
  10815. cat > conftest.$ac_ext <<EOF
  10816. class Foo
  10817. {
  10818. public:
  10819. Foo (void) { a = 0; }
  10820. private:
  10821. int a;
  10822. };
  10823. EOF
  10824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10825. (eval $ac_compile) 2>&5
  10826. ac_status=$?
  10827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10828. (exit $ac_status); }; then
  10829. # Parse the compiler output and extract the necessary
  10830. # objects, libraries and library flags.
  10831. # Sentinel used to keep track of whether or not we are before
  10832. # the conftest object file.
  10833. pre_test_object_deps_done=no
  10834. # The `*' in the case matches for architectures that use `case' in
  10835. # $output_verbose_cmd can trigger glob expansion during the loop
  10836. # eval without this substitution.
  10837. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  10838. for p in `eval $output_verbose_link_cmd`; do
  10839. case $p in
  10840. -L* | -R* | -l*)
  10841. # Some compilers place space between "-{L,R}" and the path.
  10842. # Remove the space.
  10843. if test $p = "-L" \
  10844. || test $p = "-R"; then
  10845. prev=$p
  10846. continue
  10847. else
  10848. prev=
  10849. fi
  10850. if test "$pre_test_object_deps_done" = no; then
  10851. case $p in
  10852. -L* | -R*)
  10853. # Internal compiler library paths should come after those
  10854. # provided the user. The postdeps already come after the
  10855. # user supplied libs so there is no need to process them.
  10856. if test -z "$compiler_lib_search_path_CXX"; then
  10857. compiler_lib_search_path_CXX="${prev}${p}"
  10858. else
  10859. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10860. fi
  10861. ;;
  10862. # The "-l" case would never come before the object being
  10863. # linked, so don't bother handling this case.
  10864. esac
  10865. else
  10866. if test -z "$postdeps_CXX"; then
  10867. postdeps_CXX="${prev}${p}"
  10868. else
  10869. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10870. fi
  10871. fi
  10872. ;;
  10873. *.$objext)
  10874. # This assumes that the test object file only shows up
  10875. # once in the compiler output.
  10876. if test "$p" = "conftest.$objext"; then
  10877. pre_test_object_deps_done=yes
  10878. continue
  10879. fi
  10880. if test "$pre_test_object_deps_done" = no; then
  10881. if test -z "$predep_objects_CXX"; then
  10882. predep_objects_CXX="$p"
  10883. else
  10884. predep_objects_CXX="$predep_objects_CXX $p"
  10885. fi
  10886. else
  10887. if test -z "$postdep_objects_CXX"; then
  10888. postdep_objects_CXX="$p"
  10889. else
  10890. postdep_objects_CXX="$postdep_objects_CXX $p"
  10891. fi
  10892. fi
  10893. ;;
  10894. *) ;; # Ignore the rest.
  10895. esac
  10896. done
  10897. # Clean up.
  10898. rm -f a.out a.exe
  10899. else
  10900. echo "libtool.m4: error: problem compiling CXX test program"
  10901. fi
  10902. $rm -f confest.$objext
  10903. case " $postdeps_CXX " in
  10904. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10905. esac
  10906. lt_prog_compiler_wl_CXX=
  10907. lt_prog_compiler_pic_CXX=
  10908. lt_prog_compiler_static_CXX=
  10909. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10910. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10911. # C++ specific cases for pic, static, wl, etc.
  10912. if test "$GXX" = yes; then
  10913. lt_prog_compiler_wl_CXX='-Wl,'
  10914. lt_prog_compiler_static_CXX='-static'
  10915. case $host_os in
  10916. aix*)
  10917. # All AIX code is PIC.
  10918. if test "$host_cpu" = ia64; then
  10919. # AIX 5 now supports IA64 processor
  10920. lt_prog_compiler_static_CXX='-Bstatic'
  10921. fi
  10922. ;;
  10923. amigaos*)
  10924. # FIXME: we need at least 68020 code to build shared libraries, but
  10925. # adding the `-m68020' flag to GCC prevents building anything better,
  10926. # like `-m68040'.
  10927. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10928. ;;
  10929. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10930. # PIC is the default for these OSes.
  10931. ;;
  10932. mingw* | os2* | pw32*)
  10933. # This hack is so that the source file can tell whether it is being
  10934. # built for inclusion in a dll (and should export symbols for example).
  10935. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10936. ;;
  10937. darwin* | rhapsody*)
  10938. # PIC is the default on this platform
  10939. # Common symbols not allowed in MH_DYLIB files
  10940. lt_prog_compiler_pic_CXX='-fno-common'
  10941. ;;
  10942. *djgpp*)
  10943. # DJGPP does not support shared libraries at all
  10944. lt_prog_compiler_pic_CXX=
  10945. ;;
  10946. sysv4*MP*)
  10947. if test -d /usr/nec; then
  10948. lt_prog_compiler_pic_CXX=-Kconform_pic
  10949. fi
  10950. ;;
  10951. hpux*)
  10952. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10953. # not for PA HP-UX.
  10954. case "$host_cpu" in
  10955. hppa*64*|ia64*)
  10956. ;;
  10957. *)
  10958. lt_prog_compiler_pic_CXX='-fPIC'
  10959. ;;
  10960. esac
  10961. ;;
  10962. *)
  10963. lt_prog_compiler_pic_CXX='-fPIC'
  10964. ;;
  10965. esac
  10966. else
  10967. case $host_os in
  10968. aix4* | aix5*)
  10969. # All AIX code is PIC.
  10970. if test "$host_cpu" = ia64; then
  10971. # AIX 5 now supports IA64 processor
  10972. lt_prog_compiler_static_CXX='-Bstatic'
  10973. else
  10974. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10975. fi
  10976. ;;
  10977. chorus*)
  10978. case $cc_basename in
  10979. cxch68)
  10980. # Green Hills C++ Compiler
  10981. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  10982. ;;
  10983. esac
  10984. ;;
  10985. darwin*)
  10986. # PIC is the default on this platform
  10987. # Common symbols not allowed in MH_DYLIB files
  10988. case "$cc_basename" in
  10989. xlc*)
  10990. lt_prog_compiler_pic_CXX='-qnocommon'
  10991. lt_prog_compiler_wl_CXX='-Wl,'
  10992. ;;
  10993. esac
  10994. ;;
  10995. dgux*)
  10996. case $cc_basename in
  10997. ec++)
  10998. lt_prog_compiler_pic_CXX='-KPIC'
  10999. ;;
  11000. ghcx)
  11001. # Green Hills C++ Compiler
  11002. lt_prog_compiler_pic_CXX='-pic'
  11003. ;;
  11004. *)
  11005. ;;
  11006. esac
  11007. ;;
  11008. freebsd* | kfreebsd*-gnu | dragonfly*)
  11009. # FreeBSD uses GNU C++
  11010. ;;
  11011. hpux9* | hpux10* | hpux11*)
  11012. case $cc_basename in
  11013. CC)
  11014. lt_prog_compiler_wl_CXX='-Wl,'
  11015. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11016. if test "$host_cpu" != ia64; then
  11017. lt_prog_compiler_pic_CXX='+Z'
  11018. fi
  11019. ;;
  11020. aCC)
  11021. lt_prog_compiler_wl_CXX='-Wl,'
  11022. lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  11023. case "$host_cpu" in
  11024. hppa*64*|ia64*)
  11025. # +Z the default
  11026. ;;
  11027. *)
  11028. lt_prog_compiler_pic_CXX='+Z'
  11029. ;;
  11030. esac
  11031. ;;
  11032. *)
  11033. ;;
  11034. esac
  11035. ;;
  11036. irix5* | irix6* | nonstopux*)
  11037. case $cc_basename in
  11038. CC)
  11039. lt_prog_compiler_wl_CXX='-Wl,'
  11040. lt_prog_compiler_static_CXX='-non_shared'
  11041. # CC pic flag -KPIC is the default.
  11042. ;;
  11043. *)
  11044. ;;
  11045. esac
  11046. ;;
  11047. linux*)
  11048. case $cc_basename in
  11049. KCC)
  11050. # KAI C++ Compiler
  11051. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11052. lt_prog_compiler_pic_CXX='-fPIC'
  11053. ;;
  11054. icpc* | ecpc*)
  11055. # Intel C++
  11056. lt_prog_compiler_wl_CXX='-Wl,'
  11057. lt_prog_compiler_pic_CXX='-KPIC'
  11058. lt_prog_compiler_static_CXX='-static'
  11059. ;;
  11060. pgCC)
  11061. # Portland Group C++ compiler.
  11062. lt_prog_compiler_wl_CXX='-Wl,'
  11063. lt_prog_compiler_pic_CXX='-fpic'
  11064. lt_prog_compiler_static_CXX='-static'
  11065. ;;
  11066. cxx)
  11067. # Compaq C++
  11068. # Make sure the PIC flag is empty. It appears that all Alpha
  11069. # Linux and Compaq Tru64 Unix objects are PIC.
  11070. lt_prog_compiler_pic_CXX=
  11071. lt_prog_compiler_static_CXX='-non_shared'
  11072. ;;
  11073. *)
  11074. ;;
  11075. esac
  11076. ;;
  11077. lynxos*)
  11078. ;;
  11079. m88k*)
  11080. ;;
  11081. mvs*)
  11082. case $cc_basename in
  11083. cxx)
  11084. lt_prog_compiler_pic_CXX='-W c,exportall'
  11085. ;;
  11086. *)
  11087. ;;
  11088. esac
  11089. ;;
  11090. netbsd*)
  11091. ;;
  11092. osf3* | osf4* | osf5*)
  11093. case $cc_basename in
  11094. KCC)
  11095. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11096. ;;
  11097. RCC)
  11098. # Rational C++ 2.4.1
  11099. lt_prog_compiler_pic_CXX='-pic'
  11100. ;;
  11101. cxx)
  11102. # Digital/Compaq C++
  11103. lt_prog_compiler_wl_CXX='-Wl,'
  11104. # Make sure the PIC flag is empty. It appears that all Alpha
  11105. # Linux and Compaq Tru64 Unix objects are PIC.
  11106. lt_prog_compiler_pic_CXX=
  11107. lt_prog_compiler_static_CXX='-non_shared'
  11108. ;;
  11109. *)
  11110. ;;
  11111. esac
  11112. ;;
  11113. psos*)
  11114. ;;
  11115. sco*)
  11116. case $cc_basename in
  11117. CC)
  11118. lt_prog_compiler_pic_CXX='-fPIC'
  11119. ;;
  11120. *)
  11121. ;;
  11122. esac
  11123. ;;
  11124. solaris*)
  11125. case $cc_basename in
  11126. CC)
  11127. # Sun C++ 4.2, 5.x and Centerline C++
  11128. lt_prog_compiler_pic_CXX='-KPIC'
  11129. lt_prog_compiler_static_CXX='-Bstatic'
  11130. lt_prog_compiler_wl_CXX='-Qoption ld '
  11131. ;;
  11132. gcx)
  11133. # Green Hills C++ Compiler
  11134. lt_prog_compiler_pic_CXX='-PIC'
  11135. ;;
  11136. *)
  11137. ;;
  11138. esac
  11139. ;;
  11140. sunos4*)
  11141. case $cc_basename in
  11142. CC)
  11143. # Sun C++ 4.x
  11144. lt_prog_compiler_pic_CXX='-pic'
  11145. lt_prog_compiler_static_CXX='-Bstatic'
  11146. ;;
  11147. lcc)
  11148. # Lucid
  11149. lt_prog_compiler_pic_CXX='-pic'
  11150. ;;
  11151. *)
  11152. ;;
  11153. esac
  11154. ;;
  11155. tandem*)
  11156. case $cc_basename in
  11157. NCC)
  11158. # NonStop-UX NCC 3.20
  11159. lt_prog_compiler_pic_CXX='-KPIC'
  11160. ;;
  11161. *)
  11162. ;;
  11163. esac
  11164. ;;
  11165. unixware*)
  11166. ;;
  11167. vxworks*)
  11168. ;;
  11169. *)
  11170. lt_prog_compiler_can_build_shared_CXX=no
  11171. ;;
  11172. esac
  11173. fi
  11174. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11175. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  11176. #
  11177. # Check to make sure the PIC flag actually works.
  11178. #
  11179. if test -n "$lt_prog_compiler_pic_CXX"; then
  11180. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11181. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  11182. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11183. echo $ECHO_N "(cached) $ECHO_C" >&6
  11184. else
  11185. lt_prog_compiler_pic_works_CXX=no
  11186. ac_outfile=conftest.$ac_objext
  11187. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11188. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11189. # Insert the option either (1) after the last *FLAGS variable, or
  11190. # (2) before a word containing "conftest.", or (3) at the end.
  11191. # Note that $ac_compile itself does not contain backslashes and begins
  11192. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11193. # The option is referenced via a variable to avoid confusing sed.
  11194. lt_compile=`echo "$ac_compile" | $SED \
  11195. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11196. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11197. -e 's:$: $lt_compiler_flag:'`
  11198. (eval echo "\"\$as_me:12343: $lt_compile\"" >&5)
  11199. (eval "$lt_compile" 2>conftest.err)
  11200. ac_status=$?
  11201. cat conftest.err >&5
  11202. echo "$as_me:12347: \$? = $ac_status" >&5
  11203. if (exit $ac_status) && test -s "$ac_outfile"; then
  11204. # The compiler can only warn and ignore the option if not recognized
  11205. # So say no if there are warnings
  11206. if test ! -s conftest.err; then
  11207. lt_prog_compiler_pic_works_CXX=yes
  11208. fi
  11209. fi
  11210. $rm conftest*
  11211. fi
  11212. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11213. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  11214. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11215. case $lt_prog_compiler_pic_CXX in
  11216. "" | " "*) ;;
  11217. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11218. esac
  11219. else
  11220. lt_prog_compiler_pic_CXX=
  11221. lt_prog_compiler_can_build_shared_CXX=no
  11222. fi
  11223. fi
  11224. case "$host_os" in
  11225. # For platforms which do not support PIC, -DPIC is meaningless:
  11226. *djgpp*)
  11227. lt_prog_compiler_pic_CXX=
  11228. ;;
  11229. *)
  11230. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11231. ;;
  11232. esac
  11233. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11234. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11235. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11236. echo $ECHO_N "(cached) $ECHO_C" >&6
  11237. else
  11238. lt_cv_prog_compiler_c_o_CXX=no
  11239. $rm -r conftest 2>/dev/null
  11240. mkdir conftest
  11241. cd conftest
  11242. mkdir out
  11243. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11245. # Insert the option either (1) after the last *FLAGS variable, or
  11246. # (2) before a word containing "conftest.", or (3) at the end.
  11247. # Note that $ac_compile itself does not contain backslashes and begins
  11248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11249. lt_compile=`echo "$ac_compile" | $SED \
  11250. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  11251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11252. -e 's:$: $lt_compiler_flag:'`
  11253. (eval echo "\"\$as_me:12403: $lt_compile\"" >&5)
  11254. (eval "$lt_compile" 2>out/conftest.err)
  11255. ac_status=$?
  11256. cat out/conftest.err >&5
  11257. echo "$as_me:12407: \$? = $ac_status" >&5
  11258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11259. then
  11260. # The compiler can only warn and ignore the option if not recognized
  11261. # So say no if there are warnings
  11262. if test ! -s out/conftest.err; then
  11263. lt_cv_prog_compiler_c_o_CXX=yes
  11264. fi
  11265. fi
  11266. chmod u+w .
  11267. $rm conftest*
  11268. # SGI C++ compiler will create directory out/ii_files/ for
  11269. # template instantiation
  11270. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11271. $rm out/* && rmdir out
  11272. cd ..
  11273. rmdir conftest
  11274. $rm conftest*
  11275. fi
  11276. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11277. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  11278. hard_links="nottested"
  11279. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11280. # do not overwrite the value of need_locks provided by the user
  11281. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11282. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11283. hard_links=yes
  11284. $rm conftest*
  11285. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11286. touch conftest.a
  11287. ln conftest.a conftest.b 2>&5 || hard_links=no
  11288. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11289. echo "$as_me:$LINENO: result: $hard_links" >&5
  11290. echo "${ECHO_T}$hard_links" >&6
  11291. if test "$hard_links" = no; then
  11292. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11293. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11294. need_locks=warn
  11295. fi
  11296. else
  11297. need_locks=no
  11298. fi
  11299. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11300. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11301. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11302. case $host_os in
  11303. aix4* | aix5*)
  11304. # If we're using GNU nm, then we don't want the "-C" option.
  11305. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11306. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11307. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11308. else
  11309. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11310. fi
  11311. ;;
  11312. pw32*)
  11313. export_symbols_cmds_CXX="$ltdll_cmds"
  11314. ;;
  11315. cygwin* | mingw*)
  11316. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11317. ;;
  11318. *)
  11319. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11320. ;;
  11321. esac
  11322. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11323. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  11324. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11325. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11326. if test "$GCC" = yes; then
  11327. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11328. fi
  11329. #
  11330. # Do we need to explicitly link libc?
  11331. #
  11332. case "x$archive_cmds_need_lc_CXX" in
  11333. x|xyes)
  11334. # Assume -lc should be added
  11335. archive_cmds_need_lc_CXX=yes
  11336. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11337. case $archive_cmds_CXX in
  11338. *'~'*)
  11339. # FIXME: we may have to deal with multi-command sequences.
  11340. ;;
  11341. '$CC '*)
  11342. # Test whether the compiler implicitly links with -lc since on some
  11343. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11344. # to ld, don't add -lc before -lgcc.
  11345. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11346. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  11347. $rm conftest*
  11348. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11350. (eval $ac_compile) 2>&5
  11351. ac_status=$?
  11352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11353. (exit $ac_status); } 2>conftest.err; then
  11354. soname=conftest
  11355. lib=conftest
  11356. libobjs=conftest.$ac_objext
  11357. deplibs=
  11358. wl=$lt_prog_compiler_wl_CXX
  11359. compiler_flags=-v
  11360. linker_flags=-v
  11361. verstring=
  11362. output_objdir=.
  11363. libname=conftest
  11364. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11365. allow_undefined_flag_CXX=
  11366. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11367. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11368. ac_status=$?
  11369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11370. (exit $ac_status); }
  11371. then
  11372. archive_cmds_need_lc_CXX=no
  11373. else
  11374. archive_cmds_need_lc_CXX=yes
  11375. fi
  11376. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11377. else
  11378. cat conftest.err 1>&5
  11379. fi
  11380. $rm conftest*
  11381. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11382. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  11383. ;;
  11384. esac
  11385. fi
  11386. ;;
  11387. esac
  11388. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11389. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  11390. library_names_spec=
  11391. libname_spec='lib$name'
  11392. soname_spec=
  11393. shrext_cmds=".so"
  11394. postinstall_cmds=
  11395. postuninstall_cmds=
  11396. finish_cmds=
  11397. finish_eval=
  11398. shlibpath_var=
  11399. shlibpath_overrides_runpath=unknown
  11400. version_type=none
  11401. dynamic_linker="$host_os ld.so"
  11402. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11403. if test "$GCC" = yes; then
  11404. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11405. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11406. # if the path contains ";" then we assume it to be the separator
  11407. # otherwise default to the standard path separator (i.e. ":") - it is
  11408. # assumed that no part of a normal pathname contains ";" but that should
  11409. # okay in the real world where ";" in dirpaths is itself problematic.
  11410. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11411. else
  11412. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11413. fi
  11414. else
  11415. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11416. fi
  11417. need_lib_prefix=unknown
  11418. hardcode_into_libs=no
  11419. # when you set need_version to no, make sure it does not cause -set_version
  11420. # flags to be left without arguments
  11421. need_version=unknown
  11422. case $host_os in
  11423. aix3*)
  11424. version_type=linux
  11425. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11426. shlibpath_var=LIBPATH
  11427. # AIX 3 has no versioning support, so we append a major version to the name.
  11428. soname_spec='${libname}${release}${shared_ext}$major'
  11429. ;;
  11430. aix4* | aix5*)
  11431. version_type=linux
  11432. need_lib_prefix=no
  11433. need_version=no
  11434. hardcode_into_libs=yes
  11435. if test "$host_cpu" = ia64; then
  11436. # AIX 5 supports IA64
  11437. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11438. shlibpath_var=LD_LIBRARY_PATH
  11439. else
  11440. # With GCC up to 2.95.x, collect2 would create an import file
  11441. # for dependence libraries. The import file would start with
  11442. # the line `#! .'. This would cause the generated library to
  11443. # depend on `.', always an invalid library. This was fixed in
  11444. # development snapshots of GCC prior to 3.0.
  11445. case $host_os in
  11446. aix4 | aix4.[01] | aix4.[01].*)
  11447. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11448. echo ' yes '
  11449. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11450. :
  11451. else
  11452. can_build_shared=no
  11453. fi
  11454. ;;
  11455. esac
  11456. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11457. # soname into executable. Probably we can add versioning support to
  11458. # collect2, so additional links can be useful in future.
  11459. if test "$aix_use_runtimelinking" = yes; then
  11460. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11461. # instead of lib<name>.a to let people know that these are not
  11462. # typical AIX shared libraries.
  11463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11464. else
  11465. # We preserve .a as extension for shared libraries through AIX4.2
  11466. # and later when we are not doing run time linking.
  11467. library_names_spec='${libname}${release}.a $libname.a'
  11468. soname_spec='${libname}${release}${shared_ext}$major'
  11469. fi
  11470. shlibpath_var=LIBPATH
  11471. fi
  11472. ;;
  11473. amigaos*)
  11474. library_names_spec='$libname.ixlibrary $libname.a'
  11475. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11476. 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'
  11477. ;;
  11478. beos*)
  11479. library_names_spec='${libname}${shared_ext}'
  11480. dynamic_linker="$host_os ld.so"
  11481. shlibpath_var=LIBRARY_PATH
  11482. ;;
  11483. bsdi[45]*)
  11484. version_type=linux
  11485. need_version=no
  11486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11487. soname_spec='${libname}${release}${shared_ext}$major'
  11488. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11489. shlibpath_var=LD_LIBRARY_PATH
  11490. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11491. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11492. # the default ld.so.conf also contains /usr/contrib/lib and
  11493. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11494. # libtool to hard-code these into programs
  11495. ;;
  11496. cygwin* | mingw* | pw32*)
  11497. version_type=windows
  11498. shrext_cmds=".dll"
  11499. need_version=no
  11500. need_lib_prefix=no
  11501. case $GCC,$host_os in
  11502. yes,cygwin* | yes,mingw* | yes,pw32*)
  11503. library_names_spec='$libname.dll.a'
  11504. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11505. postinstall_cmds='base_file=`basename \${file}`~
  11506. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11507. dldir=$destdir/`dirname \$dlpath`~
  11508. test -d \$dldir || mkdir -p \$dldir~
  11509. $install_prog $dir/$dlname \$dldir/$dlname'
  11510. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11511. dlpath=$dir/\$dldll~
  11512. $rm \$dlpath'
  11513. shlibpath_overrides_runpath=yes
  11514. case $host_os in
  11515. cygwin*)
  11516. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11517. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11518. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11519. ;;
  11520. mingw*)
  11521. # MinGW DLLs use traditional 'lib' prefix
  11522. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11523. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11524. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11525. # It is most probably a Windows format PATH printed by
  11526. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11527. # path with ; separators, and with drive letters. We can handle the
  11528. # drive letters (cygwin fileutils understands them), so leave them,
  11529. # especially as we might pass files found there to a mingw objdump,
  11530. # which wouldn't understand a cygwinified path. Ahh.
  11531. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11532. else
  11533. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11534. fi
  11535. ;;
  11536. pw32*)
  11537. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11538. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11539. ;;
  11540. esac
  11541. ;;
  11542. *)
  11543. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11544. ;;
  11545. esac
  11546. dynamic_linker='Win32 ld.exe'
  11547. # FIXME: first we should search . and the directory the executable is in
  11548. shlibpath_var=PATH
  11549. ;;
  11550. darwin* | rhapsody*)
  11551. dynamic_linker="$host_os dyld"
  11552. version_type=darwin
  11553. need_lib_prefix=no
  11554. need_version=no
  11555. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11556. soname_spec='${libname}${release}${major}$shared_ext'
  11557. shlibpath_overrides_runpath=yes
  11558. shlibpath_var=DYLD_LIBRARY_PATH
  11559. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  11560. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11561. if test "$GCC" = yes; then
  11562. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11563. else
  11564. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11565. fi
  11566. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11567. ;;
  11568. dgux*)
  11569. version_type=linux
  11570. need_lib_prefix=no
  11571. need_version=no
  11572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11573. soname_spec='${libname}${release}${shared_ext}$major'
  11574. shlibpath_var=LD_LIBRARY_PATH
  11575. ;;
  11576. freebsd1*)
  11577. dynamic_linker=no
  11578. ;;
  11579. kfreebsd*-gnu)
  11580. version_type=linux
  11581. need_lib_prefix=no
  11582. need_version=no
  11583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11584. soname_spec='${libname}${release}${shared_ext}$major'
  11585. shlibpath_var=LD_LIBRARY_PATH
  11586. shlibpath_overrides_runpath=no
  11587. hardcode_into_libs=yes
  11588. dynamic_linker='GNU ld.so'
  11589. ;;
  11590. freebsd* | dragonfly*)
  11591. # DragonFly does not have aout. When/if they implement a new
  11592. # versioning mechanism, adjust this.
  11593. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  11594. version_type=freebsd-$objformat
  11595. case $version_type in
  11596. freebsd-elf*)
  11597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11598. need_version=no
  11599. need_lib_prefix=no
  11600. ;;
  11601. freebsd-*)
  11602. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11603. need_version=yes
  11604. ;;
  11605. esac
  11606. shlibpath_var=LD_LIBRARY_PATH
  11607. case $host_os in
  11608. freebsd2*)
  11609. shlibpath_overrides_runpath=yes
  11610. ;;
  11611. freebsd3.[01]* | freebsdelf3.[01]*)
  11612. shlibpath_overrides_runpath=yes
  11613. hardcode_into_libs=yes
  11614. ;;
  11615. *) # from 3.2 on
  11616. shlibpath_overrides_runpath=no
  11617. hardcode_into_libs=yes
  11618. ;;
  11619. esac
  11620. ;;
  11621. gnu*)
  11622. version_type=linux
  11623. need_lib_prefix=no
  11624. need_version=no
  11625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11626. soname_spec='${libname}${release}${shared_ext}$major'
  11627. shlibpath_var=LD_LIBRARY_PATH
  11628. hardcode_into_libs=yes
  11629. ;;
  11630. hpux9* | hpux10* | hpux11*)
  11631. # Give a soname corresponding to the major version so that dld.sl refuses to
  11632. # link against other versions.
  11633. version_type=sunos
  11634. need_lib_prefix=no
  11635. need_version=no
  11636. case "$host_cpu" in
  11637. ia64*)
  11638. shrext_cmds='.so'
  11639. hardcode_into_libs=yes
  11640. dynamic_linker="$host_os dld.so"
  11641. shlibpath_var=LD_LIBRARY_PATH
  11642. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11644. soname_spec='${libname}${release}${shared_ext}$major'
  11645. if test "X$HPUX_IA64_MODE" = X32; then
  11646. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11647. else
  11648. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11649. fi
  11650. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11651. ;;
  11652. hppa*64*)
  11653. shrext_cmds='.sl'
  11654. hardcode_into_libs=yes
  11655. dynamic_linker="$host_os dld.sl"
  11656. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11657. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11659. soname_spec='${libname}${release}${shared_ext}$major'
  11660. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11661. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11662. ;;
  11663. *)
  11664. shrext_cmds='.sl'
  11665. dynamic_linker="$host_os dld.sl"
  11666. shlibpath_var=SHLIB_PATH
  11667. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11669. soname_spec='${libname}${release}${shared_ext}$major'
  11670. ;;
  11671. esac
  11672. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11673. postinstall_cmds='chmod 555 $lib'
  11674. ;;
  11675. irix5* | irix6* | nonstopux*)
  11676. case $host_os in
  11677. nonstopux*) version_type=nonstopux ;;
  11678. *)
  11679. if test "$lt_cv_prog_gnu_ld" = yes; then
  11680. version_type=linux
  11681. else
  11682. version_type=irix
  11683. fi ;;
  11684. esac
  11685. need_lib_prefix=no
  11686. need_version=no
  11687. soname_spec='${libname}${release}${shared_ext}$major'
  11688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11689. case $host_os in
  11690. irix5* | nonstopux*)
  11691. libsuff= shlibsuff=
  11692. ;;
  11693. *)
  11694. case $LD in # libtool.m4 will add one of these switches to LD
  11695. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11696. libsuff= shlibsuff= libmagic=32-bit;;
  11697. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11698. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11699. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11700. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11701. *) libsuff= shlibsuff= libmagic=never-match;;
  11702. esac
  11703. ;;
  11704. esac
  11705. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11706. shlibpath_overrides_runpath=no
  11707. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11708. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11709. hardcode_into_libs=yes
  11710. ;;
  11711. # No shared lib support for Linux oldld, aout, or coff.
  11712. linux*oldld* | linux*aout* | linux*coff*)
  11713. dynamic_linker=no
  11714. ;;
  11715. # This must be Linux ELF.
  11716. linux*)
  11717. version_type=linux
  11718. need_lib_prefix=no
  11719. need_version=no
  11720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11721. soname_spec='${libname}${release}${shared_ext}$major'
  11722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11723. shlibpath_var=LD_LIBRARY_PATH
  11724. shlibpath_overrides_runpath=no
  11725. # This implies no fast_install, which is unacceptable.
  11726. # Some rework will be needed to allow for fast_install
  11727. # before this can be enabled.
  11728. hardcode_into_libs=yes
  11729. # Append ld.so.conf contents to the search path
  11730. if test -f /etc/ld.so.conf; then
  11731. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11732. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11733. fi
  11734. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11735. # powerpc, because MkLinux only supported shared libraries with the
  11736. # GNU dynamic linker. Since this was broken with cross compilers,
  11737. # most powerpc-linux boxes support dynamic linking these days and
  11738. # people can always --disable-shared, the test was removed, and we
  11739. # assume the GNU/Linux dynamic linker is in use.
  11740. dynamic_linker='GNU/Linux ld.so'
  11741. ;;
  11742. knetbsd*-gnu)
  11743. version_type=linux
  11744. need_lib_prefix=no
  11745. need_version=no
  11746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11747. soname_spec='${libname}${release}${shared_ext}$major'
  11748. shlibpath_var=LD_LIBRARY_PATH
  11749. shlibpath_overrides_runpath=no
  11750. hardcode_into_libs=yes
  11751. dynamic_linker='GNU ld.so'
  11752. ;;
  11753. netbsd*)
  11754. version_type=sunos
  11755. need_lib_prefix=no
  11756. need_version=no
  11757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11759. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11760. dynamic_linker='NetBSD (a.out) ld.so'
  11761. else
  11762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11763. soname_spec='${libname}${release}${shared_ext}$major'
  11764. dynamic_linker='NetBSD ld.elf_so'
  11765. fi
  11766. shlibpath_var=LD_LIBRARY_PATH
  11767. shlibpath_overrides_runpath=yes
  11768. hardcode_into_libs=yes
  11769. ;;
  11770. newsos6)
  11771. version_type=linux
  11772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11773. shlibpath_var=LD_LIBRARY_PATH
  11774. shlibpath_overrides_runpath=yes
  11775. ;;
  11776. nto-qnx*)
  11777. version_type=linux
  11778. need_lib_prefix=no
  11779. need_version=no
  11780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11781. soname_spec='${libname}${release}${shared_ext}$major'
  11782. shlibpath_var=LD_LIBRARY_PATH
  11783. shlibpath_overrides_runpath=yes
  11784. ;;
  11785. openbsd*)
  11786. version_type=sunos
  11787. need_lib_prefix=no
  11788. need_version=no
  11789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11790. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11791. shlibpath_var=LD_LIBRARY_PATH
  11792. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11793. case $host_os in
  11794. openbsd2.[89] | openbsd2.[89].*)
  11795. shlibpath_overrides_runpath=no
  11796. ;;
  11797. *)
  11798. shlibpath_overrides_runpath=yes
  11799. ;;
  11800. esac
  11801. else
  11802. shlibpath_overrides_runpath=yes
  11803. fi
  11804. ;;
  11805. os2*)
  11806. libname_spec='$name'
  11807. shrext_cmds=".dll"
  11808. need_lib_prefix=no
  11809. library_names_spec='$libname${shared_ext} $libname.a'
  11810. dynamic_linker='OS/2 ld.exe'
  11811. shlibpath_var=LIBPATH
  11812. ;;
  11813. osf3* | osf4* | osf5*)
  11814. version_type=osf
  11815. need_lib_prefix=no
  11816. need_version=no
  11817. soname_spec='${libname}${release}${shared_ext}$major'
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11819. shlibpath_var=LD_LIBRARY_PATH
  11820. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11821. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11822. ;;
  11823. sco3.2v5*)
  11824. version_type=osf
  11825. soname_spec='${libname}${release}${shared_ext}$major'
  11826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11827. shlibpath_var=LD_LIBRARY_PATH
  11828. ;;
  11829. solaris*)
  11830. version_type=linux
  11831. need_lib_prefix=no
  11832. need_version=no
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11834. soname_spec='${libname}${release}${shared_ext}$major'
  11835. shlibpath_var=LD_LIBRARY_PATH
  11836. shlibpath_overrides_runpath=yes
  11837. hardcode_into_libs=yes
  11838. # ldd complains unless libraries are executable
  11839. postinstall_cmds='chmod +x $lib'
  11840. ;;
  11841. sunos4*)
  11842. version_type=sunos
  11843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11844. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11845. shlibpath_var=LD_LIBRARY_PATH
  11846. shlibpath_overrides_runpath=yes
  11847. if test "$with_gnu_ld" = yes; then
  11848. need_lib_prefix=no
  11849. fi
  11850. need_version=yes
  11851. ;;
  11852. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11853. version_type=linux
  11854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11855. soname_spec='${libname}${release}${shared_ext}$major'
  11856. shlibpath_var=LD_LIBRARY_PATH
  11857. case $host_vendor in
  11858. sni)
  11859. shlibpath_overrides_runpath=no
  11860. need_lib_prefix=no
  11861. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11862. runpath_var=LD_RUN_PATH
  11863. ;;
  11864. siemens)
  11865. need_lib_prefix=no
  11866. ;;
  11867. motorola)
  11868. need_lib_prefix=no
  11869. need_version=no
  11870. shlibpath_overrides_runpath=no
  11871. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11872. ;;
  11873. esac
  11874. ;;
  11875. sysv4*MP*)
  11876. if test -d /usr/nec ;then
  11877. version_type=linux
  11878. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11879. soname_spec='$libname${shared_ext}.$major'
  11880. shlibpath_var=LD_LIBRARY_PATH
  11881. fi
  11882. ;;
  11883. uts4*)
  11884. version_type=linux
  11885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11886. soname_spec='${libname}${release}${shared_ext}$major'
  11887. shlibpath_var=LD_LIBRARY_PATH
  11888. ;;
  11889. *)
  11890. dynamic_linker=no
  11891. ;;
  11892. esac
  11893. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11894. echo "${ECHO_T}$dynamic_linker" >&6
  11895. test "$dynamic_linker" = no && can_build_shared=no
  11896. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11897. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11898. hardcode_action_CXX=
  11899. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11900. test -n "$runpath_var_CXX" || \
  11901. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11902. # We can hardcode non-existant directories.
  11903. if test "$hardcode_direct_CXX" != no &&
  11904. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11905. # have to relink, otherwise we might link with an installed library
  11906. # when we should be linking with a yet-to-be-installed one
  11907. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11908. test "$hardcode_minus_L_CXX" != no; then
  11909. # Linking always hardcodes the temporary library directory.
  11910. hardcode_action_CXX=relink
  11911. else
  11912. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11913. hardcode_action_CXX=immediate
  11914. fi
  11915. else
  11916. # We cannot hardcode anything, or else we can only hardcode existing
  11917. # directories.
  11918. hardcode_action_CXX=unsupported
  11919. fi
  11920. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11921. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11922. if test "$hardcode_action_CXX" = relink; then
  11923. # Fast installation is not supported
  11924. enable_fast_install=no
  11925. elif test "$shlibpath_overrides_runpath" = yes ||
  11926. test "$enable_shared" = no; then
  11927. # Fast installation is not necessary
  11928. enable_fast_install=needless
  11929. fi
  11930. striplib=
  11931. old_striplib=
  11932. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11933. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  11934. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  11935. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11936. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11937. echo "$as_me:$LINENO: result: yes" >&5
  11938. echo "${ECHO_T}yes" >&6
  11939. else
  11940. # FIXME - insert some real tests, host_os isn't really good enough
  11941. case $host_os in
  11942. darwin*)
  11943. if test -n "$STRIP" ; then
  11944. striplib="$STRIP -x"
  11945. echo "$as_me:$LINENO: result: yes" >&5
  11946. echo "${ECHO_T}yes" >&6
  11947. else
  11948. echo "$as_me:$LINENO: result: no" >&5
  11949. echo "${ECHO_T}no" >&6
  11950. fi
  11951. ;;
  11952. *)
  11953. echo "$as_me:$LINENO: result: no" >&5
  11954. echo "${ECHO_T}no" >&6
  11955. ;;
  11956. esac
  11957. fi
  11958. if test "x$enable_dlopen" != xyes; then
  11959. enable_dlopen=unknown
  11960. enable_dlopen_self=unknown
  11961. enable_dlopen_self_static=unknown
  11962. else
  11963. lt_cv_dlopen=no
  11964. lt_cv_dlopen_libs=
  11965. case $host_os in
  11966. beos*)
  11967. lt_cv_dlopen="load_add_on"
  11968. lt_cv_dlopen_libs=
  11969. lt_cv_dlopen_self=yes
  11970. ;;
  11971. mingw* | pw32*)
  11972. lt_cv_dlopen="LoadLibrary"
  11973. lt_cv_dlopen_libs=
  11974. ;;
  11975. cygwin*)
  11976. lt_cv_dlopen="dlopen"
  11977. lt_cv_dlopen_libs=
  11978. ;;
  11979. darwin*)
  11980. # if libdl is installed we need to link against it
  11981. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11982. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  11983. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11984. echo $ECHO_N "(cached) $ECHO_C" >&6
  11985. else
  11986. ac_check_lib_save_LIBS=$LIBS
  11987. LIBS="-ldl $LIBS"
  11988. cat >conftest.$ac_ext <<_ACEOF
  11989. /* confdefs.h. */
  11990. _ACEOF
  11991. cat confdefs.h >>conftest.$ac_ext
  11992. cat >>conftest.$ac_ext <<_ACEOF
  11993. /* end confdefs.h. */
  11994. /* Override any gcc2 internal prototype to avoid an error. */
  11995. #ifdef __cplusplus
  11996. extern "C"
  11997. #endif
  11998. /* We use char because int might match the return type of a gcc2
  11999. builtin and then its argument prototype would still apply. */
  12000. char dlopen ();
  12001. int
  12002. main ()
  12003. {
  12004. dlopen ();
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. rm -f conftest.$ac_objext conftest$ac_exeext
  12010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12011. (eval $ac_link) 2>conftest.er1
  12012. ac_status=$?
  12013. grep -v '^ *+' conftest.er1 >conftest.err
  12014. rm -f conftest.er1
  12015. cat conftest.err >&5
  12016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12017. (exit $ac_status); } &&
  12018. { ac_try='test -z "$ac_cxx_werror_flag"
  12019. || test ! -s conftest.err'
  12020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12021. (eval $ac_try) 2>&5
  12022. ac_status=$?
  12023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12024. (exit $ac_status); }; } &&
  12025. { ac_try='test -s conftest$ac_exeext'
  12026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12027. (eval $ac_try) 2>&5
  12028. ac_status=$?
  12029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12030. (exit $ac_status); }; }; then
  12031. ac_cv_lib_dl_dlopen=yes
  12032. else
  12033. echo "$as_me: failed program was:" >&5
  12034. sed 's/^/| /' conftest.$ac_ext >&5
  12035. ac_cv_lib_dl_dlopen=no
  12036. fi
  12037. rm -f conftest.err conftest.$ac_objext \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. LIBS=$ac_check_lib_save_LIBS
  12040. fi
  12041. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12042. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12043. if test $ac_cv_lib_dl_dlopen = yes; then
  12044. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12045. else
  12046. lt_cv_dlopen="dyld"
  12047. lt_cv_dlopen_libs=
  12048. lt_cv_dlopen_self=yes
  12049. fi
  12050. ;;
  12051. *)
  12052. echo "$as_me:$LINENO: checking for shl_load" >&5
  12053. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  12054. if test "${ac_cv_func_shl_load+set}" = set; then
  12055. echo $ECHO_N "(cached) $ECHO_C" >&6
  12056. else
  12057. cat >conftest.$ac_ext <<_ACEOF
  12058. /* confdefs.h. */
  12059. _ACEOF
  12060. cat confdefs.h >>conftest.$ac_ext
  12061. cat >>conftest.$ac_ext <<_ACEOF
  12062. /* end confdefs.h. */
  12063. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  12064. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12065. #define shl_load innocuous_shl_load
  12066. /* System header to define __stub macros and hopefully few prototypes,
  12067. which can conflict with char shl_load (); below.
  12068. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12069. <limits.h> exists even on freestanding compilers. */
  12070. #ifdef __STDC__
  12071. # include <limits.h>
  12072. #else
  12073. # include <assert.h>
  12074. #endif
  12075. #undef shl_load
  12076. /* Override any gcc2 internal prototype to avoid an error. */
  12077. #ifdef __cplusplus
  12078. extern "C"
  12079. {
  12080. #endif
  12081. /* We use char because int might match the return type of a gcc2
  12082. builtin and then its argument prototype would still apply. */
  12083. char shl_load ();
  12084. /* The GNU C library defines this for functions which it implements
  12085. to always fail with ENOSYS. Some functions are actually named
  12086. something starting with __ and the normal name is an alias. */
  12087. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  12088. choke me
  12089. #else
  12090. char (*f) () = shl_load;
  12091. #endif
  12092. #ifdef __cplusplus
  12093. }
  12094. #endif
  12095. int
  12096. main ()
  12097. {
  12098. return f != shl_load;
  12099. ;
  12100. return 0;
  12101. }
  12102. _ACEOF
  12103. rm -f conftest.$ac_objext conftest$ac_exeext
  12104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12105. (eval $ac_link) 2>conftest.er1
  12106. ac_status=$?
  12107. grep -v '^ *+' conftest.er1 >conftest.err
  12108. rm -f conftest.er1
  12109. cat conftest.err >&5
  12110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12111. (exit $ac_status); } &&
  12112. { ac_try='test -z "$ac_cxx_werror_flag"
  12113. || test ! -s conftest.err'
  12114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12115. (eval $ac_try) 2>&5
  12116. ac_status=$?
  12117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. (exit $ac_status); }; } &&
  12119. { ac_try='test -s conftest$ac_exeext'
  12120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12121. (eval $ac_try) 2>&5
  12122. ac_status=$?
  12123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12124. (exit $ac_status); }; }; then
  12125. ac_cv_func_shl_load=yes
  12126. else
  12127. echo "$as_me: failed program was:" >&5
  12128. sed 's/^/| /' conftest.$ac_ext >&5
  12129. ac_cv_func_shl_load=no
  12130. fi
  12131. rm -f conftest.err conftest.$ac_objext \
  12132. conftest$ac_exeext conftest.$ac_ext
  12133. fi
  12134. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  12135. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  12136. if test $ac_cv_func_shl_load = yes; then
  12137. lt_cv_dlopen="shl_load"
  12138. else
  12139. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  12140. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  12141. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  12142. echo $ECHO_N "(cached) $ECHO_C" >&6
  12143. else
  12144. ac_check_lib_save_LIBS=$LIBS
  12145. LIBS="-ldld $LIBS"
  12146. cat >conftest.$ac_ext <<_ACEOF
  12147. /* confdefs.h. */
  12148. _ACEOF
  12149. cat confdefs.h >>conftest.$ac_ext
  12150. cat >>conftest.$ac_ext <<_ACEOF
  12151. /* end confdefs.h. */
  12152. /* Override any gcc2 internal prototype to avoid an error. */
  12153. #ifdef __cplusplus
  12154. extern "C"
  12155. #endif
  12156. /* We use char because int might match the return type of a gcc2
  12157. builtin and then its argument prototype would still apply. */
  12158. char shl_load ();
  12159. int
  12160. main ()
  12161. {
  12162. shl_load ();
  12163. ;
  12164. return 0;
  12165. }
  12166. _ACEOF
  12167. rm -f conftest.$ac_objext conftest$ac_exeext
  12168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12169. (eval $ac_link) 2>conftest.er1
  12170. ac_status=$?
  12171. grep -v '^ *+' conftest.er1 >conftest.err
  12172. rm -f conftest.er1
  12173. cat conftest.err >&5
  12174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12175. (exit $ac_status); } &&
  12176. { ac_try='test -z "$ac_cxx_werror_flag"
  12177. || test ! -s conftest.err'
  12178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12179. (eval $ac_try) 2>&5
  12180. ac_status=$?
  12181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12182. (exit $ac_status); }; } &&
  12183. { ac_try='test -s conftest$ac_exeext'
  12184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12185. (eval $ac_try) 2>&5
  12186. ac_status=$?
  12187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12188. (exit $ac_status); }; }; then
  12189. ac_cv_lib_dld_shl_load=yes
  12190. else
  12191. echo "$as_me: failed program was:" >&5
  12192. sed 's/^/| /' conftest.$ac_ext >&5
  12193. ac_cv_lib_dld_shl_load=no
  12194. fi
  12195. rm -f conftest.err conftest.$ac_objext \
  12196. conftest$ac_exeext conftest.$ac_ext
  12197. LIBS=$ac_check_lib_save_LIBS
  12198. fi
  12199. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  12200. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  12201. if test $ac_cv_lib_dld_shl_load = yes; then
  12202. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  12203. else
  12204. echo "$as_me:$LINENO: checking for dlopen" >&5
  12205. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  12206. if test "${ac_cv_func_dlopen+set}" = set; then
  12207. echo $ECHO_N "(cached) $ECHO_C" >&6
  12208. else
  12209. cat >conftest.$ac_ext <<_ACEOF
  12210. /* confdefs.h. */
  12211. _ACEOF
  12212. cat confdefs.h >>conftest.$ac_ext
  12213. cat >>conftest.$ac_ext <<_ACEOF
  12214. /* end confdefs.h. */
  12215. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  12216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12217. #define dlopen innocuous_dlopen
  12218. /* System header to define __stub macros and hopefully few prototypes,
  12219. which can conflict with char dlopen (); below.
  12220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12221. <limits.h> exists even on freestanding compilers. */
  12222. #ifdef __STDC__
  12223. # include <limits.h>
  12224. #else
  12225. # include <assert.h>
  12226. #endif
  12227. #undef dlopen
  12228. /* Override any gcc2 internal prototype to avoid an error. */
  12229. #ifdef __cplusplus
  12230. extern "C"
  12231. {
  12232. #endif
  12233. /* We use char because int might match the return type of a gcc2
  12234. builtin and then its argument prototype would still apply. */
  12235. char dlopen ();
  12236. /* The GNU C library defines this for functions which it implements
  12237. to always fail with ENOSYS. Some functions are actually named
  12238. something starting with __ and the normal name is an alias. */
  12239. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  12240. choke me
  12241. #else
  12242. char (*f) () = dlopen;
  12243. #endif
  12244. #ifdef __cplusplus
  12245. }
  12246. #endif
  12247. int
  12248. main ()
  12249. {
  12250. return f != dlopen;
  12251. ;
  12252. return 0;
  12253. }
  12254. _ACEOF
  12255. rm -f conftest.$ac_objext conftest$ac_exeext
  12256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12257. (eval $ac_link) 2>conftest.er1
  12258. ac_status=$?
  12259. grep -v '^ *+' conftest.er1 >conftest.err
  12260. rm -f conftest.er1
  12261. cat conftest.err >&5
  12262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12263. (exit $ac_status); } &&
  12264. { ac_try='test -z "$ac_cxx_werror_flag"
  12265. || test ! -s conftest.err'
  12266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12267. (eval $ac_try) 2>&5
  12268. ac_status=$?
  12269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12270. (exit $ac_status); }; } &&
  12271. { ac_try='test -s conftest$ac_exeext'
  12272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12273. (eval $ac_try) 2>&5
  12274. ac_status=$?
  12275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12276. (exit $ac_status); }; }; then
  12277. ac_cv_func_dlopen=yes
  12278. else
  12279. echo "$as_me: failed program was:" >&5
  12280. sed 's/^/| /' conftest.$ac_ext >&5
  12281. ac_cv_func_dlopen=no
  12282. fi
  12283. rm -f conftest.err conftest.$ac_objext \
  12284. conftest$ac_exeext conftest.$ac_ext
  12285. fi
  12286. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12287. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  12288. if test $ac_cv_func_dlopen = yes; then
  12289. lt_cv_dlopen="dlopen"
  12290. else
  12291. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12292. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  12293. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12294. echo $ECHO_N "(cached) $ECHO_C" >&6
  12295. else
  12296. ac_check_lib_save_LIBS=$LIBS
  12297. LIBS="-ldl $LIBS"
  12298. cat >conftest.$ac_ext <<_ACEOF
  12299. /* confdefs.h. */
  12300. _ACEOF
  12301. cat confdefs.h >>conftest.$ac_ext
  12302. cat >>conftest.$ac_ext <<_ACEOF
  12303. /* end confdefs.h. */
  12304. /* Override any gcc2 internal prototype to avoid an error. */
  12305. #ifdef __cplusplus
  12306. extern "C"
  12307. #endif
  12308. /* We use char because int might match the return type of a gcc2
  12309. builtin and then its argument prototype would still apply. */
  12310. char dlopen ();
  12311. int
  12312. main ()
  12313. {
  12314. dlopen ();
  12315. ;
  12316. return 0;
  12317. }
  12318. _ACEOF
  12319. rm -f conftest.$ac_objext conftest$ac_exeext
  12320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12321. (eval $ac_link) 2>conftest.er1
  12322. ac_status=$?
  12323. grep -v '^ *+' conftest.er1 >conftest.err
  12324. rm -f conftest.er1
  12325. cat conftest.err >&5
  12326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12327. (exit $ac_status); } &&
  12328. { ac_try='test -z "$ac_cxx_werror_flag"
  12329. || test ! -s conftest.err'
  12330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12331. (eval $ac_try) 2>&5
  12332. ac_status=$?
  12333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12334. (exit $ac_status); }; } &&
  12335. { ac_try='test -s conftest$ac_exeext'
  12336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12337. (eval $ac_try) 2>&5
  12338. ac_status=$?
  12339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12340. (exit $ac_status); }; }; then
  12341. ac_cv_lib_dl_dlopen=yes
  12342. else
  12343. echo "$as_me: failed program was:" >&5
  12344. sed 's/^/| /' conftest.$ac_ext >&5
  12345. ac_cv_lib_dl_dlopen=no
  12346. fi
  12347. rm -f conftest.err conftest.$ac_objext \
  12348. conftest$ac_exeext conftest.$ac_ext
  12349. LIBS=$ac_check_lib_save_LIBS
  12350. fi
  12351. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12352. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  12353. if test $ac_cv_lib_dl_dlopen = yes; then
  12354. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12355. else
  12356. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12357. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  12358. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12359. echo $ECHO_N "(cached) $ECHO_C" >&6
  12360. else
  12361. ac_check_lib_save_LIBS=$LIBS
  12362. LIBS="-lsvld $LIBS"
  12363. cat >conftest.$ac_ext <<_ACEOF
  12364. /* confdefs.h. */
  12365. _ACEOF
  12366. cat confdefs.h >>conftest.$ac_ext
  12367. cat >>conftest.$ac_ext <<_ACEOF
  12368. /* end confdefs.h. */
  12369. /* Override any gcc2 internal prototype to avoid an error. */
  12370. #ifdef __cplusplus
  12371. extern "C"
  12372. #endif
  12373. /* We use char because int might match the return type of a gcc2
  12374. builtin and then its argument prototype would still apply. */
  12375. char dlopen ();
  12376. int
  12377. main ()
  12378. {
  12379. dlopen ();
  12380. ;
  12381. return 0;
  12382. }
  12383. _ACEOF
  12384. rm -f conftest.$ac_objext conftest$ac_exeext
  12385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12386. (eval $ac_link) 2>conftest.er1
  12387. ac_status=$?
  12388. grep -v '^ *+' conftest.er1 >conftest.err
  12389. rm -f conftest.er1
  12390. cat conftest.err >&5
  12391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12392. (exit $ac_status); } &&
  12393. { ac_try='test -z "$ac_cxx_werror_flag"
  12394. || test ! -s conftest.err'
  12395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12396. (eval $ac_try) 2>&5
  12397. ac_status=$?
  12398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12399. (exit $ac_status); }; } &&
  12400. { ac_try='test -s conftest$ac_exeext'
  12401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12402. (eval $ac_try) 2>&5
  12403. ac_status=$?
  12404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); }; }; then
  12406. ac_cv_lib_svld_dlopen=yes
  12407. else
  12408. echo "$as_me: failed program was:" >&5
  12409. sed 's/^/| /' conftest.$ac_ext >&5
  12410. ac_cv_lib_svld_dlopen=no
  12411. fi
  12412. rm -f conftest.err conftest.$ac_objext \
  12413. conftest$ac_exeext conftest.$ac_ext
  12414. LIBS=$ac_check_lib_save_LIBS
  12415. fi
  12416. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12417. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  12418. if test $ac_cv_lib_svld_dlopen = yes; then
  12419. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12420. else
  12421. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12422. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  12423. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12424. echo $ECHO_N "(cached) $ECHO_C" >&6
  12425. else
  12426. ac_check_lib_save_LIBS=$LIBS
  12427. LIBS="-ldld $LIBS"
  12428. cat >conftest.$ac_ext <<_ACEOF
  12429. /* confdefs.h. */
  12430. _ACEOF
  12431. cat confdefs.h >>conftest.$ac_ext
  12432. cat >>conftest.$ac_ext <<_ACEOF
  12433. /* end confdefs.h. */
  12434. /* Override any gcc2 internal prototype to avoid an error. */
  12435. #ifdef __cplusplus
  12436. extern "C"
  12437. #endif
  12438. /* We use char because int might match the return type of a gcc2
  12439. builtin and then its argument prototype would still apply. */
  12440. char dld_link ();
  12441. int
  12442. main ()
  12443. {
  12444. dld_link ();
  12445. ;
  12446. return 0;
  12447. }
  12448. _ACEOF
  12449. rm -f conftest.$ac_objext conftest$ac_exeext
  12450. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12451. (eval $ac_link) 2>conftest.er1
  12452. ac_status=$?
  12453. grep -v '^ *+' conftest.er1 >conftest.err
  12454. rm -f conftest.er1
  12455. cat conftest.err >&5
  12456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. (exit $ac_status); } &&
  12458. { ac_try='test -z "$ac_cxx_werror_flag"
  12459. || test ! -s conftest.err'
  12460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12461. (eval $ac_try) 2>&5
  12462. ac_status=$?
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. (exit $ac_status); }; } &&
  12465. { ac_try='test -s conftest$ac_exeext'
  12466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12467. (eval $ac_try) 2>&5
  12468. ac_status=$?
  12469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12470. (exit $ac_status); }; }; then
  12471. ac_cv_lib_dld_dld_link=yes
  12472. else
  12473. echo "$as_me: failed program was:" >&5
  12474. sed 's/^/| /' conftest.$ac_ext >&5
  12475. ac_cv_lib_dld_dld_link=no
  12476. fi
  12477. rm -f conftest.err conftest.$ac_objext \
  12478. conftest$ac_exeext conftest.$ac_ext
  12479. LIBS=$ac_check_lib_save_LIBS
  12480. fi
  12481. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12482. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  12483. if test $ac_cv_lib_dld_dld_link = yes; then
  12484. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  12485. fi
  12486. fi
  12487. fi
  12488. fi
  12489. fi
  12490. fi
  12491. ;;
  12492. esac
  12493. if test "x$lt_cv_dlopen" != xno; then
  12494. enable_dlopen=yes
  12495. else
  12496. enable_dlopen=no
  12497. fi
  12498. case $lt_cv_dlopen in
  12499. dlopen)
  12500. save_CPPFLAGS="$CPPFLAGS"
  12501. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12502. save_LDFLAGS="$LDFLAGS"
  12503. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12504. save_LIBS="$LIBS"
  12505. LIBS="$lt_cv_dlopen_libs $LIBS"
  12506. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12507. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  12508. if test "${lt_cv_dlopen_self+set}" = set; then
  12509. echo $ECHO_N "(cached) $ECHO_C" >&6
  12510. else
  12511. if test "$cross_compiling" = yes; then :
  12512. lt_cv_dlopen_self=cross
  12513. else
  12514. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12515. lt_status=$lt_dlunknown
  12516. cat > conftest.$ac_ext <<EOF
  12517. #line 13766 "configure"
  12518. #include "confdefs.h"
  12519. #if HAVE_DLFCN_H
  12520. #include <dlfcn.h>
  12521. #endif
  12522. #include <stdio.h>
  12523. #ifdef RTLD_GLOBAL
  12524. # define LT_DLGLOBAL RTLD_GLOBAL
  12525. #else
  12526. # ifdef DL_GLOBAL
  12527. # define LT_DLGLOBAL DL_GLOBAL
  12528. # else
  12529. # define LT_DLGLOBAL 0
  12530. # endif
  12531. #endif
  12532. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12533. find out it does not work in some platform. */
  12534. #ifndef LT_DLLAZY_OR_NOW
  12535. # ifdef RTLD_LAZY
  12536. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12537. # else
  12538. # ifdef DL_LAZY
  12539. # define LT_DLLAZY_OR_NOW DL_LAZY
  12540. # else
  12541. # ifdef RTLD_NOW
  12542. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12543. # else
  12544. # ifdef DL_NOW
  12545. # define LT_DLLAZY_OR_NOW DL_NOW
  12546. # else
  12547. # define LT_DLLAZY_OR_NOW 0
  12548. # endif
  12549. # endif
  12550. # endif
  12551. # endif
  12552. #endif
  12553. #ifdef __cplusplus
  12554. extern "C" void exit (int);
  12555. #endif
  12556. void fnord() { int i=42;}
  12557. int main ()
  12558. {
  12559. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12560. int status = $lt_dlunknown;
  12561. if (self)
  12562. {
  12563. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12564. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12565. /* dlclose (self); */
  12566. }
  12567. exit (status);
  12568. }
  12569. EOF
  12570. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12571. (eval $ac_link) 2>&5
  12572. ac_status=$?
  12573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12574. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12575. (./conftest; exit; ) 2>/dev/null
  12576. lt_status=$?
  12577. case x$lt_status in
  12578. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12579. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12580. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  12581. esac
  12582. else :
  12583. # compilation failed
  12584. lt_cv_dlopen_self=no
  12585. fi
  12586. fi
  12587. rm -fr conftest*
  12588. fi
  12589. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12590. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  12591. if test "x$lt_cv_dlopen_self" = xyes; then
  12592. LDFLAGS="$LDFLAGS $link_static_flag"
  12593. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12594. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  12595. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12596. echo $ECHO_N "(cached) $ECHO_C" >&6
  12597. else
  12598. if test "$cross_compiling" = yes; then :
  12599. lt_cv_dlopen_self_static=cross
  12600. else
  12601. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12602. lt_status=$lt_dlunknown
  12603. cat > conftest.$ac_ext <<EOF
  12604. #line 13864 "configure"
  12605. #include "confdefs.h"
  12606. #if HAVE_DLFCN_H
  12607. #include <dlfcn.h>
  12608. #endif
  12609. #include <stdio.h>
  12610. #ifdef RTLD_GLOBAL
  12611. # define LT_DLGLOBAL RTLD_GLOBAL
  12612. #else
  12613. # ifdef DL_GLOBAL
  12614. # define LT_DLGLOBAL DL_GLOBAL
  12615. # else
  12616. # define LT_DLGLOBAL 0
  12617. # endif
  12618. #endif
  12619. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12620. find out it does not work in some platform. */
  12621. #ifndef LT_DLLAZY_OR_NOW
  12622. # ifdef RTLD_LAZY
  12623. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12624. # else
  12625. # ifdef DL_LAZY
  12626. # define LT_DLLAZY_OR_NOW DL_LAZY
  12627. # else
  12628. # ifdef RTLD_NOW
  12629. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12630. # else
  12631. # ifdef DL_NOW
  12632. # define LT_DLLAZY_OR_NOW DL_NOW
  12633. # else
  12634. # define LT_DLLAZY_OR_NOW 0
  12635. # endif
  12636. # endif
  12637. # endif
  12638. # endif
  12639. #endif
  12640. #ifdef __cplusplus
  12641. extern "C" void exit (int);
  12642. #endif
  12643. void fnord() { int i=42;}
  12644. int main ()
  12645. {
  12646. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12647. int status = $lt_dlunknown;
  12648. if (self)
  12649. {
  12650. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12651. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12652. /* dlclose (self); */
  12653. }
  12654. exit (status);
  12655. }
  12656. EOF
  12657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12658. (eval $ac_link) 2>&5
  12659. ac_status=$?
  12660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12661. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12662. (./conftest; exit; ) 2>/dev/null
  12663. lt_status=$?
  12664. case x$lt_status in
  12665. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12666. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12667. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  12668. esac
  12669. else :
  12670. # compilation failed
  12671. lt_cv_dlopen_self_static=no
  12672. fi
  12673. fi
  12674. rm -fr conftest*
  12675. fi
  12676. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12677. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  12678. fi
  12679. CPPFLAGS="$save_CPPFLAGS"
  12680. LDFLAGS="$save_LDFLAGS"
  12681. LIBS="$save_LIBS"
  12682. ;;
  12683. esac
  12684. case $lt_cv_dlopen_self in
  12685. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12686. *) enable_dlopen_self=unknown ;;
  12687. esac
  12688. case $lt_cv_dlopen_self_static in
  12689. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12690. *) enable_dlopen_self_static=unknown ;;
  12691. esac
  12692. fi
  12693. # The else clause should only fire when bootstrapping the
  12694. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12695. # with your package, and you will get complaints that there are
  12696. # no rules to generate ltmain.sh.
  12697. if test -f "$ltmain"; then
  12698. # See if we are running on zsh, and set the options which allow our commands through
  12699. # without removal of \ escapes.
  12700. if test -n "${ZSH_VERSION+set}" ; then
  12701. setopt NO_GLOB_SUBST
  12702. fi
  12703. # Now quote all the things that may contain metacharacters while being
  12704. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12705. # variables and quote the copies for generation of the libtool script.
  12706. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  12707. SED SHELL STRIP \
  12708. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12709. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12710. deplibs_check_method reload_flag reload_cmds need_locks \
  12711. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12712. lt_cv_sys_global_symbol_to_c_name_address \
  12713. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12714. old_postinstall_cmds old_postuninstall_cmds \
  12715. compiler_CXX \
  12716. CC_CXX \
  12717. LD_CXX \
  12718. lt_prog_compiler_wl_CXX \
  12719. lt_prog_compiler_pic_CXX \
  12720. lt_prog_compiler_static_CXX \
  12721. lt_prog_compiler_no_builtin_flag_CXX \
  12722. export_dynamic_flag_spec_CXX \
  12723. thread_safe_flag_spec_CXX \
  12724. whole_archive_flag_spec_CXX \
  12725. enable_shared_with_static_runtimes_CXX \
  12726. old_archive_cmds_CXX \
  12727. old_archive_from_new_cmds_CXX \
  12728. predep_objects_CXX \
  12729. postdep_objects_CXX \
  12730. predeps_CXX \
  12731. postdeps_CXX \
  12732. compiler_lib_search_path_CXX \
  12733. archive_cmds_CXX \
  12734. archive_expsym_cmds_CXX \
  12735. postinstall_cmds_CXX \
  12736. postuninstall_cmds_CXX \
  12737. old_archive_from_expsyms_cmds_CXX \
  12738. allow_undefined_flag_CXX \
  12739. no_undefined_flag_CXX \
  12740. export_symbols_cmds_CXX \
  12741. hardcode_libdir_flag_spec_CXX \
  12742. hardcode_libdir_flag_spec_ld_CXX \
  12743. hardcode_libdir_separator_CXX \
  12744. hardcode_automatic_CXX \
  12745. module_cmds_CXX \
  12746. module_expsym_cmds_CXX \
  12747. lt_cv_prog_compiler_c_o_CXX \
  12748. exclude_expsyms_CXX \
  12749. include_expsyms_CXX; do
  12750. case $var in
  12751. old_archive_cmds_CXX | \
  12752. old_archive_from_new_cmds_CXX | \
  12753. archive_cmds_CXX | \
  12754. archive_expsym_cmds_CXX | \
  12755. module_cmds_CXX | \
  12756. module_expsym_cmds_CXX | \
  12757. old_archive_from_expsyms_cmds_CXX | \
  12758. export_symbols_cmds_CXX | \
  12759. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12760. postinstall_cmds | postuninstall_cmds | \
  12761. old_postinstall_cmds | old_postuninstall_cmds | \
  12762. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12763. # Double-quote double-evaled strings.
  12764. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12765. ;;
  12766. *)
  12767. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12768. ;;
  12769. esac
  12770. done
  12771. case $lt_echo in
  12772. *'\$0 --fallback-echo"')
  12773. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12774. ;;
  12775. esac
  12776. cfgfile="$ofile"
  12777. cat <<__EOF__ >> "$cfgfile"
  12778. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12779. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12780. # Shell to use when invoking shell scripts.
  12781. SHELL=$lt_SHELL
  12782. # Whether or not to build shared libraries.
  12783. build_libtool_libs=$enable_shared
  12784. # Whether or not to build static libraries.
  12785. build_old_libs=$enable_static
  12786. # Whether or not to add -lc for building shared libraries.
  12787. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12788. # Whether or not to disallow shared libs when runtime libs are static
  12789. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12790. # Whether or not to optimize for fast installation.
  12791. fast_install=$enable_fast_install
  12792. # The host system.
  12793. host_alias=$host_alias
  12794. host=$host
  12795. host_os=$host_os
  12796. # The build system.
  12797. build_alias=$build_alias
  12798. build=$build
  12799. build_os=$build_os
  12800. # An echo program that does not interpret backslashes.
  12801. echo=$lt_echo
  12802. # The archiver.
  12803. AR=$lt_AR
  12804. AR_FLAGS=$lt_AR_FLAGS
  12805. # A C compiler.
  12806. LTCC=$lt_LTCC
  12807. # A language-specific compiler.
  12808. CC=$lt_compiler_CXX
  12809. # Is the compiler the GNU C compiler?
  12810. with_gcc=$GCC_CXX
  12811. # An ERE matcher.
  12812. EGREP=$lt_EGREP
  12813. # The linker used to build libraries.
  12814. LD=$lt_LD_CXX
  12815. # Whether we need hard or soft links.
  12816. LN_S=$lt_LN_S
  12817. # A BSD-compatible nm program.
  12818. NM=$lt_NM
  12819. # A symbol stripping program
  12820. STRIP=$lt_STRIP
  12821. # Used to examine libraries when file_magic_cmd begins "file"
  12822. MAGIC_CMD=$MAGIC_CMD
  12823. # Used on cygwin: DLL creation program.
  12824. DLLTOOL="$DLLTOOL"
  12825. # Used on cygwin: object dumper.
  12826. OBJDUMP="$OBJDUMP"
  12827. # Used on cygwin: assembler.
  12828. AS="$AS"
  12829. # The name of the directory that contains temporary libtool files.
  12830. objdir=$objdir
  12831. # How to create reloadable object files.
  12832. reload_flag=$lt_reload_flag
  12833. reload_cmds=$lt_reload_cmds
  12834. # How to pass a linker flag through the compiler.
  12835. wl=$lt_lt_prog_compiler_wl_CXX
  12836. # Object file suffix (normally "o").
  12837. objext="$ac_objext"
  12838. # Old archive suffix (normally "a").
  12839. libext="$libext"
  12840. # Shared library suffix (normally ".so").
  12841. shrext_cmds='$shrext_cmds'
  12842. # Executable file suffix (normally "").
  12843. exeext="$exeext"
  12844. # Additional compiler flags for building library objects.
  12845. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12846. pic_mode=$pic_mode
  12847. # What is the maximum length of a command?
  12848. max_cmd_len=$lt_cv_sys_max_cmd_len
  12849. # Does compiler simultaneously support -c and -o options?
  12850. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12851. # Must we lock files when doing compilation ?
  12852. need_locks=$lt_need_locks
  12853. # Do we need the lib prefix for modules?
  12854. need_lib_prefix=$need_lib_prefix
  12855. # Do we need a version for libraries?
  12856. need_version=$need_version
  12857. # Whether dlopen is supported.
  12858. dlopen_support=$enable_dlopen
  12859. # Whether dlopen of programs is supported.
  12860. dlopen_self=$enable_dlopen_self
  12861. # Whether dlopen of statically linked programs is supported.
  12862. dlopen_self_static=$enable_dlopen_self_static
  12863. # Compiler flag to prevent dynamic linking.
  12864. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12865. # Compiler flag to turn off builtin functions.
  12866. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12867. # Compiler flag to allow reflexive dlopens.
  12868. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12869. # Compiler flag to generate shared objects directly from archives.
  12870. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12871. # Compiler flag to generate thread-safe objects.
  12872. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12873. # Library versioning type.
  12874. version_type=$version_type
  12875. # Format of library name prefix.
  12876. libname_spec=$lt_libname_spec
  12877. # List of archive names. First name is the real one, the rest are links.
  12878. # The last name is the one that the linker finds with -lNAME.
  12879. library_names_spec=$lt_library_names_spec
  12880. # The coded name of the library, if different from the real name.
  12881. soname_spec=$lt_soname_spec
  12882. # Commands used to build and install an old-style archive.
  12883. RANLIB=$lt_RANLIB
  12884. old_archive_cmds=$lt_old_archive_cmds_CXX
  12885. old_postinstall_cmds=$lt_old_postinstall_cmds
  12886. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12887. # Create an old-style archive from a shared archive.
  12888. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12889. # Create a temporary old-style archive to link instead of a shared archive.
  12890. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12891. # Commands used to build and install a shared archive.
  12892. archive_cmds=$lt_archive_cmds_CXX
  12893. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12894. postinstall_cmds=$lt_postinstall_cmds
  12895. postuninstall_cmds=$lt_postuninstall_cmds
  12896. # Commands used to build a loadable module (assumed same as above if empty)
  12897. module_cmds=$lt_module_cmds_CXX
  12898. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12899. # Commands to strip libraries.
  12900. old_striplib=$lt_old_striplib
  12901. striplib=$lt_striplib
  12902. # Dependencies to place before the objects being linked to create a
  12903. # shared library.
  12904. predep_objects=$lt_predep_objects_CXX
  12905. # Dependencies to place after the objects being linked to create a
  12906. # shared library.
  12907. postdep_objects=$lt_postdep_objects_CXX
  12908. # Dependencies to place before the objects being linked to create a
  12909. # shared library.
  12910. predeps=$lt_predeps_CXX
  12911. # Dependencies to place after the objects being linked to create a
  12912. # shared library.
  12913. postdeps=$lt_postdeps_CXX
  12914. # The library search path used internally by the compiler when linking
  12915. # a shared library.
  12916. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12917. # Method to check whether dependent libraries are shared objects.
  12918. deplibs_check_method=$lt_deplibs_check_method
  12919. # Command to use when deplibs_check_method == file_magic.
  12920. file_magic_cmd=$lt_file_magic_cmd
  12921. # Flag that allows shared libraries with undefined symbols to be built.
  12922. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12923. # Flag that forces no undefined symbols.
  12924. no_undefined_flag=$lt_no_undefined_flag_CXX
  12925. # Commands used to finish a libtool library installation in a directory.
  12926. finish_cmds=$lt_finish_cmds
  12927. # Same as above, but a single script fragment to be evaled but not shown.
  12928. finish_eval=$lt_finish_eval
  12929. # Take the output of nm and produce a listing of raw symbols and C names.
  12930. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12931. # Transform the output of nm in a proper C declaration
  12932. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12933. # Transform the output of nm in a C name address pair
  12934. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12935. # This is the shared library runtime path variable.
  12936. runpath_var=$runpath_var
  12937. # This is the shared library path variable.
  12938. shlibpath_var=$shlibpath_var
  12939. # Is shlibpath searched before the hard-coded library search path?
  12940. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12941. # How to hardcode a shared library path into an executable.
  12942. hardcode_action=$hardcode_action_CXX
  12943. # Whether we should hardcode library paths into libraries.
  12944. hardcode_into_libs=$hardcode_into_libs
  12945. # Flag to hardcode \$libdir into a binary during linking.
  12946. # This must work even if \$libdir does not exist.
  12947. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12948. # If ld is used when linking, flag to hardcode \$libdir into
  12949. # a binary during linking. This must work even if \$libdir does
  12950. # not exist.
  12951. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12952. # Whether we need a single -rpath flag with a separated argument.
  12953. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12954. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12955. # resulting binary.
  12956. hardcode_direct=$hardcode_direct_CXX
  12957. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12958. # resulting binary.
  12959. hardcode_minus_L=$hardcode_minus_L_CXX
  12960. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12961. # the resulting binary.
  12962. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12963. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12964. # and all subsequent libraries and executables linked against it.
  12965. hardcode_automatic=$hardcode_automatic_CXX
  12966. # Variables whose values should be saved in libtool wrapper scripts and
  12967. # restored at relink time.
  12968. variables_saved_for_relink="$variables_saved_for_relink"
  12969. # Whether libtool must link a program against all its dependency libraries.
  12970. link_all_deplibs=$link_all_deplibs_CXX
  12971. # Compile-time system search path for libraries
  12972. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12973. # Run-time system search path for libraries
  12974. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12975. # Fix the shell variable \$srcfile for the compiler.
  12976. fix_srcfile_path="$fix_srcfile_path_CXX"
  12977. # Set to yes if exported symbols are required.
  12978. always_export_symbols=$always_export_symbols_CXX
  12979. # The commands to list exported symbols.
  12980. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12981. # The commands to extract the exported symbol list from a shared archive.
  12982. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12983. # Symbols that should not be listed in the preloaded symbols.
  12984. exclude_expsyms=$lt_exclude_expsyms_CXX
  12985. # Symbols that must always be exported.
  12986. include_expsyms=$lt_include_expsyms_CXX
  12987. # ### END LIBTOOL TAG CONFIG: $tagname
  12988. __EOF__
  12989. else
  12990. # If there is no Makefile yet, we rely on a make rule to execute
  12991. # `config.status --recheck' to rerun these tests and create the
  12992. # libtool script then.
  12993. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12994. if test -f "$ltmain_in"; then
  12995. test -f Makefile && make "$ltmain"
  12996. fi
  12997. fi
  12998. ac_ext=c
  12999. ac_cpp='$CPP $CPPFLAGS'
  13000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13003. CC=$lt_save_CC
  13004. LDCXX=$LD
  13005. LD=$lt_save_LD
  13006. GCC=$lt_save_GCC
  13007. with_gnu_ldcxx=$with_gnu_ld
  13008. with_gnu_ld=$lt_save_with_gnu_ld
  13009. lt_cv_path_LDCXX=$lt_cv_path_LD
  13010. lt_cv_path_LD=$lt_save_path_LD
  13011. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13012. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13013. else
  13014. tagname=""
  13015. fi
  13016. ;;
  13017. F77)
  13018. if test -n "$F77" && test "X$F77" != "Xno"; then
  13019. ac_ext=f
  13020. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13021. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13022. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13023. archive_cmds_need_lc_F77=no
  13024. allow_undefined_flag_F77=
  13025. always_export_symbols_F77=no
  13026. archive_expsym_cmds_F77=
  13027. export_dynamic_flag_spec_F77=
  13028. hardcode_direct_F77=no
  13029. hardcode_libdir_flag_spec_F77=
  13030. hardcode_libdir_flag_spec_ld_F77=
  13031. hardcode_libdir_separator_F77=
  13032. hardcode_minus_L_F77=no
  13033. hardcode_automatic_F77=no
  13034. module_cmds_F77=
  13035. module_expsym_cmds_F77=
  13036. link_all_deplibs_F77=unknown
  13037. old_archive_cmds_F77=$old_archive_cmds
  13038. no_undefined_flag_F77=
  13039. whole_archive_flag_spec_F77=
  13040. enable_shared_with_static_runtimes_F77=no
  13041. # Source file extension for f77 test sources.
  13042. ac_ext=f
  13043. # Object file extension for compiled f77 test sources.
  13044. objext=o
  13045. objext_F77=$objext
  13046. # Code to be used in simple compile tests
  13047. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  13048. # Code to be used in simple link tests
  13049. lt_simple_link_test_code=" program t\n end\n"
  13050. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13051. # If no C compiler was specified, use CC.
  13052. LTCC=${LTCC-"$CC"}
  13053. # Allow CC to be a program name with arguments.
  13054. compiler=$CC
  13055. # Allow CC to be a program name with arguments.
  13056. lt_save_CC="$CC"
  13057. CC=${F77-"f77"}
  13058. compiler=$CC
  13059. compiler_F77=$CC
  13060. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  13061. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13062. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  13063. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13064. echo "${ECHO_T}$can_build_shared" >&6
  13065. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13066. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  13067. test "$can_build_shared" = "no" && enable_shared=no
  13068. # On AIX, shared libraries and static libraries use the same namespace, and
  13069. # are all built from PIC.
  13070. case "$host_os" in
  13071. aix3*)
  13072. test "$enable_shared" = yes && enable_static=no
  13073. if test -n "$RANLIB"; then
  13074. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13075. postinstall_cmds='$RANLIB $lib'
  13076. fi
  13077. ;;
  13078. aix4* | aix5*)
  13079. test "$enable_shared" = yes && enable_static=no
  13080. ;;
  13081. esac
  13082. echo "$as_me:$LINENO: result: $enable_shared" >&5
  13083. echo "${ECHO_T}$enable_shared" >&6
  13084. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13085. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  13086. # Make sure either enable_shared or enable_static is yes.
  13087. test "$enable_shared" = yes || enable_static=yes
  13088. echo "$as_me:$LINENO: result: $enable_static" >&5
  13089. echo "${ECHO_T}$enable_static" >&6
  13090. test "$ld_shlibs_F77" = no && can_build_shared=no
  13091. GCC_F77="$G77"
  13092. LD_F77="$LD"
  13093. lt_prog_compiler_wl_F77=
  13094. lt_prog_compiler_pic_F77=
  13095. lt_prog_compiler_static_F77=
  13096. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13097. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13098. if test "$GCC" = yes; then
  13099. lt_prog_compiler_wl_F77='-Wl,'
  13100. lt_prog_compiler_static_F77='-static'
  13101. case $host_os in
  13102. aix*)
  13103. # All AIX code is PIC.
  13104. if test "$host_cpu" = ia64; then
  13105. # AIX 5 now supports IA64 processor
  13106. lt_prog_compiler_static_F77='-Bstatic'
  13107. fi
  13108. ;;
  13109. amigaos*)
  13110. # FIXME: we need at least 68020 code to build shared libraries, but
  13111. # adding the `-m68020' flag to GCC prevents building anything better,
  13112. # like `-m68040'.
  13113. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13114. ;;
  13115. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13116. # PIC is the default for these OSes.
  13117. ;;
  13118. mingw* | pw32* | os2*)
  13119. # This hack is so that the source file can tell whether it is being
  13120. # built for inclusion in a dll (and should export symbols for example).
  13121. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13122. ;;
  13123. darwin* | rhapsody*)
  13124. # PIC is the default on this platform
  13125. # Common symbols not allowed in MH_DYLIB files
  13126. lt_prog_compiler_pic_F77='-fno-common'
  13127. ;;
  13128. msdosdjgpp*)
  13129. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13130. # on systems that don't support them.
  13131. lt_prog_compiler_can_build_shared_F77=no
  13132. enable_shared=no
  13133. ;;
  13134. sysv4*MP*)
  13135. if test -d /usr/nec; then
  13136. lt_prog_compiler_pic_F77=-Kconform_pic
  13137. fi
  13138. ;;
  13139. hpux*)
  13140. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13141. # not for PA HP-UX.
  13142. case "$host_cpu" in
  13143. hppa*64*|ia64*)
  13144. # +Z the default
  13145. ;;
  13146. *)
  13147. lt_prog_compiler_pic_F77='-fPIC'
  13148. ;;
  13149. esac
  13150. ;;
  13151. *)
  13152. lt_prog_compiler_pic_F77='-fPIC'
  13153. ;;
  13154. esac
  13155. else
  13156. # PORTME Check for flag to pass linker flags through the system compiler.
  13157. case $host_os in
  13158. aix*)
  13159. lt_prog_compiler_wl_F77='-Wl,'
  13160. if test "$host_cpu" = ia64; then
  13161. # AIX 5 now supports IA64 processor
  13162. lt_prog_compiler_static_F77='-Bstatic'
  13163. else
  13164. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13165. fi
  13166. ;;
  13167. darwin*)
  13168. # PIC is the default on this platform
  13169. # Common symbols not allowed in MH_DYLIB files
  13170. case "$cc_basename" in
  13171. xlc*)
  13172. lt_prog_compiler_pic_F77='-qnocommon'
  13173. lt_prog_compiler_wl_F77='-Wl,'
  13174. ;;
  13175. esac
  13176. ;;
  13177. mingw* | pw32* | os2*)
  13178. # This hack is so that the source file can tell whether it is being
  13179. # built for inclusion in a dll (and should export symbols for example).
  13180. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13181. ;;
  13182. hpux9* | hpux10* | hpux11*)
  13183. lt_prog_compiler_wl_F77='-Wl,'
  13184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13185. # not for PA HP-UX.
  13186. case "$host_cpu" in
  13187. hppa*64*|ia64*)
  13188. # +Z the default
  13189. ;;
  13190. *)
  13191. lt_prog_compiler_pic_F77='+Z'
  13192. ;;
  13193. esac
  13194. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13195. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13196. ;;
  13197. irix5* | irix6* | nonstopux*)
  13198. lt_prog_compiler_wl_F77='-Wl,'
  13199. # PIC (with -KPIC) is the default.
  13200. lt_prog_compiler_static_F77='-non_shared'
  13201. ;;
  13202. newsos6)
  13203. lt_prog_compiler_pic_F77='-KPIC'
  13204. lt_prog_compiler_static_F77='-Bstatic'
  13205. ;;
  13206. linux*)
  13207. case $cc_basename in
  13208. icc* | ecc*)
  13209. lt_prog_compiler_wl_F77='-Wl,'
  13210. lt_prog_compiler_pic_F77='-KPIC'
  13211. lt_prog_compiler_static_F77='-static'
  13212. ;;
  13213. pgcc | pgf77 | pgf90)
  13214. # Portland Group compilers (*not* the Pentium gcc compiler,
  13215. # which looks to be a dead project)
  13216. lt_prog_compiler_wl_F77='-Wl,'
  13217. lt_prog_compiler_pic_F77='-fpic'
  13218. lt_prog_compiler_static_F77='-static'
  13219. ;;
  13220. ccc*)
  13221. lt_prog_compiler_wl_F77='-Wl,'
  13222. # All Alpha code is PIC.
  13223. lt_prog_compiler_static_F77='-non_shared'
  13224. ;;
  13225. esac
  13226. ;;
  13227. osf3* | osf4* | osf5*)
  13228. lt_prog_compiler_wl_F77='-Wl,'
  13229. # All OSF/1 code is PIC.
  13230. lt_prog_compiler_static_F77='-non_shared'
  13231. ;;
  13232. sco3.2v5*)
  13233. lt_prog_compiler_pic_F77='-Kpic'
  13234. lt_prog_compiler_static_F77='-dn'
  13235. ;;
  13236. solaris*)
  13237. lt_prog_compiler_wl_F77='-Wl,'
  13238. lt_prog_compiler_pic_F77='-KPIC'
  13239. lt_prog_compiler_static_F77='-Bstatic'
  13240. ;;
  13241. sunos4*)
  13242. lt_prog_compiler_wl_F77='-Qoption ld '
  13243. lt_prog_compiler_pic_F77='-PIC'
  13244. lt_prog_compiler_static_F77='-Bstatic'
  13245. ;;
  13246. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13247. lt_prog_compiler_wl_F77='-Wl,'
  13248. lt_prog_compiler_pic_F77='-KPIC'
  13249. lt_prog_compiler_static_F77='-Bstatic'
  13250. ;;
  13251. sysv4*MP*)
  13252. if test -d /usr/nec ;then
  13253. lt_prog_compiler_pic_F77='-Kconform_pic'
  13254. lt_prog_compiler_static_F77='-Bstatic'
  13255. fi
  13256. ;;
  13257. unicos*)
  13258. lt_prog_compiler_wl_F77='-Wl,'
  13259. lt_prog_compiler_can_build_shared_F77=no
  13260. ;;
  13261. uts4*)
  13262. lt_prog_compiler_pic_F77='-pic'
  13263. lt_prog_compiler_static_F77='-Bstatic'
  13264. ;;
  13265. *)
  13266. lt_prog_compiler_can_build_shared_F77=no
  13267. ;;
  13268. esac
  13269. fi
  13270. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13271. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  13272. #
  13273. # Check to make sure the PIC flag actually works.
  13274. #
  13275. if test -n "$lt_prog_compiler_pic_F77"; then
  13276. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13277. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  13278. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13279. echo $ECHO_N "(cached) $ECHO_C" >&6
  13280. else
  13281. lt_prog_compiler_pic_works_F77=no
  13282. ac_outfile=conftest.$ac_objext
  13283. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13284. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13285. # Insert the option either (1) after the last *FLAGS variable, or
  13286. # (2) before a word containing "conftest.", or (3) at the end.
  13287. # Note that $ac_compile itself does not contain backslashes and begins
  13288. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13289. # The option is referenced via a variable to avoid confusing sed.
  13290. lt_compile=`echo "$ac_compile" | $SED \
  13291. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13292. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13293. -e 's:$: $lt_compiler_flag:'`
  13294. (eval echo "\"\$as_me:14719: $lt_compile\"" >&5)
  13295. (eval "$lt_compile" 2>conftest.err)
  13296. ac_status=$?
  13297. cat conftest.err >&5
  13298. echo "$as_me:14723: \$? = $ac_status" >&5
  13299. if (exit $ac_status) && test -s "$ac_outfile"; then
  13300. # The compiler can only warn and ignore the option if not recognized
  13301. # So say no if there are warnings
  13302. if test ! -s conftest.err; then
  13303. lt_prog_compiler_pic_works_F77=yes
  13304. fi
  13305. fi
  13306. $rm conftest*
  13307. fi
  13308. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13309. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  13310. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13311. case $lt_prog_compiler_pic_F77 in
  13312. "" | " "*) ;;
  13313. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13314. esac
  13315. else
  13316. lt_prog_compiler_pic_F77=
  13317. lt_prog_compiler_can_build_shared_F77=no
  13318. fi
  13319. fi
  13320. case "$host_os" in
  13321. # For platforms which do not support PIC, -DPIC is meaningless:
  13322. *djgpp*)
  13323. lt_prog_compiler_pic_F77=
  13324. ;;
  13325. *)
  13326. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13327. ;;
  13328. esac
  13329. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13330. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13331. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13332. echo $ECHO_N "(cached) $ECHO_C" >&6
  13333. else
  13334. lt_cv_prog_compiler_c_o_F77=no
  13335. $rm -r conftest 2>/dev/null
  13336. mkdir conftest
  13337. cd conftest
  13338. mkdir out
  13339. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13340. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13341. # Insert the option either (1) after the last *FLAGS variable, or
  13342. # (2) before a word containing "conftest.", or (3) at the end.
  13343. # Note that $ac_compile itself does not contain backslashes and begins
  13344. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13345. lt_compile=`echo "$ac_compile" | $SED \
  13346. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  13347. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13348. -e 's:$: $lt_compiler_flag:'`
  13349. (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
  13350. (eval "$lt_compile" 2>out/conftest.err)
  13351. ac_status=$?
  13352. cat out/conftest.err >&5
  13353. echo "$as_me:14783: \$? = $ac_status" >&5
  13354. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13355. then
  13356. # The compiler can only warn and ignore the option if not recognized
  13357. # So say no if there are warnings
  13358. if test ! -s out/conftest.err; then
  13359. lt_cv_prog_compiler_c_o_F77=yes
  13360. fi
  13361. fi
  13362. chmod u+w .
  13363. $rm conftest*
  13364. # SGI C++ compiler will create directory out/ii_files/ for
  13365. # template instantiation
  13366. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13367. $rm out/* && rmdir out
  13368. cd ..
  13369. rmdir conftest
  13370. $rm conftest*
  13371. fi
  13372. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13373. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  13374. hard_links="nottested"
  13375. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13376. # do not overwrite the value of need_locks provided by the user
  13377. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13378. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13379. hard_links=yes
  13380. $rm conftest*
  13381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13382. touch conftest.a
  13383. ln conftest.a conftest.b 2>&5 || hard_links=no
  13384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13385. echo "$as_me:$LINENO: result: $hard_links" >&5
  13386. echo "${ECHO_T}$hard_links" >&6
  13387. if test "$hard_links" = no; then
  13388. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13389. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13390. need_locks=warn
  13391. fi
  13392. else
  13393. need_locks=no
  13394. fi
  13395. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13396. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13397. runpath_var=
  13398. allow_undefined_flag_F77=
  13399. enable_shared_with_static_runtimes_F77=no
  13400. archive_cmds_F77=
  13401. archive_expsym_cmds_F77=
  13402. old_archive_From_new_cmds_F77=
  13403. old_archive_from_expsyms_cmds_F77=
  13404. export_dynamic_flag_spec_F77=
  13405. whole_archive_flag_spec_F77=
  13406. thread_safe_flag_spec_F77=
  13407. hardcode_libdir_flag_spec_F77=
  13408. hardcode_libdir_flag_spec_ld_F77=
  13409. hardcode_libdir_separator_F77=
  13410. hardcode_direct_F77=no
  13411. hardcode_minus_L_F77=no
  13412. hardcode_shlibpath_var_F77=unsupported
  13413. link_all_deplibs_F77=unknown
  13414. hardcode_automatic_F77=no
  13415. module_cmds_F77=
  13416. module_expsym_cmds_F77=
  13417. always_export_symbols_F77=no
  13418. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13419. # include_expsyms should be a list of space-separated symbols to be *always*
  13420. # included in the symbol list
  13421. include_expsyms_F77=
  13422. # exclude_expsyms can be an extended regexp of symbols to exclude
  13423. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13424. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13425. # as well as any symbol that contains `d'.
  13426. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13427. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13428. # platforms (ab)use it in PIC code, but their linkers get confused if
  13429. # the symbol is explicitly referenced. Since portable code cannot
  13430. # rely on this symbol name, it's probably fine to never include it in
  13431. # preloaded symbol tables.
  13432. extract_expsyms_cmds=
  13433. case $host_os in
  13434. cygwin* | mingw* | pw32*)
  13435. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13436. # When not using gcc, we currently assume that we are using
  13437. # Microsoft Visual C++.
  13438. if test "$GCC" != yes; then
  13439. with_gnu_ld=no
  13440. fi
  13441. ;;
  13442. openbsd*)
  13443. with_gnu_ld=no
  13444. ;;
  13445. esac
  13446. ld_shlibs_F77=yes
  13447. if test "$with_gnu_ld" = yes; then
  13448. # If archive_cmds runs LD, not CC, wlarc should be empty
  13449. wlarc='${wl}'
  13450. # See if GNU ld supports shared libraries.
  13451. case $host_os in
  13452. aix3* | aix4* | aix5*)
  13453. # On AIX/PPC, the GNU linker is very broken
  13454. if test "$host_cpu" != ia64; then
  13455. ld_shlibs_F77=no
  13456. cat <<EOF 1>&2
  13457. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13458. *** to be unable to reliably create shared libraries on AIX.
  13459. *** Therefore, libtool is disabling shared libraries support. If you
  13460. *** really care for shared libraries, you may want to modify your PATH
  13461. *** so that a non-GNU linker is found, and then restart.
  13462. EOF
  13463. fi
  13464. ;;
  13465. amigaos*)
  13466. archive_cmds_F77='$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)'
  13467. hardcode_libdir_flag_spec_F77='-L$libdir'
  13468. hardcode_minus_L_F77=yes
  13469. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13470. # that the semantics of dynamic libraries on AmigaOS, at least up
  13471. # to version 4, is to share data among multiple programs linked
  13472. # with the same dynamic library. Since this doesn't match the
  13473. # behavior of shared libraries on other platforms, we can't use
  13474. # them.
  13475. ld_shlibs_F77=no
  13476. ;;
  13477. beos*)
  13478. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13479. allow_undefined_flag_F77=unsupported
  13480. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13481. # support --undefined. This deserves some investigation. FIXME
  13482. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13483. else
  13484. ld_shlibs_F77=no
  13485. fi
  13486. ;;
  13487. cygwin* | mingw* | pw32*)
  13488. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13489. # as there is no search path for DLLs.
  13490. hardcode_libdir_flag_spec_F77='-L$libdir'
  13491. allow_undefined_flag_F77=unsupported
  13492. always_export_symbols_F77=no
  13493. enable_shared_with_static_runtimes_F77=yes
  13494. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13495. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13496. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13497. # If the export-symbols file already is a .def file (1st line
  13498. # is EXPORTS), use it as is; otherwise, prepend...
  13499. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13500. cp $export_symbols $output_objdir/$soname.def;
  13501. else
  13502. echo EXPORTS > $output_objdir/$soname.def;
  13503. cat $export_symbols >> $output_objdir/$soname.def;
  13504. fi~
  13505. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13506. else
  13507. ld_shlibs_F77=no
  13508. fi
  13509. ;;
  13510. netbsd*)
  13511. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13512. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13513. wlarc=
  13514. else
  13515. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13516. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13517. fi
  13518. ;;
  13519. solaris* | sysv5*)
  13520. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13521. ld_shlibs_F77=no
  13522. cat <<EOF 1>&2
  13523. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13524. *** create shared libraries on Solaris systems. Therefore, libtool
  13525. *** is disabling shared libraries support. We urge you to upgrade GNU
  13526. *** binutils to release 2.9.1 or newer. Another option is to modify
  13527. *** your PATH or compiler configuration so that the native linker is
  13528. *** used, and then restart.
  13529. EOF
  13530. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13531. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13532. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13533. else
  13534. ld_shlibs_F77=no
  13535. fi
  13536. ;;
  13537. sunos4*)
  13538. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13539. wlarc=
  13540. hardcode_direct_F77=yes
  13541. hardcode_shlibpath_var_F77=no
  13542. ;;
  13543. linux*)
  13544. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13545. tmp_addflag=
  13546. case $CC,$host_cpu in
  13547. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  13548. tmp_addflag=' -fpic' ;;
  13549. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13550. tmp_addflag=' -i_dynamic' ;;
  13551. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13552. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13553. ifc* | ifort*) # Intel Fortran compiler
  13554. tmp_addflag=' -nofor_main' ;;
  13555. esac
  13556. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13557. supports_anon_versioning=no
  13558. case `$LD -v 2>/dev/null` in
  13559. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13560. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13561. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13562. *\ 2.11.*) ;; # other 2.11 versions
  13563. *) supports_anon_versioning=yes ;;
  13564. esac
  13565. if test $supports_anon_versioning = yes; then
  13566. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13567. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13568. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13569. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13570. else
  13571. archive_expsym_cmds_F77=$archive_cmds_F77
  13572. fi
  13573. else
  13574. ld_shlibs_F77=no
  13575. fi
  13576. ;;
  13577. *)
  13578. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13579. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13580. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13581. else
  13582. ld_shlibs_F77=no
  13583. fi
  13584. ;;
  13585. esac
  13586. if test "$ld_shlibs_F77" = yes; then
  13587. runpath_var=LD_RUN_PATH
  13588. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13589. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13590. # ancient GNU ld didn't support --whole-archive et. al.
  13591. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13592. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13593. else
  13594. whole_archive_flag_spec_F77=
  13595. fi
  13596. fi
  13597. else
  13598. # PORTME fill in a description of your system's linker (not GNU ld)
  13599. case $host_os in
  13600. aix3*)
  13601. allow_undefined_flag_F77=unsupported
  13602. always_export_symbols_F77=yes
  13603. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13604. # Note: this linker hardcodes the directories in LIBPATH if there
  13605. # are no directories specified by -L.
  13606. hardcode_minus_L_F77=yes
  13607. if test "$GCC" = yes && test -z "$link_static_flag"; then
  13608. # Neither direct hardcoding nor static linking is supported with a
  13609. # broken collect2.
  13610. hardcode_direct_F77=unsupported
  13611. fi
  13612. ;;
  13613. aix4* | aix5*)
  13614. if test "$host_cpu" = ia64; then
  13615. # On IA64, the linker does run time linking by default, so we don't
  13616. # have to do anything special.
  13617. aix_use_runtimelinking=no
  13618. exp_sym_flag='-Bexport'
  13619. no_entry_flag=""
  13620. else
  13621. # If we're using GNU nm, then we don't want the "-C" option.
  13622. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13623. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13624. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13625. else
  13626. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13627. fi
  13628. aix_use_runtimelinking=no
  13629. # Test if we are trying to use run time linking or normal
  13630. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13631. # need to do runtime linking.
  13632. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13633. for ld_flag in $LDFLAGS; do
  13634. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13635. aix_use_runtimelinking=yes
  13636. break
  13637. fi
  13638. done
  13639. esac
  13640. exp_sym_flag='-bexport'
  13641. no_entry_flag='-bnoentry'
  13642. fi
  13643. # When large executables or shared objects are built, AIX ld can
  13644. # have problems creating the table of contents. If linking a library
  13645. # or program results in "error TOC overflow" add -mminimal-toc to
  13646. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13647. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13648. archive_cmds_F77=''
  13649. hardcode_direct_F77=yes
  13650. hardcode_libdir_separator_F77=':'
  13651. link_all_deplibs_F77=yes
  13652. if test "$GCC" = yes; then
  13653. case $host_os in aix4.[012]|aix4.[012].*)
  13654. # We only want to do this on AIX 4.2 and lower, the check
  13655. # below for broken collect2 doesn't work under 4.3+
  13656. collect2name=`${CC} -print-prog-name=collect2`
  13657. if test -f "$collect2name" && \
  13658. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13659. then
  13660. # We have reworked collect2
  13661. hardcode_direct_F77=yes
  13662. else
  13663. # We have old collect2
  13664. hardcode_direct_F77=unsupported
  13665. # It fails to find uninstalled libraries when the uninstalled
  13666. # path is not listed in the libpath. Setting hardcode_minus_L
  13667. # to unsupported forces relinking
  13668. hardcode_minus_L_F77=yes
  13669. hardcode_libdir_flag_spec_F77='-L$libdir'
  13670. hardcode_libdir_separator_F77=
  13671. fi
  13672. esac
  13673. shared_flag='-shared'
  13674. if test "$aix_use_runtimelinking" = yes; then
  13675. shared_flag="$shared_flag "'${wl}-G'
  13676. fi
  13677. else
  13678. # not using gcc
  13679. if test "$host_cpu" = ia64; then
  13680. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13681. # chokes on -Wl,-G. The following line is correct:
  13682. shared_flag='-G'
  13683. else
  13684. if test "$aix_use_runtimelinking" = yes; then
  13685. shared_flag='${wl}-G'
  13686. else
  13687. shared_flag='${wl}-bM:SRE'
  13688. fi
  13689. fi
  13690. fi
  13691. # It seems that -bexpall does not export symbols beginning with
  13692. # underscore (_), so it is better to generate a list of symbols to export.
  13693. always_export_symbols_F77=yes
  13694. if test "$aix_use_runtimelinking" = yes; then
  13695. # Warning - without using the other runtime loading flags (-brtl),
  13696. # -berok will link without error, but may produce a broken library.
  13697. allow_undefined_flag_F77='-berok'
  13698. # Determine the default libpath from the value encoded in an empty executable.
  13699. cat >conftest.$ac_ext <<_ACEOF
  13700. program main
  13701. end
  13702. _ACEOF
  13703. rm -f conftest.$ac_objext conftest$ac_exeext
  13704. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13705. (eval $ac_link) 2>conftest.er1
  13706. ac_status=$?
  13707. grep -v '^ *+' conftest.er1 >conftest.err
  13708. rm -f conftest.er1
  13709. cat conftest.err >&5
  13710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13711. (exit $ac_status); } &&
  13712. { ac_try='test -z "$ac_f77_werror_flag"
  13713. || test ! -s conftest.err'
  13714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13715. (eval $ac_try) 2>&5
  13716. ac_status=$?
  13717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13718. (exit $ac_status); }; } &&
  13719. { ac_try='test -s conftest$ac_exeext'
  13720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13721. (eval $ac_try) 2>&5
  13722. ac_status=$?
  13723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13724. (exit $ac_status); }; }; then
  13725. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13726. }'`
  13727. # Check for a 64-bit object if we didn't find anything.
  13728. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13729. }'`; fi
  13730. else
  13731. echo "$as_me: failed program was:" >&5
  13732. sed 's/^/| /' conftest.$ac_ext >&5
  13733. fi
  13734. rm -f conftest.err conftest.$ac_objext \
  13735. conftest$ac_exeext conftest.$ac_ext
  13736. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13737. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13738. archive_expsym_cmds_F77="\$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"
  13739. else
  13740. if test "$host_cpu" = ia64; then
  13741. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13742. allow_undefined_flag_F77="-z nodefs"
  13743. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13744. else
  13745. # Determine the default libpath from the value encoded in an empty executable.
  13746. cat >conftest.$ac_ext <<_ACEOF
  13747. program main
  13748. end
  13749. _ACEOF
  13750. rm -f conftest.$ac_objext conftest$ac_exeext
  13751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13752. (eval $ac_link) 2>conftest.er1
  13753. ac_status=$?
  13754. grep -v '^ *+' conftest.er1 >conftest.err
  13755. rm -f conftest.er1
  13756. cat conftest.err >&5
  13757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13758. (exit $ac_status); } &&
  13759. { ac_try='test -z "$ac_f77_werror_flag"
  13760. || test ! -s conftest.err'
  13761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13762. (eval $ac_try) 2>&5
  13763. ac_status=$?
  13764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13765. (exit $ac_status); }; } &&
  13766. { ac_try='test -s conftest$ac_exeext'
  13767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13768. (eval $ac_try) 2>&5
  13769. ac_status=$?
  13770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13771. (exit $ac_status); }; }; then
  13772. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13773. }'`
  13774. # Check for a 64-bit object if we didn't find anything.
  13775. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13776. }'`; fi
  13777. else
  13778. echo "$as_me: failed program was:" >&5
  13779. sed 's/^/| /' conftest.$ac_ext >&5
  13780. fi
  13781. rm -f conftest.err conftest.$ac_objext \
  13782. conftest$ac_exeext conftest.$ac_ext
  13783. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13784. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13785. # Warning - without using the other run time loading flags,
  13786. # -berok will link without error, but may produce a broken library.
  13787. no_undefined_flag_F77=' ${wl}-bernotok'
  13788. allow_undefined_flag_F77=' ${wl}-berok'
  13789. # -bexpall does not export symbols beginning with underscore (_)
  13790. always_export_symbols_F77=yes
  13791. # Exported symbols can be pulled into shared objects from archives
  13792. whole_archive_flag_spec_F77=' '
  13793. archive_cmds_need_lc_F77=yes
  13794. # This is similar to how AIX traditionally builds it's shared libraries.
  13795. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13796. fi
  13797. fi
  13798. ;;
  13799. amigaos*)
  13800. archive_cmds_F77='$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)'
  13801. hardcode_libdir_flag_spec_F77='-L$libdir'
  13802. hardcode_minus_L_F77=yes
  13803. # see comment about different semantics on the GNU ld section
  13804. ld_shlibs_F77=no
  13805. ;;
  13806. bsdi[45]*)
  13807. export_dynamic_flag_spec_F77=-rdynamic
  13808. ;;
  13809. cygwin* | mingw* | pw32*)
  13810. # When not using gcc, we currently assume that we are using
  13811. # Microsoft Visual C++.
  13812. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13813. # no search path for DLLs.
  13814. hardcode_libdir_flag_spec_F77=' '
  13815. allow_undefined_flag_F77=unsupported
  13816. # Tell ltmain to make .lib files, not .a files.
  13817. libext=lib
  13818. # Tell ltmain to make .dll files, not .so files.
  13819. shrext_cmds=".dll"
  13820. # FIXME: Setting linknames here is a bad hack.
  13821. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13822. # The linker will automatically build a .lib file if we build a DLL.
  13823. old_archive_From_new_cmds_F77='true'
  13824. # FIXME: Should let the user specify the lib program.
  13825. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13826. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13827. enable_shared_with_static_runtimes_F77=yes
  13828. ;;
  13829. darwin* | rhapsody*)
  13830. case "$host_os" in
  13831. rhapsody* | darwin1.[012])
  13832. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13833. ;;
  13834. *) # Darwin 1.3 on
  13835. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13836. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13837. else
  13838. case ${MACOSX_DEPLOYMENT_TARGET} in
  13839. 10.[012])
  13840. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13841. ;;
  13842. 10.*)
  13843. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13844. ;;
  13845. esac
  13846. fi
  13847. ;;
  13848. esac
  13849. archive_cmds_need_lc_F77=no
  13850. hardcode_direct_F77=no
  13851. hardcode_automatic_F77=yes
  13852. hardcode_shlibpath_var_F77=unsupported
  13853. whole_archive_flag_spec_F77=''
  13854. link_all_deplibs_F77=yes
  13855. if test "$GCC" = yes ; then
  13856. output_verbose_link_cmd='echo'
  13857. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13858. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13859. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13860. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13861. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13862. else
  13863. case "$cc_basename" in
  13864. xlc*)
  13865. output_verbose_link_cmd='echo'
  13866. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13867. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13868. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13869. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13870. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13871. ;;
  13872. *)
  13873. ld_shlibs_F77=no
  13874. ;;
  13875. esac
  13876. fi
  13877. ;;
  13878. dgux*)
  13879. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13880. hardcode_libdir_flag_spec_F77='-L$libdir'
  13881. hardcode_shlibpath_var_F77=no
  13882. ;;
  13883. freebsd1*)
  13884. ld_shlibs_F77=no
  13885. ;;
  13886. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13887. # support. Future versions do this automatically, but an explicit c++rt0.o
  13888. # does not break anything, and helps significantly (at the cost of a little
  13889. # extra space).
  13890. freebsd2.2*)
  13891. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13892. hardcode_libdir_flag_spec_F77='-R$libdir'
  13893. hardcode_direct_F77=yes
  13894. hardcode_shlibpath_var_F77=no
  13895. ;;
  13896. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13897. freebsd2*)
  13898. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13899. hardcode_direct_F77=yes
  13900. hardcode_minus_L_F77=yes
  13901. hardcode_shlibpath_var_F77=no
  13902. ;;
  13903. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13904. freebsd* | kfreebsd*-gnu | dragonfly*)
  13905. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13906. hardcode_libdir_flag_spec_F77='-R$libdir'
  13907. hardcode_direct_F77=yes
  13908. hardcode_shlibpath_var_F77=no
  13909. ;;
  13910. hpux9*)
  13911. if test "$GCC" = yes; then
  13912. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13913. else
  13914. archive_cmds_F77='$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'
  13915. fi
  13916. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13917. hardcode_libdir_separator_F77=:
  13918. hardcode_direct_F77=yes
  13919. # hardcode_minus_L: Not really in the search PATH,
  13920. # but as the default location of the library.
  13921. hardcode_minus_L_F77=yes
  13922. export_dynamic_flag_spec_F77='${wl}-E'
  13923. ;;
  13924. hpux10* | hpux11*)
  13925. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13926. case "$host_cpu" in
  13927. hppa*64*|ia64*)
  13928. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13929. ;;
  13930. *)
  13931. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13932. ;;
  13933. esac
  13934. else
  13935. case "$host_cpu" in
  13936. hppa*64*|ia64*)
  13937. archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  13938. ;;
  13939. *)
  13940. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13941. ;;
  13942. esac
  13943. fi
  13944. if test "$with_gnu_ld" = no; then
  13945. case "$host_cpu" in
  13946. hppa*64*)
  13947. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13948. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13949. hardcode_libdir_separator_F77=:
  13950. hardcode_direct_F77=no
  13951. hardcode_shlibpath_var_F77=no
  13952. ;;
  13953. ia64*)
  13954. hardcode_libdir_flag_spec_F77='-L$libdir'
  13955. hardcode_direct_F77=no
  13956. hardcode_shlibpath_var_F77=no
  13957. # hardcode_minus_L: Not really in the search PATH,
  13958. # but as the default location of the library.
  13959. hardcode_minus_L_F77=yes
  13960. ;;
  13961. *)
  13962. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13963. hardcode_libdir_separator_F77=:
  13964. hardcode_direct_F77=yes
  13965. export_dynamic_flag_spec_F77='${wl}-E'
  13966. # hardcode_minus_L: Not really in the search PATH,
  13967. # but as the default location of the library.
  13968. hardcode_minus_L_F77=yes
  13969. ;;
  13970. esac
  13971. fi
  13972. ;;
  13973. irix5* | irix6* | nonstopux*)
  13974. if test "$GCC" = yes; then
  13975. archive_cmds_F77='$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'
  13976. else
  13977. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13978. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13979. fi
  13980. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13981. hardcode_libdir_separator_F77=:
  13982. link_all_deplibs_F77=yes
  13983. ;;
  13984. netbsd*)
  13985. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13986. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13987. else
  13988. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13989. fi
  13990. hardcode_libdir_flag_spec_F77='-R$libdir'
  13991. hardcode_direct_F77=yes
  13992. hardcode_shlibpath_var_F77=no
  13993. ;;
  13994. newsos6)
  13995. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13996. hardcode_direct_F77=yes
  13997. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13998. hardcode_libdir_separator_F77=:
  13999. hardcode_shlibpath_var_F77=no
  14000. ;;
  14001. openbsd*)
  14002. hardcode_direct_F77=yes
  14003. hardcode_shlibpath_var_F77=no
  14004. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14005. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14006. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14007. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14008. export_dynamic_flag_spec_F77='${wl}-E'
  14009. else
  14010. case $host_os in
  14011. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14012. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14013. hardcode_libdir_flag_spec_F77='-R$libdir'
  14014. ;;
  14015. *)
  14016. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14017. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14018. ;;
  14019. esac
  14020. fi
  14021. ;;
  14022. os2*)
  14023. hardcode_libdir_flag_spec_F77='-L$libdir'
  14024. hardcode_minus_L_F77=yes
  14025. allow_undefined_flag_F77=unsupported
  14026. archive_cmds_F77='$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'
  14027. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14028. ;;
  14029. osf3*)
  14030. if test "$GCC" = yes; then
  14031. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14032. archive_cmds_F77='$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'
  14033. else
  14034. allow_undefined_flag_F77=' -expect_unresolved \*'
  14035. archive_cmds_F77='$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'
  14036. fi
  14037. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14038. hardcode_libdir_separator_F77=:
  14039. ;;
  14040. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14041. if test "$GCC" = yes; then
  14042. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14043. archive_cmds_F77='$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'
  14044. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14045. else
  14046. allow_undefined_flag_F77=' -expect_unresolved \*'
  14047. archive_cmds_F77='$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'
  14048. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14049. $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'
  14050. # Both c and cxx compiler support -rpath directly
  14051. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14052. fi
  14053. hardcode_libdir_separator_F77=:
  14054. ;;
  14055. sco3.2v5*)
  14056. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14057. hardcode_shlibpath_var_F77=no
  14058. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14059. runpath_var=LD_RUN_PATH
  14060. hardcode_runpath_var=yes
  14061. ;;
  14062. solaris*)
  14063. no_undefined_flag_F77=' -z text'
  14064. if test "$GCC" = yes; then
  14065. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14066. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14067. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14068. else
  14069. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14070. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14071. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14072. fi
  14073. hardcode_libdir_flag_spec_F77='-R$libdir'
  14074. hardcode_shlibpath_var_F77=no
  14075. case $host_os in
  14076. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14077. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  14078. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
  14079. esac
  14080. link_all_deplibs_F77=yes
  14081. ;;
  14082. sunos4*)
  14083. if test "x$host_vendor" = xsequent; then
  14084. # Use $CC to link under sequent, because it throws in some extra .o
  14085. # files that make .init and .fini sections work.
  14086. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14087. else
  14088. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14089. fi
  14090. hardcode_libdir_flag_spec_F77='-L$libdir'
  14091. hardcode_direct_F77=yes
  14092. hardcode_minus_L_F77=yes
  14093. hardcode_shlibpath_var_F77=no
  14094. ;;
  14095. sysv4)
  14096. case $host_vendor in
  14097. sni)
  14098. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14099. hardcode_direct_F77=yes # is this really true???
  14100. ;;
  14101. siemens)
  14102. ## LD is ld it makes a PLAMLIB
  14103. ## CC just makes a GrossModule.
  14104. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14105. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14106. hardcode_direct_F77=no
  14107. ;;
  14108. motorola)
  14109. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14110. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14111. ;;
  14112. esac
  14113. runpath_var='LD_RUN_PATH'
  14114. hardcode_shlibpath_var_F77=no
  14115. ;;
  14116. sysv4.3*)
  14117. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14118. hardcode_shlibpath_var_F77=no
  14119. export_dynamic_flag_spec_F77='-Bexport'
  14120. ;;
  14121. sysv4*MP*)
  14122. if test -d /usr/nec; then
  14123. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14124. hardcode_shlibpath_var_F77=no
  14125. runpath_var=LD_RUN_PATH
  14126. hardcode_runpath_var=yes
  14127. ld_shlibs_F77=yes
  14128. fi
  14129. ;;
  14130. sysv4.2uw2*)
  14131. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14132. hardcode_direct_F77=yes
  14133. hardcode_minus_L_F77=no
  14134. hardcode_shlibpath_var_F77=no
  14135. hardcode_runpath_var=yes
  14136. runpath_var=LD_RUN_PATH
  14137. ;;
  14138. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  14139. no_undefi