PageRenderTime 56ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 2ms

/configure

https://gitlab.com/evergreen-bjwebb/opensrf-debian
Shell | 15699 lines | 13348 code | 1385 blank | 966 comment | 1198 complexity | faa3bb73c5fda06d5a27320c0ebd6aca MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. #! /bin/sh
  2. # From configure.ac Revision: 0.1 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.66 for OpenSRF trunk.
  5. #
  6. # Report bugs to <open-ils-dev@list.georgialibraries.org>.
  7. #
  8. #
  9. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  11. # Foundation, Inc.
  12. #
  13. #
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. BASH_ENV=/dev/null
  211. ENV=/dev/null
  212. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  213. export CONFIG_SHELL
  214. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: open-ils-dev@list.georgialibraries.org about your
  225. $0: system, including any error possibly output before this
  226. $0: message. Then install a modern shell, or manually run
  227. $0: the script under such a shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. test -n "$DJDIR" || exec 7<&0 </dev/null
  498. exec 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. # Identity of this package.
  515. PACKAGE_NAME='OpenSRF'
  516. PACKAGE_TARNAME='opensrf'
  517. PACKAGE_VERSION='trunk'
  518. PACKAGE_STRING='OpenSRF trunk'
  519. PACKAGE_BUGREPORT='open-ils-dev@list.georgialibraries.org'
  520. PACKAGE_URL=''
  521. ac_unique_file="configure.ac"
  522. ac_default_prefix=/opensrf
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_subst_vars='am__EXEEXT_FALSE
  559. am__EXEEXT_TRUE
  560. LTLIBOBJS
  561. POW_LIB
  562. LIBOBJS
  563. CHECK_TESTS_FALSE
  564. CHECK_TESTS_TRUE
  565. CHECK_LIBS
  566. CHECK_CFLAGS
  567. memcached_LIBS
  568. memcached_CFLAGS
  569. PKG_CONFIG_LIBDIR
  570. PKG_CONFIG_PATH
  571. PKG_CONFIG
  572. HAVE_PYTHON
  573. LIBDIRS
  574. INCLUDES
  575. LIBXML2_HEADERS
  576. APR_HEADERS
  577. APACHE2_HEADERS
  578. APXS2
  579. TMP
  580. CPP
  581. OTOOL64
  582. OTOOL
  583. LIPO
  584. NMEDIT
  585. DSYMUTIL
  586. RANLIB
  587. AR
  588. OBJDUMP
  589. LN_S
  590. NM
  591. ac_ct_DUMPBIN
  592. DUMPBIN
  593. LD
  594. FGREP
  595. EGREP
  596. GREP
  597. SED
  598. am__fastdepCC_FALSE
  599. am__fastdepCC_TRUE
  600. CCDEPMODE
  601. AMDEPBACKSLASH
  602. AMDEP_FALSE
  603. AMDEP_TRUE
  604. am__quote
  605. am__include
  606. DEPDIR
  607. OBJEXT
  608. EXEEXT
  609. ac_ct_CC
  610. CPPFLAGS
  611. LDFLAGS
  612. CFLAGS
  613. CC
  614. host_os
  615. host_vendor
  616. host_cpu
  617. host
  618. build_os
  619. build_vendor
  620. build_cpu
  621. build
  622. LIBTOOL
  623. OSRF_JAVA_DEPSDIR
  624. DEBUG_FALSE
  625. DEBUG_TRUE
  626. OSRF_INSTALL_CHOPCHOP
  627. BUILDCHOPCHOP_FALSE
  628. BUILDCHOPCHOP_TRUE
  629. OSRF_INSTALL_PYTHON
  630. BUILDPYTHON_FALSE
  631. BUILDPYTHON_TRUE
  632. OSRF_INSTALL_CORE
  633. BUILDCORE_FALSE
  634. BUILDCORE_TRUE
  635. OSRF_INSTALL_JAVASCRIPT
  636. INSTALLJAVASCRIPT_FALSE
  637. INSTALLJAVASCRIPT_TRUE
  638. OSRF_INSTALL_JAVA
  639. BUILDJAVA_FALSE
  640. BUILDJAVA_TRUE
  641. PID_DIR
  642. CONF_DIR
  643. am__untar
  644. am__tar
  645. AMTAR
  646. am__leading_dot
  647. SET_MAKE
  648. AWK
  649. mkdir_p
  650. MKDIR_P
  651. INSTALL_STRIP_PROGRAM
  652. STRIP
  653. install_sh
  654. MAKEINFO
  655. AUTOHEADER
  656. AUTOMAKE
  657. AUTOCONF
  658. ACLOCAL
  659. VERSION
  660. PACKAGE
  661. CYGPATH_W
  662. am__isrc
  663. INSTALL_DATA
  664. INSTALL_SCRIPT
  665. INSTALL_PROGRAM
  666. target_alias
  667. host_alias
  668. build_alias
  669. LIBS
  670. ECHO_T
  671. ECHO_N
  672. ECHO_C
  673. DEFS
  674. mandir
  675. localedir
  676. libdir
  677. psdir
  678. pdfdir
  679. dvidir
  680. htmldir
  681. infodir
  682. docdir
  683. oldincludedir
  684. includedir
  685. localstatedir
  686. sharedstatedir
  687. sysconfdir
  688. datadir
  689. datarootdir
  690. libexecdir
  691. sbindir
  692. bindir
  693. program_transform_name
  694. prefix
  695. exec_prefix
  696. PACKAGE_URL
  697. PACKAGE_BUGREPORT
  698. PACKAGE_STRING
  699. PACKAGE_VERSION
  700. PACKAGE_TARNAME
  701. PACKAGE_NAME
  702. PATH_SEPARATOR
  703. SHELL'
  704. ac_subst_files=''
  705. ac_user_opts='
  706. enable_option_checking
  707. enable_java
  708. enable_javascript
  709. enable_core
  710. enable_python
  711. enable_chopchop
  712. enable_debug
  713. enable_shared
  714. enable_static
  715. with_pic
  716. enable_fast_install
  717. enable_dependency_tracking
  718. with_gnu_ld
  719. enable_libtool_lock
  720. with_tmp
  721. with_apxs
  722. with_apache
  723. with_apr
  724. with_libxml
  725. with_includes
  726. with_libraries
  727. '
  728. ac_precious_vars='build_alias
  729. host_alias
  730. target_alias
  731. CC
  732. CFLAGS
  733. LDFLAGS
  734. LIBS
  735. CPPFLAGS
  736. CPP
  737. PKG_CONFIG
  738. PKG_CONFIG_PATH
  739. PKG_CONFIG_LIBDIR
  740. memcached_CFLAGS
  741. memcached_LIBS
  742. CHECK_CFLAGS
  743. CHECK_LIBS'
  744. # Initialize some variables set by options.
  745. ac_init_help=
  746. ac_init_version=false
  747. ac_unrecognized_opts=
  748. ac_unrecognized_sep=
  749. # The variables have the same names as the options, with
  750. # dashes changed to underlines.
  751. cache_file=/dev/null
  752. exec_prefix=NONE
  753. no_create=
  754. no_recursion=
  755. prefix=NONE
  756. program_prefix=NONE
  757. program_suffix=NONE
  758. program_transform_name=s,x,x,
  759. silent=
  760. site=
  761. srcdir=
  762. verbose=
  763. x_includes=NONE
  764. x_libraries=NONE
  765. # Installation directory options.
  766. # These are left unexpanded so users can "make install exec_prefix=/foo"
  767. # and all the variables that are supposed to be based on exec_prefix
  768. # by default will actually change.
  769. # Use braces instead of parens because sh, perl, etc. also accept them.
  770. # (The list follows the same order as the GNU Coding Standards.)
  771. bindir='${exec_prefix}/bin'
  772. sbindir='${exec_prefix}/sbin'
  773. libexecdir='${exec_prefix}/libexec'
  774. datarootdir='${prefix}/share'
  775. datadir='${datarootdir}'
  776. sysconfdir='${prefix}/etc'
  777. sharedstatedir='${prefix}/com'
  778. localstatedir='${prefix}/var'
  779. includedir='${prefix}/include'
  780. oldincludedir='/usr/include'
  781. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  782. infodir='${datarootdir}/info'
  783. htmldir='${docdir}'
  784. dvidir='${docdir}'
  785. pdfdir='${docdir}'
  786. psdir='${docdir}'
  787. libdir='${exec_prefix}/lib'
  788. localedir='${datarootdir}/locale'
  789. mandir='${datarootdir}/man'
  790. ac_prev=
  791. ac_dashdash=
  792. for ac_option
  793. do
  794. # If the previous option needs an argument, assign it.
  795. if test -n "$ac_prev"; then
  796. eval $ac_prev=\$ac_option
  797. ac_prev=
  798. continue
  799. fi
  800. case $ac_option in
  801. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  802. *) ac_optarg=yes ;;
  803. esac
  804. # Accept the important Cygnus configure options, so we can diagnose typos.
  805. case $ac_dashdash$ac_option in
  806. --)
  807. ac_dashdash=yes ;;
  808. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  809. ac_prev=bindir ;;
  810. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  811. bindir=$ac_optarg ;;
  812. -build | --build | --buil | --bui | --bu)
  813. ac_prev=build_alias ;;
  814. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  815. build_alias=$ac_optarg ;;
  816. -cache-file | --cache-file | --cache-fil | --cache-fi \
  817. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  818. ac_prev=cache_file ;;
  819. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  820. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  821. cache_file=$ac_optarg ;;
  822. --config-cache | -C)
  823. cache_file=config.cache ;;
  824. -datadir | --datadir | --datadi | --datad)
  825. ac_prev=datadir ;;
  826. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  827. datadir=$ac_optarg ;;
  828. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  829. | --dataroo | --dataro | --datar)
  830. ac_prev=datarootdir ;;
  831. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  832. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  833. datarootdir=$ac_optarg ;;
  834. -disable-* | --disable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=no ;;
  849. -docdir | --docdir | --docdi | --doc | --do)
  850. ac_prev=docdir ;;
  851. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  852. docdir=$ac_optarg ;;
  853. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  854. ac_prev=dvidir ;;
  855. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  856. dvidir=$ac_optarg ;;
  857. -enable-* | --enable-*)
  858. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  859. # Reject names that are not valid shell variable names.
  860. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  861. as_fn_error $? "invalid feature name: $ac_useropt"
  862. ac_useropt_orig=$ac_useropt
  863. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  864. case $ac_user_opts in
  865. *"
  866. "enable_$ac_useropt"
  867. "*) ;;
  868. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  869. ac_unrecognized_sep=', ';;
  870. esac
  871. eval enable_$ac_useropt=\$ac_optarg ;;
  872. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  873. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  874. | --exec | --exe | --ex)
  875. ac_prev=exec_prefix ;;
  876. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  877. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  878. | --exec=* | --exe=* | --ex=*)
  879. exec_prefix=$ac_optarg ;;
  880. -gas | --gas | --ga | --g)
  881. # Obsolete; use --with-gas.
  882. with_gas=yes ;;
  883. -help | --help | --hel | --he | -h)
  884. ac_init_help=long ;;
  885. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  886. ac_init_help=recursive ;;
  887. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  888. ac_init_help=short ;;
  889. -host | --host | --hos | --ho)
  890. ac_prev=host_alias ;;
  891. -host=* | --host=* | --hos=* | --ho=*)
  892. host_alias=$ac_optarg ;;
  893. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  894. ac_prev=htmldir ;;
  895. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  896. | --ht=*)
  897. htmldir=$ac_optarg ;;
  898. -includedir | --includedir | --includedi | --included | --include \
  899. | --includ | --inclu | --incl | --inc)
  900. ac_prev=includedir ;;
  901. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  902. | --includ=* | --inclu=* | --incl=* | --inc=*)
  903. includedir=$ac_optarg ;;
  904. -infodir | --infodir | --infodi | --infod | --info | --inf)
  905. ac_prev=infodir ;;
  906. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  907. infodir=$ac_optarg ;;
  908. -libdir | --libdir | --libdi | --libd)
  909. ac_prev=libdir ;;
  910. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  911. libdir=$ac_optarg ;;
  912. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  913. | --libexe | --libex | --libe)
  914. ac_prev=libexecdir ;;
  915. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  916. | --libexe=* | --libex=* | --libe=*)
  917. libexecdir=$ac_optarg ;;
  918. -localedir | --localedir | --localedi | --localed | --locale)
  919. ac_prev=localedir ;;
  920. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  921. localedir=$ac_optarg ;;
  922. -localstatedir | --localstatedir | --localstatedi | --localstated \
  923. | --localstate | --localstat | --localsta | --localst | --locals)
  924. ac_prev=localstatedir ;;
  925. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  926. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  927. localstatedir=$ac_optarg ;;
  928. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  929. ac_prev=mandir ;;
  930. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  931. mandir=$ac_optarg ;;
  932. -nfp | --nfp | --nf)
  933. # Obsolete; use --without-fp.
  934. with_fp=no ;;
  935. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  936. | --no-cr | --no-c | -n)
  937. no_create=yes ;;
  938. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  939. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  940. no_recursion=yes ;;
  941. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  942. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  943. | --oldin | --oldi | --old | --ol | --o)
  944. ac_prev=oldincludedir ;;
  945. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  946. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  947. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  948. oldincludedir=$ac_optarg ;;
  949. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  950. ac_prev=prefix ;;
  951. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  952. prefix=$ac_optarg ;;
  953. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  954. | --program-pre | --program-pr | --program-p)
  955. ac_prev=program_prefix ;;
  956. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  957. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  958. program_prefix=$ac_optarg ;;
  959. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  960. | --program-suf | --program-su | --program-s)
  961. ac_prev=program_suffix ;;
  962. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  963. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  964. program_suffix=$ac_optarg ;;
  965. -program-transform-name | --program-transform-name \
  966. | --program-transform-nam | --program-transform-na \
  967. | --program-transform-n | --program-transform- \
  968. | --program-transform | --program-transfor \
  969. | --program-transfo | --program-transf \
  970. | --program-trans | --program-tran \
  971. | --progr-tra | --program-tr | --program-t)
  972. ac_prev=program_transform_name ;;
  973. -program-transform-name=* | --program-transform-name=* \
  974. | --program-transform-nam=* | --program-transform-na=* \
  975. | --program-transform-n=* | --program-transform-=* \
  976. | --program-transform=* | --program-transfor=* \
  977. | --program-transfo=* | --program-transf=* \
  978. | --program-trans=* | --program-tran=* \
  979. | --progr-tra=* | --program-tr=* | --program-t=*)
  980. program_transform_name=$ac_optarg ;;
  981. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  982. ac_prev=pdfdir ;;
  983. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  984. pdfdir=$ac_optarg ;;
  985. -psdir | --psdir | --psdi | --psd | --ps)
  986. ac_prev=psdir ;;
  987. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  988. psdir=$ac_optarg ;;
  989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  990. | -silent | --silent | --silen | --sile | --sil)
  991. silent=yes ;;
  992. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  993. ac_prev=sbindir ;;
  994. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  995. | --sbi=* | --sb=*)
  996. sbindir=$ac_optarg ;;
  997. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  998. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  999. | --sharedst | --shareds | --shared | --share | --shar \
  1000. | --sha | --sh)
  1001. ac_prev=sharedstatedir ;;
  1002. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1003. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1004. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1005. | --sha=* | --sh=*)
  1006. sharedstatedir=$ac_optarg ;;
  1007. -site | --site | --sit)
  1008. ac_prev=site ;;
  1009. -site=* | --site=* | --sit=*)
  1010. site=$ac_optarg ;;
  1011. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1012. ac_prev=srcdir ;;
  1013. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1014. srcdir=$ac_optarg ;;
  1015. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1016. | --syscon | --sysco | --sysc | --sys | --sy)
  1017. ac_prev=sysconfdir ;;
  1018. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1019. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1020. sysconfdir=$ac_optarg ;;
  1021. -target | --target | --targe | --targ | --tar | --ta | --t)
  1022. ac_prev=target_alias ;;
  1023. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1024. target_alias=$ac_optarg ;;
  1025. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1026. verbose=yes ;;
  1027. -version | --version | --versio | --versi | --vers | -V)
  1028. ac_init_version=: ;;
  1029. -with-* | --with-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid package name: $ac_useropt"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "with_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval with_$ac_useropt=\$ac_optarg ;;
  1044. -without-* | --without-*)
  1045. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1046. # Reject names that are not valid shell variable names.
  1047. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1048. as_fn_error $? "invalid package name: $ac_useropt"
  1049. ac_useropt_orig=$ac_useropt
  1050. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1051. case $ac_user_opts in
  1052. *"
  1053. "with_$ac_useropt"
  1054. "*) ;;
  1055. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1056. ac_unrecognized_sep=', ';;
  1057. esac
  1058. eval with_$ac_useropt=no ;;
  1059. --x)
  1060. # Obsolete; use --with-x.
  1061. with_x=yes ;;
  1062. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1063. | --x-incl | --x-inc | --x-in | --x-i)
  1064. ac_prev=x_includes ;;
  1065. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1066. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1067. x_includes=$ac_optarg ;;
  1068. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1069. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1070. ac_prev=x_libraries ;;
  1071. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1072. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1073. x_libraries=$ac_optarg ;;
  1074. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1075. Try \`$0 --help' for more information"
  1076. ;;
  1077. *=*)
  1078. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1079. # Reject names that are not valid shell variable names.
  1080. case $ac_envvar in #(
  1081. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1082. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1083. esac
  1084. eval $ac_envvar=\$ac_optarg
  1085. export $ac_envvar ;;
  1086. *)
  1087. # FIXME: should be removed in autoconf 3.0.
  1088. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1089. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1090. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1091. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1092. ;;
  1093. esac
  1094. done
  1095. if test -n "$ac_prev"; then
  1096. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1097. as_fn_error $? "missing argument to $ac_option"
  1098. fi
  1099. if test -n "$ac_unrecognized_opts"; then
  1100. case $enable_option_checking in
  1101. no) ;;
  1102. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1103. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1104. esac
  1105. fi
  1106. # Check all directory arguments for consistency.
  1107. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1108. datadir sysconfdir sharedstatedir localstatedir includedir \
  1109. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1110. libdir localedir mandir
  1111. do
  1112. eval ac_val=\$$ac_var
  1113. # Remove trailing slashes.
  1114. case $ac_val in
  1115. */ )
  1116. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1117. eval $ac_var=\$ac_val;;
  1118. esac
  1119. # Be sure to have absolute directory names.
  1120. case $ac_val in
  1121. [\\/$]* | ?:[\\/]* ) continue;;
  1122. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1123. esac
  1124. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1125. done
  1126. # There might be people who depend on the old broken behavior: `$host'
  1127. # used to hold the argument of --host etc.
  1128. # FIXME: To remove some day.
  1129. build=$build_alias
  1130. host=$host_alias
  1131. target=$target_alias
  1132. # FIXME: To remove some day.
  1133. if test "x$host_alias" != x; then
  1134. if test "x$build_alias" = x; then
  1135. cross_compiling=maybe
  1136. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1137. If a cross compiler is detected then cross compile mode will be used" >&2
  1138. elif test "x$build_alias" != "x$host_alias"; then
  1139. cross_compiling=yes
  1140. fi
  1141. fi
  1142. ac_tool_prefix=
  1143. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1144. test "$silent" = yes && exec 6>/dev/null
  1145. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1146. ac_ls_di=`ls -di .` &&
  1147. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1148. as_fn_error $? "working directory cannot be determined"
  1149. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1150. as_fn_error $? "pwd does not report name of working directory"
  1151. # Find the source files, if location was not specified.
  1152. if test -z "$srcdir"; then
  1153. ac_srcdir_defaulted=yes
  1154. # Try the directory containing this script, then the parent directory.
  1155. ac_confdir=`$as_dirname -- "$as_myself" ||
  1156. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1157. X"$as_myself" : 'X\(//\)[^/]' \| \
  1158. X"$as_myself" : 'X\(//\)$' \| \
  1159. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1160. $as_echo X"$as_myself" |
  1161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)[^/].*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\).*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. s/.*/./; q'`
  1178. srcdir=$ac_confdir
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. srcdir=..
  1181. fi
  1182. else
  1183. ac_srcdir_defaulted=no
  1184. fi
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1187. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1188. fi
  1189. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1190. ac_abs_confdir=`(
  1191. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1192. pwd)`
  1193. # When building in place, set srcdir=.
  1194. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1195. srcdir=.
  1196. fi
  1197. # Remove unnecessary trailing slashes from srcdir.
  1198. # Double slashes in file names in object file debugging info
  1199. # mess up M-x gdb in Emacs.
  1200. case $srcdir in
  1201. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1202. esac
  1203. for ac_var in $ac_precious_vars; do
  1204. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_env_${ac_var}_value=\$${ac_var}
  1206. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1208. done
  1209. #
  1210. # Report the --help message.
  1211. #
  1212. if test "$ac_init_help" = "long"; then
  1213. # Omit some internal or obsolete options to make the list less imposing.
  1214. # This message is too long to be a string in the A/UX 3.1 sh.
  1215. cat <<_ACEOF
  1216. \`configure' configures OpenSRF trunk to adapt to many kinds of systems.
  1217. Usage: $0 [OPTION]... [VAR=VALUE]...
  1218. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1219. VAR=VALUE. See below for descriptions of some of the useful variables.
  1220. Defaults for the options are specified in brackets.
  1221. Configuration:
  1222. -h, --help display this help and exit
  1223. --help=short display options specific to this package
  1224. --help=recursive display the short help of all the included packages
  1225. -V, --version display version information and exit
  1226. -q, --quiet, --silent do not print \`checking ...' messages
  1227. --cache-file=FILE cache test results in FILE [disabled]
  1228. -C, --config-cache alias for \`--cache-file=config.cache'
  1229. -n, --no-create do not create output files
  1230. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1231. Installation directories:
  1232. --prefix=PREFIX install architecture-independent files in PREFIX
  1233. [$ac_default_prefix]
  1234. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1235. [PREFIX]
  1236. By default, \`make install' will install all the files in
  1237. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1238. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1239. for instance \`--prefix=\$HOME'.
  1240. For better control, use the options below.
  1241. Fine tuning of the installation directories:
  1242. --bindir=DIR user executables [EPREFIX/bin]
  1243. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1244. --libexecdir=DIR program executables [EPREFIX/libexec]
  1245. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1246. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1247. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1248. --libdir=DIR object code libraries [EPREFIX/lib]
  1249. --includedir=DIR C header files [PREFIX/include]
  1250. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1251. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1252. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1253. --infodir=DIR info documentation [DATAROOTDIR/info]
  1254. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1255. --mandir=DIR man documentation [DATAROOTDIR/man]
  1256. --docdir=DIR documentation root [DATAROOTDIR/doc/opensrf]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. Program names:
  1264. --program-prefix=PREFIX prepend PREFIX to installed program names
  1265. --program-suffix=SUFFIX append SUFFIX to installed program names
  1266. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1267. System types:
  1268. --build=BUILD configure for building on BUILD [guessed]
  1269. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1270. _ACEOF
  1271. fi
  1272. if test -n "$ac_init_help"; then
  1273. case $ac_init_help in
  1274. short | recursive ) echo "Configuration of OpenSRF trunk:";;
  1275. esac
  1276. cat <<\_ACEOF
  1277. Optional Features:
  1278. --disable-option-checking ignore unrecognized --enable/--with options
  1279. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1280. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1281. --enable-java enable building and installing the java libraries
  1282. --disable-javascript disable installing JavaScript libraries
  1283. --disable-core disable installing core files
  1284. --enable-python enable building and installing python modules
  1285. --enable-chopchop build and install chopchop, a basic XMPP server
  1286. --enable-debug Turn on debugging
  1287. --enable-shared[=PKGS] build shared libraries [default=yes]
  1288. --enable-static[=PKGS] build static libraries [default=yes]
  1289. --enable-fast-install[=PKGS]
  1290. optimize for fast installation [default=yes]
  1291. --disable-dependency-tracking speeds up one-time build
  1292. --enable-dependency-tracking do not reject slow dependency extractors
  1293. --disable-libtool-lock avoid locking (might break parallel builds)
  1294. Optional Packages:
  1295. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1296. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1297. --with-pic try to use only PIC/non-PIC objects [default=use
  1298. both]
  1299. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1300. --with-tmp=path location for the temporary directory for OpenSRF (default is /tmp)
  1301. --with-apxs=path location of the apxs (Apache extension) tool (default is /usr/bin/apxs2)
  1302. --with-apache=path location of the Apache headers (default is /usr/include/apache2)
  1303. --with-apr=path location of the Apache Portable Runtime headers (default is /usr/include/apr-1.0/)
  1304. --with-libxml=path location of the libxml2 headers (default is /usr/include/libxml2/))
  1305. --with-includes=DIRECTORIES a colon-separated list of directories that will be added to the list the compiler searches for header files (Example: --with-includes=/path/headers:/anotherpath/moreheaders)
  1306. --with-libraries=DIRECTORIES a colon-separated list of directories to search for libraries (Example: --with-libraries=/lib:/usr/lib)
  1307. Some influential environment variables:
  1308. CC C compiler command
  1309. CFLAGS C compiler flags
  1310. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1311. nonstandard directory <lib dir>
  1312. LIBS libraries to pass to the linker, e.g. -l<library>
  1313. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1314. you have headers in a nonstandard directory <include dir>
  1315. CPP C preprocessor
  1316. PKG_CONFIG path to pkg-config utility
  1317. PKG_CONFIG_PATH
  1318. directories to add to pkg-config's search path
  1319. PKG_CONFIG_LIBDIR
  1320. path overriding pkg-config's built-in search path
  1321. memcached_CFLAGS
  1322. C compiler flags for memcached, overriding pkg-config
  1323. memcached_LIBS
  1324. linker flags for memcached, overriding pkg-config
  1325. CHECK_CFLAGS
  1326. C compiler flags for CHECK, overriding pkg-config
  1327. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1328. Use these variables to override the choices made by `configure' or to help
  1329. it to find libraries and programs with nonstandard names/locations.
  1330. Report bugs to <open-ils-dev@list.georgialibraries.org>.
  1331. _ACEOF
  1332. ac_status=$?
  1333. fi
  1334. if test "$ac_init_help" = "recursive"; then
  1335. # If there are subdirs, report their specific --help.
  1336. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1337. test -d "$ac_dir" ||
  1338. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1339. continue
  1340. ac_builddir=.
  1341. case "$ac_dir" in
  1342. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *)
  1344. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1345. # A ".." for each directory in $ac_dir_suffix.
  1346. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1347. case $ac_top_builddir_sub in
  1348. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1350. esac ;;
  1351. esac
  1352. ac_abs_top_builddir=$ac_pwd
  1353. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1354. # for backward compatibility:
  1355. ac_top_builddir=$ac_top_build_prefix
  1356. case $srcdir in
  1357. .) # We are building in place.
  1358. ac_srcdir=.
  1359. ac_top_srcdir=$ac_top_builddir_sub
  1360. ac_abs_top_srcdir=$ac_pwd ;;
  1361. [\\/]* | ?:[\\/]* ) # Absolute name.
  1362. ac_srcdir=$srcdir$ac_dir_suffix;
  1363. ac_top_srcdir=$srcdir
  1364. ac_abs_top_srcdir=$srcdir ;;
  1365. *) # Relative name.
  1366. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1367. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1368. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1369. esac
  1370. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1371. cd "$ac_dir" || { ac_status=$?; continue; }
  1372. # Check for guested configure.
  1373. if test -f "$ac_srcdir/configure.gnu"; then
  1374. echo &&
  1375. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1376. elif test -f "$ac_srcdir/configure"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure" --help=recursive
  1379. else
  1380. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1381. fi || ac_status=$?
  1382. cd "$ac_pwd" || { ac_status=$?; break; }
  1383. done
  1384. fi
  1385. test -n "$ac_init_help" && exit $ac_status
  1386. if $ac_init_version; then
  1387. cat <<\_ACEOF
  1388. OpenSRF configure trunk
  1389. generated by GNU Autoconf 2.66
  1390. Copyright (C) 2010 Free Software Foundation, Inc.
  1391. This configure script is free software; the Free Software Foundation
  1392. gives unlimited permission to copy, distribute and modify it.
  1393. _ACEOF
  1394. exit
  1395. fi
  1396. ## ------------------------ ##
  1397. ## Autoconf initialization. ##
  1398. ## ------------------------ ##
  1399. # ac_fn_c_try_compile LINENO
  1400. # --------------------------
  1401. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1402. ac_fn_c_try_compile ()
  1403. {
  1404. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1405. rm -f conftest.$ac_objext
  1406. if { { ac_try="$ac_compile"
  1407. case "(($ac_try" in
  1408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1409. *) ac_try_echo=$ac_try;;
  1410. esac
  1411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1412. $as_echo "$ac_try_echo"; } >&5
  1413. (eval "$ac_compile") 2>conftest.err
  1414. ac_status=$?
  1415. if test -s conftest.err; then
  1416. grep -v '^ *+' conftest.err >conftest.er1
  1417. cat conftest.er1 >&5
  1418. mv -f conftest.er1 conftest.err
  1419. fi
  1420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1421. test $ac_status = 0; } && {
  1422. test -z "$ac_c_werror_flag" ||
  1423. test ! -s conftest.err
  1424. } && test -s conftest.$ac_objext; then :
  1425. ac_retval=0
  1426. else
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=1
  1430. fi
  1431. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1432. as_fn_set_status $ac_retval
  1433. } # ac_fn_c_try_compile
  1434. # ac_fn_c_try_link LINENO
  1435. # -----------------------
  1436. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_link ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. rm -f conftest.$ac_objext conftest$ac_exeext
  1441. if { { ac_try="$ac_link"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_link") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } && {
  1457. test -z "$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. } && test -s conftest$ac_exeext && {
  1460. test "$cross_compiling" = yes ||
  1461. $as_test_x conftest$ac_exeext
  1462. }; then :
  1463. ac_retval=0
  1464. else
  1465. $as_echo "$as_me: failed program was:" >&5
  1466. sed 's/^/| /' conftest.$ac_ext >&5
  1467. ac_retval=1
  1468. fi
  1469. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1470. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1471. # interfere with the next link command; also delete a directory that is
  1472. # left behind by Apple's compiler. We do this before executing the actions.
  1473. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1474. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1475. as_fn_set_status $ac_retval
  1476. } # ac_fn_c_try_link
  1477. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1478. # -------------------------------------------------------
  1479. # Tests whether HEADER exists and can be compiled using the include files in
  1480. # INCLUDES, setting the cache variable VAR accordingly.
  1481. ac_fn_c_check_header_compile ()
  1482. {
  1483. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1485. $as_echo_n "checking for $2... " >&6; }
  1486. if eval "test \"\${$3+set}\"" = set; then :
  1487. $as_echo_n "(cached) " >&6
  1488. else
  1489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1490. /* end confdefs.h. */
  1491. $4
  1492. #include <$2>
  1493. _ACEOF
  1494. if ac_fn_c_try_compile "$LINENO"; then :
  1495. eval "$3=yes"
  1496. else
  1497. eval "$3=no"
  1498. fi
  1499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1500. fi
  1501. eval ac_res=\$$3
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1503. $as_echo "$ac_res" >&6; }
  1504. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1505. } # ac_fn_c_check_header_compile
  1506. # ac_fn_c_try_cpp LINENO
  1507. # ----------------------
  1508. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1509. ac_fn_c_try_cpp ()
  1510. {
  1511. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1512. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1513. case "(($ac_try" in
  1514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1515. *) ac_try_echo=$ac_try;;
  1516. esac
  1517. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1518. $as_echo "$ac_try_echo"; } >&5
  1519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1520. ac_status=$?
  1521. if test -s conftest.err; then
  1522. grep -v '^ *+' conftest.err >conftest.er1
  1523. cat conftest.er1 >&5
  1524. mv -f conftest.er1 conftest.err
  1525. fi
  1526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1527. test $ac_status = 0; } >/dev/null && {
  1528. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1529. test ! -s conftest.err
  1530. }; then :
  1531. ac_retval=0
  1532. else
  1533. $as_echo "$as_me: failed program was:" >&5
  1534. sed 's/^/| /' conftest.$ac_ext >&5
  1535. ac_retval=1
  1536. fi
  1537. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1538. as_fn_set_status $ac_retval
  1539. } # ac_fn_c_try_cpp
  1540. # ac_fn_c_try_run LINENO
  1541. # ----------------------
  1542. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1543. # that executables *can* be run.
  1544. ac_fn_c_try_run ()
  1545. {
  1546. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1547. if { { ac_try="$ac_link"
  1548. case "(($ac_try" in
  1549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1550. *) ac_try_echo=$ac_try;;
  1551. esac
  1552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1553. $as_echo "$ac_try_echo"; } >&5
  1554. (eval "$ac_link") 2>&5
  1555. ac_status=$?
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1558. { { case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_try") 2>&5
  1565. ac_status=$?
  1566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1567. test $ac_status = 0; }; }; then :
  1568. ac_retval=0
  1569. else
  1570. $as_echo "$as_me: program exited with status $ac_status" >&5
  1571. $as_echo "$as_me: failed program was:" >&5
  1572. sed 's/^/| /' conftest.$ac_ext >&5
  1573. ac_retval=$ac_status
  1574. fi
  1575. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1576. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1577. as_fn_set_status $ac_retval
  1578. } # ac_fn_c_try_run
  1579. # ac_fn_c_check_func LINENO FUNC VAR
  1580. # ----------------------------------
  1581. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1582. ac_fn_c_check_func ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1586. $as_echo_n "checking for $2... " >&6; }
  1587. if eval "test \"\${$3+set}\"" = set; then :
  1588. $as_echo_n "(cached) " >&6
  1589. else
  1590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end confdefs.h. */
  1592. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1593. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1594. #define $2 innocuous_$2
  1595. /* System header to define __stub macros and hopefully few prototypes,
  1596. which can conflict with char $2 (); below.
  1597. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1598. <limits.h> exists even on freestanding compilers. */
  1599. #ifdef __STDC__
  1600. # include <limits.h>
  1601. #else
  1602. # include <assert.h>
  1603. #endif
  1604. #undef $2
  1605. /* Override any GCC internal prototype to avoid an error.
  1606. Use char because int might match the return type of a GCC
  1607. builtin and then its argument prototype would still apply. */
  1608. #ifdef __cplusplus
  1609. extern "C"
  1610. #endif
  1611. char $2 ();
  1612. /* The GNU C library defines this for functions which it implements
  1613. to always fail with ENOSYS. Some functions are actually named
  1614. something starting with __ and the normal name is an alias. */
  1615. #if defined __stub_$2 || defined __stub___$2
  1616. choke me
  1617. #endif
  1618. int
  1619. main ()
  1620. {
  1621. return $2 ();
  1622. ;
  1623. return 0;
  1624. }
  1625. _ACEOF
  1626. if ac_fn_c_try_link "$LINENO"; then :
  1627. eval "$3=yes"
  1628. else
  1629. eval "$3=no"
  1630. fi
  1631. rm -f core conftest.err conftest.$ac_objext \
  1632. conftest$ac_exeext conftest.$ac_ext
  1633. fi
  1634. eval ac_res=\$$3
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1636. $as_echo "$ac_res" >&6; }
  1637. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1638. } # ac_fn_c_check_func
  1639. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1640. # -------------------------------------------------------
  1641. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1642. # the include files in INCLUDES and setting the cache variable VAR
  1643. # accordingly.
  1644. ac_fn_c_check_header_mongrel ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. if eval "test \"\${$3+set}\"" = set; then :
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1649. $as_echo_n "checking for $2... " >&6; }
  1650. if eval "test \"\${$3+set}\"" = set; then :
  1651. $as_echo_n "(cached) " >&6
  1652. fi
  1653. eval ac_res=\$$3
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. $as_echo "$ac_res" >&6; }
  1656. else
  1657. # Is the header compilable?
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1659. $as_echo_n "checking $2 usability... " >&6; }
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. $4
  1663. #include <$2>
  1664. _ACEOF
  1665. if ac_fn_c_try_compile "$LINENO"; then :
  1666. ac_header_compiler=yes
  1667. else
  1668. ac_header_compiler=no
  1669. fi
  1670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1672. $as_echo "$ac_header_compiler" >&6; }
  1673. # Is the header present?
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1675. $as_echo_n "checking $2 presence... " >&6; }
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. #include <$2>
  1679. _ACEOF
  1680. if ac_fn_c_try_cpp "$LINENO"; then :
  1681. ac_header_preproc=yes
  1682. else
  1683. ac_header_preproc=no
  1684. fi
  1685. rm -f conftest.err conftest.$ac_ext
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1687. $as_echo "$ac_header_preproc" >&6; }
  1688. # So? What about this header?
  1689. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1690. yes:no: )
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1692. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1694. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1695. ;;
  1696. no:yes:* )
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1698. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1700. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1702. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1704. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1706. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1707. ( $as_echo "## ----------------------------------------------------- ##
  1708. ## Report this to open-ils-dev@list.georgialibraries.org ##
  1709. ## ----------------------------------------------------- ##"
  1710. ) | sed "s/^/$as_me: WARNING: /" >&2
  1711. ;;
  1712. esac
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1714. $as_echo_n "checking for $2... " >&6; }
  1715. if eval "test \"\${$3+set}\"" = set; then :
  1716. $as_echo_n "(cached) " >&6
  1717. else
  1718. eval "$3=\$ac_header_compiler"
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. fi
  1724. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1725. } # ac_fn_c_check_header_mongrel
  1726. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1727. # -------------------------------------------
  1728. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1729. # variable VAR accordingly.
  1730. ac_fn_c_check_type ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval "test \"\${$3+set}\"" = set; then :
  1736. $as_echo_n "(cached) " >&6
  1737. else
  1738. eval "$3=no"
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. $4
  1742. int
  1743. main ()
  1744. {
  1745. if (sizeof ($2))
  1746. return 0;
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. if ac_fn_c_try_compile "$LINENO"; then :
  1752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1753. /* end confdefs.h. */
  1754. $4
  1755. int
  1756. main ()
  1757. {
  1758. if (sizeof (($2)))
  1759. return 0;
  1760. ;
  1761. return 0;
  1762. }
  1763. _ACEOF
  1764. if ac_fn_c_try_compile "$LINENO"; then :
  1765. else
  1766. eval "$3=yes"
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1771. fi
  1772. eval ac_res=\$$3
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1774. $as_echo "$ac_res" >&6; }
  1775. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1776. } # ac_fn_c_check_type
  1777. cat >config.log <<_ACEOF
  1778. This file contains any messages produced by compilers while
  1779. running configure, to aid debugging if configure makes a mistake.
  1780. It was created by OpenSRF $as_me trunk, which was
  1781. generated by GNU Autoconf 2.66. Invocation command line was
  1782. $ $0 $@
  1783. _ACEOF
  1784. exec 5>>config.log
  1785. {
  1786. cat <<_ASUNAME
  1787. ## --------- ##
  1788. ## Platform. ##
  1789. ## --------- ##
  1790. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1791. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1792. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1793. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1794. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1795. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1796. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1797. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1798. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1799. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1800. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1801. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1802. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1803. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1804. _ASUNAME
  1805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1806. for as_dir in $PATH
  1807. do
  1808. IFS=$as_save_IFS
  1809. test -z "$as_dir" && as_dir=.
  1810. $as_echo "PATH: $as_dir"
  1811. done
  1812. IFS=$as_save_IFS
  1813. } >&5
  1814. cat >&5 <<_ACEOF
  1815. ## ----------- ##
  1816. ## Core tests. ##
  1817. ## ----------- ##
  1818. _ACEOF
  1819. # Keep a trace of the command line.
  1820. # Strip out --no-create and --no-recursion so they do not pile up.
  1821. # Strip out --silent because we don't want to record it for future runs.
  1822. # Also quote any args containing shell meta-characters.
  1823. # Make two passes to allow for proper duplicate-argument suppression.
  1824. ac_configure_args=
  1825. ac_configure_args0=
  1826. ac_configure_args1=
  1827. ac_must_keep_next=false
  1828. for ac_pass in 1 2
  1829. do
  1830. for ac_arg
  1831. do
  1832. case $ac_arg in
  1833. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1834. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1835. | -silent | --silent | --silen | --sile | --sil)
  1836. continue ;;
  1837. *\'*)
  1838. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1839. esac
  1840. case $ac_pass in
  1841. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1842. 2)
  1843. as_fn_append ac_configure_args1 " '$ac_arg'"
  1844. if test $ac_must_keep_next = true; then
  1845. ac_must_keep_next=false # Got value, back to normal.
  1846. else
  1847. case $ac_arg in
  1848. *=* | --config-cache | -C | -disable-* | --disable-* \
  1849. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1850. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1851. | -with-* | --with-* | -without-* | --without-* | --x)
  1852. case "$ac_configure_args0 " in
  1853. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1854. esac
  1855. ;;
  1856. -* ) ac_must_keep_next=true ;;
  1857. esac
  1858. fi
  1859. as_fn_append ac_configure_args " '$ac_arg'"
  1860. ;;
  1861. esac
  1862. done
  1863. done
  1864. { ac_configure_args0=; unset ac_configure_args0;}
  1865. { ac_configure_args1=; unset ac_configure_args1;}
  1866. # When interrupted or exit'd, cleanup temporary files, and complete
  1867. # config.log. We remove comments because anyway the quotes in there
  1868. # would cause problems or look ugly.
  1869. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1870. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1871. trap 'exit_status=$?
  1872. # Save into config.log some information that might help in debugging.
  1873. {
  1874. echo
  1875. $as_echo "## ---------------- ##
  1876. ## Cache variables. ##
  1877. ## ---------------- ##"
  1878. echo
  1879. # The following way of writing the cache mishandles newlines in values,
  1880. (
  1881. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1882. eval ac_val=\$$ac_var
  1883. case $ac_val in #(
  1884. *${as_nl}*)
  1885. case $ac_var in #(
  1886. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1887. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1888. esac
  1889. case $ac_var in #(
  1890. _ | IFS | as_nl) ;; #(
  1891. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1892. *) { eval $ac_var=; unset $ac_var;} ;;
  1893. esac ;;
  1894. esac
  1895. done
  1896. (set) 2>&1 |
  1897. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1898. *${as_nl}ac_space=\ *)
  1899. sed -n \
  1900. "s/'\''/'\''\\\\'\'''\''/g;
  1901. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1902. ;; #(
  1903. *)
  1904. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1905. ;;
  1906. esac |
  1907. sort
  1908. )
  1909. echo
  1910. $as_echo "## ----------------- ##
  1911. ## Output variables. ##
  1912. ## ----------------- ##"
  1913. echo
  1914. for ac_var in $ac_subst_vars
  1915. do
  1916. eval ac_val=\$$ac_var
  1917. case $ac_val in
  1918. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1919. esac
  1920. $as_echo "$ac_var='\''$ac_val'\''"
  1921. done | sort
  1922. echo
  1923. if test -n "$ac_subst_files"; then
  1924. $as_echo "## ------------------- ##
  1925. ## File substitutions. ##
  1926. ## ------------------- ##"
  1927. echo
  1928. for ac_var in $ac_subst_files
  1929. do
  1930. eval ac_val=\$$ac_var
  1931. case $ac_val in
  1932. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1933. esac
  1934. $as_echo "$ac_var='\''$ac_val'\''"
  1935. done | sort
  1936. echo
  1937. fi
  1938. if test -s confdefs.h; then
  1939. $as_echo "## ----------- ##
  1940. ## confdefs.h. ##
  1941. ## ----------- ##"
  1942. echo
  1943. cat confdefs.h
  1944. echo
  1945. fi
  1946. test "$ac_signal" != 0 &&
  1947. $as_echo "$as_me: caught signal $ac_signal"
  1948. $as_echo "$as_me: exit $exit_status"
  1949. } >&5
  1950. rm -f core *.core core.conftest.* &&
  1951. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1952. exit $exit_status
  1953. ' 0
  1954. for ac_signal in 1 2 13 15; do
  1955. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1956. done
  1957. ac_signal=0
  1958. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1959. rm -f -r conftest* confdefs.h
  1960. $as_echo "/* confdefs.h */" > confdefs.h
  1961. # Predefined preprocessor variables.
  1962. cat >>confdefs.h <<_ACEOF
  1963. #define PACKAGE_NAME "$PACKAGE_NAME"
  1964. _ACEOF
  1965. cat >>confdefs.h <<_ACEOF
  1966. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1967. _ACEOF
  1968. cat >>confdefs.h <<_ACEOF
  1969. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1970. _ACEOF
  1971. cat >>confdefs.h <<_ACEOF
  1972. #define PACKAGE_STRING "$PACKAGE_STRING"
  1973. _ACEOF
  1974. cat >>confdefs.h <<_ACEOF
  1975. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1976. _ACEOF
  1977. cat >>confdefs.h <<_ACEOF
  1978. #define PACKAGE_URL "$PACKAGE_URL"
  1979. _ACEOF
  1980. # Let the site file select an alternate cache file if it wants to.
  1981. # Prefer an explicitly selected file to automatically selected ones.
  1982. ac_site_file1=NONE
  1983. ac_site_file2=NONE
  1984. if test -n "$CONFIG_SITE"; then
  1985. # We do not want a PATH search for config.site.
  1986. case $CONFIG_SITE in #((
  1987. -*) ac_site_file1=./$CONFIG_SITE;;
  1988. */*) ac_site_file1=$CONFIG_SITE;;
  1989. *) ac_site_file1=./$CONFIG_SITE;;
  1990. esac
  1991. elif test "x$prefix" != xNONE; then
  1992. ac_site_file1=$prefix/share/config.site
  1993. ac_site_file2=$prefix/etc/config.site
  1994. else
  1995. ac_site_file1=$ac_default_prefix/share/config.site
  1996. ac_site_file2=$ac_default_prefix/etc/config.site
  1997. fi
  1998. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1999. do
  2000. test "x$ac_site_file" = xNONE && continue
  2001. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2003. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2004. sed 's/^/| /' "$ac_site_file" >&5
  2005. . "$ac_site_file" \
  2006. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2008. as_fn_error $? "failed to load site script $ac_site_file
  2009. See \`config.log' for more details" "$LINENO" 5; }
  2010. fi
  2011. done
  2012. if test -r "$cache_file"; then
  2013. # Some versions of bash will fail to source /dev/null (special files
  2014. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2015. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2017. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2018. case $cache_file in
  2019. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2020. *) . "./$cache_file";;
  2021. esac
  2022. fi
  2023. else
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2025. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2026. >$cache_file
  2027. fi
  2028. # Check that the precious variables saved in the cache have kept the same
  2029. # value.
  2030. ac_cache_corrupted=false
  2031. for ac_var in $ac_precious_vars; do
  2032. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2033. eval ac_new_set=\$ac_env_${ac_var}_set
  2034. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2035. eval ac_new_val=\$ac_env_${ac_var}_value
  2036. case $ac_old_set,$ac_new_set in
  2037. set,)
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2039. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2040. ac_cache_corrupted=: ;;
  2041. ,set)
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2043. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2044. ac_cache_corrupted=: ;;
  2045. ,);;
  2046. *)
  2047. if test "x$ac_old_val" != "x$ac_new_val"; then
  2048. # differences in whitespace do not lead to failure.
  2049. ac_old_val_w=`echo x $ac_old_val`
  2050. ac_new_val_w=`echo x $ac_new_val`
  2051. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2053. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2054. ac_cache_corrupted=:
  2055. else
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2057. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2058. eval $ac_var=\$ac_old_val
  2059. fi
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2061. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2063. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2064. fi;;
  2065. esac
  2066. # Pass precious variables to config.status.
  2067. if test "$ac_new_set" = set; then
  2068. case $ac_new_val in
  2069. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2070. *) ac_arg=$ac_var=$ac_new_val ;;
  2071. esac
  2072. case " $ac_configure_args " in
  2073. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2074. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2075. esac
  2076. fi
  2077. done
  2078. if $ac_cache_corrupted; then
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2082. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2083. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2084. fi
  2085. ## -------------------- ##
  2086. ## Main body of script. ##
  2087. ## -------------------- ##
  2088. ac_ext=c
  2089. ac_cpp='$CPP $CPPFLAGS'
  2090. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2091. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2092. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2093. am__api_version='1.11'
  2094. ac_aux_dir=
  2095. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2096. if test -f "$ac_dir/install-sh"; then
  2097. ac_aux_dir=$ac_dir
  2098. ac_install_sh="$ac_aux_dir/install-sh -c"
  2099. break
  2100. elif test -f "$ac_dir/install.sh"; then
  2101. ac_aux_dir=$ac_dir
  2102. ac_install_sh="$ac_aux_dir/install.sh -c"
  2103. break
  2104. elif test -f "$ac_dir/shtool"; then
  2105. ac_aux_dir=$ac_dir
  2106. ac_install_sh="$ac_aux_dir/shtool install -c"
  2107. break
  2108. fi
  2109. done
  2110. if test -z "$ac_aux_dir"; then
  2111. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2112. fi
  2113. # These three variables are undocumented and unsupported,
  2114. # and are intended to be withdrawn in a future Autoconf release.
  2115. # They can cause serious problems if a builder's source tree is in a directory
  2116. # whose full name contains unusual characters.
  2117. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2118. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2119. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2120. # Find a good install program. We prefer a C program (faster),
  2121. # so one script is as good as another. But avoid the broken or
  2122. # incompatible versions:
  2123. # SysV /etc/install, /usr/sbin/install
  2124. # SunOS /usr/etc/install
  2125. # IRIX /sbin/install
  2126. # AIX /bin/install
  2127. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2128. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2129. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2130. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2131. # OS/2's system install, which has a completely different semantic
  2132. # ./install, which can be erroneously created by make from ./install.sh.
  2133. # Reject install programs that cannot install multiple files.
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2135. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2136. if test -z "$INSTALL"; then
  2137. if test "${ac_cv_path_install+set}" = set; then :
  2138. $as_echo_n "(cached) " >&6
  2139. else
  2140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2141. for as_dir in $PATH
  2142. do
  2143. IFS=$as_save_IFS
  2144. test -z "$as_dir" && as_dir=.
  2145. # Account for people who put trailing slashes in PATH elements.
  2146. case $as_dir/ in #((
  2147. ./ | .// | /[cC]/* | \
  2148. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2149. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2150. /usr/ucb/* ) ;;
  2151. *)
  2152. # OSF1 and SCO ODT 3.0 have their own names for install.
  2153. # Don't use installbsd from OSF since it installs stuff as root
  2154. # by default.
  2155. for ac_prog in ginstall scoinst install; do
  2156. for ac_exec_ext in '' $ac_executable_extensions; do
  2157. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2158. if test $ac_prog = install &&
  2159. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2160. # AIX install. It has an incompatible calling convention.
  2161. :
  2162. elif test $ac_prog = install &&
  2163. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2164. # program-specific install script used by HP pwplus--don't use.
  2165. :
  2166. else
  2167. rm -rf conftest.one conftest.two conftest.dir
  2168. echo one > conftest.one
  2169. echo two > conftest.two
  2170. mkdir conftest.dir
  2171. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2172. test -s conftest.one && test -s conftest.two &&
  2173. test -s conftest.dir/conftest.one &&
  2174. test -s conftest.dir/conftest.two
  2175. then
  2176. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2177. break 3
  2178. fi
  2179. fi
  2180. fi
  2181. done
  2182. done
  2183. ;;
  2184. esac
  2185. done
  2186. IFS=$as_save_IFS
  2187. rm -rf conftest.one conftest.two conftest.dir
  2188. fi
  2189. if test "${ac_cv_path_install+set}" = set; then
  2190. INSTALL=$ac_cv_path_install
  2191. else
  2192. # As a last resort, use the slow shell script. Don't cache a
  2193. # value for INSTALL within a source directory, because that will
  2194. # break other packages using the cache if that directory is
  2195. # removed, or if the value is a relative name.
  2196. INSTALL=$ac_install_sh
  2197. fi
  2198. fi
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2200. $as_echo "$INSTALL" >&6; }
  2201. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2202. # It thinks the first close brace ends the variable substitution.
  2203. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2204. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2205. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2207. $as_echo_n "checking whether build environment is sane... " >&6; }
  2208. # Just in case
  2209. sleep 1
  2210. echo timestamp > conftest.file
  2211. # Reject unsafe characters in $srcdir or the absolute working directory
  2212. # name. Accept space and tab only in the latter.
  2213. am_lf='
  2214. '
  2215. case `pwd` in
  2216. *[\\\"\#\$\&\'\`$am_lf]*)
  2217. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2218. esac
  2219. case $srcdir in
  2220. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2221. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2222. esac
  2223. # Do `set' in a subshell so we don't clobber the current shell's
  2224. # arguments. Must try -L first in case configure is actually a
  2225. # symlink; some systems play weird games with the mod time of symlinks
  2226. # (eg FreeBSD returns the mod time of the symlink's containing
  2227. # directory).
  2228. if (
  2229. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2230. if test "$*" = "X"; then
  2231. # -L didn't work.
  2232. set X `ls -t "$srcdir/configure" conftest.file`
  2233. fi
  2234. rm -f conftest.file
  2235. if test "$*" != "X $srcdir/configure conftest.file" \
  2236. && test "$*" != "X conftest.file $srcdir/configure"; then
  2237. # If neither matched, then we have a broken ls. This can happen
  2238. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2239. # broken ls alias from the environment. This has actually
  2240. # happened. Such a system could not be considered "sane".
  2241. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2242. alias in your environment" "$LINENO" 5
  2243. fi
  2244. test "$2" = conftest.file
  2245. )
  2246. then
  2247. # Ok.
  2248. :
  2249. else
  2250. as_fn_error $? "newly created file is older than distributed files!
  2251. Check your system clock" "$LINENO" 5
  2252. fi
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2254. $as_echo "yes" >&6; }
  2255. test "$program_prefix" != NONE &&
  2256. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2257. # Use a double $ so make ignores it.
  2258. test "$program_suffix" != NONE &&
  2259. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2260. # Double any \ or $.
  2261. # By default was `s,x,x', remove it if useless.
  2262. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2263. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2264. # expand $ac_aux_dir to an absolute path
  2265. am_aux_dir=`cd $ac_aux_dir && pwd`
  2266. if test x"${MISSING+set}" != xset; then
  2267. case $am_aux_dir in
  2268. *\ * | *\ *)
  2269. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2270. *)
  2271. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2272. esac
  2273. fi
  2274. # Use eval to expand $SHELL
  2275. if eval "$MISSING --run true"; then
  2276. am_missing_run="$MISSING --run "
  2277. else
  2278. am_missing_run=
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2280. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2281. fi
  2282. if test x"${install_sh}" != xset; then
  2283. case $am_aux_dir in
  2284. *\ * | *\ *)
  2285. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2286. *)
  2287. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2288. esac
  2289. fi
  2290. # Installed binaries are usually stripped using `strip' when the user
  2291. # run `make install-strip'. However `strip' might not be the right
  2292. # tool to use in cross-compilation environments, therefore Automake
  2293. # will honor the `STRIP' environment variable to overrule this program.
  2294. if test "$cross_compiling" != no; then
  2295. if test -n "$ac_tool_prefix"; then
  2296. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2297. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2299. $as_echo_n "checking for $ac_word... " >&6; }
  2300. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. if test -n "$STRIP"; then
  2304. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2313. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2315. break 2
  2316. fi
  2317. done
  2318. done
  2319. IFS=$as_save_IFS
  2320. fi
  2321. fi
  2322. STRIP=$ac_cv_prog_STRIP
  2323. if test -n "$STRIP"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2325. $as_echo "$STRIP" >&6; }
  2326. else
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2328. $as_echo "no" >&6; }
  2329. fi
  2330. fi
  2331. if test -z "$ac_cv_prog_STRIP"; then
  2332. ac_ct_STRIP=$STRIP
  2333. # Extract the first word of "strip", so it can be a program name with args.
  2334. set dummy strip; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$ac_ct_STRIP"; then
  2341. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_ac_ct_STRIP="strip"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2360. if test -n "$ac_ct_STRIP"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2362. $as_echo "$ac_ct_STRIP" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. if test "x$ac_ct_STRIP" = x; then
  2368. STRIP=":"
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2374. ac_tool_warned=yes ;;
  2375. esac
  2376. STRIP=$ac_ct_STRIP
  2377. fi
  2378. else
  2379. STRIP="$ac_cv_prog_STRIP"
  2380. fi
  2381. fi
  2382. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2384. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2385. if test -z "$MKDIR_P"; then
  2386. if test "${ac_cv_path_mkdir+set}" = set; then :
  2387. $as_echo_n "(cached) " >&6
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_prog in mkdir gmkdir; do
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2397. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2398. 'mkdir (GNU coreutils) '* | \
  2399. 'mkdir (coreutils) '* | \
  2400. 'mkdir (fileutils) '4.1*)
  2401. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2402. break 3;;
  2403. esac
  2404. done
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. test -d ./--version && rmdir ./--version
  2410. if test "${ac_cv_path_mkdir+set}" = set; then
  2411. MKDIR_P="$ac_cv_path_mkdir -p"
  2412. else
  2413. # As a last resort, use the slow shell script. Don't cache a
  2414. # value for MKDIR_P within a source directory, because that will
  2415. # break other packages using the cache if that directory is
  2416. # removed, or if the value is a relative name.
  2417. MKDIR_P="$ac_install_sh -d"
  2418. fi
  2419. fi
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2421. $as_echo "$MKDIR_P" >&6; }
  2422. mkdir_p="$MKDIR_P"
  2423. case $mkdir_p in
  2424. [\\/$]* | ?:[\\/]*) ;;
  2425. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2426. esac
  2427. for ac_prog in gawk mawk nawk awk
  2428. do
  2429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2430. set dummy $ac_prog; ac_word=$2
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2432. $as_echo_n "checking for $ac_word... " >&6; }
  2433. if test "${ac_cv_prog_AWK+set}" = set; then :
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. if test -n "$AWK"; then
  2437. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2438. else
  2439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2440. for as_dir in $PATH
  2441. do
  2442. IFS=$as_save_IFS
  2443. test -z "$as_dir" && as_dir=.
  2444. for ac_exec_ext in '' $ac_executable_extensions; do
  2445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2446. ac_cv_prog_AWK="$ac_prog"
  2447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2448. break 2
  2449. fi
  2450. done
  2451. done
  2452. IFS=$as_save_IFS
  2453. fi
  2454. fi
  2455. AWK=$ac_cv_prog_AWK
  2456. if test -n "$AWK"; then
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2458. $as_echo "$AWK" >&6; }
  2459. else
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2461. $as_echo "no" >&6; }
  2462. fi
  2463. test -n "$AWK" && break
  2464. done
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2466. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2467. set x ${MAKE-make}
  2468. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2469. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. cat >conftest.make <<\_ACEOF
  2473. SHELL = /bin/sh
  2474. all:
  2475. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2476. _ACEOF
  2477. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2478. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2479. *@@@%%%=?*=@@@%%%*)
  2480. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2481. *)
  2482. eval ac_cv_prog_make_${ac_make}_set=no;;
  2483. esac
  2484. rm -f conftest.make
  2485. fi
  2486. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2488. $as_echo "yes" >&6; }
  2489. SET_MAKE=
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. SET_MAKE="MAKE=${MAKE-make}"
  2494. fi
  2495. rm -rf .tst 2>/dev/null
  2496. mkdir .tst 2>/dev/null
  2497. if test -d .tst; then
  2498. am__leading_dot=.
  2499. else
  2500. am__leading_dot=_
  2501. fi
  2502. rmdir .tst 2>/dev/null
  2503. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2504. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2505. # is not polluted with repeated "-I."
  2506. am__isrc=' -I$(srcdir)'
  2507. # test to see if srcdir already configured
  2508. if test -f $srcdir/config.status; then
  2509. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2510. fi
  2511. fi
  2512. # test whether we have cygpath
  2513. if test -z "$CYGPATH_W"; then
  2514. if (cygpath --version) >/dev/null 2>/dev/null; then
  2515. CYGPATH_W='cygpath -w'
  2516. else
  2517. CYGPATH_W=echo
  2518. fi
  2519. fi
  2520. # Define the identity of the package.
  2521. PACKAGE=OpenSRF
  2522. VERSION=trunk
  2523. cat >>confdefs.h <<_ACEOF
  2524. #define PACKAGE "$PACKAGE"
  2525. _ACEOF
  2526. cat >>confdefs.h <<_ACEOF
  2527. #define VERSION "$VERSION"
  2528. _ACEOF
  2529. # Some tools Automake needs.
  2530. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2531. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2532. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2533. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2534. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2535. # We need awk for the "check" target. The system "awk" is bad on
  2536. # some platforms.
  2537. # Always define AMTAR for backward compatibility.
  2538. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2539. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2540. # Enable $prefix to resolve to a reasonable value in substitutions in
  2541. # scripts if no explict value was passed in to configure
  2542. if test "$prefix" == "NONE"; then
  2543. prefix=$ac_default_prefix
  2544. fi
  2545. # Perl and Python scripts don't want ${prefix} if no value was specified
  2546. eval "eval CONF_DIR=$sysconfdir"
  2547. eval "eval PID_DIR=$localstatedir"
  2548. #-------------------------------
  2549. # Installation options
  2550. #-------------------------------
  2551. # build and install the java libs?
  2552. # Check whether --enable-java was given.
  2553. if test "${enable_java+set}" = set; then :
  2554. enableval=$enable_java; case "${enableval}" in
  2555. yes) OSRF_INSTALL_JAVA=true ;;
  2556. no) OSRF_INSTALL_JAVA=false ;;
  2557. *) as_fn_error $? "please choose another value for --enable-java (supported values are yes or no)" "$LINENO" 5 ;;
  2558. esac
  2559. else
  2560. OSRF_INSTALL_JAVA=false
  2561. fi
  2562. if test x$OSRF_INSTALL_JAVA = xtrue; then
  2563. BUILDJAVA_TRUE=
  2564. BUILDJAVA_FALSE='#'
  2565. else
  2566. BUILDJAVA_TRUE='#'
  2567. BUILDJAVA_FALSE=
  2568. fi
  2569. # install the javascript files?
  2570. # Check whether --enable-javascript was given.
  2571. if test "${enable_javascript+set}" = set; then :
  2572. enableval=$enable_javascript; case "${enableval}" in
  2573. yes) OSRF_INSTALL_JAVASCRIPT=true ;;
  2574. no) OSRF_INSTALL_JAVASCRIPT=false ;;
  2575. *) as_fn_error $? "please choose another value for --disable-javascript (supported values are yes or no)" "$LINENO" 5 ;;
  2576. esac
  2577. else
  2578. OSRF_INSTALL_JAVASCRIPT=true
  2579. fi
  2580. if test x$OSRF_INSTALL_JAVASCRIPT = xtrue; then
  2581. INSTALLJAVASCRIPT_TRUE=
  2582. INSTALLJAVASCRIPT_FALSE='#'
  2583. else
  2584. INSTALLJAVASCRIPT_TRUE='#'
  2585. INSTALLJAVASCRIPT_FALSE=
  2586. fi
  2587. # install the OpenSRF core files?
  2588. # Check whether --enable-core was given.
  2589. if test "${enable_core+set}" = set; then :
  2590. enableval=$enable_core; case "${enableval}" in
  2591. yes) OSRF_INSTALL_CORE=true ;;
  2592. no) OSRF_INSTALL_CORE=false ;;
  2593. *) as_fn_error $? "please choose another value for --disable-core (supported values are yes or no)" "$LINENO" 5 ;;
  2594. esac
  2595. else
  2596. OSRF_INSTALL_CORE=true
  2597. fi
  2598. if test x$OSRF_INSTALL_CORE = xtrue; then
  2599. BUILDCORE_TRUE=
  2600. BUILDCORE_FALSE='#'
  2601. else
  2602. BUILDCORE_TRUE='#'
  2603. BUILDCORE_FALSE=
  2604. fi
  2605. # build and install the python modules
  2606. # Check whether --enable-python was given.
  2607. if test "${enable_python+set}" = set; then :
  2608. enableval=$enable_python; case "${enableval}" in
  2609. yes) OSRF_INSTALL_PYTHON=true ;;
  2610. no) OSRF_INSTALL_PYTHON=false ;;
  2611. *) as_fn_error $? "please choose another value for --enable-python (supported values are yes or no)" "$LINENO" 5 ;;
  2612. esac
  2613. else
  2614. OSRF_INSTALL_PYTHON=false
  2615. fi
  2616. if test x$OSRF_INSTALL_PYTHON = xtrue; then
  2617. BUILDPYTHON_TRUE=
  2618. BUILDPYTHON_FALSE='#'
  2619. else
  2620. BUILDPYTHON_TRUE='#'
  2621. BUILDPYTHON_FALSE=
  2622. fi
  2623. # enable chopchop, the basic XMPP server
  2624. # Check whether --enable-chopchop was given.
  2625. if test "${enable_chopchop+set}" = set; then :
  2626. enableval=$enable_chopchop; case "${enableval}" in
  2627. yes) OSRF_INSTALL_CHOPCHOP=true ;;
  2628. no) OSRF_INSTALL_CHOPCHOP=false ;;
  2629. *) as_fn_error $? "please choose another value for --enable-chopchop (supported values are yes or no)" "$LINENO" 5 ;;
  2630. esac
  2631. else
  2632. OSRF_INSTALL_CHOPCHOP=false
  2633. fi
  2634. if test x$OSRF_INSTALL_CHOPCHOP = xtrue; then
  2635. BUILDCHOPCHOP_TRUE=
  2636. BUILDCHOPCHOP_FALSE='#'
  2637. else
  2638. BUILDCHOPCHOP_TRUE='#'
  2639. BUILDCHOPCHOP_FALSE=
  2640. fi
  2641. # enable debug?
  2642. # Check whether --enable-debug was given.
  2643. if test "${enable_debug+set}" = set; then :
  2644. enableval=$enable_debug; case "${enableval}" in
  2645. yes) debug=true ;;
  2646. no) debug=false ;;
  2647. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  2648. esac
  2649. else
  2650. debug=false
  2651. fi
  2652. if test x$debug = xtrue; then
  2653. DEBUG_TRUE=
  2654. DEBUG_FALSE='#'
  2655. else
  2656. DEBUG_TRUE='#'
  2657. DEBUG_FALSE=
  2658. fi
  2659. # path to the directory containing the java dependency jar files (included if java installs)
  2660. if test $OSRF_INSTALL_JAVA; then
  2661. OSRF_JAVA_DEPSDIR=/opt/java
  2662. ac_config_files="$ac_config_files src/java/Makefile"
  2663. fi
  2664. #--------------------------------
  2665. # Checks for programs.
  2666. #--------------------------------
  2667. case `pwd` in
  2668. *\ * | *\ *)
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2670. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2671. esac
  2672. macro_version='2.2.10'
  2673. macro_revision='1.3175'
  2674. ltmain="$ac_aux_dir/ltmain.sh"
  2675. # Make sure we can run config.sub.
  2676. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2677. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2679. $as_echo_n "checking build system type... " >&6; }
  2680. if test "${ac_cv_build+set}" = set; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. ac_build_alias=$build_alias
  2684. test "x$ac_build_alias" = x &&
  2685. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2686. test "x$ac_build_alias" = x &&
  2687. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2688. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2692. $as_echo "$ac_cv_build" >&6; }
  2693. case $ac_cv_build in
  2694. *-*-*) ;;
  2695. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2696. esac
  2697. build=$ac_cv_build
  2698. ac_save_IFS=$IFS; IFS='-'
  2699. set x $ac_cv_build
  2700. shift
  2701. build_cpu=$1
  2702. build_vendor=$2
  2703. shift; shift
  2704. # Remember, the first character of IFS is used to create $*,
  2705. # except with old shells:
  2706. build_os=$*
  2707. IFS=$ac_save_IFS
  2708. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2710. $as_echo_n "checking host system type... " >&6; }
  2711. if test "${ac_cv_host+set}" = set; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. if test "x$host_alias" = x; then
  2715. ac_cv_host=$ac_cv_build
  2716. else
  2717. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2718. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2719. fi
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2722. $as_echo "$ac_cv_host" >&6; }
  2723. case $ac_cv_host in
  2724. *-*-*) ;;
  2725. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2726. esac
  2727. host=$ac_cv_host
  2728. ac_save_IFS=$IFS; IFS='-'
  2729. set x $ac_cv_host
  2730. shift
  2731. host_cpu=$1
  2732. host_vendor=$2
  2733. shift; shift
  2734. # Remember, the first character of IFS is used to create $*,
  2735. # except with old shells:
  2736. host_os=$*
  2737. IFS=$ac_save_IFS
  2738. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2739. # Backslashify metacharacters that are still active within
  2740. # double-quoted strings.
  2741. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2742. # Same as above, but do not quote variable references.
  2743. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2744. # Sed substitution to delay expansion of an escaped shell variable in a
  2745. # double_quote_subst'ed string.
  2746. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2747. # Sed substitution to delay expansion of an escaped single quote.
  2748. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2749. # Sed substitution to avoid accidental globbing in evaled expressions
  2750. no_glob_subst='s/\*/\\\*/g'
  2751. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2752. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2753. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2755. $as_echo_n "checking how to print strings... " >&6; }
  2756. # Test print first, because it will be a builtin if present.
  2757. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  2758. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2759. ECHO='print -r --'
  2760. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2761. ECHO='printf %s\n'
  2762. else
  2763. # Use this function as a fallback that always works.
  2764. func_fallback_echo ()
  2765. {
  2766. eval 'cat <<_LTECHO_EOF
  2767. $1
  2768. _LTECHO_EOF'
  2769. }
  2770. ECHO='func_fallback_echo'
  2771. fi
  2772. # func_echo_all arg...
  2773. # Invoke $ECHO with all args, space-separated.
  2774. func_echo_all ()
  2775. {
  2776. $ECHO ""
  2777. }
  2778. case "$ECHO" in
  2779. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2780. $as_echo "printf" >&6; } ;;
  2781. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2782. $as_echo "print -r" >&6; } ;;
  2783. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2784. $as_echo "cat" >&6; } ;;
  2785. esac
  2786. DEPDIR="${am__leading_dot}deps"
  2787. ac_config_commands="$ac_config_commands depfiles"
  2788. am_make=${MAKE-make}
  2789. cat > confinc << 'END'
  2790. am__doit:
  2791. @echo this is the am__doit target
  2792. .PHONY: am__doit
  2793. END
  2794. # If we don't find an include directive, just comment out the code.
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2796. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2797. am__include="#"
  2798. am__quote=
  2799. _am_result=none
  2800. # First try GNU make style include.
  2801. echo "include confinc" > confmf
  2802. # Ignore all kinds of additional output from `make'.
  2803. case `$am_make -s -f confmf 2> /dev/null` in #(
  2804. *the\ am__doit\ target*)
  2805. am__include=include
  2806. am__quote=
  2807. _am_result=GNU
  2808. ;;
  2809. esac
  2810. # Now try BSD make style include.
  2811. if test "$am__include" = "#"; then
  2812. echo '.include "confinc"' > confmf
  2813. case `$am_make -s -f confmf 2> /dev/null` in #(
  2814. *the\ am__doit\ target*)
  2815. am__include=.include
  2816. am__quote="\""
  2817. _am_result=BSD
  2818. ;;
  2819. esac
  2820. fi
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2822. $as_echo "$_am_result" >&6; }
  2823. rm -f confinc confmf
  2824. # Check whether --enable-dependency-tracking was given.
  2825. if test "${enable_dependency_tracking+set}" = set; then :
  2826. enableval=$enable_dependency_tracking;
  2827. fi
  2828. if test "x$enable_dependency_tracking" != xno; then
  2829. am_depcomp="$ac_aux_dir/depcomp"
  2830. AMDEPBACKSLASH='\'
  2831. fi
  2832. if test "x$enable_dependency_tracking" != xno; then
  2833. AMDEP_TRUE=
  2834. AMDEP_FALSE='#'
  2835. else
  2836. AMDEP_TRUE='#'
  2837. AMDEP_FALSE=
  2838. fi
  2839. ac_ext=c
  2840. ac_cpp='$CPP $CPPFLAGS'
  2841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2844. if test -n "$ac_tool_prefix"; then
  2845. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2846. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2848. $as_echo_n "checking for $ac_word... " >&6; }
  2849. if test "${ac_cv_prog_CC+set}" = set; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$CC"; then
  2853. ac_cv_prog_CC="$CC" # Let the user override the test.
  2854. else
  2855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2856. for as_dir in $PATH
  2857. do
  2858. IFS=$as_save_IFS
  2859. test -z "$as_dir" && as_dir=.
  2860. for ac_exec_ext in '' $ac_executable_extensions; do
  2861. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2862. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2864. break 2
  2865. fi
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. fi
  2870. fi
  2871. CC=$ac_cv_prog_CC
  2872. if test -n "$CC"; then
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2874. $as_echo "$CC" >&6; }
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. fi
  2880. if test -z "$ac_cv_prog_CC"; then
  2881. ac_ct_CC=$CC
  2882. # Extract the first word of "gcc", so it can be a program name with args.
  2883. set dummy gcc; ac_word=$2
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2885. $as_echo_n "checking for $ac_word... " >&6; }
  2886. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. if test -n "$ac_ct_CC"; then
  2890. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2891. else
  2892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2893. for as_dir in $PATH
  2894. do
  2895. IFS=$as_save_IFS
  2896. test -z "$as_dir" && as_dir=.
  2897. for ac_exec_ext in '' $ac_executable_extensions; do
  2898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2899. ac_cv_prog_ac_ct_CC="gcc"
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2901. break 2
  2902. fi
  2903. done
  2904. done
  2905. IFS=$as_save_IFS
  2906. fi
  2907. fi
  2908. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2909. if test -n "$ac_ct_CC"; then
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2911. $as_echo "$ac_ct_CC" >&6; }
  2912. else
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2914. $as_echo "no" >&6; }
  2915. fi
  2916. if test "x$ac_ct_CC" = x; then
  2917. CC=""
  2918. else
  2919. case $cross_compiling:$ac_tool_warned in
  2920. yes:)
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2922. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2923. ac_tool_warned=yes ;;
  2924. esac
  2925. CC=$ac_ct_CC
  2926. fi
  2927. else
  2928. CC="$ac_cv_prog_CC"
  2929. fi
  2930. if test -z "$CC"; then
  2931. if test -n "$ac_tool_prefix"; then
  2932. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2933. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2935. $as_echo_n "checking for $ac_word... " >&6; }
  2936. if test "${ac_cv_prog_CC+set}" = set; then :
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. if test -n "$CC"; then
  2940. ac_cv_prog_CC="$CC" # Let the user override the test.
  2941. else
  2942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2943. for as_dir in $PATH
  2944. do
  2945. IFS=$as_save_IFS
  2946. test -z "$as_dir" && as_dir=.
  2947. for ac_exec_ext in '' $ac_executable_extensions; do
  2948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2949. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2951. break 2
  2952. fi
  2953. done
  2954. done
  2955. IFS=$as_save_IFS
  2956. fi
  2957. fi
  2958. CC=$ac_cv_prog_CC
  2959. if test -n "$CC"; then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2961. $as_echo "$CC" >&6; }
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. fi
  2966. fi
  2967. fi
  2968. if test -z "$CC"; then
  2969. # Extract the first word of "cc", so it can be a program name with args.
  2970. set dummy cc; ac_word=$2
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2972. $as_echo_n "checking for $ac_word... " >&6; }
  2973. if test "${ac_cv_prog_CC+set}" = set; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. if test -n "$CC"; then
  2977. ac_cv_prog_CC="$CC" # Let the user override the test.
  2978. else
  2979. ac_prog_rejected=no
  2980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2981. for as_dir in $PATH
  2982. do
  2983. IFS=$as_save_IFS
  2984. test -z "$as_dir" && as_dir=.
  2985. for ac_exec_ext in '' $ac_executable_extensions; do
  2986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2987. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2988. ac_prog_rejected=yes
  2989. continue
  2990. fi
  2991. ac_cv_prog_CC="cc"
  2992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2993. break 2
  2994. fi
  2995. done
  2996. done
  2997. IFS=$as_save_IFS
  2998. if test $ac_prog_rejected = yes; then
  2999. # We found a bogon in the path, so make sure we never use it.
  3000. set dummy $ac_cv_prog_CC
  3001. shift
  3002. if test $# != 0; then
  3003. # We chose a different compiler from the bogus one.
  3004. # However, it has the same basename, so the bogon will be chosen
  3005. # first if we set CC to just the basename; use the full file name.
  3006. shift
  3007. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3008. fi
  3009. fi
  3010. fi
  3011. fi
  3012. CC=$ac_cv_prog_CC
  3013. if test -n "$CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3015. $as_echo "$CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. fi
  3021. if test -z "$CC"; then
  3022. if test -n "$ac_tool_prefix"; then
  3023. for ac_prog in cl.exe
  3024. do
  3025. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3026. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3028. $as_echo_n "checking for $ac_word... " >&6; }
  3029. if test "${ac_cv_prog_CC+set}" = set; then :
  3030. $as_echo_n "(cached) " >&6
  3031. else
  3032. if test -n "$CC"; then
  3033. ac_cv_prog_CC="$CC" # Let the user override the test.
  3034. else
  3035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3036. for as_dir in $PATH
  3037. do
  3038. IFS=$as_save_IFS
  3039. test -z "$as_dir" && as_dir=.
  3040. for ac_exec_ext in '' $ac_executable_extensions; do
  3041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3042. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3044. break 2
  3045. fi
  3046. done
  3047. done
  3048. IFS=$as_save_IFS
  3049. fi
  3050. fi
  3051. CC=$ac_cv_prog_CC
  3052. if test -n "$CC"; then
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3054. $as_echo "$CC" >&6; }
  3055. else
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3057. $as_echo "no" >&6; }
  3058. fi
  3059. test -n "$CC" && break
  3060. done
  3061. fi
  3062. if test -z "$CC"; then
  3063. ac_ct_CC=$CC
  3064. for ac_prog in cl.exe
  3065. do
  3066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3067. set dummy $ac_prog; ac_word=$2
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3069. $as_echo_n "checking for $ac_word... " >&6; }
  3070. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3071. $as_echo_n "(cached) " >&6
  3072. else
  3073. if test -n "$ac_ct_CC"; then
  3074. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3075. else
  3076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3077. for as_dir in $PATH
  3078. do
  3079. IFS=$as_save_IFS
  3080. test -z "$as_dir" && as_dir=.
  3081. for ac_exec_ext in '' $ac_executable_extensions; do
  3082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3083. ac_cv_prog_ac_ct_CC="$ac_prog"
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3085. break 2
  3086. fi
  3087. done
  3088. done
  3089. IFS=$as_save_IFS
  3090. fi
  3091. fi
  3092. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3093. if test -n "$ac_ct_CC"; then
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3095. $as_echo "$ac_ct_CC" >&6; }
  3096. else
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3098. $as_echo "no" >&6; }
  3099. fi
  3100. test -n "$ac_ct_CC" && break
  3101. done
  3102. if test "x$ac_ct_CC" = x; then
  3103. CC=""
  3104. else
  3105. case $cross_compiling:$ac_tool_warned in
  3106. yes:)
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3109. ac_tool_warned=yes ;;
  3110. esac
  3111. CC=$ac_ct_CC
  3112. fi
  3113. fi
  3114. fi
  3115. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3116. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3117. as_fn_error $? "no acceptable C compiler found in \$PATH
  3118. See \`config.log' for more details" "$LINENO" 5; }
  3119. # Provide some information about the compiler.
  3120. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3121. set X $ac_compile
  3122. ac_compiler=$2
  3123. for ac_option in --version -v -V -qversion; do
  3124. { { ac_try="$ac_compiler $ac_option >&5"
  3125. case "(($ac_try" in
  3126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3127. *) ac_try_echo=$ac_try;;
  3128. esac
  3129. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3130. $as_echo "$ac_try_echo"; } >&5
  3131. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3132. ac_status=$?
  3133. if test -s conftest.err; then
  3134. sed '10a\
  3135. ... rest of stderr output deleted ...
  3136. 10q' conftest.err >conftest.er1
  3137. cat conftest.er1 >&5
  3138. fi
  3139. rm -f conftest.er1 conftest.err
  3140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3141. test $ac_status = 0; }
  3142. done
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. ac_clean_files_save=$ac_clean_files
  3153. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3154. # Try to create an executable without -o first, disregard a.out.
  3155. # It will help us diagnose broken compilers, and finding out an intuition
  3156. # of exeext.
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3158. $as_echo_n "checking whether the C compiler works... " >&6; }
  3159. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3160. # The possible output files:
  3161. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3162. ac_rmfiles=
  3163. for ac_file in $ac_files
  3164. do
  3165. case $ac_file in
  3166. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3167. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3168. esac
  3169. done
  3170. rm -f $ac_rmfiles
  3171. if { { ac_try="$ac_link_default"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo"; } >&5
  3178. (eval "$ac_link_default") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3181. test $ac_status = 0; }; then :
  3182. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3183. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3184. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3185. # so that the user can short-circuit this test for compilers unknown to
  3186. # Autoconf.
  3187. for ac_file in $ac_files ''
  3188. do
  3189. test -f "$ac_file" || continue
  3190. case $ac_file in
  3191. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3192. ;;
  3193. [ab].out )
  3194. # We found the default executable, but exeext='' is most
  3195. # certainly right.
  3196. break;;
  3197. *.* )
  3198. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3199. then :; else
  3200. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3201. fi
  3202. # We set ac_cv_exeext here because the later test for it is not
  3203. # safe: cross compilers may not add the suffix if given an `-o'
  3204. # argument, so we may need to know it at that point already.
  3205. # Even if this section looks crufty: it has the advantage of
  3206. # actually working.
  3207. break;;
  3208. * )
  3209. break;;
  3210. esac
  3211. done
  3212. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3213. else
  3214. ac_file=''
  3215. fi
  3216. if test -z "$ac_file"; then :
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3218. $as_echo "no" >&6; }
  3219. $as_echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3222. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3223. as_fn_error 77 "C compiler cannot create executables
  3224. See \`config.log' for more details" "$LINENO" 5; }
  3225. else
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3227. $as_echo "yes" >&6; }
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3230. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3232. $as_echo "$ac_file" >&6; }
  3233. ac_exeext=$ac_cv_exeext
  3234. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3235. ac_clean_files=$ac_clean_files_save
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3237. $as_echo_n "checking for suffix of executables... " >&6; }
  3238. if { { ac_try="$ac_link"
  3239. case "(($ac_try" in
  3240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3241. *) ac_try_echo=$ac_try;;
  3242. esac
  3243. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3244. $as_echo "$ac_try_echo"; } >&5
  3245. (eval "$ac_link") 2>&5
  3246. ac_status=$?
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3248. test $ac_status = 0; }; then :
  3249. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3250. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3251. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3252. # `rm'.
  3253. for ac_file in conftest.exe conftest conftest.*; do
  3254. test -f "$ac_file" || continue
  3255. case $ac_file in
  3256. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3257. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3258. break;;
  3259. * ) break;;
  3260. esac
  3261. done
  3262. else
  3263. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3265. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3266. See \`config.log' for more details" "$LINENO" 5; }
  3267. fi
  3268. rm -f conftest conftest$ac_cv_exeext
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3270. $as_echo "$ac_cv_exeext" >&6; }
  3271. rm -f conftest.$ac_ext
  3272. EXEEXT=$ac_cv_exeext
  3273. ac_exeext=$EXEEXT
  3274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end confdefs.h. */
  3276. #include <stdio.h>
  3277. int
  3278. main ()
  3279. {
  3280. FILE *f = fopen ("conftest.out", "w");
  3281. return ferror (f) || fclose (f) != 0;
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. ac_clean_files="$ac_clean_files conftest.out"
  3287. # Check that the compiler produces executables we can run. If not, either
  3288. # the compiler is broken, or we cross compile.
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3290. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3291. if test "$cross_compiling" != yes; then
  3292. { { ac_try="$ac_link"
  3293. case "(($ac_try" in
  3294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3295. *) ac_try_echo=$ac_try;;
  3296. esac
  3297. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3298. $as_echo "$ac_try_echo"; } >&5
  3299. (eval "$ac_link") 2>&5
  3300. ac_status=$?
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3302. test $ac_status = 0; }
  3303. if { ac_try='./conftest$ac_cv_exeext'
  3304. { { case "(($ac_try" in
  3305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3306. *) ac_try_echo=$ac_try;;
  3307. esac
  3308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3309. $as_echo "$ac_try_echo"; } >&5
  3310. (eval "$ac_try") 2>&5
  3311. ac_status=$?
  3312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3313. test $ac_status = 0; }; }; then
  3314. cross_compiling=no
  3315. else
  3316. if test "$cross_compiling" = maybe; then
  3317. cross_compiling=yes
  3318. else
  3319. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3320. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3321. as_fn_error $? "cannot run C compiled programs.
  3322. If you meant to cross compile, use \`--host'.
  3323. See \`config.log' for more details" "$LINENO" 5; }
  3324. fi
  3325. fi
  3326. fi
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3328. $as_echo "$cross_compiling" >&6; }
  3329. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3330. ac_clean_files=$ac_clean_files_save
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3332. $as_echo_n "checking for suffix of object files... " >&6; }
  3333. if test "${ac_cv_objext+set}" = set; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. rm -f conftest.o conftest.obj
  3346. if { { ac_try="$ac_compile"
  3347. case "(($ac_try" in
  3348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3349. *) ac_try_echo=$ac_try;;
  3350. esac
  3351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3352. $as_echo "$ac_try_echo"; } >&5
  3353. (eval "$ac_compile") 2>&5
  3354. ac_status=$?
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3356. test $ac_status = 0; }; then :
  3357. for ac_file in conftest.o conftest.obj conftest.*; do
  3358. test -f "$ac_file" || continue;
  3359. case $ac_file in
  3360. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3361. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3362. break;;
  3363. esac
  3364. done
  3365. else
  3366. $as_echo "$as_me: failed program was:" >&5
  3367. sed 's/^/| /' conftest.$ac_ext >&5
  3368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3370. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3371. See \`config.log' for more details" "$LINENO" 5; }
  3372. fi
  3373. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3376. $as_echo "$ac_cv_objext" >&6; }
  3377. OBJEXT=$ac_cv_objext
  3378. ac_objext=$OBJEXT
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3380. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3381. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3382. $as_echo_n "(cached) " >&6
  3383. else
  3384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385. /* end confdefs.h. */
  3386. int
  3387. main ()
  3388. {
  3389. #ifndef __GNUC__
  3390. choke me
  3391. #endif
  3392. ;
  3393. return 0;
  3394. }
  3395. _ACEOF
  3396. if ac_fn_c_try_compile "$LINENO"; then :
  3397. ac_compiler_gnu=yes
  3398. else
  3399. ac_compiler_gnu=no
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3405. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3406. if test $ac_compiler_gnu = yes; then
  3407. GCC=yes
  3408. else
  3409. GCC=
  3410. fi
  3411. ac_test_CFLAGS=${CFLAGS+set}
  3412. ac_save_CFLAGS=$CFLAGS
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3414. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3415. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. ac_save_c_werror_flag=$ac_c_werror_flag
  3419. ac_c_werror_flag=yes
  3420. ac_cv_prog_cc_g=no
  3421. CFLAGS="-g"
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. if ac_fn_c_try_compile "$LINENO"; then :
  3432. ac_cv_prog_cc_g=yes
  3433. else
  3434. CFLAGS=""
  3435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436. /* end confdefs.h. */
  3437. int
  3438. main ()
  3439. {
  3440. ;
  3441. return 0;
  3442. }
  3443. _ACEOF
  3444. if ac_fn_c_try_compile "$LINENO"; then :
  3445. else
  3446. ac_c_werror_flag=$ac_save_c_werror_flag
  3447. CFLAGS="-g"
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. int
  3451. main ()
  3452. {
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. if ac_fn_c_try_compile "$LINENO"; then :
  3458. ac_cv_prog_cc_g=yes
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. fi
  3462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3463. fi
  3464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3465. ac_c_werror_flag=$ac_save_c_werror_flag
  3466. fi
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3468. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3469. if test "$ac_test_CFLAGS" = set; then
  3470. CFLAGS=$ac_save_CFLAGS
  3471. elif test $ac_cv_prog_cc_g = yes; then
  3472. if test "$GCC" = yes; then
  3473. CFLAGS="-g -O2"
  3474. else
  3475. CFLAGS="-g"
  3476. fi
  3477. else
  3478. if test "$GCC" = yes; then
  3479. CFLAGS="-O2"
  3480. else
  3481. CFLAGS=
  3482. fi
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3485. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3486. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3487. $as_echo_n "(cached) " >&6
  3488. else
  3489. ac_cv_prog_cc_c89=no
  3490. ac_save_CC=$CC
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. #include <stdarg.h>
  3494. #include <stdio.h>
  3495. #include <sys/types.h>
  3496. #include <sys/stat.h>
  3497. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3498. struct buf { int x; };
  3499. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3500. static char *e (p, i)
  3501. char **p;
  3502. int i;
  3503. {
  3504. return p[i];
  3505. }
  3506. static char *f (char * (*g) (char **, int), char **p, ...)
  3507. {
  3508. char *s;
  3509. va_list v;
  3510. va_start (v,p);
  3511. s = g (p, va_arg (v,int));
  3512. va_end (v);
  3513. return s;
  3514. }
  3515. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3516. function prototypes and stuff, but not '\xHH' hex character constants.
  3517. These don't provoke an error unfortunately, instead are silently treated
  3518. as 'x'. The following induces an error, until -std is added to get
  3519. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3520. array size at least. It's necessary to write '\x00'==0 to get something
  3521. that's true only with -std. */
  3522. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3523. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3524. inside strings and character constants. */
  3525. #define FOO(x) 'x'
  3526. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3527. int test (int i, double x);
  3528. struct s1 {int (*f) (int a);};
  3529. struct s2 {int (*f) (double a);};
  3530. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3531. int argc;
  3532. char **argv;
  3533. int
  3534. main ()
  3535. {
  3536. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3542. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3543. do
  3544. CC="$ac_save_CC $ac_arg"
  3545. if ac_fn_c_try_compile "$LINENO"; then :
  3546. ac_cv_prog_cc_c89=$ac_arg
  3547. fi
  3548. rm -f core conftest.err conftest.$ac_objext
  3549. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3550. done
  3551. rm -f conftest.$ac_ext
  3552. CC=$ac_save_CC
  3553. fi
  3554. # AC_CACHE_VAL
  3555. case "x$ac_cv_prog_cc_c89" in
  3556. x)
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3558. $as_echo "none needed" >&6; } ;;
  3559. xno)
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3561. $as_echo "unsupported" >&6; } ;;
  3562. *)
  3563. CC="$CC $ac_cv_prog_cc_c89"
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3565. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3566. esac
  3567. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3568. fi
  3569. ac_ext=c
  3570. ac_cpp='$CPP $CPPFLAGS'
  3571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3574. depcc="$CC" am_compiler_list=
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3576. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3577. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3578. $as_echo_n "(cached) " >&6
  3579. else
  3580. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3581. # We make a subdir and do the tests there. Otherwise we can end up
  3582. # making bogus files that we don't know about and never remove. For
  3583. # instance it was reported that on HP-UX the gcc test will end up
  3584. # making a dummy file named `D' -- because `-MD' means `put the output
  3585. # in D'.
  3586. mkdir conftest.dir
  3587. # Copy depcomp to subdir because otherwise we won't find it if we're
  3588. # using a relative directory.
  3589. cp "$am_depcomp" conftest.dir
  3590. cd conftest.dir
  3591. # We will build objects and dependencies in a subdirectory because
  3592. # it helps to detect inapplicable dependency modes. For instance
  3593. # both Tru64's cc and ICC support -MD to output dependencies as a
  3594. # side effect of compilation, but ICC will put the dependencies in
  3595. # the current directory while Tru64 will put them in the object
  3596. # directory.
  3597. mkdir sub
  3598. am_cv_CC_dependencies_compiler_type=none
  3599. if test "$am_compiler_list" = ""; then
  3600. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3601. fi
  3602. am__universal=false
  3603. case " $depcc " in #(
  3604. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3605. esac
  3606. for depmode in $am_compiler_list; do
  3607. # Setup a source with many dependencies, because some compilers
  3608. # like to wrap large dependency lists on column 80 (with \), and
  3609. # we should not choose a depcomp mode which is confused by this.
  3610. #
  3611. # We need to recreate these files for each test, as the compiler may
  3612. # overwrite some of them when testing with obscure command lines.
  3613. # This happens at least with the AIX C compiler.
  3614. : > sub/conftest.c
  3615. for i in 1 2 3 4 5 6; do
  3616. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3617. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3618. # Solaris 8's {/usr,}/bin/sh.
  3619. touch sub/conftst$i.h
  3620. done
  3621. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3622. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3623. # mode. It turns out that the SunPro C++ compiler does not properly
  3624. # handle `-M -o', and we need to detect this. Also, some Intel
  3625. # versions had trouble with output in subdirs
  3626. am__obj=sub/conftest.${OBJEXT-o}
  3627. am__minus_obj="-o $am__obj"
  3628. case $depmode in
  3629. gcc)
  3630. # This depmode causes a compiler race in universal mode.
  3631. test "$am__universal" = false || continue
  3632. ;;
  3633. nosideeffect)
  3634. # after this tag, mechanisms are not by side-effect, so they'll
  3635. # only be used when explicitly requested
  3636. if test "x$enable_dependency_tracking" = xyes; then
  3637. continue
  3638. else
  3639. break
  3640. fi
  3641. ;;
  3642. msvisualcpp | msvcmsys)
  3643. # This compiler won't grok `-c -o', but also, the minuso test has
  3644. # not run yet. These depmodes are late enough in the game, and
  3645. # so weak that their functioning should not be impacted.
  3646. am__obj=conftest.${OBJEXT-o}
  3647. am__minus_obj=
  3648. ;;
  3649. none) break ;;
  3650. esac
  3651. if depmode=$depmode \
  3652. source=sub/conftest.c object=$am__obj \
  3653. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3654. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3655. >/dev/null 2>conftest.err &&
  3656. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3657. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3658. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3659. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3660. # icc doesn't choke on unknown options, it will just issue warnings
  3661. # or remarks (even with -Werror). So we grep stderr for any message
  3662. # that says an option was ignored or not supported.
  3663. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3664. # icc: Command line warning: ignoring option '-M'; no argument required
  3665. # The diagnosis changed in icc 8.0:
  3666. # icc: Command line remark: option '-MP' not supported
  3667. if (grep 'ignoring option' conftest.err ||
  3668. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3669. am_cv_CC_dependencies_compiler_type=$depmode
  3670. break
  3671. fi
  3672. fi
  3673. done
  3674. cd ..
  3675. rm -rf conftest.dir
  3676. else
  3677. am_cv_CC_dependencies_compiler_type=none
  3678. fi
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3681. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3682. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3683. if
  3684. test "x$enable_dependency_tracking" != xno \
  3685. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3686. am__fastdepCC_TRUE=
  3687. am__fastdepCC_FALSE='#'
  3688. else
  3689. am__fastdepCC_TRUE='#'
  3690. am__fastdepCC_FALSE=
  3691. fi
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3693. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3694. if test "${ac_cv_path_SED+set}" = set; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3698. for ac_i in 1 2 3 4 5 6 7; do
  3699. ac_script="$ac_script$as_nl$ac_script"
  3700. done
  3701. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3702. { ac_script=; unset ac_script;}
  3703. if test -z "$SED"; then
  3704. ac_path_SED_found=false
  3705. # Loop through the user's path and test for each of PROGNAME-LIST
  3706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3707. for as_dir in $PATH
  3708. do
  3709. IFS=$as_save_IFS
  3710. test -z "$as_dir" && as_dir=.
  3711. for ac_prog in sed gsed; do
  3712. for ac_exec_ext in '' $ac_executable_extensions; do
  3713. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3714. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3715. # Check for GNU ac_path_SED and select it if it is found.
  3716. # Check for GNU $ac_path_SED
  3717. case `"$ac_path_SED" --version 2>&1` in
  3718. *GNU*)
  3719. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3720. *)
  3721. ac_count=0
  3722. $as_echo_n 0123456789 >"conftest.in"
  3723. while :
  3724. do
  3725. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3726. mv "conftest.tmp" "conftest.in"
  3727. cp "conftest.in" "conftest.nl"
  3728. $as_echo '' >> "conftest.nl"
  3729. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3730. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3731. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3732. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3733. # Best one so far, save it but keep looking for a better one
  3734. ac_cv_path_SED="$ac_path_SED"
  3735. ac_path_SED_max=$ac_count
  3736. fi
  3737. # 10*(2^10) chars as input seems more than enough
  3738. test $ac_count -gt 10 && break
  3739. done
  3740. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3741. esac
  3742. $ac_path_SED_found && break 3
  3743. done
  3744. done
  3745. done
  3746. IFS=$as_save_IFS
  3747. if test -z "$ac_cv_path_SED"; then
  3748. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3749. fi
  3750. else
  3751. ac_cv_path_SED=$SED
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3755. $as_echo "$ac_cv_path_SED" >&6; }
  3756. SED="$ac_cv_path_SED"
  3757. rm -f conftest.sed
  3758. test -z "$SED" && SED=sed
  3759. Xsed="$SED -e 1s/^X//"
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3761. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3762. if test "${ac_cv_path_GREP+set}" = set; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -z "$GREP"; then
  3766. ac_path_GREP_found=false
  3767. # Loop through the user's path and test for each of PROGNAME-LIST
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_prog in grep ggrep; do
  3774. for ac_exec_ext in '' $ac_executable_extensions; do
  3775. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3776. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3777. # Check for GNU ac_path_GREP and select it if it is found.
  3778. # Check for GNU $ac_path_GREP
  3779. case `"$ac_path_GREP" --version 2>&1` in
  3780. *GNU*)
  3781. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3782. *)
  3783. ac_count=0
  3784. $as_echo_n 0123456789 >"conftest.in"
  3785. while :
  3786. do
  3787. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3788. mv "conftest.tmp" "conftest.in"
  3789. cp "conftest.in" "conftest.nl"
  3790. $as_echo 'GREP' >> "conftest.nl"
  3791. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3792. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3793. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3794. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3795. # Best one so far, save it but keep looking for a better one
  3796. ac_cv_path_GREP="$ac_path_GREP"
  3797. ac_path_GREP_max=$ac_count
  3798. fi
  3799. # 10*(2^10) chars as input seems more than enough
  3800. test $ac_count -gt 10 && break
  3801. done
  3802. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3803. esac
  3804. $ac_path_GREP_found && break 3
  3805. done
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. if test -z "$ac_cv_path_GREP"; then
  3810. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3811. fi
  3812. else
  3813. ac_cv_path_GREP=$GREP
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3817. $as_echo "$ac_cv_path_GREP" >&6; }
  3818. GREP="$ac_cv_path_GREP"
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3820. $as_echo_n "checking for egrep... " >&6; }
  3821. if test "${ac_cv_path_EGREP+set}" = set; then :
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3825. then ac_cv_path_EGREP="$GREP -E"
  3826. else
  3827. if test -z "$EGREP"; then
  3828. ac_path_EGREP_found=false
  3829. # Loop through the user's path and test for each of PROGNAME-LIST
  3830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3831. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3832. do
  3833. IFS=$as_save_IFS
  3834. test -z "$as_dir" && as_dir=.
  3835. for ac_prog in egrep; do
  3836. for ac_exec_ext in '' $ac_executable_extensions; do
  3837. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3838. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3839. # Check for GNU ac_path_EGREP and select it if it is found.
  3840. # Check for GNU $ac_path_EGREP
  3841. case `"$ac_path_EGREP" --version 2>&1` in
  3842. *GNU*)
  3843. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3844. *)
  3845. ac_count=0
  3846. $as_echo_n 0123456789 >"conftest.in"
  3847. while :
  3848. do
  3849. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3850. mv "conftest.tmp" "conftest.in"
  3851. cp "conftest.in" "conftest.nl"
  3852. $as_echo 'EGREP' >> "conftest.nl"
  3853. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3854. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3855. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3856. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3857. # Best one so far, save it but keep looking for a better one
  3858. ac_cv_path_EGREP="$ac_path_EGREP"
  3859. ac_path_EGREP_max=$ac_count
  3860. fi
  3861. # 10*(2^10) chars as input seems more than enough
  3862. test $ac_count -gt 10 && break
  3863. done
  3864. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3865. esac
  3866. $ac_path_EGREP_found && break 3
  3867. done
  3868. done
  3869. done
  3870. IFS=$as_save_IFS
  3871. if test -z "$ac_cv_path_EGREP"; then
  3872. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3873. fi
  3874. else
  3875. ac_cv_path_EGREP=$EGREP
  3876. fi
  3877. fi
  3878. fi
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3880. $as_echo "$ac_cv_path_EGREP" >&6; }
  3881. EGREP="$ac_cv_path_EGREP"
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3883. $as_echo_n "checking for fgrep... " >&6; }
  3884. if test "${ac_cv_path_FGREP+set}" = set; then :
  3885. $as_echo_n "(cached) " >&6
  3886. else
  3887. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3888. then ac_cv_path_FGREP="$GREP -F"
  3889. else
  3890. if test -z "$FGREP"; then
  3891. ac_path_FGREP_found=false
  3892. # Loop through the user's path and test for each of PROGNAME-LIST
  3893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3894. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3895. do
  3896. IFS=$as_save_IFS
  3897. test -z "$as_dir" && as_dir=.
  3898. for ac_prog in fgrep; do
  3899. for ac_exec_ext in '' $ac_executable_extensions; do
  3900. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3901. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3902. # Check for GNU ac_path_FGREP and select it if it is found.
  3903. # Check for GNU $ac_path_FGREP
  3904. case `"$ac_path_FGREP" --version 2>&1` in
  3905. *GNU*)
  3906. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3907. *)
  3908. ac_count=0
  3909. $as_echo_n 0123456789 >"conftest.in"
  3910. while :
  3911. do
  3912. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3913. mv "conftest.tmp" "conftest.in"
  3914. cp "conftest.in" "conftest.nl"
  3915. $as_echo 'FGREP' >> "conftest.nl"
  3916. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3917. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3918. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3919. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3920. # Best one so far, save it but keep looking for a better one
  3921. ac_cv_path_FGREP="$ac_path_FGREP"
  3922. ac_path_FGREP_max=$ac_count
  3923. fi
  3924. # 10*(2^10) chars as input seems more than enough
  3925. test $ac_count -gt 10 && break
  3926. done
  3927. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3928. esac
  3929. $ac_path_FGREP_found && break 3
  3930. done
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. if test -z "$ac_cv_path_FGREP"; then
  3935. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3936. fi
  3937. else
  3938. ac_cv_path_FGREP=$FGREP
  3939. fi
  3940. fi
  3941. fi
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3943. $as_echo "$ac_cv_path_FGREP" >&6; }
  3944. FGREP="$ac_cv_path_FGREP"
  3945. test -z "$GREP" && GREP=grep
  3946. # Check whether --with-gnu-ld was given.
  3947. if test "${with_gnu_ld+set}" = set; then :
  3948. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3949. else
  3950. with_gnu_ld=no
  3951. fi
  3952. ac_prog=ld
  3953. if test "$GCC" = yes; then
  3954. # Check if gcc -print-prog-name=ld gives a path.
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3956. $as_echo_n "checking for ld used by $CC... " >&6; }
  3957. case $host in
  3958. *-*-mingw*)
  3959. # gcc leaves a trailing carriage return which upsets mingw
  3960. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3961. *)
  3962. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3963. esac
  3964. case $ac_prog in
  3965. # Accept absolute paths.
  3966. [\\/]* | ?:[\\/]*)
  3967. re_direlt='/[^/][^/]*/\.\./'
  3968. # Canonicalize the pathname of ld
  3969. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3970. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3971. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3972. done
  3973. test -z "$LD" && LD="$ac_prog"
  3974. ;;
  3975. "")
  3976. # If it fails, then pretend we aren't using GCC.
  3977. ac_prog=ld
  3978. ;;
  3979. *)
  3980. # If it is relative, then search for the first ld in PATH.
  3981. with_gnu_ld=unknown
  3982. ;;
  3983. esac
  3984. elif test "$with_gnu_ld" = yes; then
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3986. $as_echo_n "checking for GNU ld... " >&6; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3989. $as_echo_n "checking for non-GNU ld... " >&6; }
  3990. fi
  3991. if test "${lt_cv_path_LD+set}" = set; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. if test -z "$LD"; then
  3995. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3996. for ac_dir in $PATH; do
  3997. IFS="$lt_save_ifs"
  3998. test -z "$ac_dir" && ac_dir=.
  3999. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4000. lt_cv_path_LD="$ac_dir/$ac_prog"
  4001. # Check to see if the program is GNU ld. I'd rather use --version,
  4002. # but apparently some variants of GNU ld only accept -v.
  4003. # Break only if it was the GNU/non-GNU ld that we prefer.
  4004. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4005. *GNU* | *'with BFD'*)
  4006. test "$with_gnu_ld" != no && break
  4007. ;;
  4008. *)
  4009. test "$with_gnu_ld" != yes && break
  4010. ;;
  4011. esac
  4012. fi
  4013. done
  4014. IFS="$lt_save_ifs"
  4015. else
  4016. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4017. fi
  4018. fi
  4019. LD="$lt_cv_path_LD"
  4020. if test -n "$LD"; then
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4022. $as_echo "$LD" >&6; }
  4023. else
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4025. $as_echo "no" >&6; }
  4026. fi
  4027. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4029. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4030. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4031. $as_echo_n "(cached) " >&6
  4032. else
  4033. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4034. case `$LD -v 2>&1 </dev/null` in
  4035. *GNU* | *'with BFD'*)
  4036. lt_cv_prog_gnu_ld=yes
  4037. ;;
  4038. *)
  4039. lt_cv_prog_gnu_ld=no
  4040. ;;
  4041. esac
  4042. fi
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4044. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4045. with_gnu_ld=$lt_cv_prog_gnu_ld
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4047. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4048. if test "${lt_cv_path_NM+set}" = set; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. if test -n "$NM"; then
  4052. # Let the user override the test.
  4053. lt_cv_path_NM="$NM"
  4054. else
  4055. lt_nm_to_check="${ac_tool_prefix}nm"
  4056. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4057. lt_nm_to_check="$lt_nm_to_check nm"
  4058. fi
  4059. for lt_tmp_nm in $lt_nm_to_check; do
  4060. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4061. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4062. IFS="$lt_save_ifs"
  4063. test -z "$ac_dir" && ac_dir=.
  4064. tmp_nm="$ac_dir/$lt_tmp_nm"
  4065. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4066. # Check to see if the nm accepts a BSD-compat flag.
  4067. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4068. # nm: unknown option "B" ignored
  4069. # Tru64's nm complains that /dev/null is an invalid object file
  4070. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4071. */dev/null* | *'Invalid file or object type'*)
  4072. lt_cv_path_NM="$tmp_nm -B"
  4073. break
  4074. ;;
  4075. *)
  4076. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4077. */dev/null*)
  4078. lt_cv_path_NM="$tmp_nm -p"
  4079. break
  4080. ;;
  4081. *)
  4082. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4083. continue # so that we can try to find one that supports BSD flags
  4084. ;;
  4085. esac
  4086. ;;
  4087. esac
  4088. fi
  4089. done
  4090. IFS="$lt_save_ifs"
  4091. done
  4092. : ${lt_cv_path_NM=no}
  4093. fi
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4096. $as_echo "$lt_cv_path_NM" >&6; }
  4097. if test "$lt_cv_path_NM" != "no"; then
  4098. NM="$lt_cv_path_NM"
  4099. else
  4100. # Didn't find any BSD compatible name lister, look for dumpbin.
  4101. if test -n "$DUMPBIN"; then :
  4102. # Let the user override the test.
  4103. else
  4104. if test -n "$ac_tool_prefix"; then
  4105. for ac_prog in dumpbin "link -dump"
  4106. do
  4107. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4108. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4110. $as_echo_n "checking for $ac_word... " >&6; }
  4111. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. if test -n "$DUMPBIN"; then
  4115. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4116. else
  4117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4118. for as_dir in $PATH
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4124. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4126. break 2
  4127. fi
  4128. done
  4129. done
  4130. IFS=$as_save_IFS
  4131. fi
  4132. fi
  4133. DUMPBIN=$ac_cv_prog_DUMPBIN
  4134. if test -n "$DUMPBIN"; then
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4136. $as_echo "$DUMPBIN" >&6; }
  4137. else
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4139. $as_echo "no" >&6; }
  4140. fi
  4141. test -n "$DUMPBIN" && break
  4142. done
  4143. fi
  4144. if test -z "$DUMPBIN"; then
  4145. ac_ct_DUMPBIN=$DUMPBIN
  4146. for ac_prog in dumpbin "link -dump"
  4147. do
  4148. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4149. set dummy $ac_prog; ac_word=$2
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4151. $as_echo_n "checking for $ac_word... " >&6; }
  4152. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. if test -n "$ac_ct_DUMPBIN"; then
  4156. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4157. else
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4165. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167. break 2
  4168. fi
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. fi
  4173. fi
  4174. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4175. if test -n "$ac_ct_DUMPBIN"; then
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4177. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4178. else
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4180. $as_echo "no" >&6; }
  4181. fi
  4182. test -n "$ac_ct_DUMPBIN" && break
  4183. done
  4184. if test "x$ac_ct_DUMPBIN" = x; then
  4185. DUMPBIN=":"
  4186. else
  4187. case $cross_compiling:$ac_tool_warned in
  4188. yes:)
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4191. ac_tool_warned=yes ;;
  4192. esac
  4193. DUMPBIN=$ac_ct_DUMPBIN
  4194. fi
  4195. fi
  4196. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4197. *COFF*)
  4198. DUMPBIN="$DUMPBIN -symbols"
  4199. ;;
  4200. *)
  4201. DUMPBIN=:
  4202. ;;
  4203. esac
  4204. fi
  4205. if test "$DUMPBIN" != ":"; then
  4206. NM="$DUMPBIN"
  4207. fi
  4208. fi
  4209. test -z "$NM" && NM=nm
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4211. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4212. if test "${lt_cv_nm_interface+set}" = set; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. lt_cv_nm_interface="BSD nm"
  4216. echo "int some_variable = 0;" > conftest.$ac_ext
  4217. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4218. (eval "$ac_compile" 2>conftest.err)
  4219. cat conftest.err >&5
  4220. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4221. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4222. cat conftest.err >&5
  4223. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4224. cat conftest.out >&5
  4225. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4226. lt_cv_nm_interface="MS dumpbin"
  4227. fi
  4228. rm -f conftest*
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4231. $as_echo "$lt_cv_nm_interface" >&6; }
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4233. $as_echo_n "checking whether ln -s works... " >&6; }
  4234. LN_S=$as_ln_s
  4235. if test "$LN_S" = "ln -s"; then
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4237. $as_echo "yes" >&6; }
  4238. else
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4240. $as_echo "no, using $LN_S" >&6; }
  4241. fi
  4242. # find the maximum length of command line arguments
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4244. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4245. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. i=0
  4249. teststring="ABCD"
  4250. case $build_os in
  4251. msdosdjgpp*)
  4252. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4253. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4254. # during glob expansion). Even if it were fixed, the result of this
  4255. # check would be larger than it should be.
  4256. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4257. ;;
  4258. gnu*)
  4259. # Under GNU Hurd, this test is not required because there is
  4260. # no limit to the length of command line arguments.
  4261. # Libtool will interpret -1 as no limit whatsoever
  4262. lt_cv_sys_max_cmd_len=-1;
  4263. ;;
  4264. cygwin* | mingw* | cegcc*)
  4265. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4266. # about 5 minutes as the teststring grows exponentially.
  4267. # Worse, since 9x/ME are not pre-emptively multitasking,
  4268. # you end up with a "frozen" computer, even though with patience
  4269. # the test eventually succeeds (with a max line length of 256k).
  4270. # Instead, let's just punt: use the minimum linelength reported by
  4271. # all of the supported platforms: 8192 (on NT/2K/XP).
  4272. lt_cv_sys_max_cmd_len=8192;
  4273. ;;
  4274. mint*)
  4275. # On MiNT this can take a long time and run out of memory.
  4276. lt_cv_sys_max_cmd_len=8192;
  4277. ;;
  4278. amigaos*)
  4279. # On AmigaOS with pdksh, this test takes hours, literally.
  4280. # So we just punt and use a minimum line length of 8192.
  4281. lt_cv_sys_max_cmd_len=8192;
  4282. ;;
  4283. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4284. # This has been around since 386BSD, at least. Likely further.
  4285. if test -x /sbin/sysctl; then
  4286. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4287. elif test -x /usr/sbin/sysctl; then
  4288. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4289. else
  4290. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4291. fi
  4292. # And add a safety zone
  4293. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4294. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4295. ;;
  4296. interix*)
  4297. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4298. lt_cv_sys_max_cmd_len=196608
  4299. ;;
  4300. osf*)
  4301. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4302. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4303. # nice to cause kernel panics so lets avoid the loop below.
  4304. # First set a reasonable default.
  4305. lt_cv_sys_max_cmd_len=16384
  4306. #
  4307. if test -x /sbin/sysconfig; then
  4308. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4309. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4310. esac
  4311. fi
  4312. ;;
  4313. sco3.2v5*)
  4314. lt_cv_sys_max_cmd_len=102400
  4315. ;;
  4316. sysv5* | sco5v6* | sysv4.2uw2*)
  4317. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4318. if test -n "$kargmax"; then
  4319. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4320. else
  4321. lt_cv_sys_max_cmd_len=32768
  4322. fi
  4323. ;;
  4324. *)
  4325. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4326. if test -n "$lt_cv_sys_max_cmd_len"; then
  4327. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4328. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4329. else
  4330. # Make teststring a little bigger before we do anything with it.
  4331. # a 1K string should be a reasonable start.
  4332. for i in 1 2 3 4 5 6 7 8 ; do
  4333. teststring=$teststring$teststring
  4334. done
  4335. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4336. # If test is not a shell built-in, we'll probably end up computing a
  4337. # maximum length that is only half of the actual maximum length, but
  4338. # we can't tell.
  4339. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4340. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4341. test $i != 17 # 1/2 MB should be enough
  4342. do
  4343. i=`expr $i + 1`
  4344. teststring=$teststring$teststring
  4345. done
  4346. # Only check the string length outside the loop.
  4347. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4348. teststring=
  4349. # Add a significant safety factor because C++ compilers can tack on
  4350. # massive amounts of additional arguments before passing them to the
  4351. # linker. It appears as though 1/2 is a usable value.
  4352. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4353. fi
  4354. ;;
  4355. esac
  4356. fi
  4357. if test -n $lt_cv_sys_max_cmd_len ; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4359. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4362. $as_echo "none" >&6; }
  4363. fi
  4364. max_cmd_len=$lt_cv_sys_max_cmd_len
  4365. : ${CP="cp -f"}
  4366. : ${MV="mv -f"}
  4367. : ${RM="rm -f"}
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4369. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4370. # Try some XSI features
  4371. xsi_shell=no
  4372. ( _lt_dummy="a/b/c"
  4373. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4374. = c,a/b,, \
  4375. && eval 'test $(( 1 + 1 )) -eq 2 \
  4376. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4377. && xsi_shell=yes
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4379. $as_echo "$xsi_shell" >&6; }
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4381. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4382. lt_shell_append=no
  4383. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4384. >/dev/null 2>&1 \
  4385. && lt_shell_append=yes
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4387. $as_echo "$lt_shell_append" >&6; }
  4388. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4389. lt_unset=unset
  4390. else
  4391. lt_unset=false
  4392. fi
  4393. # test EBCDIC or ASCII
  4394. case `echo X|tr X '\101'` in
  4395. A) # ASCII based system
  4396. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4397. lt_SP2NL='tr \040 \012'
  4398. lt_NL2SP='tr \015\012 \040\040'
  4399. ;;
  4400. *) # EBCDIC based system
  4401. lt_SP2NL='tr \100 \n'
  4402. lt_NL2SP='tr \r\n \100\100'
  4403. ;;
  4404. esac
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4406. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4407. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. lt_cv_ld_reload_flag='-r'
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4413. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4414. reload_flag=$lt_cv_ld_reload_flag
  4415. case $reload_flag in
  4416. "" | " "*) ;;
  4417. *) reload_flag=" $reload_flag" ;;
  4418. esac
  4419. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4420. case $host_os in
  4421. darwin*)
  4422. if test "$GCC" = yes; then
  4423. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4424. else
  4425. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4426. fi
  4427. ;;
  4428. esac
  4429. if test -n "$ac_tool_prefix"; then
  4430. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4431. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4433. $as_echo_n "checking for $ac_word... " >&6; }
  4434. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -n "$OBJDUMP"; then
  4438. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4439. else
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_exec_ext in '' $ac_executable_extensions; do
  4446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4447. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449. break 2
  4450. fi
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. fi
  4456. OBJDUMP=$ac_cv_prog_OBJDUMP
  4457. if test -n "$OBJDUMP"; then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4459. $as_echo "$OBJDUMP" >&6; }
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4462. $as_echo "no" >&6; }
  4463. fi
  4464. fi
  4465. if test -z "$ac_cv_prog_OBJDUMP"; then
  4466. ac_ct_OBJDUMP=$OBJDUMP
  4467. # Extract the first word of "objdump", so it can be a program name with args.
  4468. set dummy objdump; ac_word=$2
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4470. $as_echo_n "checking for $ac_word... " >&6; }
  4471. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. if test -n "$ac_ct_OBJDUMP"; then
  4475. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4476. else
  4477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4478. for as_dir in $PATH
  4479. do
  4480. IFS=$as_save_IFS
  4481. test -z "$as_dir" && as_dir=.
  4482. for ac_exec_ext in '' $ac_executable_extensions; do
  4483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4484. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4486. break 2
  4487. fi
  4488. done
  4489. done
  4490. IFS=$as_save_IFS
  4491. fi
  4492. fi
  4493. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4494. if test -n "$ac_ct_OBJDUMP"; then
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4496. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4497. else
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4499. $as_echo "no" >&6; }
  4500. fi
  4501. if test "x$ac_ct_OBJDUMP" = x; then
  4502. OBJDUMP="false"
  4503. else
  4504. case $cross_compiling:$ac_tool_warned in
  4505. yes:)
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4508. ac_tool_warned=yes ;;
  4509. esac
  4510. OBJDUMP=$ac_ct_OBJDUMP
  4511. fi
  4512. else
  4513. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4514. fi
  4515. test -z "$OBJDUMP" && OBJDUMP=objdump
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4517. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4518. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4522. lt_cv_file_magic_test_file=
  4523. lt_cv_deplibs_check_method='unknown'
  4524. # Need to set the preceding variable on all platforms that support
  4525. # interlibrary dependencies.
  4526. # 'none' -- dependencies not supported.
  4527. # `unknown' -- same as none, but documents that we really don't know.
  4528. # 'pass_all' -- all dependencies passed with no checks.
  4529. # 'test_compile' -- check by making test program.
  4530. # 'file_magic [[regex]]' -- check by looking for files in library path
  4531. # which responds to the $file_magic_cmd with a given extended regex.
  4532. # If you have `file' or equivalent on your system and you're not sure
  4533. # whether `pass_all' will *always* work, you probably want this one.
  4534. case $host_os in
  4535. aix[4-9]*)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. beos*)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. bsdi[45]*)
  4542. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4543. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4544. lt_cv_file_magic_test_file=/shlib/libc.so
  4545. ;;
  4546. cygwin*)
  4547. # func_win32_libid is a shell function defined in ltmain.sh
  4548. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4549. lt_cv_file_magic_cmd='func_win32_libid'
  4550. ;;
  4551. mingw* | pw32*)
  4552. # Base MSYS/MinGW do not provide the 'file' command needed by
  4553. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4554. # unless we find 'file', for example because we are cross-compiling.
  4555. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4556. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4557. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4558. lt_cv_file_magic_cmd='func_win32_libid'
  4559. else
  4560. # Keep this pattern in sync with the one in func_win32_libid.
  4561. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4562. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4563. fi
  4564. ;;
  4565. cegcc*)
  4566. # use the weaker test based on 'objdump'. See mingw*.
  4567. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4568. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4569. ;;
  4570. darwin* | rhapsody*)
  4571. lt_cv_deplibs_check_method=pass_all
  4572. ;;
  4573. freebsd* | dragonfly*)
  4574. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4575. case $host_cpu in
  4576. i*86 )
  4577. # Not sure whether the presence of OpenBSD here was a mistake.
  4578. # Let's accept both of them until this is cleared up.
  4579. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4580. lt_cv_file_magic_cmd=/usr/bin/file
  4581. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4582. ;;
  4583. esac
  4584. else
  4585. lt_cv_deplibs_check_method=pass_all
  4586. fi
  4587. ;;
  4588. gnu*)
  4589. lt_cv_deplibs_check_method=pass_all
  4590. ;;
  4591. haiku*)
  4592. lt_cv_deplibs_check_method=pass_all
  4593. ;;
  4594. hpux10.20* | hpux11*)
  4595. lt_cv_file_magic_cmd=/usr/bin/file
  4596. case $host_cpu in
  4597. ia64*)
  4598. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4599. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4600. ;;
  4601. hppa*64*)
  4602. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4603. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4604. ;;
  4605. *)
  4606. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4607. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4608. ;;
  4609. esac
  4610. ;;
  4611. interix[3-9]*)
  4612. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4613. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4614. ;;
  4615. irix5* | irix6* | nonstopux*)
  4616. case $LD in
  4617. *-32|*"-32 ") libmagic=32-bit;;
  4618. *-n32|*"-n32 ") libmagic=N32;;
  4619. *-64|*"-64 ") libmagic=64-bit;;
  4620. *) libmagic=never-match;;
  4621. esac
  4622. lt_cv_deplibs_check_method=pass_all
  4623. ;;
  4624. # This must be Linux ELF.
  4625. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4626. lt_cv_deplibs_check_method=pass_all
  4627. ;;
  4628. netbsd*)
  4629. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4630. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4631. else
  4632. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4633. fi
  4634. ;;
  4635. newos6*)
  4636. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4637. lt_cv_file_magic_cmd=/usr/bin/file
  4638. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4639. ;;
  4640. *nto* | *qnx*)
  4641. lt_cv_deplibs_check_method=pass_all
  4642. ;;
  4643. openbsd*)
  4644. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4645. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4646. else
  4647. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4648. fi
  4649. ;;
  4650. osf3* | osf4* | osf5*)
  4651. lt_cv_deplibs_check_method=pass_all
  4652. ;;
  4653. rdos*)
  4654. lt_cv_deplibs_check_method=pass_all
  4655. ;;
  4656. solaris*)
  4657. lt_cv_deplibs_check_method=pass_all
  4658. ;;
  4659. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4660. lt_cv_deplibs_check_method=pass_all
  4661. ;;
  4662. sysv4 | sysv4.3*)
  4663. case $host_vendor in
  4664. motorola)
  4665. 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]'
  4666. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4667. ;;
  4668. ncr)
  4669. lt_cv_deplibs_check_method=pass_all
  4670. ;;
  4671. sequent)
  4672. lt_cv_file_magic_cmd='/bin/file'
  4673. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4674. ;;
  4675. sni)
  4676. lt_cv_file_magic_cmd='/bin/file'
  4677. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4678. lt_cv_file_magic_test_file=/lib/libc.so
  4679. ;;
  4680. siemens)
  4681. lt_cv_deplibs_check_method=pass_all
  4682. ;;
  4683. pc)
  4684. lt_cv_deplibs_check_method=pass_all
  4685. ;;
  4686. esac
  4687. ;;
  4688. tpf*)
  4689. lt_cv_deplibs_check_method=pass_all
  4690. ;;
  4691. esac
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4694. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4695. file_magic_cmd=$lt_cv_file_magic_cmd
  4696. deplibs_check_method=$lt_cv_deplibs_check_method
  4697. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4698. if test -n "$ac_tool_prefix"; then
  4699. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4700. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if test "${ac_cv_prog_AR+set}" = set; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$AR"; then
  4707. ac_cv_prog_AR="$AR" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4716. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. fi
  4724. fi
  4725. AR=$ac_cv_prog_AR
  4726. if test -n "$AR"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4728. $as_echo "$AR" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. fi
  4734. if test -z "$ac_cv_prog_AR"; then
  4735. ac_ct_AR=$AR
  4736. # Extract the first word of "ar", so it can be a program name with args.
  4737. set dummy ar; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$ac_ct_AR"; then
  4744. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4753. ac_cv_prog_ac_ct_AR="ar"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4763. if test -n "$ac_ct_AR"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4765. $as_echo "$ac_ct_AR" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. if test "x$ac_ct_AR" = x; then
  4771. AR="false"
  4772. else
  4773. case $cross_compiling:$ac_tool_warned in
  4774. yes:)
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4777. ac_tool_warned=yes ;;
  4778. esac
  4779. AR=$ac_ct_AR
  4780. fi
  4781. else
  4782. AR="$ac_cv_prog_AR"
  4783. fi
  4784. test -z "$AR" && AR=ar
  4785. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4786. if test -n "$ac_tool_prefix"; then
  4787. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4788. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4790. $as_echo_n "checking for $ac_word... " >&6; }
  4791. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. if test -n "$STRIP"; then
  4795. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4796. else
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH
  4799. do
  4800. IFS=$as_save_IFS
  4801. test -z "$as_dir" && as_dir=.
  4802. for ac_exec_ext in '' $ac_executable_extensions; do
  4803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4804. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4806. break 2
  4807. fi
  4808. done
  4809. done
  4810. IFS=$as_save_IFS
  4811. fi
  4812. fi
  4813. STRIP=$ac_cv_prog_STRIP
  4814. if test -n "$STRIP"; then
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4816. $as_echo "$STRIP" >&6; }
  4817. else
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4819. $as_echo "no" >&6; }
  4820. fi
  4821. fi
  4822. if test -z "$ac_cv_prog_STRIP"; then
  4823. ac_ct_STRIP=$STRIP
  4824. # Extract the first word of "strip", so it can be a program name with args.
  4825. set dummy strip; ac_word=$2
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4827. $as_echo_n "checking for $ac_word... " >&6; }
  4828. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. if test -n "$ac_ct_STRIP"; then
  4832. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4833. else
  4834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4835. for as_dir in $PATH
  4836. do
  4837. IFS=$as_save_IFS
  4838. test -z "$as_dir" && as_dir=.
  4839. for ac_exec_ext in '' $ac_executable_extensions; do
  4840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4841. ac_cv_prog_ac_ct_STRIP="strip"
  4842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4843. break 2
  4844. fi
  4845. done
  4846. done
  4847. IFS=$as_save_IFS
  4848. fi
  4849. fi
  4850. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4851. if test -n "$ac_ct_STRIP"; then
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4853. $as_echo "$ac_ct_STRIP" >&6; }
  4854. else
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4856. $as_echo "no" >&6; }
  4857. fi
  4858. if test "x$ac_ct_STRIP" = x; then
  4859. STRIP=":"
  4860. else
  4861. case $cross_compiling:$ac_tool_warned in
  4862. yes:)
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4865. ac_tool_warned=yes ;;
  4866. esac
  4867. STRIP=$ac_ct_STRIP
  4868. fi
  4869. else
  4870. STRIP="$ac_cv_prog_STRIP"
  4871. fi
  4872. test -z "$STRIP" && STRIP=:
  4873. if test -n "$ac_tool_prefix"; then
  4874. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4875. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$RANLIB"; then
  4882. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4891. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. RANLIB=$ac_cv_prog_RANLIB
  4901. if test -n "$RANLIB"; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4903. $as_echo "$RANLIB" >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. fi
  4909. if test -z "$ac_cv_prog_RANLIB"; then
  4910. ac_ct_RANLIB=$RANLIB
  4911. # Extract the first word of "ranlib", so it can be a program name with args.
  4912. set dummy ranlib; ac_word=$2
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4914. $as_echo_n "checking for $ac_word... " >&6; }
  4915. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -n "$ac_ct_RANLIB"; then
  4919. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4920. else
  4921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4922. for as_dir in $PATH
  4923. do
  4924. IFS=$as_save_IFS
  4925. test -z "$as_dir" && as_dir=.
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4928. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4930. break 2
  4931. fi
  4932. done
  4933. done
  4934. IFS=$as_save_IFS
  4935. fi
  4936. fi
  4937. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4938. if test -n "$ac_ct_RANLIB"; then
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4940. $as_echo "$ac_ct_RANLIB" >&6; }
  4941. else
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4943. $as_echo "no" >&6; }
  4944. fi
  4945. if test "x$ac_ct_RANLIB" = x; then
  4946. RANLIB=":"
  4947. else
  4948. case $cross_compiling:$ac_tool_warned in
  4949. yes:)
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4952. ac_tool_warned=yes ;;
  4953. esac
  4954. RANLIB=$ac_ct_RANLIB
  4955. fi
  4956. else
  4957. RANLIB="$ac_cv_prog_RANLIB"
  4958. fi
  4959. test -z "$RANLIB" && RANLIB=:
  4960. # Determine commands to create old-style static archives.
  4961. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4962. old_postinstall_cmds='chmod 644 $oldlib'
  4963. old_postuninstall_cmds=
  4964. if test -n "$RANLIB"; then
  4965. case $host_os in
  4966. openbsd*)
  4967. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4968. ;;
  4969. *)
  4970. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4971. ;;
  4972. esac
  4973. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4974. fi
  4975. case $host_os in
  4976. darwin*)
  4977. lock_old_archive_extraction=yes ;;
  4978. *)
  4979. lock_old_archive_extraction=no ;;
  4980. esac
  4981. # If no C compiler was specified, use CC.
  4982. LTCC=${LTCC-"$CC"}
  4983. # If no C compiler flags were specified, use CFLAGS.
  4984. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4985. # Allow CC to be a program name with arguments.
  4986. compiler=$CC
  4987. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4989. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4990. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4991. $as_echo_n "(cached) " >&6
  4992. else
  4993. # These are sane defaults that work on at least a few old systems.
  4994. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4995. # Character class describing NM global symbol codes.
  4996. symcode='[BCDEGRST]'
  4997. # Regexp to match symbols that can be accessed directly from C.
  4998. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4999. # Define system-specific variables.
  5000. case $host_os in
  5001. aix*)
  5002. symcode='[BCDT]'
  5003. ;;
  5004. cygwin* | mingw* | pw32* | cegcc*)
  5005. symcode='[ABCDGISTW]'
  5006. ;;
  5007. hpux*)
  5008. if test "$host_cpu" = ia64; then
  5009. symcode='[ABCDEGRST]'
  5010. fi
  5011. ;;
  5012. irix* | nonstopux*)
  5013. symcode='[BCDEGRST]'
  5014. ;;
  5015. osf*)
  5016. symcode='[BCDEGQRST]'
  5017. ;;
  5018. solaris*)
  5019. symcode='[BDRT]'
  5020. ;;
  5021. sco3.2v5*)
  5022. symcode='[DT]'
  5023. ;;
  5024. sysv4.2uw2*)
  5025. symcode='[DT]'
  5026. ;;
  5027. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5028. symcode='[ABDT]'
  5029. ;;
  5030. sysv4)
  5031. symcode='[DFNSTU]'
  5032. ;;
  5033. esac
  5034. # If we're using GNU nm, then use its standard symbol codes.
  5035. case `$NM -V 2>&1` in
  5036. *GNU* | *'with BFD'*)
  5037. symcode='[ABCDGIRSTW]' ;;
  5038. esac
  5039. # Transform an extracted symbol line into a proper C declaration.
  5040. # Some systems (esp. on ia64) link data and code symbols differently,
  5041. # so use this general approach.
  5042. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5043. # Transform an extracted symbol line into symbol name and symbol address
  5044. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5045. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5046. # Handle CRLF in mingw tool chain
  5047. opt_cr=
  5048. case $build_os in
  5049. mingw*)
  5050. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5051. ;;
  5052. esac
  5053. # Try without a prefix underscore, then with it.
  5054. for ac_symprfx in "" "_"; do
  5055. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5056. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5057. # Write the raw and C identifiers.
  5058. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5059. # Fake it for dumpbin and say T for any non-static function
  5060. # and D for any global variable.
  5061. # Also find C++ and __fastcall symbols from MSVC++,
  5062. # which start with @ or ?.
  5063. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5064. " {last_section=section; section=\$ 3};"\
  5065. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5066. " \$ 0!~/External *\|/{next};"\
  5067. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5068. " {if(hide[section]) next};"\
  5069. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5070. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5071. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5072. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5073. " ' prfx=^$ac_symprfx"
  5074. else
  5075. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5076. fi
  5077. # Check to see that the pipe works correctly.
  5078. pipe_works=no
  5079. rm -f conftest*
  5080. cat > conftest.$ac_ext <<_LT_EOF
  5081. #ifdef __cplusplus
  5082. extern "C" {
  5083. #endif
  5084. char nm_test_var;
  5085. void nm_test_func(void);
  5086. void nm_test_func(void){}
  5087. #ifdef __cplusplus
  5088. }
  5089. #endif
  5090. int main(){nm_test_var='a';nm_test_func();return(0);}
  5091. _LT_EOF
  5092. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5093. (eval $ac_compile) 2>&5
  5094. ac_status=$?
  5095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5096. test $ac_status = 0; }; then
  5097. # Now try to grab the symbols.
  5098. nlist=conftest.nm
  5099. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5100. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5101. ac_status=$?
  5102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5103. test $ac_status = 0; } && test -s "$nlist"; then
  5104. # Try sorting and uniquifying the output.
  5105. if sort "$nlist" | uniq > "$nlist"T; then
  5106. mv -f "$nlist"T "$nlist"
  5107. else
  5108. rm -f "$nlist"T
  5109. fi
  5110. # Make sure that we snagged all the symbols we need.
  5111. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5112. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5113. cat <<_LT_EOF > conftest.$ac_ext
  5114. #ifdef __cplusplus
  5115. extern "C" {
  5116. #endif
  5117. _LT_EOF
  5118. # Now generate the symbol file.
  5119. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5120. cat <<_LT_EOF >> conftest.$ac_ext
  5121. /* The mapping between symbol names and symbols. */
  5122. const struct {
  5123. const char *name;
  5124. void *address;
  5125. }
  5126. lt__PROGRAM__LTX_preloaded_symbols[] =
  5127. {
  5128. { "@PROGRAM@", (void *) 0 },
  5129. _LT_EOF
  5130. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5131. cat <<\_LT_EOF >> conftest.$ac_ext
  5132. {0, (void *) 0}
  5133. };
  5134. /* This works around a problem in FreeBSD linker */
  5135. #ifdef FREEBSD_WORKAROUND
  5136. static const void *lt_preloaded_setup() {
  5137. return lt__PROGRAM__LTX_preloaded_symbols;
  5138. }
  5139. #endif
  5140. #ifdef __cplusplus
  5141. }
  5142. #endif
  5143. _LT_EOF
  5144. # Now try linking the two files.
  5145. mv conftest.$ac_objext conftstm.$ac_objext
  5146. lt_save_LIBS="$LIBS"
  5147. lt_save_CFLAGS="$CFLAGS"
  5148. LIBS="conftstm.$ac_objext"
  5149. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5151. (eval $ac_link) 2>&5
  5152. ac_status=$?
  5153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5154. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5155. pipe_works=yes
  5156. fi
  5157. LIBS="$lt_save_LIBS"
  5158. CFLAGS="$lt_save_CFLAGS"
  5159. else
  5160. echo "cannot find nm_test_func in $nlist" >&5
  5161. fi
  5162. else
  5163. echo "cannot find nm_test_var in $nlist" >&5
  5164. fi
  5165. else
  5166. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5167. fi
  5168. else
  5169. echo "$progname: failed program was:" >&5
  5170. cat conftest.$ac_ext >&5
  5171. fi
  5172. rm -rf conftest* conftst*
  5173. # Do not use the global_symbol_pipe unless it works.
  5174. if test "$pipe_works" = yes; then
  5175. break
  5176. else
  5177. lt_cv_sys_global_symbol_pipe=
  5178. fi
  5179. done
  5180. fi
  5181. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5182. lt_cv_sys_global_symbol_to_cdecl=
  5183. fi
  5184. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5186. $as_echo "failed" >&6; }
  5187. else
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5189. $as_echo "ok" >&6; }
  5190. fi
  5191. # Check whether --enable-libtool-lock was given.
  5192. if test "${enable_libtool_lock+set}" = set; then :
  5193. enableval=$enable_libtool_lock;
  5194. fi
  5195. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5196. # Some flags need to be propagated to the compiler or linker for good
  5197. # libtool support.
  5198. case $host in
  5199. ia64-*-hpux*)
  5200. # Find out which ABI we are using.
  5201. echo 'int i;' > conftest.$ac_ext
  5202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5203. (eval $ac_compile) 2>&5
  5204. ac_status=$?
  5205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5206. test $ac_status = 0; }; then
  5207. case `/usr/bin/file conftest.$ac_objext` in
  5208. *ELF-32*)
  5209. HPUX_IA64_MODE="32"
  5210. ;;
  5211. *ELF-64*)
  5212. HPUX_IA64_MODE="64"
  5213. ;;
  5214. esac
  5215. fi
  5216. rm -rf conftest*
  5217. ;;
  5218. *-*-irix6*)
  5219. # Find out which ABI we are using.
  5220. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5221. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5222. (eval $ac_compile) 2>&5
  5223. ac_status=$?
  5224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5225. test $ac_status = 0; }; then
  5226. if test "$lt_cv_prog_gnu_ld" = yes; then
  5227. case `/usr/bin/file conftest.$ac_objext` in
  5228. *32-bit*)
  5229. LD="${LD-ld} -melf32bsmip"
  5230. ;;
  5231. *N32*)
  5232. LD="${LD-ld} -melf32bmipn32"
  5233. ;;
  5234. *64-bit*)
  5235. LD="${LD-ld} -melf64bmip"
  5236. ;;
  5237. esac
  5238. else
  5239. case `/usr/bin/file conftest.$ac_objext` in
  5240. *32-bit*)
  5241. LD="${LD-ld} -32"
  5242. ;;
  5243. *N32*)
  5244. LD="${LD-ld} -n32"
  5245. ;;
  5246. *64-bit*)
  5247. LD="${LD-ld} -64"
  5248. ;;
  5249. esac
  5250. fi
  5251. fi
  5252. rm -rf conftest*
  5253. ;;
  5254. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5255. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5256. # Find out which ABI we are using.
  5257. echo 'int i;' > conftest.$ac_ext
  5258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5259. (eval $ac_compile) 2>&5
  5260. ac_status=$?
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5262. test $ac_status = 0; }; then
  5263. case `/usr/bin/file conftest.o` in
  5264. *32-bit*)
  5265. case $host in
  5266. x86_64-*kfreebsd*-gnu)
  5267. LD="${LD-ld} -m elf_i386_fbsd"
  5268. ;;
  5269. x86_64-*linux*)
  5270. LD="${LD-ld} -m elf_i386"
  5271. ;;
  5272. ppc64-*linux*|powerpc64-*linux*)
  5273. LD="${LD-ld} -m elf32ppclinux"
  5274. ;;
  5275. s390x-*linux*)
  5276. LD="${LD-ld} -m elf_s390"
  5277. ;;
  5278. sparc64-*linux*)
  5279. LD="${LD-ld} -m elf32_sparc"
  5280. ;;
  5281. esac
  5282. ;;
  5283. *64-bit*)
  5284. case $host in
  5285. x86_64-*kfreebsd*-gnu)
  5286. LD="${LD-ld} -m elf_x86_64_fbsd"
  5287. ;;
  5288. x86_64-*linux*)
  5289. LD="${LD-ld} -m elf_x86_64"
  5290. ;;
  5291. ppc*-*linux*|powerpc*-*linux*)
  5292. LD="${LD-ld} -m elf64ppc"
  5293. ;;
  5294. s390*-*linux*|s390*-*tpf*)
  5295. LD="${LD-ld} -m elf64_s390"
  5296. ;;
  5297. sparc*-*linux*)
  5298. LD="${LD-ld} -m elf64_sparc"
  5299. ;;
  5300. esac
  5301. ;;
  5302. esac
  5303. fi
  5304. rm -rf conftest*
  5305. ;;
  5306. *-*-sco3.2v5*)
  5307. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5308. SAVE_CFLAGS="$CFLAGS"
  5309. CFLAGS="$CFLAGS -belf"
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5311. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5312. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. ac_ext=c
  5316. ac_cpp='$CPP $CPPFLAGS'
  5317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5321. /* end confdefs.h. */
  5322. int
  5323. main ()
  5324. {
  5325. ;
  5326. return 0;
  5327. }
  5328. _ACEOF
  5329. if ac_fn_c_try_link "$LINENO"; then :
  5330. lt_cv_cc_needs_belf=yes
  5331. else
  5332. lt_cv_cc_needs_belf=no
  5333. fi
  5334. rm -f core conftest.err conftest.$ac_objext \
  5335. conftest$ac_exeext conftest.$ac_ext
  5336. ac_ext=c
  5337. ac_cpp='$CPP $CPPFLAGS'
  5338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5343. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5344. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5345. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5346. CFLAGS="$SAVE_CFLAGS"
  5347. fi
  5348. ;;
  5349. sparc*-*solaris*)
  5350. # Find out which ABI we are using.
  5351. echo 'int i;' > conftest.$ac_ext
  5352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5356. test $ac_status = 0; }; then
  5357. case `/usr/bin/file conftest.o` in
  5358. *64-bit*)
  5359. case $lt_cv_prog_gnu_ld in
  5360. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5361. *)
  5362. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5363. LD="${LD-ld} -64"
  5364. fi
  5365. ;;
  5366. esac
  5367. ;;
  5368. esac
  5369. fi
  5370. rm -rf conftest*
  5371. ;;
  5372. esac
  5373. need_locks="$enable_libtool_lock"
  5374. case $host_os in
  5375. rhapsody* | darwin*)
  5376. if test -n "$ac_tool_prefix"; then
  5377. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5378. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5380. $as_echo_n "checking for $ac_word... " >&6; }
  5381. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. if test -n "$DSYMUTIL"; then
  5385. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5386. else
  5387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5388. for as_dir in $PATH
  5389. do
  5390. IFS=$as_save_IFS
  5391. test -z "$as_dir" && as_dir=.
  5392. for ac_exec_ext in '' $ac_executable_extensions; do
  5393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5394. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5396. break 2
  5397. fi
  5398. done
  5399. done
  5400. IFS=$as_save_IFS
  5401. fi
  5402. fi
  5403. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5404. if test -n "$DSYMUTIL"; then
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5406. $as_echo "$DSYMUTIL" >&6; }
  5407. else
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5409. $as_echo "no" >&6; }
  5410. fi
  5411. fi
  5412. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5413. ac_ct_DSYMUTIL=$DSYMUTIL
  5414. # Extract the first word of "dsymutil", so it can be a program name with args.
  5415. set dummy dsymutil; ac_word=$2
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5417. $as_echo_n "checking for $ac_word... " >&6; }
  5418. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. if test -n "$ac_ct_DSYMUTIL"; then
  5422. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5423. else
  5424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5425. for as_dir in $PATH
  5426. do
  5427. IFS=$as_save_IFS
  5428. test -z "$as_dir" && as_dir=.
  5429. for ac_exec_ext in '' $ac_executable_extensions; do
  5430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5431. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5433. break 2
  5434. fi
  5435. done
  5436. done
  5437. IFS=$as_save_IFS
  5438. fi
  5439. fi
  5440. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5441. if test -n "$ac_ct_DSYMUTIL"; then
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5443. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5444. else
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5446. $as_echo "no" >&6; }
  5447. fi
  5448. if test "x$ac_ct_DSYMUTIL" = x; then
  5449. DSYMUTIL=":"
  5450. else
  5451. case $cross_compiling:$ac_tool_warned in
  5452. yes:)
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5455. ac_tool_warned=yes ;;
  5456. esac
  5457. DSYMUTIL=$ac_ct_DSYMUTIL
  5458. fi
  5459. else
  5460. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5461. fi
  5462. if test -n "$ac_tool_prefix"; then
  5463. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5464. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5466. $as_echo_n "checking for $ac_word... " >&6; }
  5467. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. if test -n "$NMEDIT"; then
  5471. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5472. else
  5473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5474. for as_dir in $PATH
  5475. do
  5476. IFS=$as_save_IFS
  5477. test -z "$as_dir" && as_dir=.
  5478. for ac_exec_ext in '' $ac_executable_extensions; do
  5479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5480. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5482. break 2
  5483. fi
  5484. done
  5485. done
  5486. IFS=$as_save_IFS
  5487. fi
  5488. fi
  5489. NMEDIT=$ac_cv_prog_NMEDIT
  5490. if test -n "$NMEDIT"; then
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5492. $as_echo "$NMEDIT" >&6; }
  5493. else
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5495. $as_echo "no" >&6; }
  5496. fi
  5497. fi
  5498. if test -z "$ac_cv_prog_NMEDIT"; then
  5499. ac_ct_NMEDIT=$NMEDIT
  5500. # Extract the first word of "nmedit", so it can be a program name with args.
  5501. set dummy nmedit; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$ac_ct_NMEDIT"; then
  5508. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5517. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5527. if test -n "$ac_ct_NMEDIT"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5529. $as_echo "$ac_ct_NMEDIT" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. if test "x$ac_ct_NMEDIT" = x; then
  5535. NMEDIT=":"
  5536. else
  5537. case $cross_compiling:$ac_tool_warned in
  5538. yes:)
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5541. ac_tool_warned=yes ;;
  5542. esac
  5543. NMEDIT=$ac_ct_NMEDIT
  5544. fi
  5545. else
  5546. NMEDIT="$ac_cv_prog_NMEDIT"
  5547. fi
  5548. if test -n "$ac_tool_prefix"; then
  5549. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5550. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$LIPO"; then
  5557. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5566. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. LIPO=$ac_cv_prog_LIPO
  5576. if test -n "$LIPO"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5578. $as_echo "$LIPO" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. fi
  5584. if test -z "$ac_cv_prog_LIPO"; then
  5585. ac_ct_LIPO=$LIPO
  5586. # Extract the first word of "lipo", so it can be a program name with args.
  5587. set dummy lipo; ac_word=$2
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5589. $as_echo_n "checking for $ac_word... " >&6; }
  5590. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. if test -n "$ac_ct_LIPO"; then
  5594. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5595. else
  5596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5597. for as_dir in $PATH
  5598. do
  5599. IFS=$as_save_IFS
  5600. test -z "$as_dir" && as_dir=.
  5601. for ac_exec_ext in '' $ac_executable_extensions; do
  5602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5603. ac_cv_prog_ac_ct_LIPO="lipo"
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5605. break 2
  5606. fi
  5607. done
  5608. done
  5609. IFS=$as_save_IFS
  5610. fi
  5611. fi
  5612. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5613. if test -n "$ac_ct_LIPO"; then
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5615. $as_echo "$ac_ct_LIPO" >&6; }
  5616. else
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5618. $as_echo "no" >&6; }
  5619. fi
  5620. if test "x$ac_ct_LIPO" = x; then
  5621. LIPO=":"
  5622. else
  5623. case $cross_compiling:$ac_tool_warned in
  5624. yes:)
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5627. ac_tool_warned=yes ;;
  5628. esac
  5629. LIPO=$ac_ct_LIPO
  5630. fi
  5631. else
  5632. LIPO="$ac_cv_prog_LIPO"
  5633. fi
  5634. if test -n "$ac_tool_prefix"; then
  5635. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5636. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5638. $as_echo_n "checking for $ac_word... " >&6; }
  5639. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. if test -n "$OTOOL"; then
  5643. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5652. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. IFS=$as_save_IFS
  5659. fi
  5660. fi
  5661. OTOOL=$ac_cv_prog_OTOOL
  5662. if test -n "$OTOOL"; then
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5664. $as_echo "$OTOOL" >&6; }
  5665. else
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5667. $as_echo "no" >&6; }
  5668. fi
  5669. fi
  5670. if test -z "$ac_cv_prog_OTOOL"; then
  5671. ac_ct_OTOOL=$OTOOL
  5672. # Extract the first word of "otool", so it can be a program name with args.
  5673. set dummy otool; ac_word=$2
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5675. $as_echo_n "checking for $ac_word... " >&6; }
  5676. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5677. $as_echo_n "(cached) " >&6
  5678. else
  5679. if test -n "$ac_ct_OTOOL"; then
  5680. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5681. else
  5682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5683. for as_dir in $PATH
  5684. do
  5685. IFS=$as_save_IFS
  5686. test -z "$as_dir" && as_dir=.
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5689. ac_cv_prog_ac_ct_OTOOL="otool"
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5699. if test -n "$ac_ct_OTOOL"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5701. $as_echo "$ac_ct_OTOOL" >&6; }
  5702. else
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. fi
  5706. if test "x$ac_ct_OTOOL" = x; then
  5707. OTOOL=":"
  5708. else
  5709. case $cross_compiling:$ac_tool_warned in
  5710. yes:)
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5713. ac_tool_warned=yes ;;
  5714. esac
  5715. OTOOL=$ac_ct_OTOOL
  5716. fi
  5717. else
  5718. OTOOL="$ac_cv_prog_OTOOL"
  5719. fi
  5720. if test -n "$ac_tool_prefix"; then
  5721. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5722. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5724. $as_echo_n "checking for $ac_word... " >&6; }
  5725. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5726. $as_echo_n "(cached) " >&6
  5727. else
  5728. if test -n "$OTOOL64"; then
  5729. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5730. else
  5731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5732. for as_dir in $PATH
  5733. do
  5734. IFS=$as_save_IFS
  5735. test -z "$as_dir" && as_dir=.
  5736. for ac_exec_ext in '' $ac_executable_extensions; do
  5737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5738. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5740. break 2
  5741. fi
  5742. done
  5743. done
  5744. IFS=$as_save_IFS
  5745. fi
  5746. fi
  5747. OTOOL64=$ac_cv_prog_OTOOL64
  5748. if test -n "$OTOOL64"; then
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5750. $as_echo "$OTOOL64" >&6; }
  5751. else
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. fi
  5755. fi
  5756. if test -z "$ac_cv_prog_OTOOL64"; then
  5757. ac_ct_OTOOL64=$OTOOL64
  5758. # Extract the first word of "otool64", so it can be a program name with args.
  5759. set dummy otool64; ac_word=$2
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5761. $as_echo_n "checking for $ac_word... " >&6; }
  5762. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. if test -n "$ac_ct_OTOOL64"; then
  5766. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. test -z "$as_dir" && as_dir=.
  5773. for ac_exec_ext in '' $ac_executable_extensions; do
  5774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5775. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5777. break 2
  5778. fi
  5779. done
  5780. done
  5781. IFS=$as_save_IFS
  5782. fi
  5783. fi
  5784. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5785. if test -n "$ac_ct_OTOOL64"; then
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5787. $as_echo "$ac_ct_OTOOL64" >&6; }
  5788. else
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5790. $as_echo "no" >&6; }
  5791. fi
  5792. if test "x$ac_ct_OTOOL64" = x; then
  5793. OTOOL64=":"
  5794. else
  5795. case $cross_compiling:$ac_tool_warned in
  5796. yes:)
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5799. ac_tool_warned=yes ;;
  5800. esac
  5801. OTOOL64=$ac_ct_OTOOL64
  5802. fi
  5803. else
  5804. OTOOL64="$ac_cv_prog_OTOOL64"
  5805. fi
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5807. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5808. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. lt_cv_apple_cc_single_mod=no
  5812. if test -z "${LT_MULTI_MODULE}"; then
  5813. # By default we will add the -single_module flag. You can override
  5814. # by either setting the environment variable LT_MULTI_MODULE
  5815. # non-empty at configure time, or by adding -multi_module to the
  5816. # link flags.
  5817. rm -rf libconftest.dylib*
  5818. echo "int foo(void){return 1;}" > conftest.c
  5819. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5820. -dynamiclib -Wl,-single_module conftest.c" >&5
  5821. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5822. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5823. _lt_result=$?
  5824. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5825. lt_cv_apple_cc_single_mod=yes
  5826. else
  5827. cat conftest.err >&5
  5828. fi
  5829. rm -rf libconftest.dylib*
  5830. rm -f conftest.*
  5831. fi
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5834. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5836. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5837. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. lt_cv_ld_exported_symbols_list=no
  5841. save_LDFLAGS=$LDFLAGS
  5842. echo "_main" > conftest.sym
  5843. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5845. /* end confdefs.h. */
  5846. int
  5847. main ()
  5848. {
  5849. ;
  5850. return 0;
  5851. }
  5852. _ACEOF
  5853. if ac_fn_c_try_link "$LINENO"; then :
  5854. lt_cv_ld_exported_symbols_list=yes
  5855. else
  5856. lt_cv_ld_exported_symbols_list=no
  5857. fi
  5858. rm -f core conftest.err conftest.$ac_objext \
  5859. conftest$ac_exeext conftest.$ac_ext
  5860. LDFLAGS="$save_LDFLAGS"
  5861. fi
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5863. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5865. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5866. if test "${lt_cv_ld_force_load+set}" = set; then :
  5867. $as_echo_n "(cached) " >&6
  5868. else
  5869. lt_cv_ld_force_load=no
  5870. cat > conftest.c << _LT_EOF
  5871. int forced_loaded() { return 2;}
  5872. _LT_EOF
  5873. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5874. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5875. echo "$AR cru libconftest.a conftest.o" >&5
  5876. $AR cru libconftest.a conftest.o 2>&5
  5877. echo "$RANLIB libconftest.a" >&5
  5878. $RANLIB libconftest.a 2>&5
  5879. cat > conftest.c << _LT_EOF
  5880. int main() { return 0;}
  5881. _LT_EOF
  5882. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5883. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5884. _lt_result=$?
  5885. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  5886. lt_cv_ld_force_load=yes
  5887. else
  5888. cat conftest.err >&5
  5889. fi
  5890. rm -f conftest.err libconftest.a conftest conftest.c
  5891. rm -rf conftest.dSYM
  5892. fi
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5894. $as_echo "$lt_cv_ld_force_load" >&6; }
  5895. case $host_os in
  5896. rhapsody* | darwin1.[012])
  5897. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5898. darwin1.*)
  5899. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5900. darwin*) # darwin 5.x on
  5901. # if running on 10.5 or later, the deployment target defaults
  5902. # to the OS version, if on x86, and 10.4, the deployment
  5903. # target defaults to 10.4. Don't you love it?
  5904. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5905. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5906. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5907. 10.[012]*)
  5908. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5909. 10.*)
  5910. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5911. esac
  5912. ;;
  5913. esac
  5914. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5915. _lt_dar_single_mod='$single_module'
  5916. fi
  5917. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5918. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5919. else
  5920. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5921. fi
  5922. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5923. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5924. else
  5925. _lt_dsymutil=
  5926. fi
  5927. ;;
  5928. esac
  5929. ac_ext=c
  5930. ac_cpp='$CPP $CPPFLAGS'
  5931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5935. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5936. # On Suns, sometimes $CPP names a directory.
  5937. if test -n "$CPP" && test -d "$CPP"; then
  5938. CPP=
  5939. fi
  5940. if test -z "$CPP"; then
  5941. if test "${ac_cv_prog_CPP+set}" = set; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. # Double quotes because CPP needs to be expanded
  5945. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5946. do
  5947. ac_preproc_ok=false
  5948. for ac_c_preproc_warn_flag in '' yes
  5949. do
  5950. # Use a header file that comes with gcc, so configuring glibc
  5951. # with a fresh cross-compiler works.
  5952. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5953. # <limits.h> exists even on freestanding compilers.
  5954. # On the NeXT, cc -E runs the code through the compiler's parser,
  5955. # not just through cpp. "Syntax error" is here to catch this case.
  5956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5957. /* end confdefs.h. */
  5958. #ifdef __STDC__
  5959. # include <limits.h>
  5960. #else
  5961. # include <assert.h>
  5962. #endif
  5963. Syntax error
  5964. _ACEOF
  5965. if ac_fn_c_try_cpp "$LINENO"; then :
  5966. else
  5967. # Broken: fails on valid input.
  5968. continue
  5969. fi
  5970. rm -f conftest.err conftest.$ac_ext
  5971. # OK, works on sane cases. Now check whether nonexistent headers
  5972. # can be detected and how.
  5973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5974. /* end confdefs.h. */
  5975. #include <ac_nonexistent.h>
  5976. _ACEOF
  5977. if ac_fn_c_try_cpp "$LINENO"; then :
  5978. # Broken: success on invalid input.
  5979. continue
  5980. else
  5981. # Passes both tests.
  5982. ac_preproc_ok=:
  5983. break
  5984. fi
  5985. rm -f conftest.err conftest.$ac_ext
  5986. done
  5987. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5988. rm -f conftest.err conftest.$ac_ext
  5989. if $ac_preproc_ok; then :
  5990. break
  5991. fi
  5992. done
  5993. ac_cv_prog_CPP=$CPP
  5994. fi
  5995. CPP=$ac_cv_prog_CPP
  5996. else
  5997. ac_cv_prog_CPP=$CPP
  5998. fi
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6000. $as_echo "$CPP" >&6; }
  6001. ac_preproc_ok=false
  6002. for ac_c_preproc_warn_flag in '' yes
  6003. do
  6004. # Use a header file that comes with gcc, so configuring glibc
  6005. # with a fresh cross-compiler works.
  6006. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6007. # <limits.h> exists even on freestanding compilers.
  6008. # On the NeXT, cc -E runs the code through the compiler's parser,
  6009. # not just through cpp. "Syntax error" is here to catch this case.
  6010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end confdefs.h. */
  6012. #ifdef __STDC__
  6013. # include <limits.h>
  6014. #else
  6015. # include <assert.h>
  6016. #endif
  6017. Syntax error
  6018. _ACEOF
  6019. if ac_fn_c_try_cpp "$LINENO"; then :
  6020. else
  6021. # Broken: fails on valid input.
  6022. continue
  6023. fi
  6024. rm -f conftest.err conftest.$ac_ext
  6025. # OK, works on sane cases. Now check whether nonexistent headers
  6026. # can be detected and how.
  6027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6028. /* end confdefs.h. */
  6029. #include <ac_nonexistent.h>
  6030. _ACEOF
  6031. if ac_fn_c_try_cpp "$LINENO"; then :
  6032. # Broken: success on invalid input.
  6033. continue
  6034. else
  6035. # Passes both tests.
  6036. ac_preproc_ok=:
  6037. break
  6038. fi
  6039. rm -f conftest.err conftest.$ac_ext
  6040. done
  6041. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6042. rm -f conftest.err conftest.$ac_ext
  6043. if $ac_preproc_ok; then :
  6044. else
  6045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6047. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6048. See \`config.log' for more details" "$LINENO" 5; }
  6049. fi
  6050. ac_ext=c
  6051. ac_cpp='$CPP $CPPFLAGS'
  6052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6056. $as_echo_n "checking for ANSI C header files... " >&6; }
  6057. if test "${ac_cv_header_stdc+set}" = set; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6061. /* end confdefs.h. */
  6062. #include <stdlib.h>
  6063. #include <stdarg.h>
  6064. #include <string.h>
  6065. #include <float.h>
  6066. int
  6067. main ()
  6068. {
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_compile "$LINENO"; then :
  6074. ac_cv_header_stdc=yes
  6075. else
  6076. ac_cv_header_stdc=no
  6077. fi
  6078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6079. if test $ac_cv_header_stdc = yes; then
  6080. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. #include <string.h>
  6084. _ACEOF
  6085. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6086. $EGREP "memchr" >/dev/null 2>&1; then :
  6087. else
  6088. ac_cv_header_stdc=no
  6089. fi
  6090. rm -f conftest*
  6091. fi
  6092. if test $ac_cv_header_stdc = yes; then
  6093. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6095. /* end confdefs.h. */
  6096. #include <stdlib.h>
  6097. _ACEOF
  6098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6099. $EGREP "free" >/dev/null 2>&1; then :
  6100. else
  6101. ac_cv_header_stdc=no
  6102. fi
  6103. rm -f conftest*
  6104. fi
  6105. if test $ac_cv_header_stdc = yes; then
  6106. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6107. if test "$cross_compiling" = yes; then :
  6108. :
  6109. else
  6110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6111. /* end confdefs.h. */
  6112. #include <ctype.h>
  6113. #include <stdlib.h>
  6114. #if ((' ' & 0x0FF) == 0x020)
  6115. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6116. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6117. #else
  6118. # define ISLOWER(c) \
  6119. (('a' <= (c) && (c) <= 'i') \
  6120. || ('j' <= (c) && (c) <= 'r') \
  6121. || ('s' <= (c) && (c) <= 'z'))
  6122. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6123. #endif
  6124. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6125. int
  6126. main ()
  6127. {
  6128. int i;
  6129. for (i = 0; i < 256; i++)
  6130. if (XOR (islower (i), ISLOWER (i))
  6131. || toupper (i) != TOUPPER (i))
  6132. return 2;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. if ac_fn_c_try_run "$LINENO"; then :
  6137. else
  6138. ac_cv_header_stdc=no
  6139. fi
  6140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6142. fi
  6143. fi
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6146. $as_echo "$ac_cv_header_stdc" >&6; }
  6147. if test $ac_cv_header_stdc = yes; then
  6148. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6149. fi
  6150. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6151. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6152. inttypes.h stdint.h unistd.h
  6153. do :
  6154. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6155. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6156. "
  6157. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6158. cat >>confdefs.h <<_ACEOF
  6159. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6160. _ACEOF
  6161. fi
  6162. done
  6163. for ac_header in dlfcn.h
  6164. do :
  6165. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6166. "
  6167. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6168. cat >>confdefs.h <<_ACEOF
  6169. #define HAVE_DLFCN_H 1
  6170. _ACEOF
  6171. fi
  6172. done
  6173. # Set options
  6174. enable_dlopen=no
  6175. enable_win32_dll=no
  6176. # Check whether --enable-shared was given.
  6177. if test "${enable_shared+set}" = set; then :
  6178. enableval=$enable_shared; p=${PACKAGE-default}
  6179. case $enableval in
  6180. yes) enable_shared=yes ;;
  6181. no) enable_shared=no ;;
  6182. *)
  6183. enable_shared=no
  6184. # Look at the argument we got. We use all the common list separators.
  6185. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6186. for pkg in $enableval; do
  6187. IFS="$lt_save_ifs"
  6188. if test "X$pkg" = "X$p"; then
  6189. enable_shared=yes
  6190. fi
  6191. done
  6192. IFS="$lt_save_ifs"
  6193. ;;
  6194. esac
  6195. else
  6196. enable_shared=yes
  6197. fi
  6198. # Check whether --enable-static was given.
  6199. if test "${enable_static+set}" = set; then :
  6200. enableval=$enable_static; p=${PACKAGE-default}
  6201. case $enableval in
  6202. yes) enable_static=yes ;;
  6203. no) enable_static=no ;;
  6204. *)
  6205. enable_static=no
  6206. # Look at the argument we got. We use all the common list separators.
  6207. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6208. for pkg in $enableval; do
  6209. IFS="$lt_save_ifs"
  6210. if test "X$pkg" = "X$p"; then
  6211. enable_static=yes
  6212. fi
  6213. done
  6214. IFS="$lt_save_ifs"
  6215. ;;
  6216. esac
  6217. else
  6218. enable_static=yes
  6219. fi
  6220. # Check whether --with-pic was given.
  6221. if test "${with_pic+set}" = set; then :
  6222. withval=$with_pic; pic_mode="$withval"
  6223. else
  6224. pic_mode=default
  6225. fi
  6226. test -z "$pic_mode" && pic_mode=default
  6227. # Check whether --enable-fast-install was given.
  6228. if test "${enable_fast_install+set}" = set; then :
  6229. enableval=$enable_fast_install; p=${PACKAGE-default}
  6230. case $enableval in
  6231. yes) enable_fast_install=yes ;;
  6232. no) enable_fast_install=no ;;
  6233. *)
  6234. enable_fast_install=no
  6235. # Look at the argument we got. We use all the common list separators.
  6236. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6237. for pkg in $enableval; do
  6238. IFS="$lt_save_ifs"
  6239. if test "X$pkg" = "X$p"; then
  6240. enable_fast_install=yes
  6241. fi
  6242. done
  6243. IFS="$lt_save_ifs"
  6244. ;;
  6245. esac
  6246. else
  6247. enable_fast_install=yes
  6248. fi
  6249. # This can be used to rebuild libtool when needed
  6250. LIBTOOL_DEPS="$ltmain"
  6251. # Always use our own libtool.
  6252. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6253. test -z "$LN_S" && LN_S="ln -s"
  6254. if test -n "${ZSH_VERSION+set}" ; then
  6255. setopt NO_GLOB_SUBST
  6256. fi
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6258. $as_echo_n "checking for objdir... " >&6; }
  6259. if test "${lt_cv_objdir+set}" = set; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. rm -f .libs 2>/dev/null
  6263. mkdir .libs 2>/dev/null
  6264. if test -d .libs; then
  6265. lt_cv_objdir=.libs
  6266. else
  6267. # MS-DOS does not allow filenames that begin with a dot.
  6268. lt_cv_objdir=_libs
  6269. fi
  6270. rmdir .libs 2>/dev/null
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6273. $as_echo "$lt_cv_objdir" >&6; }
  6274. objdir=$lt_cv_objdir
  6275. cat >>confdefs.h <<_ACEOF
  6276. #define LT_OBJDIR "$lt_cv_objdir/"
  6277. _ACEOF
  6278. case $host_os in
  6279. aix3*)
  6280. # AIX sometimes has problems with the GCC collect2 program. For some
  6281. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6282. # vanish in a puff of smoke.
  6283. if test "X${COLLECT_NAMES+set}" != Xset; then
  6284. COLLECT_NAMES=
  6285. export COLLECT_NAMES
  6286. fi
  6287. ;;
  6288. esac
  6289. # Global variables:
  6290. ofile=libtool
  6291. can_build_shared=yes
  6292. # All known linkers require a `.a' archive for static linking (except MSVC,
  6293. # which needs '.lib').
  6294. libext=a
  6295. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6296. old_CC="$CC"
  6297. old_CFLAGS="$CFLAGS"
  6298. # Set sane defaults for various variables
  6299. test -z "$CC" && CC=cc
  6300. test -z "$LTCC" && LTCC=$CC
  6301. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6302. test -z "$LD" && LD=ld
  6303. test -z "$ac_objext" && ac_objext=o
  6304. for cc_temp in $compiler""; do
  6305. case $cc_temp in
  6306. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6307. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6308. \-*) ;;
  6309. *) break;;
  6310. esac
  6311. done
  6312. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6313. # Only perform the check for file, if the check method requires it
  6314. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6315. case $deplibs_check_method in
  6316. file_magic*)
  6317. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6319. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6320. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. case $MAGIC_CMD in
  6324. [\\/*] | ?:[\\/]*)
  6325. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6326. ;;
  6327. *)
  6328. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6329. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6330. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6331. for ac_dir in $ac_dummy; do
  6332. IFS="$lt_save_ifs"
  6333. test -z "$ac_dir" && ac_dir=.
  6334. if test -f $ac_dir/${ac_tool_prefix}file; then
  6335. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6336. if test -n "$file_magic_test_file"; then
  6337. case $deplibs_check_method in
  6338. "file_magic "*)
  6339. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6340. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6341. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6342. $EGREP "$file_magic_regex" > /dev/null; then
  6343. :
  6344. else
  6345. cat <<_LT_EOF 1>&2
  6346. *** Warning: the command libtool uses to detect shared libraries,
  6347. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6348. *** The result is that libtool may fail to recognize shared libraries
  6349. *** as such. This will affect the creation of libtool libraries that
  6350. *** depend on shared libraries, but programs linked with such libtool
  6351. *** libraries will work regardless of this problem. Nevertheless, you
  6352. *** may want to report the problem to your system manager and/or to
  6353. *** bug-libtool@gnu.org
  6354. _LT_EOF
  6355. fi ;;
  6356. esac
  6357. fi
  6358. break
  6359. fi
  6360. done
  6361. IFS="$lt_save_ifs"
  6362. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6363. ;;
  6364. esac
  6365. fi
  6366. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6367. if test -n "$MAGIC_CMD"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6369. $as_echo "$MAGIC_CMD" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6375. if test -n "$ac_tool_prefix"; then
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6377. $as_echo_n "checking for file... " >&6; }
  6378. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. case $MAGIC_CMD in
  6382. [\\/*] | ?:[\\/]*)
  6383. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6384. ;;
  6385. *)
  6386. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6387. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6388. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6389. for ac_dir in $ac_dummy; do
  6390. IFS="$lt_save_ifs"
  6391. test -z "$ac_dir" && ac_dir=.
  6392. if test -f $ac_dir/file; then
  6393. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6394. if test -n "$file_magic_test_file"; then
  6395. case $deplibs_check_method in
  6396. "file_magic "*)
  6397. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6398. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6399. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6400. $EGREP "$file_magic_regex" > /dev/null; then
  6401. :
  6402. else
  6403. cat <<_LT_EOF 1>&2
  6404. *** Warning: the command libtool uses to detect shared libraries,
  6405. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6406. *** The result is that libtool may fail to recognize shared libraries
  6407. *** as such. This will affect the creation of libtool libraries that
  6408. *** depend on shared libraries, but programs linked with such libtool
  6409. *** libraries will work regardless of this problem. Nevertheless, you
  6410. *** may want to report the problem to your system manager and/or to
  6411. *** bug-libtool@gnu.org
  6412. _LT_EOF
  6413. fi ;;
  6414. esac
  6415. fi
  6416. break
  6417. fi
  6418. done
  6419. IFS="$lt_save_ifs"
  6420. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6421. ;;
  6422. esac
  6423. fi
  6424. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6425. if test -n "$MAGIC_CMD"; then
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6427. $as_echo "$MAGIC_CMD" >&6; }
  6428. else
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6430. $as_echo "no" >&6; }
  6431. fi
  6432. else
  6433. MAGIC_CMD=:
  6434. fi
  6435. fi
  6436. fi
  6437. ;;
  6438. esac
  6439. # Use C for the default configuration in the libtool script
  6440. lt_save_CC="$CC"
  6441. ac_ext=c
  6442. ac_cpp='$CPP $CPPFLAGS'
  6443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6446. # Source file extension for C test sources.
  6447. ac_ext=c
  6448. # Object file extension for compiled C test sources.
  6449. objext=o
  6450. objext=$objext
  6451. # Code to be used in simple compile tests
  6452. lt_simple_compile_test_code="int some_variable = 0;"
  6453. # Code to be used in simple link tests
  6454. lt_simple_link_test_code='int main(){return(0);}'
  6455. # If no C compiler was specified, use CC.
  6456. LTCC=${LTCC-"$CC"}
  6457. # If no C compiler flags were specified, use CFLAGS.
  6458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6459. # Allow CC to be a program name with arguments.
  6460. compiler=$CC
  6461. # Save the default compiler, since it gets overwritten when the other
  6462. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6463. compiler_DEFAULT=$CC
  6464. # save warnings/boilerplate of simple test code
  6465. ac_outfile=conftest.$ac_objext
  6466. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6467. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6468. _lt_compiler_boilerplate=`cat conftest.err`
  6469. $RM conftest*
  6470. ac_outfile=conftest.$ac_objext
  6471. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6472. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6473. _lt_linker_boilerplate=`cat conftest.err`
  6474. $RM -r conftest*
  6475. if test -n "$compiler"; then
  6476. lt_prog_compiler_no_builtin_flag=
  6477. if test "$GCC" = yes; then
  6478. case $cc_basename in
  6479. nvcc*)
  6480. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6481. *)
  6482. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6483. esac
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6485. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6486. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. lt_cv_prog_compiler_rtti_exceptions=no
  6490. ac_outfile=conftest.$ac_objext
  6491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6492. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6493. # Insert the option either (1) after the last *FLAGS variable, or
  6494. # (2) before a word containing "conftest.", or (3) at the end.
  6495. # Note that $ac_compile itself does not contain backslashes and begins
  6496. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6497. # The option is referenced via a variable to avoid confusing sed.
  6498. lt_compile=`echo "$ac_compile" | $SED \
  6499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6501. -e 's:$: $lt_compiler_flag:'`
  6502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6503. (eval "$lt_compile" 2>conftest.err)
  6504. ac_status=$?
  6505. cat conftest.err >&5
  6506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6507. if (exit $ac_status) && test -s "$ac_outfile"; then
  6508. # The compiler can only warn and ignore the option if not recognized
  6509. # So say no if there are warnings other than the usual output.
  6510. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6511. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6512. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6513. lt_cv_prog_compiler_rtti_exceptions=yes
  6514. fi
  6515. fi
  6516. $RM conftest*
  6517. fi
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6519. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6520. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6521. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6522. else
  6523. :
  6524. fi
  6525. fi
  6526. lt_prog_compiler_wl=
  6527. lt_prog_compiler_pic=
  6528. lt_prog_compiler_static=
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6530. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6531. if test "$GCC" = yes; then
  6532. lt_prog_compiler_wl='-Wl,'
  6533. lt_prog_compiler_static='-static'
  6534. case $host_os in
  6535. aix*)
  6536. # All AIX code is PIC.
  6537. if test "$host_cpu" = ia64; then
  6538. # AIX 5 now supports IA64 processor
  6539. lt_prog_compiler_static='-Bstatic'
  6540. fi
  6541. ;;
  6542. amigaos*)
  6543. case $host_cpu in
  6544. powerpc)
  6545. # see comment about AmigaOS4 .so support
  6546. lt_prog_compiler_pic='-fPIC'
  6547. ;;
  6548. m68k)
  6549. # FIXME: we need at least 68020 code to build shared libraries, but
  6550. # adding the `-m68020' flag to GCC prevents building anything better,
  6551. # like `-m68040'.
  6552. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6553. ;;
  6554. esac
  6555. ;;
  6556. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6557. # PIC is the default for these OSes.
  6558. ;;
  6559. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6560. # This hack is so that the source file can tell whether it is being
  6561. # built for inclusion in a dll (and should export symbols for example).
  6562. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6563. # (--disable-auto-import) libraries
  6564. lt_prog_compiler_pic='-DDLL_EXPORT'
  6565. ;;
  6566. darwin* | rhapsody*)
  6567. # PIC is the default on this platform
  6568. # Common symbols not allowed in MH_DYLIB files
  6569. lt_prog_compiler_pic='-fno-common'
  6570. ;;
  6571. haiku*)
  6572. # PIC is the default for Haiku.
  6573. # The "-static" flag exists, but is broken.
  6574. lt_prog_compiler_static=
  6575. ;;
  6576. hpux*)
  6577. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6578. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6579. # sets the default TLS model and affects inlining.
  6580. case $host_cpu in
  6581. hppa*64*)
  6582. # +Z the default
  6583. ;;
  6584. *)
  6585. lt_prog_compiler_pic='-fPIC'
  6586. ;;
  6587. esac
  6588. ;;
  6589. interix[3-9]*)
  6590. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6591. # Instead, we relocate shared libraries at runtime.
  6592. ;;
  6593. msdosdjgpp*)
  6594. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6595. # on systems that don't support them.
  6596. lt_prog_compiler_can_build_shared=no
  6597. enable_shared=no
  6598. ;;
  6599. *nto* | *qnx*)
  6600. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6601. # it will coredump.
  6602. lt_prog_compiler_pic='-fPIC -shared'
  6603. ;;
  6604. sysv4*MP*)
  6605. if test -d /usr/nec; then
  6606. lt_prog_compiler_pic=-Kconform_pic
  6607. fi
  6608. ;;
  6609. *)
  6610. lt_prog_compiler_pic='-fPIC'
  6611. ;;
  6612. esac
  6613. case $cc_basename in
  6614. nvcc*) # Cuda Compiler Driver 2.2
  6615. lt_prog_compiler_wl='-Xlinker '
  6616. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6617. ;;
  6618. esac
  6619. else
  6620. # PORTME Check for flag to pass linker flags through the system compiler.
  6621. case $host_os in
  6622. aix*)
  6623. lt_prog_compiler_wl='-Wl,'
  6624. if test "$host_cpu" = ia64; then
  6625. # AIX 5 now supports IA64 processor
  6626. lt_prog_compiler_static='-Bstatic'
  6627. else
  6628. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6629. fi
  6630. ;;
  6631. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6632. # This hack is so that the source file can tell whether it is being
  6633. # built for inclusion in a dll (and should export symbols for example).
  6634. lt_prog_compiler_pic='-DDLL_EXPORT'
  6635. ;;
  6636. hpux9* | hpux10* | hpux11*)
  6637. lt_prog_compiler_wl='-Wl,'
  6638. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6639. # not for PA HP-UX.
  6640. case $host_cpu in
  6641. hppa*64*|ia64*)
  6642. # +Z the default
  6643. ;;
  6644. *)
  6645. lt_prog_compiler_pic='+Z'
  6646. ;;
  6647. esac
  6648. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6649. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6650. ;;
  6651. irix5* | irix6* | nonstopux*)
  6652. lt_prog_compiler_wl='-Wl,'
  6653. # PIC (with -KPIC) is the default.
  6654. lt_prog_compiler_static='-non_shared'
  6655. ;;
  6656. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6657. case $cc_basename in
  6658. # old Intel for x86_64 which still supported -KPIC.
  6659. ecc*)
  6660. lt_prog_compiler_wl='-Wl,'
  6661. lt_prog_compiler_pic='-KPIC'
  6662. lt_prog_compiler_static='-static'
  6663. ;;
  6664. # icc used to be incompatible with GCC.
  6665. # ICC 10 doesn't accept -KPIC any more.
  6666. icc* | ifort*)
  6667. lt_prog_compiler_wl='-Wl,'
  6668. lt_prog_compiler_pic='-fPIC'
  6669. lt_prog_compiler_static='-static'
  6670. ;;
  6671. # Lahey Fortran 8.1.
  6672. lf95*)
  6673. lt_prog_compiler_wl='-Wl,'
  6674. lt_prog_compiler_pic='--shared'
  6675. lt_prog_compiler_static='--static'
  6676. ;;
  6677. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6678. # Portland Group compilers (*not* the Pentium gcc compiler,
  6679. # which looks to be a dead project)
  6680. lt_prog_compiler_wl='-Wl,'
  6681. lt_prog_compiler_pic='-fpic'
  6682. lt_prog_compiler_static='-Bstatic'
  6683. ;;
  6684. ccc*)
  6685. lt_prog_compiler_wl='-Wl,'
  6686. # All Alpha code is PIC.
  6687. lt_prog_compiler_static='-non_shared'
  6688. ;;
  6689. xl* | bgxl* | bgf* | mpixl*)
  6690. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6691. lt_prog_compiler_wl='-Wl,'
  6692. lt_prog_compiler_pic='-qpic'
  6693. lt_prog_compiler_static='-qstaticlink'
  6694. ;;
  6695. *)
  6696. case `$CC -V 2>&1 | sed 5q` in
  6697. *Sun\ F* | *Sun*Fortran*)
  6698. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6699. lt_prog_compiler_pic='-KPIC'
  6700. lt_prog_compiler_static='-Bstatic'
  6701. lt_prog_compiler_wl=''
  6702. ;;
  6703. *Sun\ C*)
  6704. # Sun C 5.9
  6705. lt_prog_compiler_pic='-KPIC'
  6706. lt_prog_compiler_static='-Bstatic'
  6707. lt_prog_compiler_wl='-Wl,'
  6708. ;;
  6709. esac
  6710. ;;
  6711. esac
  6712. ;;
  6713. newsos6)
  6714. lt_prog_compiler_pic='-KPIC'
  6715. lt_prog_compiler_static='-Bstatic'
  6716. ;;
  6717. *nto* | *qnx*)
  6718. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6719. # it will coredump.
  6720. lt_prog_compiler_pic='-fPIC -shared'
  6721. ;;
  6722. osf3* | osf4* | osf5*)
  6723. lt_prog_compiler_wl='-Wl,'
  6724. # All OSF/1 code is PIC.
  6725. lt_prog_compiler_static='-non_shared'
  6726. ;;
  6727. rdos*)
  6728. lt_prog_compiler_static='-non_shared'
  6729. ;;
  6730. solaris*)
  6731. lt_prog_compiler_pic='-KPIC'
  6732. lt_prog_compiler_static='-Bstatic'
  6733. case $cc_basename in
  6734. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6735. lt_prog_compiler_wl='-Qoption ld ';;
  6736. *)
  6737. lt_prog_compiler_wl='-Wl,';;
  6738. esac
  6739. ;;
  6740. sunos4*)
  6741. lt_prog_compiler_wl='-Qoption ld '
  6742. lt_prog_compiler_pic='-PIC'
  6743. lt_prog_compiler_static='-Bstatic'
  6744. ;;
  6745. sysv4 | sysv4.2uw2* | sysv4.3*)
  6746. lt_prog_compiler_wl='-Wl,'
  6747. lt_prog_compiler_pic='-KPIC'
  6748. lt_prog_compiler_static='-Bstatic'
  6749. ;;
  6750. sysv4*MP*)
  6751. if test -d /usr/nec ;then
  6752. lt_prog_compiler_pic='-Kconform_pic'
  6753. lt_prog_compiler_static='-Bstatic'
  6754. fi
  6755. ;;
  6756. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6757. lt_prog_compiler_wl='-Wl,'
  6758. lt_prog_compiler_pic='-KPIC'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. ;;
  6761. unicos*)
  6762. lt_prog_compiler_wl='-Wl,'
  6763. lt_prog_compiler_can_build_shared=no
  6764. ;;
  6765. uts4*)
  6766. lt_prog_compiler_pic='-pic'
  6767. lt_prog_compiler_static='-Bstatic'
  6768. ;;
  6769. *)
  6770. lt_prog_compiler_can_build_shared=no
  6771. ;;
  6772. esac
  6773. fi
  6774. case $host_os in
  6775. # For platforms which do not support PIC, -DPIC is meaningless:
  6776. *djgpp*)
  6777. lt_prog_compiler_pic=
  6778. ;;
  6779. *)
  6780. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6781. ;;
  6782. esac
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6784. $as_echo "$lt_prog_compiler_pic" >&6; }
  6785. #
  6786. # Check to make sure the PIC flag actually works.
  6787. #
  6788. if test -n "$lt_prog_compiler_pic"; then
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6790. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6791. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. lt_cv_prog_compiler_pic_works=no
  6795. ac_outfile=conftest.$ac_objext
  6796. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6797. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6798. # Insert the option either (1) after the last *FLAGS variable, or
  6799. # (2) before a word containing "conftest.", or (3) at the end.
  6800. # Note that $ac_compile itself does not contain backslashes and begins
  6801. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6802. # The option is referenced via a variable to avoid confusing sed.
  6803. lt_compile=`echo "$ac_compile" | $SED \
  6804. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6805. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6806. -e 's:$: $lt_compiler_flag:'`
  6807. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6808. (eval "$lt_compile" 2>conftest.err)
  6809. ac_status=$?
  6810. cat conftest.err >&5
  6811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6812. if (exit $ac_status) && test -s "$ac_outfile"; then
  6813. # The compiler can only warn and ignore the option if not recognized
  6814. # So say no if there are warnings other than the usual output.
  6815. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6816. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6817. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6818. lt_cv_prog_compiler_pic_works=yes
  6819. fi
  6820. fi
  6821. $RM conftest*
  6822. fi
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6824. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6825. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6826. case $lt_prog_compiler_pic in
  6827. "" | " "*) ;;
  6828. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6829. esac
  6830. else
  6831. lt_prog_compiler_pic=
  6832. lt_prog_compiler_can_build_shared=no
  6833. fi
  6834. fi
  6835. #
  6836. # Check to make sure the static flag actually works.
  6837. #
  6838. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6840. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6841. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. lt_cv_prog_compiler_static_works=no
  6845. save_LDFLAGS="$LDFLAGS"
  6846. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6847. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6848. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6849. # The linker can only warn and ignore the option if not recognized
  6850. # So say no if there are warnings
  6851. if test -s conftest.err; then
  6852. # Append any errors to the config.log.
  6853. cat conftest.err 1>&5
  6854. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6855. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6856. if diff conftest.exp conftest.er2 >/dev/null; then
  6857. lt_cv_prog_compiler_static_works=yes
  6858. fi
  6859. else
  6860. lt_cv_prog_compiler_static_works=yes
  6861. fi
  6862. fi
  6863. $RM -r conftest*
  6864. LDFLAGS="$save_LDFLAGS"
  6865. fi
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6867. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6868. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6869. :
  6870. else
  6871. lt_prog_compiler_static=
  6872. fi
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6874. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6875. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. lt_cv_prog_compiler_c_o=no
  6879. $RM -r conftest 2>/dev/null
  6880. mkdir conftest
  6881. cd conftest
  6882. mkdir out
  6883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6884. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6885. # Insert the option either (1) after the last *FLAGS variable, or
  6886. # (2) before a word containing "conftest.", or (3) at the end.
  6887. # Note that $ac_compile itself does not contain backslashes and begins
  6888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6889. lt_compile=`echo "$ac_compile" | $SED \
  6890. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6891. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6892. -e 's:$: $lt_compiler_flag:'`
  6893. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6894. (eval "$lt_compile" 2>out/conftest.err)
  6895. ac_status=$?
  6896. cat out/conftest.err >&5
  6897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6898. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6899. then
  6900. # The compiler can only warn and ignore the option if not recognized
  6901. # So say no if there are warnings
  6902. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6903. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6904. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6905. lt_cv_prog_compiler_c_o=yes
  6906. fi
  6907. fi
  6908. chmod u+w . 2>&5
  6909. $RM conftest*
  6910. # SGI C++ compiler will create directory out/ii_files/ for
  6911. # template instantiation
  6912. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6913. $RM out/* && rmdir out
  6914. cd ..
  6915. $RM -r conftest
  6916. $RM conftest*
  6917. fi
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6919. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6922. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6923. $as_echo_n "(cached) " >&6
  6924. else
  6925. lt_cv_prog_compiler_c_o=no
  6926. $RM -r conftest 2>/dev/null
  6927. mkdir conftest
  6928. cd conftest
  6929. mkdir out
  6930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6932. # Insert the option either (1) after the last *FLAGS variable, or
  6933. # (2) before a word containing "conftest.", or (3) at the end.
  6934. # Note that $ac_compile itself does not contain backslashes and begins
  6935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6936. lt_compile=`echo "$ac_compile" | $SED \
  6937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6939. -e 's:$: $lt_compiler_flag:'`
  6940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6941. (eval "$lt_compile" 2>out/conftest.err)
  6942. ac_status=$?
  6943. cat out/conftest.err >&5
  6944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6946. then
  6947. # The compiler can only warn and ignore the option if not recognized
  6948. # So say no if there are warnings
  6949. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6952. lt_cv_prog_compiler_c_o=yes
  6953. fi
  6954. fi
  6955. chmod u+w . 2>&5
  6956. $RM conftest*
  6957. # SGI C++ compiler will create directory out/ii_files/ for
  6958. # template instantiation
  6959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6960. $RM out/* && rmdir out
  6961. cd ..
  6962. $RM -r conftest
  6963. $RM conftest*
  6964. fi
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6966. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6967. hard_links="nottested"
  6968. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6969. # do not overwrite the value of need_locks provided by the user
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6971. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6972. hard_links=yes
  6973. $RM conftest*
  6974. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6975. touch conftest.a
  6976. ln conftest.a conftest.b 2>&5 || hard_links=no
  6977. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6979. $as_echo "$hard_links" >&6; }
  6980. if test "$hard_links" = no; then
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6982. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6983. need_locks=warn
  6984. fi
  6985. else
  6986. need_locks=no
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6989. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6990. runpath_var=
  6991. allow_undefined_flag=
  6992. always_export_symbols=no
  6993. archive_cmds=
  6994. archive_expsym_cmds=
  6995. compiler_needs_object=no
  6996. enable_shared_with_static_runtimes=no
  6997. export_dynamic_flag_spec=
  6998. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6999. hardcode_automatic=no
  7000. hardcode_direct=no
  7001. hardcode_direct_absolute=no
  7002. hardcode_libdir_flag_spec=
  7003. hardcode_libdir_flag_spec_ld=
  7004. hardcode_libdir_separator=
  7005. hardcode_minus_L=no
  7006. hardcode_shlibpath_var=unsupported
  7007. inherit_rpath=no
  7008. link_all_deplibs=unknown
  7009. module_cmds=
  7010. module_expsym_cmds=
  7011. old_archive_from_new_cmds=
  7012. old_archive_from_expsyms_cmds=
  7013. thread_safe_flag_spec=
  7014. whole_archive_flag_spec=
  7015. # include_expsyms should be a list of space-separated symbols to be *always*
  7016. # included in the symbol list
  7017. include_expsyms=
  7018. # exclude_expsyms can be an extended regexp of symbols to exclude
  7019. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7020. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7021. # as well as any symbol that contains `d'.
  7022. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7023. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7024. # platforms (ab)use it in PIC code, but their linkers get confused if
  7025. # the symbol is explicitly referenced. Since portable code cannot
  7026. # rely on this symbol name, it's probably fine to never include it in
  7027. # preloaded symbol tables.
  7028. # Exclude shared library initialization/finalization symbols.
  7029. extract_expsyms_cmds=
  7030. case $host_os in
  7031. cygwin* | mingw* | pw32* | cegcc*)
  7032. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7033. # When not using gcc, we currently assume that we are using
  7034. # Microsoft Visual C++.
  7035. if test "$GCC" != yes; then
  7036. with_gnu_ld=no
  7037. fi
  7038. ;;
  7039. interix*)
  7040. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7041. with_gnu_ld=yes
  7042. ;;
  7043. openbsd*)
  7044. with_gnu_ld=no
  7045. ;;
  7046. esac
  7047. ld_shlibs=yes
  7048. # On some targets, GNU ld is compatible enough with the native linker
  7049. # that we're better off using the native interface for both.
  7050. lt_use_gnu_ld_interface=no
  7051. if test "$with_gnu_ld" = yes; then
  7052. case $host_os in
  7053. aix*)
  7054. # The AIX port of GNU ld has always aspired to compatibility
  7055. # with the native linker. However, as the warning in the GNU ld
  7056. # block says, versions before 2.19.5* couldn't really create working
  7057. # shared libraries, regardless of the interface used.
  7058. case `$LD -v 2>&1` in
  7059. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7060. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7061. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7062. *)
  7063. lt_use_gnu_ld_interface=yes
  7064. ;;
  7065. esac
  7066. ;;
  7067. *)
  7068. lt_use_gnu_ld_interface=yes
  7069. ;;
  7070. esac
  7071. fi
  7072. if test "$lt_use_gnu_ld_interface" = yes; then
  7073. # If archive_cmds runs LD, not CC, wlarc should be empty
  7074. wlarc='${wl}'
  7075. # Set some defaults for GNU ld with shared library support. These
  7076. # are reset later if shared libraries are not supported. Putting them
  7077. # here allows them to be overridden if necessary.
  7078. runpath_var=LD_RUN_PATH
  7079. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7080. export_dynamic_flag_spec='${wl}--export-dynamic'
  7081. # ancient GNU ld didn't support --whole-archive et. al.
  7082. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7083. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7084. else
  7085. whole_archive_flag_spec=
  7086. fi
  7087. supports_anon_versioning=no
  7088. case `$LD -v 2>&1` in
  7089. *GNU\ gold*) supports_anon_versioning=yes ;;
  7090. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7091. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7092. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7093. *\ 2.11.*) ;; # other 2.11 versions
  7094. *) supports_anon_versioning=yes ;;
  7095. esac
  7096. # See if GNU ld supports shared libraries.
  7097. case $host_os in
  7098. aix[3-9]*)
  7099. # On AIX/PPC, the GNU linker is very broken
  7100. if test "$host_cpu" != ia64; then
  7101. ld_shlibs=no
  7102. cat <<_LT_EOF 1>&2
  7103. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7104. *** to be unable to reliably create shared libraries on AIX.
  7105. *** Therefore, libtool is disabling shared libraries support. If you
  7106. *** really care for shared libraries, you may want to install binutils
  7107. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7108. *** You will then need to restart the configuration process.
  7109. _LT_EOF
  7110. fi
  7111. ;;
  7112. amigaos*)
  7113. case $host_cpu in
  7114. powerpc)
  7115. # see comment about AmigaOS4 .so support
  7116. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7117. archive_expsym_cmds=''
  7118. ;;
  7119. m68k)
  7120. 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)'
  7121. hardcode_libdir_flag_spec='-L$libdir'
  7122. hardcode_minus_L=yes
  7123. ;;
  7124. esac
  7125. ;;
  7126. beos*)
  7127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7128. allow_undefined_flag=unsupported
  7129. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7130. # support --undefined. This deserves some investigation. FIXME
  7131. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7132. else
  7133. ld_shlibs=no
  7134. fi
  7135. ;;
  7136. cygwin* | mingw* | pw32* | cegcc*)
  7137. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7138. # as there is no search path for DLLs.
  7139. hardcode_libdir_flag_spec='-L$libdir'
  7140. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7141. allow_undefined_flag=unsupported
  7142. always_export_symbols=no
  7143. enable_shared_with_static_runtimes=yes
  7144. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7145. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7147. # If the export-symbols file already is a .def file (1st line
  7148. # is EXPORTS), use it as is; otherwise, prepend...
  7149. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7150. cp $export_symbols $output_objdir/$soname.def;
  7151. else
  7152. echo EXPORTS > $output_objdir/$soname.def;
  7153. cat $export_symbols >> $output_objdir/$soname.def;
  7154. fi~
  7155. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7156. else
  7157. ld_shlibs=no
  7158. fi
  7159. ;;
  7160. haiku*)
  7161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7162. link_all_deplibs=yes
  7163. ;;
  7164. interix[3-9]*)
  7165. hardcode_direct=no
  7166. hardcode_shlibpath_var=no
  7167. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7168. export_dynamic_flag_spec='${wl}-E'
  7169. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7170. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7171. # default) and relocated if they conflict, which is a slow very memory
  7172. # consuming and fragmenting process. To avoid this, we pick a random,
  7173. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7174. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7175. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7176. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7177. ;;
  7178. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7179. tmp_diet=no
  7180. if test "$host_os" = linux-dietlibc; then
  7181. case $cc_basename in
  7182. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7183. esac
  7184. fi
  7185. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7186. && test "$tmp_diet" = no
  7187. then
  7188. tmp_addflag=
  7189. tmp_sharedflag='-shared'
  7190. case $cc_basename,$host_cpu in
  7191. pgcc*) # Portland Group C compiler
  7192. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7193. tmp_addflag=' $pic_flag'
  7194. ;;
  7195. pgf77* | pgf90* | pgf95* | pgfortran*)
  7196. # Portland Group f77 and f90 compilers
  7197. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7198. tmp_addflag=' $pic_flag -Mnomain' ;;
  7199. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7200. tmp_addflag=' -i_dynamic' ;;
  7201. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7202. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7203. ifc* | ifort*) # Intel Fortran compiler
  7204. tmp_addflag=' -nofor_main' ;;
  7205. lf95*) # Lahey Fortran 8.1
  7206. whole_archive_flag_spec=
  7207. tmp_sharedflag='--shared' ;;
  7208. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7209. tmp_sharedflag='-qmkshrobj'
  7210. tmp_addflag= ;;
  7211. nvcc*) # Cuda Compiler Driver 2.2
  7212. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7213. compiler_needs_object=yes
  7214. ;;
  7215. esac
  7216. case `$CC -V 2>&1 | sed 5q` in
  7217. *Sun\ C*) # Sun C 5.9
  7218. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7219. compiler_needs_object=yes
  7220. tmp_sharedflag='-G' ;;
  7221. *Sun\ F*) # Sun Fortran 8.3
  7222. tmp_sharedflag='-G' ;;
  7223. esac
  7224. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7225. if test "x$supports_anon_versioning" = xyes; then
  7226. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7227. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7228. echo "local: *; };" >> $output_objdir/$libname.ver~
  7229. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7230. fi
  7231. case $cc_basename in
  7232. xlf* | bgf* | bgxlf* | mpixlf*)
  7233. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7234. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7235. hardcode_libdir_flag_spec=
  7236. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7237. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7238. if test "x$supports_anon_versioning" = xyes; then
  7239. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7240. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7241. echo "local: *; };" >> $output_objdir/$libname.ver~
  7242. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7243. fi
  7244. ;;
  7245. esac
  7246. else
  7247. ld_shlibs=no
  7248. fi
  7249. ;;
  7250. netbsd*)
  7251. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7252. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7253. wlarc=
  7254. else
  7255. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7256. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7257. fi
  7258. ;;
  7259. solaris*)
  7260. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7261. ld_shlibs=no
  7262. cat <<_LT_EOF 1>&2
  7263. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7264. *** create shared libraries on Solaris systems. Therefore, libtool
  7265. *** is disabling shared libraries support. We urge you to upgrade GNU
  7266. *** binutils to release 2.9.1 or newer. Another option is to modify
  7267. *** your PATH or compiler configuration so that the native linker is
  7268. *** used, and then restart.
  7269. _LT_EOF
  7270. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  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. else
  7274. ld_shlibs=no
  7275. fi
  7276. ;;
  7277. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7278. case `$LD -v 2>&1` in
  7279. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7280. ld_shlibs=no
  7281. cat <<_LT_EOF 1>&2
  7282. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7283. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7284. *** is disabling shared libraries support. We urge you to upgrade GNU
  7285. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7286. *** your PATH or compiler configuration so that the native linker is
  7287. *** used, and then restart.
  7288. _LT_EOF
  7289. ;;
  7290. *)
  7291. # For security reasons, it is highly recommended that you always
  7292. # use absolute paths for naming shared libraries, and exclude the
  7293. # DT_RUNPATH tag from executables and libraries. But doing so
  7294. # requires that you compile everything twice, which is a pain.
  7295. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7296. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7297. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7298. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7299. else
  7300. ld_shlibs=no
  7301. fi
  7302. ;;
  7303. esac
  7304. ;;
  7305. sunos4*)
  7306. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7307. wlarc=
  7308. hardcode_direct=yes
  7309. hardcode_shlibpath_var=no
  7310. ;;
  7311. *)
  7312. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7313. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7314. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7315. else
  7316. ld_shlibs=no
  7317. fi
  7318. ;;
  7319. esac
  7320. if test "$ld_shlibs" = no; then
  7321. runpath_var=
  7322. hardcode_libdir_flag_spec=
  7323. export_dynamic_flag_spec=
  7324. whole_archive_flag_spec=
  7325. fi
  7326. else
  7327. # PORTME fill in a description of your system's linker (not GNU ld)
  7328. case $host_os in
  7329. aix3*)
  7330. allow_undefined_flag=unsupported
  7331. always_export_symbols=yes
  7332. 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'
  7333. # Note: this linker hardcodes the directories in LIBPATH if there
  7334. # are no directories specified by -L.
  7335. hardcode_minus_L=yes
  7336. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7337. # Neither direct hardcoding nor static linking is supported with a
  7338. # broken collect2.
  7339. hardcode_direct=unsupported
  7340. fi
  7341. ;;
  7342. aix[4-9]*)
  7343. if test "$host_cpu" = ia64; then
  7344. # On IA64, the linker does run time linking by default, so we don't
  7345. # have to do anything special.
  7346. aix_use_runtimelinking=no
  7347. exp_sym_flag='-Bexport'
  7348. no_entry_flag=""
  7349. else
  7350. # If we're using GNU nm, then we don't want the "-C" option.
  7351. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7352. # Also, AIX nm treats weak defined symbols like other global
  7353. # defined symbols, whereas GNU nm marks them as "W".
  7354. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7355. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7356. else
  7357. 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'
  7358. fi
  7359. aix_use_runtimelinking=no
  7360. # Test if we are trying to use run time linking or normal
  7361. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7362. # need to do runtime linking.
  7363. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7364. for ld_flag in $LDFLAGS; do
  7365. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7366. aix_use_runtimelinking=yes
  7367. break
  7368. fi
  7369. done
  7370. ;;
  7371. esac
  7372. exp_sym_flag='-bexport'
  7373. no_entry_flag='-bnoentry'
  7374. fi
  7375. # When large executables or shared objects are built, AIX ld can
  7376. # have problems creating the table of contents. If linking a library
  7377. # or program results in "error TOC overflow" add -mminimal-toc to
  7378. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7379. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7380. archive_cmds=''
  7381. hardcode_direct=yes
  7382. hardcode_direct_absolute=yes
  7383. hardcode_libdir_separator=':'
  7384. link_all_deplibs=yes
  7385. file_list_spec='${wl}-f,'
  7386. if test "$GCC" = yes; then
  7387. case $host_os in aix4.[012]|aix4.[012].*)
  7388. # We only want to do this on AIX 4.2 and lower, the check
  7389. # below for broken collect2 doesn't work under 4.3+
  7390. collect2name=`${CC} -print-prog-name=collect2`
  7391. if test -f "$collect2name" &&
  7392. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7393. then
  7394. # We have reworked collect2
  7395. :
  7396. else
  7397. # We have old collect2
  7398. hardcode_direct=unsupported
  7399. # It fails to find uninstalled libraries when the uninstalled
  7400. # path is not listed in the libpath. Setting hardcode_minus_L
  7401. # to unsupported forces relinking
  7402. hardcode_minus_L=yes
  7403. hardcode_libdir_flag_spec='-L$libdir'
  7404. hardcode_libdir_separator=
  7405. fi
  7406. ;;
  7407. esac
  7408. shared_flag='-shared'
  7409. if test "$aix_use_runtimelinking" = yes; then
  7410. shared_flag="$shared_flag "'${wl}-G'
  7411. fi
  7412. else
  7413. # not using gcc
  7414. if test "$host_cpu" = ia64; then
  7415. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7416. # chokes on -Wl,-G. The following line is correct:
  7417. shared_flag='-G'
  7418. else
  7419. if test "$aix_use_runtimelinking" = yes; then
  7420. shared_flag='${wl}-G'
  7421. else
  7422. shared_flag='${wl}-bM:SRE'
  7423. fi
  7424. fi
  7425. fi
  7426. export_dynamic_flag_spec='${wl}-bexpall'
  7427. # It seems that -bexpall does not export symbols beginning with
  7428. # underscore (_), so it is better to generate a list of symbols to export.
  7429. always_export_symbols=yes
  7430. if test "$aix_use_runtimelinking" = yes; then
  7431. # Warning - without using the other runtime loading flags (-brtl),
  7432. # -berok will link without error, but may produce a broken library.
  7433. allow_undefined_flag='-berok'
  7434. # Determine the default libpath from the value encoded in an
  7435. # empty executable.
  7436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7437. /* end confdefs.h. */
  7438. int
  7439. main ()
  7440. {
  7441. ;
  7442. return 0;
  7443. }
  7444. _ACEOF
  7445. if ac_fn_c_try_link "$LINENO"; then :
  7446. lt_aix_libpath_sed='
  7447. /Import File Strings/,/^$/ {
  7448. /^0/ {
  7449. s/^0 *\(.*\)$/\1/
  7450. p
  7451. }
  7452. }'
  7453. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7454. # Check for a 64-bit object if we didn't find anything.
  7455. if test -z "$aix_libpath"; then
  7456. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7457. fi
  7458. fi
  7459. rm -f core conftest.err conftest.$ac_objext \
  7460. conftest$ac_exeext conftest.$ac_ext
  7461. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7462. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7463. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7464. else
  7465. if test "$host_cpu" = ia64; then
  7466. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7467. allow_undefined_flag="-z nodefs"
  7468. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7469. else
  7470. # Determine the default libpath from the value encoded in an
  7471. # empty executable.
  7472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7473. /* end confdefs.h. */
  7474. int
  7475. main ()
  7476. {
  7477. ;
  7478. return 0;
  7479. }
  7480. _ACEOF
  7481. if ac_fn_c_try_link "$LINENO"; then :
  7482. lt_aix_libpath_sed='
  7483. /Import File Strings/,/^$/ {
  7484. /^0/ {
  7485. s/^0 *\(.*\)$/\1/
  7486. p
  7487. }
  7488. }'
  7489. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7490. # Check for a 64-bit object if we didn't find anything.
  7491. if test -z "$aix_libpath"; then
  7492. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7493. fi
  7494. fi
  7495. rm -f core conftest.err conftest.$ac_objext \
  7496. conftest$ac_exeext conftest.$ac_ext
  7497. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7498. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7499. # Warning - without using the other run time loading flags,
  7500. # -berok will link without error, but may produce a broken library.
  7501. no_undefined_flag=' ${wl}-bernotok'
  7502. allow_undefined_flag=' ${wl}-berok'
  7503. if test "$with_gnu_ld" = yes; then
  7504. # We only use this code for GNU lds that support --whole-archive.
  7505. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7506. else
  7507. # Exported symbols can be pulled into shared objects from archives
  7508. whole_archive_flag_spec='$convenience'
  7509. fi
  7510. archive_cmds_need_lc=yes
  7511. # This is similar to how AIX traditionally builds its shared libraries.
  7512. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7513. fi
  7514. fi
  7515. ;;
  7516. amigaos*)
  7517. case $host_cpu in
  7518. powerpc)
  7519. # see comment about AmigaOS4 .so support
  7520. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7521. archive_expsym_cmds=''
  7522. ;;
  7523. m68k)
  7524. 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)'
  7525. hardcode_libdir_flag_spec='-L$libdir'
  7526. hardcode_minus_L=yes
  7527. ;;
  7528. esac
  7529. ;;
  7530. bsdi[45]*)
  7531. export_dynamic_flag_spec=-rdynamic
  7532. ;;
  7533. cygwin* | mingw* | pw32* | cegcc*)
  7534. # When not using gcc, we currently assume that we are using
  7535. # Microsoft Visual C++.
  7536. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7537. # no search path for DLLs.
  7538. hardcode_libdir_flag_spec=' '
  7539. allow_undefined_flag=unsupported
  7540. # Tell ltmain to make .lib files, not .a files.
  7541. libext=lib
  7542. # Tell ltmain to make .dll files, not .so files.
  7543. shrext_cmds=".dll"
  7544. # FIXME: Setting linknames here is a bad hack.
  7545. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7546. # The linker will automatically build a .lib file if we build a DLL.
  7547. old_archive_from_new_cmds='true'
  7548. # FIXME: Should let the user specify the lib program.
  7549. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7550. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7551. enable_shared_with_static_runtimes=yes
  7552. ;;
  7553. darwin* | rhapsody*)
  7554. archive_cmds_need_lc=no
  7555. hardcode_direct=no
  7556. hardcode_automatic=yes
  7557. hardcode_shlibpath_var=unsupported
  7558. if test "$lt_cv_ld_force_load" = "yes"; then
  7559. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7560. else
  7561. whole_archive_flag_spec=''
  7562. fi
  7563. link_all_deplibs=yes
  7564. allow_undefined_flag="$_lt_dar_allow_undefined"
  7565. case $cc_basename in
  7566. ifort*) _lt_dar_can_shared=yes ;;
  7567. *) _lt_dar_can_shared=$GCC ;;
  7568. esac
  7569. if test "$_lt_dar_can_shared" = "yes"; then
  7570. output_verbose_link_cmd=func_echo_all
  7571. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7572. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7573. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7574. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7575. else
  7576. ld_shlibs=no
  7577. fi
  7578. ;;
  7579. dgux*)
  7580. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7581. hardcode_libdir_flag_spec='-L$libdir'
  7582. hardcode_shlibpath_var=no
  7583. ;;
  7584. freebsd1*)
  7585. ld_shlibs=no
  7586. ;;
  7587. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7588. # support. Future versions do this automatically, but an explicit c++rt0.o
  7589. # does not break anything, and helps significantly (at the cost of a little
  7590. # extra space).
  7591. freebsd2.2*)
  7592. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7593. hardcode_libdir_flag_spec='-R$libdir'
  7594. hardcode_direct=yes
  7595. hardcode_shlibpath_var=no
  7596. ;;
  7597. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7598. freebsd2*)
  7599. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7600. hardcode_direct=yes
  7601. hardcode_minus_L=yes
  7602. hardcode_shlibpath_var=no
  7603. ;;
  7604. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7605. freebsd* | dragonfly*)
  7606. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7607. hardcode_libdir_flag_spec='-R$libdir'
  7608. hardcode_direct=yes
  7609. hardcode_shlibpath_var=no
  7610. ;;
  7611. hpux9*)
  7612. if test "$GCC" = yes; then
  7613. 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'
  7614. else
  7615. 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'
  7616. fi
  7617. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7618. hardcode_libdir_separator=:
  7619. hardcode_direct=yes
  7620. # hardcode_minus_L: Not really in the search PATH,
  7621. # but as the default location of the library.
  7622. hardcode_minus_L=yes
  7623. export_dynamic_flag_spec='${wl}-E'
  7624. ;;
  7625. hpux10*)
  7626. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7627. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7628. else
  7629. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7630. fi
  7631. if test "$with_gnu_ld" = no; then
  7632. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7633. hardcode_libdir_flag_spec_ld='+b $libdir'
  7634. hardcode_libdir_separator=:
  7635. hardcode_direct=yes
  7636. hardcode_direct_absolute=yes
  7637. export_dynamic_flag_spec='${wl}-E'
  7638. # hardcode_minus_L: Not really in the search PATH,
  7639. # but as the default location of the library.
  7640. hardcode_minus_L=yes
  7641. fi
  7642. ;;
  7643. hpux11*)
  7644. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7645. case $host_cpu in
  7646. hppa*64*)
  7647. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7648. ;;
  7649. ia64*)
  7650. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7651. ;;
  7652. *)
  7653. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7654. ;;
  7655. esac
  7656. else
  7657. case $host_cpu in
  7658. hppa*64*)
  7659. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7660. ;;
  7661. ia64*)
  7662. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7663. ;;
  7664. *)
  7665. # Older versions of the 11.00 compiler do not understand -b yet
  7666. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7668. $as_echo_n "checking if $CC understands -b... " >&6; }
  7669. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7670. $as_echo_n "(cached) " >&6
  7671. else
  7672. lt_cv_prog_compiler__b=no
  7673. save_LDFLAGS="$LDFLAGS"
  7674. LDFLAGS="$LDFLAGS -b"
  7675. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7676. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7677. # The linker can only warn and ignore the option if not recognized
  7678. # So say no if there are warnings
  7679. if test -s conftest.err; then
  7680. # Append any errors to the config.log.
  7681. cat conftest.err 1>&5
  7682. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7683. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7684. if diff conftest.exp conftest.er2 >/dev/null; then
  7685. lt_cv_prog_compiler__b=yes
  7686. fi
  7687. else
  7688. lt_cv_prog_compiler__b=yes
  7689. fi
  7690. fi
  7691. $RM -r conftest*
  7692. LDFLAGS="$save_LDFLAGS"
  7693. fi
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7695. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7696. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7697. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7698. else
  7699. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7700. fi
  7701. ;;
  7702. esac
  7703. fi
  7704. if test "$with_gnu_ld" = no; then
  7705. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7706. hardcode_libdir_separator=:
  7707. case $host_cpu in
  7708. hppa*64*|ia64*)
  7709. hardcode_direct=no
  7710. hardcode_shlibpath_var=no
  7711. ;;
  7712. *)
  7713. hardcode_direct=yes
  7714. hardcode_direct_absolute=yes
  7715. export_dynamic_flag_spec='${wl}-E'
  7716. # hardcode_minus_L: Not really in the search PATH,
  7717. # but as the default location of the library.
  7718. hardcode_minus_L=yes
  7719. ;;
  7720. esac
  7721. fi
  7722. ;;
  7723. irix5* | irix6* | nonstopux*)
  7724. if test "$GCC" = yes; then
  7725. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7726. # Try to use the -exported_symbol ld option, if it does not
  7727. # work, assume that -exports_file does not work either and
  7728. # implicitly export all symbols.
  7729. save_LDFLAGS="$LDFLAGS"
  7730. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7732. /* end confdefs.h. */
  7733. int foo(void) {}
  7734. _ACEOF
  7735. if ac_fn_c_try_link "$LINENO"; then :
  7736. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7737. fi
  7738. rm -f core conftest.err conftest.$ac_objext \
  7739. conftest$ac_exeext conftest.$ac_ext
  7740. LDFLAGS="$save_LDFLAGS"
  7741. else
  7742. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7743. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7744. fi
  7745. archive_cmds_need_lc='no'
  7746. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7747. hardcode_libdir_separator=:
  7748. inherit_rpath=yes
  7749. link_all_deplibs=yes
  7750. ;;
  7751. netbsd*)
  7752. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7753. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7754. else
  7755. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7756. fi
  7757. hardcode_libdir_flag_spec='-R$libdir'
  7758. hardcode_direct=yes
  7759. hardcode_shlibpath_var=no
  7760. ;;
  7761. newsos6)
  7762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7763. hardcode_direct=yes
  7764. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7765. hardcode_libdir_separator=:
  7766. hardcode_shlibpath_var=no
  7767. ;;
  7768. *nto* | *qnx*)
  7769. ;;
  7770. openbsd*)
  7771. if test -f /usr/libexec/ld.so; then
  7772. hardcode_direct=yes
  7773. hardcode_shlibpath_var=no
  7774. hardcode_direct_absolute=yes
  7775. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7776. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7777. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7778. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7779. export_dynamic_flag_spec='${wl}-E'
  7780. else
  7781. case $host_os in
  7782. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7783. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7784. hardcode_libdir_flag_spec='-R$libdir'
  7785. ;;
  7786. *)
  7787. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7788. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7789. ;;
  7790. esac
  7791. fi
  7792. else
  7793. ld_shlibs=no
  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" && func_echo_all "${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='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7810. fi
  7811. archive_cmds_need_lc='no'
  7812. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7813. hardcode_libdir_separator=:
  7814. ;;
  7815. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7816. if test "$GCC" = yes; then
  7817. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7818. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7819. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7820. else
  7821. allow_undefined_flag=' -expect_unresolved \*'
  7822. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7823. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7824. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7825. # Both c and cxx compiler support -rpath directly
  7826. hardcode_libdir_flag_spec='-rpath $libdir'
  7827. fi
  7828. archive_cmds_need_lc='no'
  7829. hardcode_libdir_separator=:
  7830. ;;
  7831. solaris*)
  7832. no_undefined_flag=' -z defs'
  7833. if test "$GCC" = yes; then
  7834. wlarc='${wl}'
  7835. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7837. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7838. else
  7839. case `$CC -V 2>&1` in
  7840. *"Compilers 5.0"*)
  7841. wlarc=''
  7842. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7843. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7844. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7845. ;;
  7846. *)
  7847. wlarc='${wl}'
  7848. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7849. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7850. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7851. ;;
  7852. esac
  7853. fi
  7854. hardcode_libdir_flag_spec='-R$libdir'
  7855. hardcode_shlibpath_var=no
  7856. case $host_os in
  7857. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7858. *)
  7859. # The compiler driver will combine and reorder linker options,
  7860. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7861. # but is careful enough not to reorder.
  7862. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7863. if test "$GCC" = yes; then
  7864. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7865. else
  7866. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7867. fi
  7868. ;;
  7869. esac
  7870. link_all_deplibs=yes
  7871. ;;
  7872. sunos4*)
  7873. if test "x$host_vendor" = xsequent; then
  7874. # Use $CC to link under sequent, because it throws in some extra .o
  7875. # files that make .init and .fini sections work.
  7876. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7877. else
  7878. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7879. fi
  7880. hardcode_libdir_flag_spec='-L$libdir'
  7881. hardcode_direct=yes
  7882. hardcode_minus_L=yes
  7883. hardcode_shlibpath_var=no
  7884. ;;
  7885. sysv4)
  7886. case $host_vendor in
  7887. sni)
  7888. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7889. hardcode_direct=yes # is this really true???
  7890. ;;
  7891. siemens)
  7892. ## LD is ld it makes a PLAMLIB
  7893. ## CC just makes a GrossModule.
  7894. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7895. reload_cmds='$CC -r -o $output$reload_objs'
  7896. hardcode_direct=no
  7897. ;;
  7898. motorola)
  7899. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7900. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7901. ;;
  7902. esac
  7903. runpath_var='LD_RUN_PATH'
  7904. hardcode_shlibpath_var=no
  7905. ;;
  7906. sysv4.3*)
  7907. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7908. hardcode_shlibpath_var=no
  7909. export_dynamic_flag_spec='-Bexport'
  7910. ;;
  7911. sysv4*MP*)
  7912. if test -d /usr/nec; then
  7913. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7914. hardcode_shlibpath_var=no
  7915. runpath_var=LD_RUN_PATH
  7916. hardcode_runpath_var=yes
  7917. ld_shlibs=yes
  7918. fi
  7919. ;;
  7920. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7921. no_undefined_flag='${wl}-z,text'
  7922. archive_cmds_need_lc=no
  7923. hardcode_shlibpath_var=no
  7924. runpath_var='LD_RUN_PATH'
  7925. if test "$GCC" = yes; then
  7926. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7927. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7928. else
  7929. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7930. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7931. fi
  7932. ;;
  7933. sysv5* | sco3.2v5* | sco5v6*)
  7934. # Note: We can NOT use -z defs as we might desire, because we do not
  7935. # link with -lc, and that would cause any symbols used from libc to
  7936. # always be unresolved, which means just about no library would
  7937. # ever link correctly. If we're not using GNU ld we use -z text
  7938. # though, which does catch some bad symbols but isn't as heavy-handed
  7939. # as -z defs.
  7940. no_undefined_flag='${wl}-z,text'
  7941. allow_undefined_flag='${wl}-z,nodefs'
  7942. archive_cmds_need_lc=no
  7943. hardcode_shlibpath_var=no
  7944. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7945. hardcode_libdir_separator=':'
  7946. link_all_deplibs=yes
  7947. export_dynamic_flag_spec='${wl}-Bexport'
  7948. runpath_var='LD_RUN_PATH'
  7949. if test "$GCC" = yes; then
  7950. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7951. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7952. else
  7953. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7954. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7955. fi
  7956. ;;
  7957. uts4*)
  7958. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7959. hardcode_libdir_flag_spec='-L$libdir'
  7960. hardcode_shlibpath_var=no
  7961. ;;
  7962. *)
  7963. ld_shlibs=no
  7964. ;;
  7965. esac
  7966. if test x$host_vendor = xsni; then
  7967. case $host in
  7968. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7969. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7970. ;;
  7971. esac
  7972. fi
  7973. fi
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7975. $as_echo "$ld_shlibs" >&6; }
  7976. test "$ld_shlibs" = no && can_build_shared=no
  7977. with_gnu_ld=$with_gnu_ld
  7978. #
  7979. # Do we need to explicitly link libc?
  7980. #
  7981. case "x$archive_cmds_need_lc" in
  7982. x|xyes)
  7983. # Assume -lc should be added
  7984. archive_cmds_need_lc=yes
  7985. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7986. case $archive_cmds in
  7987. *'~'*)
  7988. # FIXME: we may have to deal with multi-command sequences.
  7989. ;;
  7990. '$CC '*)
  7991. # Test whether the compiler implicitly links with -lc since on some
  7992. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7993. # to ld, don't add -lc before -lgcc.
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7995. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7996. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  7997. $as_echo_n "(cached) " >&6
  7998. else
  7999. $RM conftest*
  8000. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8002. (eval $ac_compile) 2>&5
  8003. ac_status=$?
  8004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8005. test $ac_status = 0; } 2>conftest.err; then
  8006. soname=conftest
  8007. lib=conftest
  8008. libobjs=conftest.$ac_objext
  8009. deplibs=
  8010. wl=$lt_prog_compiler_wl
  8011. pic_flag=$lt_prog_compiler_pic
  8012. compiler_flags=-v
  8013. linker_flags=-v
  8014. verstring=
  8015. output_objdir=.
  8016. libname=conftest
  8017. lt_save_allow_undefined_flag=$allow_undefined_flag
  8018. allow_undefined_flag=
  8019. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8020. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8021. ac_status=$?
  8022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8023. test $ac_status = 0; }
  8024. then
  8025. lt_cv_archive_cmds_need_lc=no
  8026. else
  8027. lt_cv_archive_cmds_need_lc=yes
  8028. fi
  8029. allow_undefined_flag=$lt_save_allow_undefined_flag
  8030. else
  8031. cat conftest.err 1>&5
  8032. fi
  8033. $RM conftest*
  8034. fi
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8036. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8037. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8038. ;;
  8039. esac
  8040. fi
  8041. ;;
  8042. esac
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8044. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8045. if test "$GCC" = yes; then
  8046. case $host_os in
  8047. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8048. *) lt_awk_arg="/^libraries:/" ;;
  8049. esac
  8050. case $host_os in
  8051. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8052. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8053. esac
  8054. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8055. case $lt_search_path_spec in
  8056. *\;*)
  8057. # if the path contains ";" then we assume it to be the separator
  8058. # otherwise default to the standard path separator (i.e. ":") - it is
  8059. # assumed that no part of a normal pathname contains ";" but that should
  8060. # okay in the real world where ";" in dirpaths is itself problematic.
  8061. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8062. ;;
  8063. *)
  8064. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8065. ;;
  8066. esac
  8067. # Ok, now we have the path, separated by spaces, we can step through it
  8068. # and add multilib dir if necessary.
  8069. lt_tmp_lt_search_path_spec=
  8070. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8071. for lt_sys_path in $lt_search_path_spec; do
  8072. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8073. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8074. else
  8075. test -d "$lt_sys_path" && \
  8076. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8077. fi
  8078. done
  8079. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8080. BEGIN {RS=" "; FS="/|\n";} {
  8081. lt_foo="";
  8082. lt_count=0;
  8083. for (lt_i = NF; lt_i > 0; lt_i--) {
  8084. if ($lt_i != "" && $lt_i != ".") {
  8085. if ($lt_i == "..") {
  8086. lt_count++;
  8087. } else {
  8088. if (lt_count == 0) {
  8089. lt_foo="/" $lt_i lt_foo;
  8090. } else {
  8091. lt_count--;
  8092. }
  8093. }
  8094. }
  8095. }
  8096. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8097. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8098. }'`
  8099. # AWK program above erroneously prepends '/' to C:/dos/paths
  8100. # for these hosts.
  8101. case $host_os in
  8102. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8103. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8104. esac
  8105. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8106. else
  8107. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8108. fi
  8109. library_names_spec=
  8110. libname_spec='lib$name'
  8111. soname_spec=
  8112. shrext_cmds=".so"
  8113. postinstall_cmds=
  8114. postuninstall_cmds=
  8115. finish_cmds=
  8116. finish_eval=
  8117. shlibpath_var=
  8118. shlibpath_overrides_runpath=unknown
  8119. version_type=none
  8120. dynamic_linker="$host_os ld.so"
  8121. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8122. need_lib_prefix=unknown
  8123. hardcode_into_libs=no
  8124. # when you set need_version to no, make sure it does not cause -set_version
  8125. # flags to be left without arguments
  8126. need_version=unknown
  8127. case $host_os in
  8128. aix3*)
  8129. version_type=linux
  8130. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8131. shlibpath_var=LIBPATH
  8132. # AIX 3 has no versioning support, so we append a major version to the name.
  8133. soname_spec='${libname}${release}${shared_ext}$major'
  8134. ;;
  8135. aix[4-9]*)
  8136. version_type=linux
  8137. need_lib_prefix=no
  8138. need_version=no
  8139. hardcode_into_libs=yes
  8140. if test "$host_cpu" = ia64; then
  8141. # AIX 5 supports IA64
  8142. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8143. shlibpath_var=LD_LIBRARY_PATH
  8144. else
  8145. # With GCC up to 2.95.x, collect2 would create an import file
  8146. # for dependence libraries. The import file would start with
  8147. # the line `#! .'. This would cause the generated library to
  8148. # depend on `.', always an invalid library. This was fixed in
  8149. # development snapshots of GCC prior to 3.0.
  8150. case $host_os in
  8151. aix4 | aix4.[01] | aix4.[01].*)
  8152. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8153. echo ' yes '
  8154. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8155. :
  8156. else
  8157. can_build_shared=no
  8158. fi
  8159. ;;
  8160. esac
  8161. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8162. # soname into executable. Probably we can add versioning support to
  8163. # collect2, so additional links can be useful in future.
  8164. if test "$aix_use_runtimelinking" = yes; then
  8165. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8166. # instead of lib<name>.a to let people know that these are not
  8167. # typical AIX shared libraries.
  8168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8169. else
  8170. # We preserve .a as extension for shared libraries through AIX4.2
  8171. # and later when we are not doing run time linking.
  8172. library_names_spec='${libname}${release}.a $libname.a'
  8173. soname_spec='${libname}${release}${shared_ext}$major'
  8174. fi
  8175. shlibpath_var=LIBPATH
  8176. fi
  8177. ;;
  8178. amigaos*)
  8179. case $host_cpu in
  8180. powerpc)
  8181. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8182. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8184. ;;
  8185. m68k)
  8186. library_names_spec='$libname.ixlibrary $libname.a'
  8187. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8188. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8189. ;;
  8190. esac
  8191. ;;
  8192. beos*)
  8193. library_names_spec='${libname}${shared_ext}'
  8194. dynamic_linker="$host_os ld.so"
  8195. shlibpath_var=LIBRARY_PATH
  8196. ;;
  8197. bsdi[45]*)
  8198. version_type=linux
  8199. need_version=no
  8200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8201. soname_spec='${libname}${release}${shared_ext}$major'
  8202. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8203. shlibpath_var=LD_LIBRARY_PATH
  8204. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8205. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8206. # the default ld.so.conf also contains /usr/contrib/lib and
  8207. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8208. # libtool to hard-code these into programs
  8209. ;;
  8210. cygwin* | mingw* | pw32* | cegcc*)
  8211. version_type=windows
  8212. shrext_cmds=".dll"
  8213. need_version=no
  8214. need_lib_prefix=no
  8215. case $GCC,$host_os in
  8216. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8217. library_names_spec='$libname.dll.a'
  8218. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8219. postinstall_cmds='base_file=`basename \${file}`~
  8220. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8221. dldir=$destdir/`dirname \$dlpath`~
  8222. test -d \$dldir || mkdir -p \$dldir~
  8223. $install_prog $dir/$dlname \$dldir/$dlname~
  8224. chmod a+x \$dldir/$dlname~
  8225. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8226. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8227. fi'
  8228. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8229. dlpath=$dir/\$dldll~
  8230. $RM \$dlpath'
  8231. shlibpath_overrides_runpath=yes
  8232. case $host_os in
  8233. cygwin*)
  8234. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8235. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8236. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8237. ;;
  8238. mingw* | cegcc*)
  8239. # MinGW DLLs use traditional 'lib' prefix
  8240. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8241. ;;
  8242. pw32*)
  8243. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8244. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8245. ;;
  8246. esac
  8247. ;;
  8248. *)
  8249. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8250. ;;
  8251. esac
  8252. dynamic_linker='Win32 ld.exe'
  8253. # FIXME: first we should search . and the directory the executable is in
  8254. shlibpath_var=PATH
  8255. ;;
  8256. darwin* | rhapsody*)
  8257. dynamic_linker="$host_os dyld"
  8258. version_type=darwin
  8259. need_lib_prefix=no
  8260. need_version=no
  8261. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8262. soname_spec='${libname}${release}${major}$shared_ext'
  8263. shlibpath_overrides_runpath=yes
  8264. shlibpath_var=DYLD_LIBRARY_PATH
  8265. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8266. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8267. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8268. ;;
  8269. dgux*)
  8270. version_type=linux
  8271. need_lib_prefix=no
  8272. need_version=no
  8273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8274. soname_spec='${libname}${release}${shared_ext}$major'
  8275. shlibpath_var=LD_LIBRARY_PATH
  8276. ;;
  8277. freebsd1*)
  8278. dynamic_linker=no
  8279. ;;
  8280. freebsd* | dragonfly*)
  8281. # DragonFly does not have aout. When/if they implement a new
  8282. # versioning mechanism, adjust this.
  8283. if test -x /usr/bin/objformat; then
  8284. objformat=`/usr/bin/objformat`
  8285. else
  8286. case $host_os in
  8287. freebsd[123]*) objformat=aout ;;
  8288. *) objformat=elf ;;
  8289. esac
  8290. fi
  8291. version_type=freebsd-$objformat
  8292. case $version_type in
  8293. freebsd-elf*)
  8294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8295. need_version=no
  8296. need_lib_prefix=no
  8297. ;;
  8298. freebsd-*)
  8299. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8300. need_version=yes
  8301. ;;
  8302. esac
  8303. shlibpath_var=LD_LIBRARY_PATH
  8304. case $host_os in
  8305. freebsd2*)
  8306. shlibpath_overrides_runpath=yes
  8307. ;;
  8308. freebsd3.[01]* | freebsdelf3.[01]*)
  8309. shlibpath_overrides_runpath=yes
  8310. hardcode_into_libs=yes
  8311. ;;
  8312. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8313. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8314. shlibpath_overrides_runpath=no
  8315. hardcode_into_libs=yes
  8316. ;;
  8317. *) # from 4.6 on, and DragonFly
  8318. shlibpath_overrides_runpath=yes
  8319. hardcode_into_libs=yes
  8320. ;;
  8321. esac
  8322. ;;
  8323. gnu*)
  8324. version_type=linux
  8325. need_lib_prefix=no
  8326. need_version=no
  8327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8328. soname_spec='${libname}${release}${shared_ext}$major'
  8329. shlibpath_var=LD_LIBRARY_PATH
  8330. hardcode_into_libs=yes
  8331. ;;
  8332. haiku*)
  8333. version_type=linux
  8334. need_lib_prefix=no
  8335. need_version=no
  8336. dynamic_linker="$host_os runtime_loader"
  8337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8338. soname_spec='${libname}${release}${shared_ext}$major'
  8339. shlibpath_var=LIBRARY_PATH
  8340. shlibpath_overrides_runpath=yes
  8341. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8342. hardcode_into_libs=yes
  8343. ;;
  8344. hpux9* | hpux10* | hpux11*)
  8345. # Give a soname corresponding to the major version so that dld.sl refuses to
  8346. # link against other versions.
  8347. version_type=sunos
  8348. need_lib_prefix=no
  8349. need_version=no
  8350. case $host_cpu in
  8351. ia64*)
  8352. shrext_cmds='.so'
  8353. hardcode_into_libs=yes
  8354. dynamic_linker="$host_os dld.so"
  8355. shlibpath_var=LD_LIBRARY_PATH
  8356. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8358. soname_spec='${libname}${release}${shared_ext}$major'
  8359. if test "X$HPUX_IA64_MODE" = X32; then
  8360. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8361. else
  8362. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8363. fi
  8364. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8365. ;;
  8366. hppa*64*)
  8367. shrext_cmds='.sl'
  8368. hardcode_into_libs=yes
  8369. dynamic_linker="$host_os dld.sl"
  8370. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8371. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8373. soname_spec='${libname}${release}${shared_ext}$major'
  8374. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8375. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8376. ;;
  8377. *)
  8378. shrext_cmds='.sl'
  8379. dynamic_linker="$host_os dld.sl"
  8380. shlibpath_var=SHLIB_PATH
  8381. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8383. soname_spec='${libname}${release}${shared_ext}$major'
  8384. ;;
  8385. esac
  8386. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8387. postinstall_cmds='chmod 555 $lib'
  8388. # or fails outright, so override atomically:
  8389. install_override_mode=555
  8390. ;;
  8391. interix[3-9]*)
  8392. version_type=linux
  8393. need_lib_prefix=no
  8394. need_version=no
  8395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8396. soname_spec='${libname}${release}${shared_ext}$major'
  8397. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8398. shlibpath_var=LD_LIBRARY_PATH
  8399. shlibpath_overrides_runpath=no
  8400. hardcode_into_libs=yes
  8401. ;;
  8402. irix5* | irix6* | nonstopux*)
  8403. case $host_os in
  8404. nonstopux*) version_type=nonstopux ;;
  8405. *)
  8406. if test "$lt_cv_prog_gnu_ld" = yes; then
  8407. version_type=linux
  8408. else
  8409. version_type=irix
  8410. fi ;;
  8411. esac
  8412. need_lib_prefix=no
  8413. need_version=no
  8414. soname_spec='${libname}${release}${shared_ext}$major'
  8415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8416. case $host_os in
  8417. irix5* | nonstopux*)
  8418. libsuff= shlibsuff=
  8419. ;;
  8420. *)
  8421. case $LD in # libtool.m4 will add one of these switches to LD
  8422. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8423. libsuff= shlibsuff= libmagic=32-bit;;
  8424. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8425. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8426. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8427. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8428. *) libsuff= shlibsuff= libmagic=never-match;;
  8429. esac
  8430. ;;
  8431. esac
  8432. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8433. shlibpath_overrides_runpath=no
  8434. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8435. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8436. hardcode_into_libs=yes
  8437. ;;
  8438. # No shared lib support for Linux oldld, aout, or coff.
  8439. linux*oldld* | linux*aout* | linux*coff*)
  8440. dynamic_linker=no
  8441. ;;
  8442. # This must be Linux ELF.
  8443. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8444. version_type=linux
  8445. need_lib_prefix=no
  8446. need_version=no
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8448. soname_spec='${libname}${release}${shared_ext}$major'
  8449. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8450. shlibpath_var=LD_LIBRARY_PATH
  8451. shlibpath_overrides_runpath=no
  8452. # Some binutils ld are patched to set DT_RUNPATH
  8453. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8454. $as_echo_n "(cached) " >&6
  8455. else
  8456. lt_cv_shlibpath_overrides_runpath=no
  8457. save_LDFLAGS=$LDFLAGS
  8458. save_libdir=$libdir
  8459. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8460. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8462. /* end confdefs.h. */
  8463. int
  8464. main ()
  8465. {
  8466. ;
  8467. return 0;
  8468. }
  8469. _ACEOF
  8470. if ac_fn_c_try_link "$LINENO"; then :
  8471. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8472. lt_cv_shlibpath_overrides_runpath=yes
  8473. fi
  8474. fi
  8475. rm -f core conftest.err conftest.$ac_objext \
  8476. conftest$ac_exeext conftest.$ac_ext
  8477. LDFLAGS=$save_LDFLAGS
  8478. libdir=$save_libdir
  8479. fi
  8480. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8481. # This implies no fast_install, which is unacceptable.
  8482. # Some rework will be needed to allow for fast_install
  8483. # before this can be enabled.
  8484. hardcode_into_libs=yes
  8485. # Add ABI-specific directories to the system library path.
  8486. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  8487. # Append ld.so.conf contents to the search path
  8488. if test -f /etc/ld.so.conf; then
  8489. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8490. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8491. fi
  8492. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8493. # powerpc, because MkLinux only supported shared libraries with the
  8494. # GNU dynamic linker. Since this was broken with cross compilers,
  8495. # most powerpc-linux boxes support dynamic linking these days and
  8496. # people can always --disable-shared, the test was removed, and we
  8497. # assume the GNU/Linux dynamic linker is in use.
  8498. dynamic_linker='GNU/Linux ld.so'
  8499. ;;
  8500. netbsd*)
  8501. version_type=sunos
  8502. need_lib_prefix=no
  8503. need_version=no
  8504. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8506. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8507. dynamic_linker='NetBSD (a.out) ld.so'
  8508. else
  8509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8510. soname_spec='${libname}${release}${shared_ext}$major'
  8511. dynamic_linker='NetBSD ld.elf_so'
  8512. fi
  8513. shlibpath_var=LD_LIBRARY_PATH
  8514. shlibpath_overrides_runpath=yes
  8515. hardcode_into_libs=yes
  8516. ;;
  8517. newsos6)
  8518. version_type=linux
  8519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8520. shlibpath_var=LD_LIBRARY_PATH
  8521. shlibpath_overrides_runpath=yes
  8522. ;;
  8523. *nto* | *qnx*)
  8524. version_type=qnx
  8525. need_lib_prefix=no
  8526. need_version=no
  8527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8528. soname_spec='${libname}${release}${shared_ext}$major'
  8529. shlibpath_var=LD_LIBRARY_PATH
  8530. shlibpath_overrides_runpath=no
  8531. hardcode_into_libs=yes
  8532. dynamic_linker='ldqnx.so'
  8533. ;;
  8534. openbsd*)
  8535. version_type=sunos
  8536. sys_lib_dlsearch_path_spec="/usr/lib"
  8537. need_lib_prefix=no
  8538. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8539. case $host_os in
  8540. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8541. *) need_version=no ;;
  8542. esac
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8544. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8545. shlibpath_var=LD_LIBRARY_PATH
  8546. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8547. case $host_os in
  8548. openbsd2.[89] | openbsd2.[89].*)
  8549. shlibpath_overrides_runpath=no
  8550. ;;
  8551. *)
  8552. shlibpath_overrides_runpath=yes
  8553. ;;
  8554. esac
  8555. else
  8556. shlibpath_overrides_runpath=yes
  8557. fi
  8558. ;;
  8559. os2*)
  8560. libname_spec='$name'
  8561. shrext_cmds=".dll"
  8562. need_lib_prefix=no
  8563. library_names_spec='$libname${shared_ext} $libname.a'
  8564. dynamic_linker='OS/2 ld.exe'
  8565. shlibpath_var=LIBPATH
  8566. ;;
  8567. osf3* | osf4* | osf5*)
  8568. version_type=osf
  8569. need_lib_prefix=no
  8570. need_version=no
  8571. soname_spec='${libname}${release}${shared_ext}$major'
  8572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8573. shlibpath_var=LD_LIBRARY_PATH
  8574. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8575. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8576. ;;
  8577. rdos*)
  8578. dynamic_linker=no
  8579. ;;
  8580. solaris*)
  8581. version_type=linux
  8582. need_lib_prefix=no
  8583. need_version=no
  8584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8585. soname_spec='${libname}${release}${shared_ext}$major'
  8586. shlibpath_var=LD_LIBRARY_PATH
  8587. shlibpath_overrides_runpath=yes
  8588. hardcode_into_libs=yes
  8589. # ldd complains unless libraries are executable
  8590. postinstall_cmds='chmod +x $lib'
  8591. ;;
  8592. sunos4*)
  8593. version_type=sunos
  8594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8595. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8596. shlibpath_var=LD_LIBRARY_PATH
  8597. shlibpath_overrides_runpath=yes
  8598. if test "$with_gnu_ld" = yes; then
  8599. need_lib_prefix=no
  8600. fi
  8601. need_version=yes
  8602. ;;
  8603. sysv4 | sysv4.3*)
  8604. version_type=linux
  8605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8606. soname_spec='${libname}${release}${shared_ext}$major'
  8607. shlibpath_var=LD_LIBRARY_PATH
  8608. case $host_vendor in
  8609. sni)
  8610. shlibpath_overrides_runpath=no
  8611. need_lib_prefix=no
  8612. runpath_var=LD_RUN_PATH
  8613. ;;
  8614. siemens)
  8615. need_lib_prefix=no
  8616. ;;
  8617. motorola)
  8618. need_lib_prefix=no
  8619. need_version=no
  8620. shlibpath_overrides_runpath=no
  8621. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8622. ;;
  8623. esac
  8624. ;;
  8625. sysv4*MP*)
  8626. if test -d /usr/nec ;then
  8627. version_type=linux
  8628. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8629. soname_spec='$libname${shared_ext}.$major'
  8630. shlibpath_var=LD_LIBRARY_PATH
  8631. fi
  8632. ;;
  8633. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8634. version_type=freebsd-elf
  8635. need_lib_prefix=no
  8636. need_version=no
  8637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8638. soname_spec='${libname}${release}${shared_ext}$major'
  8639. shlibpath_var=LD_LIBRARY_PATH
  8640. shlibpath_overrides_runpath=yes
  8641. hardcode_into_libs=yes
  8642. if test "$with_gnu_ld" = yes; then
  8643. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8644. else
  8645. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8646. case $host_os in
  8647. sco3.2v5*)
  8648. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8649. ;;
  8650. esac
  8651. fi
  8652. sys_lib_dlsearch_path_spec='/usr/lib'
  8653. ;;
  8654. tpf*)
  8655. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8656. version_type=linux
  8657. need_lib_prefix=no
  8658. need_version=no
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8660. shlibpath_var=LD_LIBRARY_PATH
  8661. shlibpath_overrides_runpath=no
  8662. hardcode_into_libs=yes
  8663. ;;
  8664. uts4*)
  8665. version_type=linux
  8666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8667. soname_spec='${libname}${release}${shared_ext}$major'
  8668. shlibpath_var=LD_LIBRARY_PATH
  8669. ;;
  8670. *)
  8671. dynamic_linker=no
  8672. ;;
  8673. esac
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8675. $as_echo "$dynamic_linker" >&6; }
  8676. test "$dynamic_linker" = no && can_build_shared=no
  8677. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8678. if test "$GCC" = yes; then
  8679. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8680. fi
  8681. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8682. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8683. fi
  8684. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8685. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8686. fi
  8687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8688. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8689. hardcode_action=
  8690. if test -n "$hardcode_libdir_flag_spec" ||
  8691. test -n "$runpath_var" ||
  8692. test "X$hardcode_automatic" = "Xyes" ; then
  8693. # We can hardcode non-existent directories.
  8694. if test "$hardcode_direct" != no &&
  8695. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8696. # have to relink, otherwise we might link with an installed library
  8697. # when we should be linking with a yet-to-be-installed one
  8698. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8699. test "$hardcode_minus_L" != no; then
  8700. # Linking always hardcodes the temporary library directory.
  8701. hardcode_action=relink
  8702. else
  8703. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8704. hardcode_action=immediate
  8705. fi
  8706. else
  8707. # We cannot hardcode anything, or else we can only hardcode existing
  8708. # directories.
  8709. hardcode_action=unsupported
  8710. fi
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8712. $as_echo "$hardcode_action" >&6; }
  8713. if test "$hardcode_action" = relink ||
  8714. test "$inherit_rpath" = yes; then
  8715. # Fast installation is not supported
  8716. enable_fast_install=no
  8717. elif test "$shlibpath_overrides_runpath" = yes ||
  8718. test "$enable_shared" = no; then
  8719. # Fast installation is not necessary
  8720. enable_fast_install=needless
  8721. fi
  8722. if test "x$enable_dlopen" != xyes; then
  8723. enable_dlopen=unknown
  8724. enable_dlopen_self=unknown
  8725. enable_dlopen_self_static=unknown
  8726. else
  8727. lt_cv_dlopen=no
  8728. lt_cv_dlopen_libs=
  8729. case $host_os in
  8730. beos*)
  8731. lt_cv_dlopen="load_add_on"
  8732. lt_cv_dlopen_libs=
  8733. lt_cv_dlopen_self=yes
  8734. ;;
  8735. mingw* | pw32* | cegcc*)
  8736. lt_cv_dlopen="LoadLibrary"
  8737. lt_cv_dlopen_libs=
  8738. ;;
  8739. cygwin*)
  8740. lt_cv_dlopen="dlopen"
  8741. lt_cv_dlopen_libs=
  8742. ;;
  8743. darwin*)
  8744. # if libdl is installed we need to link against it
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8746. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8747. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8748. $as_echo_n "(cached) " >&6
  8749. else
  8750. ac_check_lib_save_LIBS=$LIBS
  8751. LIBS="-ldl $LIBS"
  8752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8753. /* end confdefs.h. */
  8754. /* Override any GCC internal prototype to avoid an error.
  8755. Use char because int might match the return type of a GCC
  8756. builtin and then its argument prototype would still apply. */
  8757. #ifdef __cplusplus
  8758. extern "C"
  8759. #endif
  8760. char dlopen ();
  8761. int
  8762. main ()
  8763. {
  8764. return dlopen ();
  8765. ;
  8766. return 0;
  8767. }
  8768. _ACEOF
  8769. if ac_fn_c_try_link "$LINENO"; then :
  8770. ac_cv_lib_dl_dlopen=yes
  8771. else
  8772. ac_cv_lib_dl_dlopen=no
  8773. fi
  8774. rm -f core conftest.err conftest.$ac_objext \
  8775. conftest$ac_exeext conftest.$ac_ext
  8776. LIBS=$ac_check_lib_save_LIBS
  8777. fi
  8778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8779. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8780. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8781. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8782. else
  8783. lt_cv_dlopen="dyld"
  8784. lt_cv_dlopen_libs=
  8785. lt_cv_dlopen_self=yes
  8786. fi
  8787. ;;
  8788. *)
  8789. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8790. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8791. lt_cv_dlopen="shl_load"
  8792. else
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8794. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8795. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8796. $as_echo_n "(cached) " >&6
  8797. else
  8798. ac_check_lib_save_LIBS=$LIBS
  8799. LIBS="-ldld $LIBS"
  8800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8801. /* end confdefs.h. */
  8802. /* Override any GCC internal prototype to avoid an error.
  8803. Use char because int might match the return type of a GCC
  8804. builtin and then its argument prototype would still apply. */
  8805. #ifdef __cplusplus
  8806. extern "C"
  8807. #endif
  8808. char shl_load ();
  8809. int
  8810. main ()
  8811. {
  8812. return shl_load ();
  8813. ;
  8814. return 0;
  8815. }
  8816. _ACEOF
  8817. if ac_fn_c_try_link "$LINENO"; then :
  8818. ac_cv_lib_dld_shl_load=yes
  8819. else
  8820. ac_cv_lib_dld_shl_load=no
  8821. fi
  8822. rm -f core conftest.err conftest.$ac_objext \
  8823. conftest$ac_exeext conftest.$ac_ext
  8824. LIBS=$ac_check_lib_save_LIBS
  8825. fi
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8827. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8828. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8829. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8830. else
  8831. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8832. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8833. lt_cv_dlopen="dlopen"
  8834. else
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8836. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8837. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8838. $as_echo_n "(cached) " >&6
  8839. else
  8840. ac_check_lib_save_LIBS=$LIBS
  8841. LIBS="-ldl $LIBS"
  8842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8843. /* end confdefs.h. */
  8844. /* Override any GCC internal prototype to avoid an error.
  8845. Use char because int might match the return type of a GCC
  8846. builtin and then its argument prototype would still apply. */
  8847. #ifdef __cplusplus
  8848. extern "C"
  8849. #endif
  8850. char dlopen ();
  8851. int
  8852. main ()
  8853. {
  8854. return dlopen ();
  8855. ;
  8856. return 0;
  8857. }
  8858. _ACEOF
  8859. if ac_fn_c_try_link "$LINENO"; then :
  8860. ac_cv_lib_dl_dlopen=yes
  8861. else
  8862. ac_cv_lib_dl_dlopen=no
  8863. fi
  8864. rm -f core conftest.err conftest.$ac_objext \
  8865. conftest$ac_exeext conftest.$ac_ext
  8866. LIBS=$ac_check_lib_save_LIBS
  8867. fi
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8869. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8870. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8871. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8872. else
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8874. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8875. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8876. $as_echo_n "(cached) " >&6
  8877. else
  8878. ac_check_lib_save_LIBS=$LIBS
  8879. LIBS="-lsvld $LIBS"
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882. /* Override any GCC internal prototype to avoid an error.
  8883. Use char because int might match the return type of a GCC
  8884. builtin and then its argument prototype would still apply. */
  8885. #ifdef __cplusplus
  8886. extern "C"
  8887. #endif
  8888. char dlopen ();
  8889. int
  8890. main ()
  8891. {
  8892. return dlopen ();
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_link "$LINENO"; then :
  8898. ac_cv_lib_svld_dlopen=yes
  8899. else
  8900. ac_cv_lib_svld_dlopen=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. LIBS=$ac_check_lib_save_LIBS
  8905. fi
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8907. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8908. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8910. else
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8912. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8913. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. ac_check_lib_save_LIBS=$LIBS
  8917. LIBS="-ldld $LIBS"
  8918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8919. /* end confdefs.h. */
  8920. /* Override any GCC internal prototype to avoid an error.
  8921. Use char because int might match the return type of a GCC
  8922. builtin and then its argument prototype would still apply. */
  8923. #ifdef __cplusplus
  8924. extern "C"
  8925. #endif
  8926. char dld_link ();
  8927. int
  8928. main ()
  8929. {
  8930. return dld_link ();
  8931. ;
  8932. return 0;
  8933. }
  8934. _ACEOF
  8935. if ac_fn_c_try_link "$LINENO"; then :
  8936. ac_cv_lib_dld_dld_link=yes
  8937. else
  8938. ac_cv_lib_dld_dld_link=no
  8939. fi
  8940. rm -f core conftest.err conftest.$ac_objext \
  8941. conftest$ac_exeext conftest.$ac_ext
  8942. LIBS=$ac_check_lib_save_LIBS
  8943. fi
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8945. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8946. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8947. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8948. fi
  8949. fi
  8950. fi
  8951. fi
  8952. fi
  8953. fi
  8954. ;;
  8955. esac
  8956. if test "x$lt_cv_dlopen" != xno; then
  8957. enable_dlopen=yes
  8958. else
  8959. enable_dlopen=no
  8960. fi
  8961. case $lt_cv_dlopen in
  8962. dlopen)
  8963. save_CPPFLAGS="$CPPFLAGS"
  8964. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8965. save_LDFLAGS="$LDFLAGS"
  8966. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8967. save_LIBS="$LIBS"
  8968. LIBS="$lt_cv_dlopen_libs $LIBS"
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8970. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8971. if test "${lt_cv_dlopen_self+set}" = set; then :
  8972. $as_echo_n "(cached) " >&6
  8973. else
  8974. if test "$cross_compiling" = yes; then :
  8975. lt_cv_dlopen_self=cross
  8976. else
  8977. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8978. lt_status=$lt_dlunknown
  8979. cat > conftest.$ac_ext <<_LT_EOF
  8980. #line $LINENO "configure"
  8981. #include "confdefs.h"
  8982. #if HAVE_DLFCN_H
  8983. #include <dlfcn.h>
  8984. #endif
  8985. #include <stdio.h>
  8986. #ifdef RTLD_GLOBAL
  8987. # define LT_DLGLOBAL RTLD_GLOBAL
  8988. #else
  8989. # ifdef DL_GLOBAL
  8990. # define LT_DLGLOBAL DL_GLOBAL
  8991. # else
  8992. # define LT_DLGLOBAL 0
  8993. # endif
  8994. #endif
  8995. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8996. find out it does not work in some platform. */
  8997. #ifndef LT_DLLAZY_OR_NOW
  8998. # ifdef RTLD_LAZY
  8999. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9000. # else
  9001. # ifdef DL_LAZY
  9002. # define LT_DLLAZY_OR_NOW DL_LAZY
  9003. # else
  9004. # ifdef RTLD_NOW
  9005. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9006. # else
  9007. # ifdef DL_NOW
  9008. # define LT_DLLAZY_OR_NOW DL_NOW
  9009. # else
  9010. # define LT_DLLAZY_OR_NOW 0
  9011. # endif
  9012. # endif
  9013. # endif
  9014. # endif
  9015. #endif
  9016. /* When -fvisbility=hidden is used, assume the code has been annotated
  9017. correspondingly for the symbols needed. */
  9018. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9019. void fnord () __attribute__((visibility("default")));
  9020. #endif
  9021. void fnord () { int i=42; }
  9022. int main ()
  9023. {
  9024. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9025. int status = $lt_dlunknown;
  9026. if (self)
  9027. {
  9028. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9029. else
  9030. {
  9031. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9032. else puts (dlerror ());
  9033. }
  9034. /* dlclose (self); */
  9035. }
  9036. else
  9037. puts (dlerror ());
  9038. return status;
  9039. }
  9040. _LT_EOF
  9041. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9042. (eval $ac_link) 2>&5
  9043. ac_status=$?
  9044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9045. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9046. (./conftest; exit; ) >&5 2>/dev/null
  9047. lt_status=$?
  9048. case x$lt_status in
  9049. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9050. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9051. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9052. esac
  9053. else :
  9054. # compilation failed
  9055. lt_cv_dlopen_self=no
  9056. fi
  9057. fi
  9058. rm -fr conftest*
  9059. fi
  9060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9061. $as_echo "$lt_cv_dlopen_self" >&6; }
  9062. if test "x$lt_cv_dlopen_self" = xyes; then
  9063. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9065. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9066. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9067. $as_echo_n "(cached) " >&6
  9068. else
  9069. if test "$cross_compiling" = yes; then :
  9070. lt_cv_dlopen_self_static=cross
  9071. else
  9072. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9073. lt_status=$lt_dlunknown
  9074. cat > conftest.$ac_ext <<_LT_EOF
  9075. #line $LINENO "configure"
  9076. #include "confdefs.h"
  9077. #if HAVE_DLFCN_H
  9078. #include <dlfcn.h>
  9079. #endif
  9080. #include <stdio.h>
  9081. #ifdef RTLD_GLOBAL
  9082. # define LT_DLGLOBAL RTLD_GLOBAL
  9083. #else
  9084. # ifdef DL_GLOBAL
  9085. # define LT_DLGLOBAL DL_GLOBAL
  9086. # else
  9087. # define LT_DLGLOBAL 0
  9088. # endif
  9089. #endif
  9090. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9091. find out it does not work in some platform. */
  9092. #ifndef LT_DLLAZY_OR_NOW
  9093. # ifdef RTLD_LAZY
  9094. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9095. # else
  9096. # ifdef DL_LAZY
  9097. # define LT_DLLAZY_OR_NOW DL_LAZY
  9098. # else
  9099. # ifdef RTLD_NOW
  9100. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9101. # else
  9102. # ifdef DL_NOW
  9103. # define LT_DLLAZY_OR_NOW DL_NOW
  9104. # else
  9105. # define LT_DLLAZY_OR_NOW 0
  9106. # endif
  9107. # endif
  9108. # endif
  9109. # endif
  9110. #endif
  9111. /* When -fvisbility=hidden is used, assume the code has been annotated
  9112. correspondingly for the symbols needed. */
  9113. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9114. void fnord () __attribute__((visibility("default")));
  9115. #endif
  9116. void fnord () { int i=42; }
  9117. int main ()
  9118. {
  9119. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9120. int status = $lt_dlunknown;
  9121. if (self)
  9122. {
  9123. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9124. else
  9125. {
  9126. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9127. else puts (dlerror ());
  9128. }
  9129. /* dlclose (self); */
  9130. }
  9131. else
  9132. puts (dlerror ());
  9133. return status;
  9134. }
  9135. _LT_EOF
  9136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9137. (eval $ac_link) 2>&5
  9138. ac_status=$?
  9139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9140. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9141. (./conftest; exit; ) >&5 2>/dev/null
  9142. lt_status=$?
  9143. case x$lt_status in
  9144. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9145. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9146. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9147. esac
  9148. else :
  9149. # compilation failed
  9150. lt_cv_dlopen_self_static=no
  9151. fi
  9152. fi
  9153. rm -fr conftest*
  9154. fi
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9156. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9157. fi
  9158. CPPFLAGS="$save_CPPFLAGS"
  9159. LDFLAGS="$save_LDFLAGS"
  9160. LIBS="$save_LIBS"
  9161. ;;
  9162. esac
  9163. case $lt_cv_dlopen_self in
  9164. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9165. *) enable_dlopen_self=unknown ;;
  9166. esac
  9167. case $lt_cv_dlopen_self_static in
  9168. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9169. *) enable_dlopen_self_static=unknown ;;
  9170. esac
  9171. fi
  9172. striplib=
  9173. old_striplib=
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9175. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9176. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9177. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9178. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9180. $as_echo "yes" >&6; }
  9181. else
  9182. # FIXME - insert some real tests, host_os isn't really good enough
  9183. case $host_os in
  9184. darwin*)
  9185. if test -n "$STRIP" ; then
  9186. striplib="$STRIP -x"
  9187. old_striplib="$STRIP -S"
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9189. $as_echo "yes" >&6; }
  9190. else
  9191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9192. $as_echo "no" >&6; }
  9193. fi
  9194. ;;
  9195. *)
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9197. $as_echo "no" >&6; }
  9198. ;;
  9199. esac
  9200. fi
  9201. # Report which library types will actually be built
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9203. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9205. $as_echo "$can_build_shared" >&6; }
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9207. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9208. test "$can_build_shared" = "no" && enable_shared=no
  9209. # On AIX, shared libraries and static libraries use the same namespace, and
  9210. # are all built from PIC.
  9211. case $host_os in
  9212. aix3*)
  9213. test "$enable_shared" = yes && enable_static=no
  9214. if test -n "$RANLIB"; then
  9215. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9216. postinstall_cmds='$RANLIB $lib'
  9217. fi
  9218. ;;
  9219. aix[4-9]*)
  9220. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9221. test "$enable_shared" = yes && enable_static=no
  9222. fi
  9223. ;;
  9224. esac
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9226. $as_echo "$enable_shared" >&6; }
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9228. $as_echo_n "checking whether to build static libraries... " >&6; }
  9229. # Make sure either enable_shared or enable_static is yes.
  9230. test "$enable_shared" = yes || enable_static=yes
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9232. $as_echo "$enable_static" >&6; }
  9233. fi
  9234. ac_ext=c
  9235. ac_cpp='$CPP $CPPFLAGS'
  9236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9239. CC="$lt_save_CC"
  9240. ac_config_commands="$ac_config_commands libtool"
  9241. # Only expand once:
  9242. for ac_prog in gawk mawk nawk awk
  9243. do
  9244. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9245. set dummy $ac_prog; ac_word=$2
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9247. $as_echo_n "checking for $ac_word... " >&6; }
  9248. if test "${ac_cv_prog_AWK+set}" = set; then :
  9249. $as_echo_n "(cached) " >&6
  9250. else
  9251. if test -n "$AWK"; then
  9252. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  9253. else
  9254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9255. for as_dir in $PATH
  9256. do
  9257. IFS=$as_save_IFS
  9258. test -z "$as_dir" && as_dir=.
  9259. for ac_exec_ext in '' $ac_executable_extensions; do
  9260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9261. ac_cv_prog_AWK="$ac_prog"
  9262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9263. break 2
  9264. fi
  9265. done
  9266. done
  9267. IFS=$as_save_IFS
  9268. fi
  9269. fi
  9270. AWK=$ac_cv_prog_AWK
  9271. if test -n "$AWK"; then
  9272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  9273. $as_echo "$AWK" >&6; }
  9274. else
  9275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9276. $as_echo "no" >&6; }
  9277. fi
  9278. test -n "$AWK" && break
  9279. done
  9280. ac_ext=c
  9281. ac_cpp='$CPP $CPPFLAGS'
  9282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9285. if test -n "$ac_tool_prefix"; then
  9286. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9287. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9289. $as_echo_n "checking for $ac_word... " >&6; }
  9290. if test "${ac_cv_prog_CC+set}" = set; then :
  9291. $as_echo_n "(cached) " >&6
  9292. else
  9293. if test -n "$CC"; then
  9294. ac_cv_prog_CC="$CC" # Let the user override the test.
  9295. else
  9296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9297. for as_dir in $PATH
  9298. do
  9299. IFS=$as_save_IFS
  9300. test -z "$as_dir" && as_dir=.
  9301. for ac_exec_ext in '' $ac_executable_extensions; do
  9302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9303. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9305. break 2
  9306. fi
  9307. done
  9308. done
  9309. IFS=$as_save_IFS
  9310. fi
  9311. fi
  9312. CC=$ac_cv_prog_CC
  9313. if test -n "$CC"; then
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9315. $as_echo "$CC" >&6; }
  9316. else
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9318. $as_echo "no" >&6; }
  9319. fi
  9320. fi
  9321. if test -z "$ac_cv_prog_CC"; then
  9322. ac_ct_CC=$CC
  9323. # Extract the first word of "gcc", so it can be a program name with args.
  9324. set dummy gcc; ac_word=$2
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9326. $as_echo_n "checking for $ac_word... " >&6; }
  9327. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. if test -n "$ac_ct_CC"; then
  9331. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9332. else
  9333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9334. for as_dir in $PATH
  9335. do
  9336. IFS=$as_save_IFS
  9337. test -z "$as_dir" && as_dir=.
  9338. for ac_exec_ext in '' $ac_executable_extensions; do
  9339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9340. ac_cv_prog_ac_ct_CC="gcc"
  9341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9342. break 2
  9343. fi
  9344. done
  9345. done
  9346. IFS=$as_save_IFS
  9347. fi
  9348. fi
  9349. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9350. if test -n "$ac_ct_CC"; then
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9352. $as_echo "$ac_ct_CC" >&6; }
  9353. else
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9355. $as_echo "no" >&6; }
  9356. fi
  9357. if test "x$ac_ct_CC" = x; then
  9358. CC=""
  9359. else
  9360. case $cross_compiling:$ac_tool_warned in
  9361. yes:)
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9363. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9364. ac_tool_warned=yes ;;
  9365. esac
  9366. CC=$ac_ct_CC
  9367. fi
  9368. else
  9369. CC="$ac_cv_prog_CC"
  9370. fi
  9371. if test -z "$CC"; then
  9372. if test -n "$ac_tool_prefix"; then
  9373. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9374. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9376. $as_echo_n "checking for $ac_word... " >&6; }
  9377. if test "${ac_cv_prog_CC+set}" = set; then :
  9378. $as_echo_n "(cached) " >&6
  9379. else
  9380. if test -n "$CC"; then
  9381. ac_cv_prog_CC="$CC" # Let the user override the test.
  9382. else
  9383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9384. for as_dir in $PATH
  9385. do
  9386. IFS=$as_save_IFS
  9387. test -z "$as_dir" && as_dir=.
  9388. for ac_exec_ext in '' $ac_executable_extensions; do
  9389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9390. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9392. break 2
  9393. fi
  9394. done
  9395. done
  9396. IFS=$as_save_IFS
  9397. fi
  9398. fi
  9399. CC=$ac_cv_prog_CC
  9400. if test -n "$CC"; then
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9402. $as_echo "$CC" >&6; }
  9403. else
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9405. $as_echo "no" >&6; }
  9406. fi
  9407. fi
  9408. fi
  9409. if test -z "$CC"; then
  9410. # Extract the first word of "cc", so it can be a program name with args.
  9411. set dummy cc; ac_word=$2
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9413. $as_echo_n "checking for $ac_word... " >&6; }
  9414. if test "${ac_cv_prog_CC+set}" = set; then :
  9415. $as_echo_n "(cached) " >&6
  9416. else
  9417. if test -n "$CC"; then
  9418. ac_cv_prog_CC="$CC" # Let the user override the test.
  9419. else
  9420. ac_prog_rejected=no
  9421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9422. for as_dir in $PATH
  9423. do
  9424. IFS=$as_save_IFS
  9425. test -z "$as_dir" && as_dir=.
  9426. for ac_exec_ext in '' $ac_executable_extensions; do
  9427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9428. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9429. ac_prog_rejected=yes
  9430. continue
  9431. fi
  9432. ac_cv_prog_CC="cc"
  9433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9434. break 2
  9435. fi
  9436. done
  9437. done
  9438. IFS=$as_save_IFS
  9439. if test $ac_prog_rejected = yes; then
  9440. # We found a bogon in the path, so make sure we never use it.
  9441. set dummy $ac_cv_prog_CC
  9442. shift
  9443. if test $# != 0; then
  9444. # We chose a different compiler from the bogus one.
  9445. # However, it has the same basename, so the bogon will be chosen
  9446. # first if we set CC to just the basename; use the full file name.
  9447. shift
  9448. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9449. fi
  9450. fi
  9451. fi
  9452. fi
  9453. CC=$ac_cv_prog_CC
  9454. if test -n "$CC"; then
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9456. $as_echo "$CC" >&6; }
  9457. else
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9459. $as_echo "no" >&6; }
  9460. fi
  9461. fi
  9462. if test -z "$CC"; then
  9463. if test -n "$ac_tool_prefix"; then
  9464. for ac_prog in cl.exe
  9465. do
  9466. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9467. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9469. $as_echo_n "checking for $ac_word... " >&6; }
  9470. if test "${ac_cv_prog_CC+set}" = set; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. if test -n "$CC"; then
  9474. ac_cv_prog_CC="$CC" # Let the user override the test.
  9475. else
  9476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9477. for as_dir in $PATH
  9478. do
  9479. IFS=$as_save_IFS
  9480. test -z "$as_dir" && as_dir=.
  9481. for ac_exec_ext in '' $ac_executable_extensions; do
  9482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9483. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9485. break 2
  9486. fi
  9487. done
  9488. done
  9489. IFS=$as_save_IFS
  9490. fi
  9491. fi
  9492. CC=$ac_cv_prog_CC
  9493. if test -n "$CC"; then
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9495. $as_echo "$CC" >&6; }
  9496. else
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9498. $as_echo "no" >&6; }
  9499. fi
  9500. test -n "$CC" && break
  9501. done
  9502. fi
  9503. if test -z "$CC"; then
  9504. ac_ct_CC=$CC
  9505. for ac_prog in cl.exe
  9506. do
  9507. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9508. set dummy $ac_prog; ac_word=$2
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9510. $as_echo_n "checking for $ac_word... " >&6; }
  9511. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9512. $as_echo_n "(cached) " >&6
  9513. else
  9514. if test -n "$ac_ct_CC"; then
  9515. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9516. else
  9517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9518. for as_dir in $PATH
  9519. do
  9520. IFS=$as_save_IFS
  9521. test -z "$as_dir" && as_dir=.
  9522. for ac_exec_ext in '' $ac_executable_extensions; do
  9523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9524. ac_cv_prog_ac_ct_CC="$ac_prog"
  9525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9526. break 2
  9527. fi
  9528. done
  9529. done
  9530. IFS=$as_save_IFS
  9531. fi
  9532. fi
  9533. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9534. if test -n "$ac_ct_CC"; then
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9536. $as_echo "$ac_ct_CC" >&6; }
  9537. else
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9539. $as_echo "no" >&6; }
  9540. fi
  9541. test -n "$ac_ct_CC" && break
  9542. done
  9543. if test "x$ac_ct_CC" = x; then
  9544. CC=""
  9545. else
  9546. case $cross_compiling:$ac_tool_warned in
  9547. yes:)
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9550. ac_tool_warned=yes ;;
  9551. esac
  9552. CC=$ac_ct_CC
  9553. fi
  9554. fi
  9555. fi
  9556. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9558. as_fn_error $? "no acceptable C compiler found in \$PATH
  9559. See \`config.log' for more details" "$LINENO" 5; }
  9560. # Provide some information about the compiler.
  9561. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9562. set X $ac_compile
  9563. ac_compiler=$2
  9564. for ac_option in --version -v -V -qversion; do
  9565. { { ac_try="$ac_compiler $ac_option >&5"
  9566. case "(($ac_try" in
  9567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9568. *) ac_try_echo=$ac_try;;
  9569. esac
  9570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9571. $as_echo "$ac_try_echo"; } >&5
  9572. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9573. ac_status=$?
  9574. if test -s conftest.err; then
  9575. sed '10a\
  9576. ... rest of stderr output deleted ...
  9577. 10q' conftest.err >conftest.er1
  9578. cat conftest.er1 >&5
  9579. fi
  9580. rm -f conftest.er1 conftest.err
  9581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9582. test $ac_status = 0; }
  9583. done
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9585. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9586. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  9587. $as_echo_n "(cached) " >&6
  9588. else
  9589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9590. /* end confdefs.h. */
  9591. int
  9592. main ()
  9593. {
  9594. #ifndef __GNUC__
  9595. choke me
  9596. #endif
  9597. ;
  9598. return 0;
  9599. }
  9600. _ACEOF
  9601. if ac_fn_c_try_compile "$LINENO"; then :
  9602. ac_compiler_gnu=yes
  9603. else
  9604. ac_compiler_gnu=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9607. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9608. fi
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9610. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9611. if test $ac_compiler_gnu = yes; then
  9612. GCC=yes
  9613. else
  9614. GCC=
  9615. fi
  9616. ac_test_CFLAGS=${CFLAGS+set}
  9617. ac_save_CFLAGS=$CFLAGS
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9619. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9620. if test "${ac_cv_prog_cc_g+set}" = set; then :
  9621. $as_echo_n "(cached) " >&6
  9622. else
  9623. ac_save_c_werror_flag=$ac_c_werror_flag
  9624. ac_c_werror_flag=yes
  9625. ac_cv_prog_cc_g=no
  9626. CFLAGS="-g"
  9627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9628. /* end confdefs.h. */
  9629. int
  9630. main ()
  9631. {
  9632. ;
  9633. return 0;
  9634. }
  9635. _ACEOF
  9636. if ac_fn_c_try_compile "$LINENO"; then :
  9637. ac_cv_prog_cc_g=yes
  9638. else
  9639. CFLAGS=""
  9640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9641. /* end confdefs.h. */
  9642. int
  9643. main ()
  9644. {
  9645. ;
  9646. return 0;
  9647. }
  9648. _ACEOF
  9649. if ac_fn_c_try_compile "$LINENO"; then :
  9650. else
  9651. ac_c_werror_flag=$ac_save_c_werror_flag
  9652. CFLAGS="-g"
  9653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9654. /* end confdefs.h. */
  9655. int
  9656. main ()
  9657. {
  9658. ;
  9659. return 0;
  9660. }
  9661. _ACEOF
  9662. if ac_fn_c_try_compile "$LINENO"; then :
  9663. ac_cv_prog_cc_g=yes
  9664. fi
  9665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9666. fi
  9667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9668. fi
  9669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9670. ac_c_werror_flag=$ac_save_c_werror_flag
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9673. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9674. if test "$ac_test_CFLAGS" = set; then
  9675. CFLAGS=$ac_save_CFLAGS
  9676. elif test $ac_cv_prog_cc_g = yes; then
  9677. if test "$GCC" = yes; then
  9678. CFLAGS="-g -O2"
  9679. else
  9680. CFLAGS="-g"
  9681. fi
  9682. else
  9683. if test "$GCC" = yes; then
  9684. CFLAGS="-O2"
  9685. else
  9686. CFLAGS=
  9687. fi
  9688. fi
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9690. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9691. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  9692. $as_echo_n "(cached) " >&6
  9693. else
  9694. ac_cv_prog_cc_c89=no
  9695. ac_save_CC=$CC
  9696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9697. /* end confdefs.h. */
  9698. #include <stdarg.h>
  9699. #include <stdio.h>
  9700. #include <sys/types.h>
  9701. #include <sys/stat.h>
  9702. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9703. struct buf { int x; };
  9704. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9705. static char *e (p, i)
  9706. char **p;
  9707. int i;
  9708. {
  9709. return p[i];
  9710. }
  9711. static char *f (char * (*g) (char **, int), char **p, ...)
  9712. {
  9713. char *s;
  9714. va_list v;
  9715. va_start (v,p);
  9716. s = g (p, va_arg (v,int));
  9717. va_end (v);
  9718. return s;
  9719. }
  9720. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9721. function prototypes and stuff, but not '\xHH' hex character constants.
  9722. These don't provoke an error unfortunately, instead are silently treated
  9723. as 'x'. The following induces an error, until -std is added to get
  9724. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9725. array size at least. It's necessary to write '\x00'==0 to get something
  9726. that's true only with -std. */
  9727. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9728. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9729. inside strings and character constants. */
  9730. #define FOO(x) 'x'
  9731. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9732. int test (int i, double x);
  9733. struct s1 {int (*f) (int a);};
  9734. struct s2 {int (*f) (double a);};
  9735. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9736. int argc;
  9737. char **argv;
  9738. int
  9739. main ()
  9740. {
  9741. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9747. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9748. do
  9749. CC="$ac_save_CC $ac_arg"
  9750. if ac_fn_c_try_compile "$LINENO"; then :
  9751. ac_cv_prog_cc_c89=$ac_arg
  9752. fi
  9753. rm -f core conftest.err conftest.$ac_objext
  9754. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9755. done
  9756. rm -f conftest.$ac_ext
  9757. CC=$ac_save_CC
  9758. fi
  9759. # AC_CACHE_VAL
  9760. case "x$ac_cv_prog_cc_c89" in
  9761. x)
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9763. $as_echo "none needed" >&6; } ;;
  9764. xno)
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9766. $as_echo "unsupported" >&6; } ;;
  9767. *)
  9768. CC="$CC $ac_cv_prog_cc_c89"
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9770. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9771. esac
  9772. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9773. fi
  9774. ac_ext=c
  9775. ac_cpp='$CPP $CPPFLAGS'
  9776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9779. depcc="$CC" am_compiler_list=
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9781. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9782. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  9783. $as_echo_n "(cached) " >&6
  9784. else
  9785. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9786. # We make a subdir and do the tests there. Otherwise we can end up
  9787. # making bogus files that we don't know about and never remove. For
  9788. # instance it was reported that on HP-UX the gcc test will end up
  9789. # making a dummy file named `D' -- because `-MD' means `put the output
  9790. # in D'.
  9791. mkdir conftest.dir
  9792. # Copy depcomp to subdir because otherwise we won't find it if we're
  9793. # using a relative directory.
  9794. cp "$am_depcomp" conftest.dir
  9795. cd conftest.dir
  9796. # We will build objects and dependencies in a subdirectory because
  9797. # it helps to detect inapplicable dependency modes. For instance
  9798. # both Tru64's cc and ICC support -MD to output dependencies as a
  9799. # side effect of compilation, but ICC will put the dependencies in
  9800. # the current directory while Tru64 will put them in the object
  9801. # directory.
  9802. mkdir sub
  9803. am_cv_CC_dependencies_compiler_type=none
  9804. if test "$am_compiler_list" = ""; then
  9805. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9806. fi
  9807. am__universal=false
  9808. case " $depcc " in #(
  9809. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9810. esac
  9811. for depmode in $am_compiler_list; do
  9812. # Setup a source with many dependencies, because some compilers
  9813. # like to wrap large dependency lists on column 80 (with \), and
  9814. # we should not choose a depcomp mode which is confused by this.
  9815. #
  9816. # We need to recreate these files for each test, as the compiler may
  9817. # overwrite some of them when testing with obscure command lines.
  9818. # This happens at least with the AIX C compiler.
  9819. : > sub/conftest.c
  9820. for i in 1 2 3 4 5 6; do
  9821. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9822. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9823. # Solaris 8's {/usr,}/bin/sh.
  9824. touch sub/conftst$i.h
  9825. done
  9826. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9827. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9828. # mode. It turns out that the SunPro C++ compiler does not properly
  9829. # handle `-M -o', and we need to detect this. Also, some Intel
  9830. # versions had trouble with output in subdirs
  9831. am__obj=sub/conftest.${OBJEXT-o}
  9832. am__minus_obj="-o $am__obj"
  9833. case $depmode in
  9834. gcc)
  9835. # This depmode causes a compiler race in universal mode.
  9836. test "$am__universal" = false || continue
  9837. ;;
  9838. nosideeffect)
  9839. # after this tag, mechanisms are not by side-effect, so they'll
  9840. # only be used when explicitly requested
  9841. if test "x$enable_dependency_tracking" = xyes; then
  9842. continue
  9843. else
  9844. break
  9845. fi
  9846. ;;
  9847. msvisualcpp | msvcmsys)
  9848. # This compiler won't grok `-c -o', but also, the minuso test has
  9849. # not run yet. These depmodes are late enough in the game, and
  9850. # so weak that their functioning should not be impacted.
  9851. am__obj=conftest.${OBJEXT-o}
  9852. am__minus_obj=
  9853. ;;
  9854. none) break ;;
  9855. esac
  9856. if depmode=$depmode \
  9857. source=sub/conftest.c object=$am__obj \
  9858. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9859. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9860. >/dev/null 2>conftest.err &&
  9861. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9862. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9863. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9864. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9865. # icc doesn't choke on unknown options, it will just issue warnings
  9866. # or remarks (even with -Werror). So we grep stderr for any message
  9867. # that says an option was ignored or not supported.
  9868. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9869. # icc: Command line warning: ignoring option '-M'; no argument required
  9870. # The diagnosis changed in icc 8.0:
  9871. # icc: Command line remark: option '-MP' not supported
  9872. if (grep 'ignoring option' conftest.err ||
  9873. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9874. am_cv_CC_dependencies_compiler_type=$depmode
  9875. break
  9876. fi
  9877. fi
  9878. done
  9879. cd ..
  9880. rm -rf conftest.dir
  9881. else
  9882. am_cv_CC_dependencies_compiler_type=none
  9883. fi
  9884. fi
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  9886. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  9887. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9888. if
  9889. test "x$enable_dependency_tracking" != xno \
  9890. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9891. am__fastdepCC_TRUE=
  9892. am__fastdepCC_FALSE='#'
  9893. else
  9894. am__fastdepCC_TRUE='#'
  9895. am__fastdepCC_FALSE=
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9898. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9899. set x ${MAKE-make}
  9900. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9901. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  9902. $as_echo_n "(cached) " >&6
  9903. else
  9904. cat >conftest.make <<\_ACEOF
  9905. SHELL = /bin/sh
  9906. all:
  9907. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9908. _ACEOF
  9909. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  9910. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9911. *@@@%%%=?*=@@@%%%*)
  9912. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9913. *)
  9914. eval ac_cv_prog_make_${ac_make}_set=no;;
  9915. esac
  9916. rm -f conftest.make
  9917. fi
  9918. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9920. $as_echo "yes" >&6; }
  9921. SET_MAKE=
  9922. else
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9924. $as_echo "no" >&6; }
  9925. SET_MAKE="MAKE=${MAKE-make}"
  9926. fi
  9927. #------------------------------
  9928. # Set install path variables
  9929. #------------------------------
  9930. # Check whether --with-tmp was given.
  9931. if test "${with_tmp+set}" = set; then :
  9932. withval=$with_tmp; TMP=${withval}
  9933. else
  9934. TMP=/tmp
  9935. fi
  9936. # Check whether --with-apxs was given.
  9937. if test "${with_apxs+set}" = set; then :
  9938. withval=$with_apxs; APXS2=${withval}
  9939. else
  9940. APXS2=/usr/bin/apxs2
  9941. fi
  9942. if ! test -x "$APXS2"; then
  9943. for i in /usr/bin /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin ; do
  9944. for j in apxs apxs2 ; do
  9945. if test -x "$i/$j"; then
  9946. APXS2="$i/$j"
  9947. break
  9948. fi
  9949. done
  9950. done
  9951. fi
  9952. # Check whether --with-apache was given.
  9953. if test "${with_apache+set}" = set; then :
  9954. withval=$with_apache; APACHE2_HEADERS=${withval}
  9955. else
  9956. APACHE2_HEADERS=/usr/include/apache2
  9957. fi
  9958. if ! test -d "$APACHE2_HEADERS"; then
  9959. for i in /usr/include/httpd ; do
  9960. if test -d "$i"; then
  9961. APACHE2_HEADERS="$i"
  9962. break
  9963. fi
  9964. done
  9965. fi
  9966. # Check whether --with-apr was given.
  9967. if test "${with_apr+set}" = set; then :
  9968. withval=$with_apr; APR_HEADERS=${withval}
  9969. else
  9970. APR_HEADERS=/usr/include/apr-1.0
  9971. fi
  9972. if ! test -d "$APR_HEADERS"; then
  9973. for i in /usr/include/apr-1 ; do
  9974. if test -d "$i"; then
  9975. APR_HEADERS="$i"
  9976. break
  9977. fi
  9978. done
  9979. fi
  9980. # Check whether --with-libxml was given.
  9981. if test "${with_libxml+set}" = set; then :
  9982. withval=$with_libxml; LIBXML2_HEADERS=${withval}
  9983. else
  9984. LIBXML2_HEADERS=/usr/include/libxml2/
  9985. fi
  9986. # Check whether --with-includes was given.
  9987. if test "${with_includes+set}" = set; then :
  9988. withval=$with_includes; EXTRA_USER_INCLUDES=${withval}
  9989. fi
  9990. # Check whether --with-libraries was given.
  9991. if test "${with_libraries+set}" = set; then :
  9992. withval=$with_libraries; EXTRA_USER_LIBRARIES=${withval}
  9993. fi
  9994. # Change these lists to proper compiler/linker options
  9995. IFSBAK=${IFS}
  9996. IFS="${IFS}:"
  9997. for dir in $EXTRA_USER_INCLUDES; do
  9998. if test -d "$dir"; then
  9999. INCLUDES="$INCLUDES -I$dir"
  10000. else
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
  10002. $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
  10003. fi
  10004. done
  10005. for dir in $EXTRA_USER_LIBRARIES; do
  10006. if test -d "$dir"; then
  10007. LIBDIRS="$LIBDIRS -L$dir"
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
  10010. $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
  10011. fi
  10012. done
  10013. IFS=${IFSBAK}
  10014. ac_config_files="$ac_config_files Makefile src/Makefile"
  10015. #PYTHON TESTS
  10016. if test x$OSRF_INSTALL_PYTHON = xtrue; then
  10017. # Extract the first word of "python", so it can be a program name with args.
  10018. set dummy python; ac_word=$2
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10020. $as_echo_n "checking for $ac_word... " >&6; }
  10021. if test "${ac_cv_prog_HAVE_PYTHON+set}" = set; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. if test -n "$HAVE_PYTHON"; then
  10025. ac_cv_prog_HAVE_PYTHON="$HAVE_PYTHON" # Let the user override the test.
  10026. else
  10027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10028. for as_dir in $PATH
  10029. do
  10030. IFS=$as_save_IFS
  10031. test -z "$as_dir" && as_dir=.
  10032. for ac_exec_ext in '' $ac_executable_extensions; do
  10033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10034. ac_cv_prog_HAVE_PYTHON="yes"
  10035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10036. break 2
  10037. fi
  10038. done
  10039. done
  10040. IFS=$as_save_IFS
  10041. test -z "$ac_cv_prog_HAVE_PYTHON" && ac_cv_prog_HAVE_PYTHON="no"
  10042. fi
  10043. fi
  10044. HAVE_PYTHON=$ac_cv_prog_HAVE_PYTHON
  10045. if test -n "$HAVE_PYTHON"; then
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PYTHON" >&5
  10047. $as_echo "$HAVE_PYTHON" >&6; }
  10048. else
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10050. $as_echo "no" >&6; }
  10051. fi
  10052. if test $HAVE_PYTHON = "no"; then
  10053. as_fn_error $? "*** python not found, aborting" "$LINENO" 5
  10054. fi
  10055. if test -z $PYTHON;
  10056. then
  10057. PYTHON="python"
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setuptools" >&5
  10060. $as_echo_n "checking $PYTHON_NAME module: setuptools... " >&6; }
  10061. $PYTHON -c "import setuptools" 2>/dev/null
  10062. if test $? -eq 0;
  10063. then
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10065. $as_echo "yes" >&6; }
  10066. eval HAVE_PYMOD_SETUPTOOLS=yes
  10067. else
  10068. as_fn_error $? "failed to find required module setuptools" "$LINENO" 5
  10069. exit 1
  10070. fi
  10071. ac_config_files="$ac_config_files examples/math_client.py examples/simple_text.py src/python/Makefile"
  10072. fi
  10073. if test "x$OSRF_INSTALL_CORE" = "xtrue"; then
  10074. #--------------------------------
  10075. # Check for dependencies.
  10076. #--------------------------------
  10077. #APACHE PREFORK DEV TEST
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking APXS" >&5
  10079. $as_echo_n "checking APXS... " >&6; }
  10080. if test -f "${APXS2}"; then
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10082. $as_echo "yes" >&6; }
  10083. else
  10084. as_fn_error $? "*** apxs not found, aborting" "$LINENO" 5
  10085. fi
  10086. #-----------------------------
  10087. # Checks for libraries.
  10088. #-----------------------------
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlerror" >&5
  10090. $as_echo_n "checking for library containing dlerror... " >&6; }
  10091. if test "${ac_cv_search_dlerror+set}" = set; then :
  10092. $as_echo_n "(cached) " >&6
  10093. else
  10094. ac_func_search_save_LIBS=$LIBS
  10095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10096. /* end confdefs.h. */
  10097. /* Override any GCC internal prototype to avoid an error.
  10098. Use char because int might match the return type of a GCC
  10099. builtin and then its argument prototype would still apply. */
  10100. #ifdef __cplusplus
  10101. extern "C"
  10102. #endif
  10103. char dlerror ();
  10104. int
  10105. main ()
  10106. {
  10107. return dlerror ();
  10108. ;
  10109. return 0;
  10110. }
  10111. _ACEOF
  10112. for ac_lib in '' dl; do
  10113. if test -z "$ac_lib"; then
  10114. ac_res="none required"
  10115. else
  10116. ac_res=-l$ac_lib
  10117. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10118. fi
  10119. if ac_fn_c_try_link "$LINENO"; then :
  10120. ac_cv_search_dlerror=$ac_res
  10121. fi
  10122. rm -f core conftest.err conftest.$ac_objext \
  10123. conftest$ac_exeext
  10124. if test "${ac_cv_search_dlerror+set}" = set; then :
  10125. break
  10126. fi
  10127. done
  10128. if test "${ac_cv_search_dlerror+set}" = set; then :
  10129. else
  10130. ac_cv_search_dlerror=no
  10131. fi
  10132. rm conftest.$ac_ext
  10133. LIBS=$ac_func_search_save_LIBS
  10134. fi
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlerror" >&5
  10136. $as_echo "$ac_cv_search_dlerror" >&6; }
  10137. ac_res=$ac_cv_search_dlerror
  10138. if test "$ac_res" != no; then :
  10139. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10140. else
  10141. as_fn_error $? "***OpenSRF requires a library (typically libdl) that provides dlerror()" "$LINENO" 5
  10142. fi
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
  10144. $as_echo_n "checking for initscr in -lncurses... " >&6; }
  10145. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. ac_check_lib_save_LIBS=$LIBS
  10149. LIBS="-lncurses $LIBS"
  10150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10151. /* end confdefs.h. */
  10152. /* Override any GCC internal prototype to avoid an error.
  10153. Use char because int might match the return type of a GCC
  10154. builtin and then its argument prototype would still apply. */
  10155. #ifdef __cplusplus
  10156. extern "C"
  10157. #endif
  10158. char initscr ();
  10159. int
  10160. main ()
  10161. {
  10162. return initscr ();
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. if ac_fn_c_try_link "$LINENO"; then :
  10168. ac_cv_lib_ncurses_initscr=yes
  10169. else
  10170. ac_cv_lib_ncurses_initscr=no
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. LIBS=$ac_check_lib_save_LIBS
  10175. fi
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
  10177. $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
  10178. if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
  10179. cat >>confdefs.h <<_ACEOF
  10180. #define HAVE_LIBNCURSES 1
  10181. _ACEOF
  10182. LIBS="-lncurses $LIBS"
  10183. else
  10184. as_fn_error $? "***OpenSRF requires ncurses development headers" "$LINENO" 5
  10185. fi
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  10187. $as_echo_n "checking for readline in -lreadline... " >&6; }
  10188. if test "${ac_cv_lib_readline_readline+set}" = set; then :
  10189. $as_echo_n "(cached) " >&6
  10190. else
  10191. ac_check_lib_save_LIBS=$LIBS
  10192. LIBS="-lreadline $LIBS"
  10193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10194. /* end confdefs.h. */
  10195. /* Override any GCC internal prototype to avoid an error.
  10196. Use char because int might match the return type of a GCC
  10197. builtin and then its argument prototype would still apply. */
  10198. #ifdef __cplusplus
  10199. extern "C"
  10200. #endif
  10201. char readline ();
  10202. int
  10203. main ()
  10204. {
  10205. return readline ();
  10206. ;
  10207. return 0;
  10208. }
  10209. _ACEOF
  10210. if ac_fn_c_try_link "$LINENO"; then :
  10211. ac_cv_lib_readline_readline=yes
  10212. else
  10213. ac_cv_lib_readline_readline=no
  10214. fi
  10215. rm -f core conftest.err conftest.$ac_objext \
  10216. conftest$ac_exeext conftest.$ac_ext
  10217. LIBS=$ac_check_lib_save_LIBS
  10218. fi
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  10220. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  10221. if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  10222. cat >>confdefs.h <<_ACEOF
  10223. #define HAVE_LIBREADLINE 1
  10224. _ACEOF
  10225. LIBS="-lreadline $LIBS"
  10226. else
  10227. as_fn_error $? "***OpenSRF requires readline development headers" "$LINENO" 5
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlAddID in -lxml2" >&5
  10230. $as_echo_n "checking for xmlAddID in -lxml2... " >&6; }
  10231. if test "${ac_cv_lib_xml2_xmlAddID+set}" = set; then :
  10232. $as_echo_n "(cached) " >&6
  10233. else
  10234. ac_check_lib_save_LIBS=$LIBS
  10235. LIBS="-lxml2 $LIBS"
  10236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10237. /* end confdefs.h. */
  10238. /* Override any GCC internal prototype to avoid an error.
  10239. Use char because int might match the return type of a GCC
  10240. builtin and then its argument prototype would still apply. */
  10241. #ifdef __cplusplus
  10242. extern "C"
  10243. #endif
  10244. char xmlAddID ();
  10245. int
  10246. main ()
  10247. {
  10248. return xmlAddID ();
  10249. ;
  10250. return 0;
  10251. }
  10252. _ACEOF
  10253. if ac_fn_c_try_link "$LINENO"; then :
  10254. ac_cv_lib_xml2_xmlAddID=yes
  10255. else
  10256. ac_cv_lib_xml2_xmlAddID=no
  10257. fi
  10258. rm -f core conftest.err conftest.$ac_objext \
  10259. conftest$ac_exeext conftest.$ac_ext
  10260. LIBS=$ac_check_lib_save_LIBS
  10261. fi
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlAddID" >&5
  10263. $as_echo "$ac_cv_lib_xml2_xmlAddID" >&6; }
  10264. if test "x$ac_cv_lib_xml2_xmlAddID" = x""yes; then :
  10265. cat >>confdefs.h <<_ACEOF
  10266. #define HAVE_LIBXML2 1
  10267. _ACEOF
  10268. LIBS="-lxml2 $LIBS"
  10269. else
  10270. as_fn_error $? "***OpenSRF requires xml2 development headers" "$LINENO" 5
  10271. fi
  10272. # Check for libmemcached and set flags accordingly
  10273. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10274. if test -n "$ac_tool_prefix"; then
  10275. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10276. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10278. $as_echo_n "checking for $ac_word... " >&6; }
  10279. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10280. $as_echo_n "(cached) " >&6
  10281. else
  10282. case $PKG_CONFIG in
  10283. [\\/]* | ?:[\\/]*)
  10284. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10285. ;;
  10286. *)
  10287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10288. for as_dir in $PATH
  10289. do
  10290. IFS=$as_save_IFS
  10291. test -z "$as_dir" && as_dir=.
  10292. for ac_exec_ext in '' $ac_executable_extensions; do
  10293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10294. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10296. break 2
  10297. fi
  10298. done
  10299. done
  10300. IFS=$as_save_IFS
  10301. ;;
  10302. esac
  10303. fi
  10304. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10305. if test -n "$PKG_CONFIG"; then
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10307. $as_echo "$PKG_CONFIG" >&6; }
  10308. else
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10310. $as_echo "no" >&6; }
  10311. fi
  10312. fi
  10313. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10314. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10315. # Extract the first word of "pkg-config", so it can be a program name with args.
  10316. set dummy pkg-config; ac_word=$2
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10318. $as_echo_n "checking for $ac_word... " >&6; }
  10319. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  10320. $as_echo_n "(cached) " >&6
  10321. else
  10322. case $ac_pt_PKG_CONFIG in
  10323. [\\/]* | ?:[\\/]*)
  10324. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10325. ;;
  10326. *)
  10327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10328. for as_dir in $PATH
  10329. do
  10330. IFS=$as_save_IFS
  10331. test -z "$as_dir" && as_dir=.
  10332. for ac_exec_ext in '' $ac_executable_extensions; do
  10333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10334. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10336. break 2
  10337. fi
  10338. done
  10339. done
  10340. IFS=$as_save_IFS
  10341. ;;
  10342. esac
  10343. fi
  10344. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10345. if test -n "$ac_pt_PKG_CONFIG"; then
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10347. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10348. else
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10350. $as_echo "no" >&6; }
  10351. fi
  10352. if test "x$ac_pt_PKG_CONFIG" = x; then
  10353. PKG_CONFIG=""
  10354. else
  10355. case $cross_compiling:$ac_tool_warned in
  10356. yes:)
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10358. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10359. ac_tool_warned=yes ;;
  10360. esac
  10361. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10362. fi
  10363. else
  10364. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10365. fi
  10366. fi
  10367. if test -n "$PKG_CONFIG"; then
  10368. _pkg_min_version=0.9.0
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10370. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10371. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10373. $as_echo "yes" >&6; }
  10374. else
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10376. $as_echo "no" >&6; }
  10377. PKG_CONFIG=""
  10378. fi
  10379. fi
  10380. pkg_failed=no
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached" >&5
  10382. $as_echo_n "checking for memcached... " >&6; }
  10383. if test -n "$memcached_CFLAGS"; then
  10384. pkg_cv_memcached_CFLAGS="$memcached_CFLAGS"
  10385. elif test -n "$PKG_CONFIG"; then
  10386. if test -n "$PKG_CONFIG" && \
  10387. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmemcached >= 0.8.0\""; } >&5
  10388. ($PKG_CONFIG --exists --print-errors "libmemcached >= 0.8.0") 2>&5
  10389. ac_status=$?
  10390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10391. test $ac_status = 0; }; then
  10392. pkg_cv_memcached_CFLAGS=`$PKG_CONFIG --cflags "libmemcached >= 0.8.0" 2>/dev/null`
  10393. else
  10394. pkg_failed=yes
  10395. fi
  10396. else
  10397. pkg_failed=untried
  10398. fi
  10399. if test -n "$memcached_LIBS"; then
  10400. pkg_cv_memcached_LIBS="$memcached_LIBS"
  10401. elif test -n "$PKG_CONFIG"; then
  10402. if test -n "$PKG_CONFIG" && \
  10403. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmemcached >= 0.8.0\""; } >&5
  10404. ($PKG_CONFIG --exists --print-errors "libmemcached >= 0.8.0") 2>&5
  10405. ac_status=$?
  10406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10407. test $ac_status = 0; }; then
  10408. pkg_cv_memcached_LIBS=`$PKG_CONFIG --libs "libmemcached >= 0.8.0" 2>/dev/null`
  10409. else
  10410. pkg_failed=yes
  10411. fi
  10412. else
  10413. pkg_failed=untried
  10414. fi
  10415. if test $pkg_failed = yes; then
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10417. $as_echo "no" >&6; }
  10418. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10419. _pkg_short_errors_supported=yes
  10420. else
  10421. _pkg_short_errors_supported=no
  10422. fi
  10423. if test $_pkg_short_errors_supported = yes; then
  10424. memcached_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmemcached >= 0.8.0" 2>&1`
  10425. else
  10426. memcached_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmemcached >= 0.8.0" 2>&1`
  10427. fi
  10428. # Put the nasty error message in config.log where it belongs
  10429. echo "$memcached_PKG_ERRORS" >&5
  10430. as_fn_error $? "Package requirements (libmemcached >= 0.8.0) were not met:
  10431. $memcached_PKG_ERRORS
  10432. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10433. installed software in a non-standard prefix.
  10434. Alternatively, you may set the environment variables memcached_CFLAGS
  10435. and memcached_LIBS to avoid the need to call pkg-config.
  10436. See the pkg-config man page for more details." "$LINENO" 5
  10437. elif test $pkg_failed = untried; then
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10439. $as_echo "no" >&6; }
  10440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10442. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10443. is in your PATH or set the PKG_CONFIG environment variable to the full
  10444. path to pkg-config.
  10445. Alternatively, you may set the environment variables memcached_CFLAGS
  10446. and memcached_LIBS to avoid the need to call pkg-config.
  10447. See the pkg-config man page for more details.
  10448. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10449. See \`config.log' for more details" "$LINENO" 5; }
  10450. else
  10451. memcached_CFLAGS=$pkg_cv_memcached_CFLAGS
  10452. memcached_LIBS=$pkg_cv_memcached_LIBS
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10454. $as_echo "yes" >&6; }
  10455. fi
  10456. # Check Unit test framework
  10457. pkg_failed=no
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  10459. $as_echo_n "checking for CHECK... " >&6; }
  10460. if test -n "$CHECK_CFLAGS"; then
  10461. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  10462. elif test -n "$PKG_CONFIG"; then
  10463. if test -n "$PKG_CONFIG" && \
  10464. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10465. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10466. ac_status=$?
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10468. test $ac_status = 0; }; then
  10469. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
  10470. else
  10471. pkg_failed=yes
  10472. fi
  10473. else
  10474. pkg_failed=untried
  10475. fi
  10476. if test -n "$CHECK_LIBS"; then
  10477. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  10478. elif test -n "$PKG_CONFIG"; then
  10479. if test -n "$PKG_CONFIG" && \
  10480. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10481. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10482. ac_status=$?
  10483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10484. test $ac_status = 0; }; then
  10485. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
  10486. else
  10487. pkg_failed=yes
  10488. fi
  10489. else
  10490. pkg_failed=untried
  10491. fi
  10492. if test $pkg_failed = yes; then
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10494. $as_echo "no" >&6; }
  10495. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10496. _pkg_short_errors_supported=yes
  10497. else
  10498. _pkg_short_errors_supported=no
  10499. fi
  10500. if test $_pkg_short_errors_supported = yes; then
  10501. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.0" 2>&1`
  10502. else
  10503. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.0" 2>&1`
  10504. fi
  10505. # Put the nasty error message in config.log where it belongs
  10506. echo "$CHECK_PKG_ERRORS" >&5
  10507. enable_tests=no
  10508. elif test $pkg_failed = untried; then
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10510. $as_echo "no" >&6; }
  10511. enable_tests=no
  10512. else
  10513. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  10514. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10516. $as_echo "yes" >&6; }
  10517. enable_tests=yes
  10518. fi
  10519. if test x$enable_tests = xyes; then
  10520. CHECK_TESTS_TRUE=
  10521. CHECK_TESTS_FALSE='#'
  10522. else
  10523. CHECK_TESTS_TRUE='#'
  10524. CHECK_TESTS_FALSE=
  10525. fi
  10526. if test "x$enable_tests" = "xno"; then
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check unit testing framwork not found." >&5
  10528. $as_echo "$as_me: WARNING: Check unit testing framwork not found." >&2;}
  10529. fi
  10530. #-----------------------------
  10531. # Checks for header files.
  10532. #-----------------------------
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10534. $as_echo_n "checking for ANSI C header files... " >&6; }
  10535. if test "${ac_cv_header_stdc+set}" = set; then :
  10536. $as_echo_n "(cached) " >&6
  10537. else
  10538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10539. /* end confdefs.h. */
  10540. #include <stdlib.h>
  10541. #include <stdarg.h>
  10542. #include <string.h>
  10543. #include <float.h>
  10544. int
  10545. main ()
  10546. {
  10547. ;
  10548. return 0;
  10549. }
  10550. _ACEOF
  10551. if ac_fn_c_try_compile "$LINENO"; then :
  10552. ac_cv_header_stdc=yes
  10553. else
  10554. ac_cv_header_stdc=no
  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10557. if test $ac_cv_header_stdc = yes; then
  10558. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10560. /* end confdefs.h. */
  10561. #include <string.h>
  10562. _ACEOF
  10563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10564. $EGREP "memchr" >/dev/null 2>&1; then :
  10565. else
  10566. ac_cv_header_stdc=no
  10567. fi
  10568. rm -f conftest*
  10569. fi
  10570. if test $ac_cv_header_stdc = yes; then
  10571. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10573. /* end confdefs.h. */
  10574. #include <stdlib.h>
  10575. _ACEOF
  10576. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10577. $EGREP "free" >/dev/null 2>&1; then :
  10578. else
  10579. ac_cv_header_stdc=no
  10580. fi
  10581. rm -f conftest*
  10582. fi
  10583. if test $ac_cv_header_stdc = yes; then
  10584. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10585. if test "$cross_compiling" = yes; then :
  10586. :
  10587. else
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #include <ctype.h>
  10591. #include <stdlib.h>
  10592. #if ((' ' & 0x0FF) == 0x020)
  10593. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10594. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10595. #else
  10596. # define ISLOWER(c) \
  10597. (('a' <= (c) && (c) <= 'i') \
  10598. || ('j' <= (c) && (c) <= 'r') \
  10599. || ('s' <= (c) && (c) <= 'z'))
  10600. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10601. #endif
  10602. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10603. int
  10604. main ()
  10605. {
  10606. int i;
  10607. for (i = 0; i < 256; i++)
  10608. if (XOR (islower (i), ISLOWER (i))
  10609. || toupper (i) != TOUPPER (i))
  10610. return 2;
  10611. return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_c_try_run "$LINENO"; then :
  10615. else
  10616. ac_cv_header_stdc=no
  10617. fi
  10618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10619. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10620. fi
  10621. fi
  10622. fi
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10624. $as_echo "$ac_cv_header_stdc" >&6; }
  10625. if test $ac_cv_header_stdc = yes; then
  10626. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10627. fi
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10629. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10630. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  10631. $as_echo_n "(cached) " >&6
  10632. else
  10633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10634. /* end confdefs.h. */
  10635. #include <sys/types.h>
  10636. #include <sys/wait.h>
  10637. #ifndef WEXITSTATUS
  10638. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10639. #endif
  10640. #ifndef WIFEXITED
  10641. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10642. #endif
  10643. int
  10644. main ()
  10645. {
  10646. int s;
  10647. wait (&s);
  10648. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10649. ;
  10650. return 0;
  10651. }
  10652. _ACEOF
  10653. if ac_fn_c_try_compile "$LINENO"; then :
  10654. ac_cv_header_sys_wait_h=yes
  10655. else
  10656. ac_cv_header_sys_wait_h=no
  10657. fi
  10658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10659. fi
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10661. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10662. if test $ac_cv_header_sys_wait_h = yes; then
  10663. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10664. fi
  10665. for ac_header in arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h
  10666. do :
  10667. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10668. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10669. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10670. cat >>confdefs.h <<_ACEOF
  10671. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10672. _ACEOF
  10673. fi
  10674. done
  10675. #------------------------------------------------------------------
  10676. # Checks for typedefs, structures, and compiler characteristics.
  10677. #------------------------------------------------------------------
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10679. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10680. if test "${ac_cv_c_const+set}" = set; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10684. /* end confdefs.h. */
  10685. int
  10686. main ()
  10687. {
  10688. /* FIXME: Include the comments suggested by Paul. */
  10689. #ifndef __cplusplus
  10690. /* Ultrix mips cc rejects this. */
  10691. typedef int charset[2];
  10692. const charset cs;
  10693. /* SunOS 4.1.1 cc rejects this. */
  10694. char const *const *pcpcc;
  10695. char **ppc;
  10696. /* NEC SVR4.0.2 mips cc rejects this. */
  10697. struct point {int x, y;};
  10698. static struct point const zero = {0,0};
  10699. /* AIX XL C 1.02.0.0 rejects this.
  10700. It does not let you subtract one const X* pointer from another in
  10701. an arm of an if-expression whose if-part is not a constant
  10702. expression */
  10703. const char *g = "string";
  10704. pcpcc = &g + (g ? g-g : 0);
  10705. /* HPUX 7.0 cc rejects these. */
  10706. ++pcpcc;
  10707. ppc = (char**) pcpcc;
  10708. pcpcc = (char const *const *) ppc;
  10709. { /* SCO 3.2v4 cc rejects this. */
  10710. char *t;
  10711. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10712. *t++ = 0;
  10713. if (s) return 0;
  10714. }
  10715. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10716. int x[] = {25, 17};
  10717. const int *foo = &x[0];
  10718. ++foo;
  10719. }
  10720. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10721. typedef const int *iptr;
  10722. iptr p = 0;
  10723. ++p;
  10724. }
  10725. { /* AIX XL C 1.02.0.0 rejects this saying
  10726. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10727. struct s { int j; const int *ap[3]; };
  10728. struct s *b; b->j = 5;
  10729. }
  10730. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10731. const int foo = 10;
  10732. if (!foo) return 0;
  10733. }
  10734. return !cs[0] && !zero.x;
  10735. #endif
  10736. ;
  10737. return 0;
  10738. }
  10739. _ACEOF
  10740. if ac_fn_c_try_compile "$LINENO"; then :
  10741. ac_cv_c_const=yes
  10742. else
  10743. ac_cv_c_const=no
  10744. fi
  10745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10746. fi
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10748. $as_echo "$ac_cv_c_const" >&6; }
  10749. if test $ac_cv_c_const = no; then
  10750. $as_echo "#define const /**/" >>confdefs.h
  10751. fi
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10753. $as_echo_n "checking for inline... " >&6; }
  10754. if test "${ac_cv_c_inline+set}" = set; then :
  10755. $as_echo_n "(cached) " >&6
  10756. else
  10757. ac_cv_c_inline=no
  10758. for ac_kw in inline __inline__ __inline; do
  10759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10760. /* end confdefs.h. */
  10761. #ifndef __cplusplus
  10762. typedef int foo_t;
  10763. static $ac_kw foo_t static_foo () {return 0; }
  10764. $ac_kw foo_t foo () {return 0; }
  10765. #endif
  10766. _ACEOF
  10767. if ac_fn_c_try_compile "$LINENO"; then :
  10768. ac_cv_c_inline=$ac_kw
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10771. test "$ac_cv_c_inline" != no && break
  10772. done
  10773. fi
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10775. $as_echo "$ac_cv_c_inline" >&6; }
  10776. case $ac_cv_c_inline in
  10777. inline | yes) ;;
  10778. *)
  10779. case $ac_cv_c_inline in
  10780. no) ac_val=;;
  10781. *) ac_val=$ac_cv_c_inline;;
  10782. esac
  10783. cat >>confdefs.h <<_ACEOF
  10784. #ifndef __cplusplus
  10785. #define inline $ac_val
  10786. #endif
  10787. _ACEOF
  10788. ;;
  10789. esac
  10790. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10791. if test "x$ac_cv_type_pid_t" = x""yes; then :
  10792. else
  10793. cat >>confdefs.h <<_ACEOF
  10794. #define pid_t int
  10795. _ACEOF
  10796. fi
  10797. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10798. if test "x$ac_cv_type_size_t" = x""yes; then :
  10799. else
  10800. cat >>confdefs.h <<_ACEOF
  10801. #define size_t unsigned int
  10802. _ACEOF
  10803. fi
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  10805. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  10806. if test "${ac_cv_header_time+set}" = set; then :
  10807. $as_echo_n "(cached) " >&6
  10808. else
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. #include <sys/types.h>
  10812. #include <sys/time.h>
  10813. #include <time.h>
  10814. int
  10815. main ()
  10816. {
  10817. if ((struct tm *) 0)
  10818. return 0;
  10819. ;
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. if ac_fn_c_try_compile "$LINENO"; then :
  10824. ac_cv_header_time=yes
  10825. else
  10826. ac_cv_header_time=no
  10827. fi
  10828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10829. fi
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  10831. $as_echo "$ac_cv_header_time" >&6; }
  10832. if test $ac_cv_header_time = yes; then
  10833. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  10834. fi
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10836. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10837. if test "${ac_cv_struct_tm+set}" = set; then :
  10838. $as_echo_n "(cached) " >&6
  10839. else
  10840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10841. /* end confdefs.h. */
  10842. #include <sys/types.h>
  10843. #include <time.h>
  10844. int
  10845. main ()
  10846. {
  10847. struct tm tm;
  10848. int *p = &tm.tm_sec;
  10849. return !p;
  10850. ;
  10851. return 0;
  10852. }
  10853. _ACEOF
  10854. if ac_fn_c_try_compile "$LINENO"; then :
  10855. ac_cv_struct_tm=time.h
  10856. else
  10857. ac_cv_struct_tm=sys/time.h
  10858. fi
  10859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10860. fi
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  10862. $as_echo "$ac_cv_struct_tm" >&6; }
  10863. if test $ac_cv_struct_tm = sys/time.h; then
  10864. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  10865. fi
  10866. if test "x$CC" != xcc; then
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  10868. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  10869. else
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  10871. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  10872. fi
  10873. set dummy $CC; ac_cc=`$as_echo "$2" |
  10874. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10875. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
  10876. $as_echo_n "(cached) " >&6
  10877. else
  10878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10879. /* end confdefs.h. */
  10880. int
  10881. main ()
  10882. {
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. # Make sure it works both with $CC and with simple cc.
  10888. # We do the test twice because some compilers refuse to overwrite an
  10889. # existing .o file with -o, though they will create one.
  10890. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10891. rm -f conftest2.*
  10892. if { { case "(($ac_try" in
  10893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10894. *) ac_try_echo=$ac_try;;
  10895. esac
  10896. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10897. $as_echo "$ac_try_echo"; } >&5
  10898. (eval "$ac_try") 2>&5
  10899. ac_status=$?
  10900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10901. test $ac_status = 0; } &&
  10902. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10904. *) ac_try_echo=$ac_try;;
  10905. esac
  10906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10907. $as_echo "$ac_try_echo"; } >&5
  10908. (eval "$ac_try") 2>&5
  10909. ac_status=$?
  10910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10911. test $ac_status = 0; };
  10912. then
  10913. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  10914. if test "x$CC" != xcc; then
  10915. # Test first that cc exists at all.
  10916. if { ac_try='cc -c conftest.$ac_ext >&5'
  10917. { { case "(($ac_try" in
  10918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10919. *) ac_try_echo=$ac_try;;
  10920. esac
  10921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10922. $as_echo "$ac_try_echo"; } >&5
  10923. (eval "$ac_try") 2>&5
  10924. ac_status=$?
  10925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10926. test $ac_status = 0; }; }; then
  10927. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10928. rm -f conftest2.*
  10929. if { { case "(($ac_try" in
  10930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10931. *) ac_try_echo=$ac_try;;
  10932. esac
  10933. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10934. $as_echo "$ac_try_echo"; } >&5
  10935. (eval "$ac_try") 2>&5
  10936. ac_status=$?
  10937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10938. test $ac_status = 0; } &&
  10939. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10941. *) ac_try_echo=$ac_try;;
  10942. esac
  10943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10944. $as_echo "$ac_try_echo"; } >&5
  10945. (eval "$ac_try") 2>&5
  10946. ac_status=$?
  10947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10948. test $ac_status = 0; };
  10949. then
  10950. # cc works too.
  10951. :
  10952. else
  10953. # cc exists but doesn't like -o.
  10954. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10955. fi
  10956. fi
  10957. fi
  10958. else
  10959. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10960. fi
  10961. rm -f core conftest*
  10962. fi
  10963. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10965. $as_echo "yes" >&6; }
  10966. else
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10968. $as_echo "no" >&6; }
  10969. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  10970. fi
  10971. # FIXME: we rely on the cache variable name because
  10972. # there is no other way.
  10973. set dummy $CC
  10974. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10975. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10976. if test "$am_t" != yes; then
  10977. # Losing compiler, so override with the script.
  10978. # FIXME: It is wrong to rewrite CC.
  10979. # But if we don't then we get into trouble of one sort or another.
  10980. # A longer-term fix would be to have automake use am__CC in this case,
  10981. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10982. CC="$am_aux_dir/compile $CC"
  10983. fi
  10984. #----------------------------------
  10985. # Checks for library functions.
  10986. #----------------------------------
  10987. for ac_header in vfork.h
  10988. do :
  10989. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  10990. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  10991. cat >>confdefs.h <<_ACEOF
  10992. #define HAVE_VFORK_H 1
  10993. _ACEOF
  10994. fi
  10995. done
  10996. for ac_func in fork vfork
  10997. do :
  10998. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10999. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11000. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11001. cat >>confdefs.h <<_ACEOF
  11002. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11003. _ACEOF
  11004. fi
  11005. done
  11006. if test "x$ac_cv_func_fork" = xyes; then
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11008. $as_echo_n "checking for working fork... " >&6; }
  11009. if test "${ac_cv_func_fork_works+set}" = set; then :
  11010. $as_echo_n "(cached) " >&6
  11011. else
  11012. if test "$cross_compiling" = yes; then :
  11013. ac_cv_func_fork_works=cross
  11014. else
  11015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11016. /* end confdefs.h. */
  11017. $ac_includes_default
  11018. int
  11019. main ()
  11020. {
  11021. /* By Ruediger Kuhlmann. */
  11022. return fork () < 0;
  11023. ;
  11024. return 0;
  11025. }
  11026. _ACEOF
  11027. if ac_fn_c_try_run "$LINENO"; then :
  11028. ac_cv_func_fork_works=yes
  11029. else
  11030. ac_cv_func_fork_works=no
  11031. fi
  11032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11033. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11034. fi
  11035. fi
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11037. $as_echo "$ac_cv_func_fork_works" >&6; }
  11038. else
  11039. ac_cv_func_fork_works=$ac_cv_func_fork
  11040. fi
  11041. if test "x$ac_cv_func_fork_works" = xcross; then
  11042. case $host in
  11043. *-*-amigaos* | *-*-msdosdjgpp*)
  11044. # Override, as these systems have only a dummy fork() stub
  11045. ac_cv_func_fork_works=no
  11046. ;;
  11047. *)
  11048. ac_cv_func_fork_works=yes
  11049. ;;
  11050. esac
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11052. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11053. fi
  11054. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11055. if test "x$ac_cv_func_vfork" = xyes; then
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11057. $as_echo_n "checking for working vfork... " >&6; }
  11058. if test "${ac_cv_func_vfork_works+set}" = set; then :
  11059. $as_echo_n "(cached) " >&6
  11060. else
  11061. if test "$cross_compiling" = yes; then :
  11062. ac_cv_func_vfork_works=cross
  11063. else
  11064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11065. /* end confdefs.h. */
  11066. /* Thanks to Paul Eggert for this test. */
  11067. $ac_includes_default
  11068. #include <sys/wait.h>
  11069. #ifdef HAVE_VFORK_H
  11070. # include <vfork.h>
  11071. #endif
  11072. /* On some sparc systems, changes by the child to local and incoming
  11073. argument registers are propagated back to the parent. The compiler
  11074. is told about this with #include <vfork.h>, but some compilers
  11075. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11076. static variable whose address is put into a register that is
  11077. clobbered by the vfork. */
  11078. static void
  11079. #ifdef __cplusplus
  11080. sparc_address_test (int arg)
  11081. # else
  11082. sparc_address_test (arg) int arg;
  11083. #endif
  11084. {
  11085. static pid_t child;
  11086. if (!child) {
  11087. child = vfork ();
  11088. if (child < 0) {
  11089. perror ("vfork");
  11090. _exit(2);
  11091. }
  11092. if (!child) {
  11093. arg = getpid();
  11094. write(-1, "", 0);
  11095. _exit (arg);
  11096. }
  11097. }
  11098. }
  11099. int
  11100. main ()
  11101. {
  11102. pid_t parent = getpid ();
  11103. pid_t child;
  11104. sparc_address_test (0);
  11105. child = vfork ();
  11106. if (child == 0) {
  11107. /* Here is another test for sparc vfork register problems. This
  11108. test uses lots of local variables, at least as many local
  11109. variables as main has allocated so far including compiler
  11110. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11111. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11112. reuse the register of parent for one of the local variables,
  11113. since it will think that parent can't possibly be used any more
  11114. in this routine. Assigning to the local variable will thus
  11115. munge parent in the parent process. */
  11116. pid_t
  11117. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11118. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11119. /* Convince the compiler that p..p7 are live; otherwise, it might
  11120. use the same hardware register for all 8 local variables. */
  11121. if (p != p1 || p != p2 || p != p3 || p != p4
  11122. || p != p5 || p != p6 || p != p7)
  11123. _exit(1);
  11124. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11125. from child file descriptors. If the child closes a descriptor
  11126. before it execs or exits, this munges the parent's descriptor
  11127. as well. Test for this by closing stdout in the child. */
  11128. _exit(close(fileno(stdout)) != 0);
  11129. } else {
  11130. int status;
  11131. struct stat st;
  11132. while (wait(&status) != child)
  11133. ;
  11134. return (
  11135. /* Was there some problem with vforking? */
  11136. child < 0
  11137. /* Did the child fail? (This shouldn't happen.) */
  11138. || status
  11139. /* Did the vfork/compiler bug occur? */
  11140. || parent != getpid()
  11141. /* Did the file descriptor bug occur? */
  11142. || fstat(fileno(stdout), &st) != 0
  11143. );
  11144. }
  11145. }
  11146. _ACEOF
  11147. if ac_fn_c_try_run "$LINENO"; then :
  11148. ac_cv_func_vfork_works=yes
  11149. else
  11150. ac_cv_func_vfork_works=no
  11151. fi
  11152. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11153. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11154. fi
  11155. fi
  11156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11157. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11158. fi;
  11159. if test "x$ac_cv_func_fork_works" = xcross; then
  11160. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11162. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11163. fi
  11164. if test "x$ac_cv_func_vfork_works" = xyes; then
  11165. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11166. else
  11167. $as_echo "#define vfork fork" >>confdefs.h
  11168. fi
  11169. if test "x$ac_cv_func_fork_works" = xyes; then
  11170. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11171. fi
  11172. for ac_header in stdlib.h
  11173. do :
  11174. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  11175. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  11176. cat >>confdefs.h <<_ACEOF
  11177. #define HAVE_STDLIB_H 1
  11178. _ACEOF
  11179. fi
  11180. done
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  11182. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  11183. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  11184. $as_echo_n "(cached) " >&6
  11185. else
  11186. if test "$cross_compiling" = yes; then :
  11187. ac_cv_func_malloc_0_nonnull=no
  11188. else
  11189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11190. /* end confdefs.h. */
  11191. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  11192. # include <stdlib.h>
  11193. #else
  11194. char *malloc ();
  11195. #endif
  11196. int
  11197. main ()
  11198. {
  11199. return ! malloc (0);
  11200. ;
  11201. return 0;
  11202. }
  11203. _ACEOF
  11204. if ac_fn_c_try_run "$LINENO"; then :
  11205. ac_cv_func_malloc_0_nonnull=yes
  11206. else
  11207. ac_cv_func_malloc_0_nonnull=no
  11208. fi
  11209. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11210. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11211. fi
  11212. fi
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  11214. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  11215. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  11216. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  11217. else
  11218. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  11219. case " $LIBOBJS " in
  11220. *" malloc.$ac_objext "* ) ;;
  11221. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  11222. ;;
  11223. esac
  11224. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  11225. fi
  11226. for ac_header in sys/select.h sys/socket.h
  11227. do :
  11228. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11229. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11230. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11231. cat >>confdefs.h <<_ACEOF
  11232. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11233. _ACEOF
  11234. fi
  11235. done
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  11237. $as_echo_n "checking types of arguments for select... " >&6; }
  11238. if test "${ac_cv_func_select_args+set}" = set; then :
  11239. $as_echo_n "(cached) " >&6
  11240. else
  11241. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  11242. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  11243. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  11244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11245. /* end confdefs.h. */
  11246. $ac_includes_default
  11247. #ifdef HAVE_SYS_SELECT_H
  11248. # include <sys/select.h>
  11249. #endif
  11250. #ifdef HAVE_SYS_SOCKET_H
  11251. # include <sys/socket.h>
  11252. #endif
  11253. int
  11254. main ()
  11255. {
  11256. extern int select ($ac_arg1,
  11257. $ac_arg234, $ac_arg234, $ac_arg234,
  11258. $ac_arg5);
  11259. ;
  11260. return 0;
  11261. }
  11262. _ACEOF
  11263. if ac_fn_c_try_compile "$LINENO"; then :
  11264. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11265. fi
  11266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11267. done
  11268. done
  11269. done
  11270. # Provide a safe default value.
  11271. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  11272. fi
  11273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  11274. $as_echo "$ac_cv_func_select_args" >&6; }
  11275. ac_save_IFS=$IFS; IFS=','
  11276. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11277. IFS=$ac_save_IFS
  11278. shift
  11279. cat >>confdefs.h <<_ACEOF
  11280. #define SELECT_TYPE_ARG1 $1
  11281. _ACEOF
  11282. cat >>confdefs.h <<_ACEOF
  11283. #define SELECT_TYPE_ARG234 ($2)
  11284. _ACEOF
  11285. cat >>confdefs.h <<_ACEOF
  11286. #define SELECT_TYPE_ARG5 ($3)
  11287. _ACEOF
  11288. rm -f conftest*
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11290. $as_echo_n "checking return type of signal handlers... " >&6; }
  11291. if test "${ac_cv_type_signal+set}" = set; then :
  11292. $as_echo_n "(cached) " >&6
  11293. else
  11294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11295. /* end confdefs.h. */
  11296. #include <sys/types.h>
  11297. #include <signal.h>
  11298. int
  11299. main ()
  11300. {
  11301. return *(signal (0, 0)) (0) == 1;
  11302. ;
  11303. return 0;
  11304. }
  11305. _ACEOF
  11306. if ac_fn_c_try_compile "$LINENO"; then :
  11307. ac_cv_type_signal=int
  11308. else
  11309. ac_cv_type_signal=void
  11310. fi
  11311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11312. fi
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11314. $as_echo "$ac_cv_type_signal" >&6; }
  11315. cat >>confdefs.h <<_ACEOF
  11316. #define RETSIGTYPE $ac_cv_type_signal
  11317. _ACEOF
  11318. for ac_func in strftime
  11319. do :
  11320. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11321. if test "x$ac_cv_func_strftime" = x""yes; then :
  11322. cat >>confdefs.h <<_ACEOF
  11323. #define HAVE_STRFTIME 1
  11324. _ACEOF
  11325. else
  11326. # strftime is in -lintl on SCO UNIX.
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11328. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11329. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. ac_check_lib_save_LIBS=$LIBS
  11333. LIBS="-lintl $LIBS"
  11334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h. */
  11336. /* Override any GCC internal prototype to avoid an error.
  11337. Use char because int might match the return type of a GCC
  11338. builtin and then its argument prototype would still apply. */
  11339. #ifdef __cplusplus
  11340. extern "C"
  11341. #endif
  11342. char strftime ();
  11343. int
  11344. main ()
  11345. {
  11346. return strftime ();
  11347. ;
  11348. return 0;
  11349. }
  11350. _ACEOF
  11351. if ac_fn_c_try_link "$LINENO"; then :
  11352. ac_cv_lib_intl_strftime=yes
  11353. else
  11354. ac_cv_lib_intl_strftime=no
  11355. fi
  11356. rm -f core conftest.err conftest.$ac_objext \
  11357. conftest$ac_exeext conftest.$ac_ext
  11358. LIBS=$ac_check_lib_save_LIBS
  11359. fi
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  11361. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11362. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  11363. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  11364. LIBS="-lintl $LIBS"
  11365. fi
  11366. fi
  11367. done
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  11369. $as_echo_n "checking for working strtod... " >&6; }
  11370. if test "${ac_cv_func_strtod+set}" = set; then :
  11371. $as_echo_n "(cached) " >&6
  11372. else
  11373. if test "$cross_compiling" = yes; then :
  11374. ac_cv_func_strtod=no
  11375. else
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. $ac_includes_default
  11379. #ifndef strtod
  11380. double strtod ();
  11381. #endif
  11382. int
  11383. main()
  11384. {
  11385. {
  11386. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  11387. char *string = " +69";
  11388. char *term;
  11389. double value;
  11390. value = strtod (string, &term);
  11391. if (value != 69 || term != (string + 4))
  11392. return 1;
  11393. }
  11394. {
  11395. /* Under Solaris 2.4, strtod returns the wrong value for the
  11396. terminating character under some conditions. */
  11397. char *string = "NaN";
  11398. char *term;
  11399. strtod (string, &term);
  11400. if (term != string && *(term - 1) == 0)
  11401. return 1;
  11402. }
  11403. return 0;
  11404. }
  11405. _ACEOF
  11406. if ac_fn_c_try_run "$LINENO"; then :
  11407. ac_cv_func_strtod=yes
  11408. else
  11409. ac_cv_func_strtod=no
  11410. fi
  11411. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11412. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11413. fi
  11414. fi
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  11416. $as_echo "$ac_cv_func_strtod" >&6; }
  11417. if test $ac_cv_func_strtod = no; then
  11418. case " $LIBOBJS " in
  11419. *" strtod.$ac_objext "* ) ;;
  11420. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  11421. ;;
  11422. esac
  11423. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  11424. if test "x$ac_cv_func_pow" = x""yes; then :
  11425. fi
  11426. if test $ac_cv_func_pow = no; then
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  11428. $as_echo_n "checking for pow in -lm... " >&6; }
  11429. if test "${ac_cv_lib_m_pow+set}" = set; then :
  11430. $as_echo_n "(cached) " >&6
  11431. else
  11432. ac_check_lib_save_LIBS=$LIBS
  11433. LIBS="-lm $LIBS"
  11434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11435. /* end confdefs.h. */
  11436. /* Override any GCC internal prototype to avoid an error.
  11437. Use char because int might match the return type of a GCC
  11438. builtin and then its argument prototype would still apply. */
  11439. #ifdef __cplusplus
  11440. extern "C"
  11441. #endif
  11442. char pow ();
  11443. int
  11444. main ()
  11445. {
  11446. return pow ();
  11447. ;
  11448. return 0;
  11449. }
  11450. _ACEOF
  11451. if ac_fn_c_try_link "$LINENO"; then :
  11452. ac_cv_lib_m_pow=yes
  11453. else
  11454. ac_cv_lib_m_pow=no
  11455. fi
  11456. rm -f core conftest.err conftest.$ac_objext \
  11457. conftest$ac_exeext conftest.$ac_ext
  11458. LIBS=$ac_check_lib_save_LIBS
  11459. fi
  11460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11461. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11462. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  11463. POW_LIB=-lm
  11464. else
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  11466. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  11467. fi
  11468. fi
  11469. fi
  11470. for ac_func in vprintf
  11471. do :
  11472. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  11473. if test "x$ac_cv_func_vprintf" = x""yes; then :
  11474. cat >>confdefs.h <<_ACEOF
  11475. #define HAVE_VPRINTF 1
  11476. _ACEOF
  11477. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  11478. if test "x$ac_cv_func__doprnt" = x""yes; then :
  11479. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  11480. fi
  11481. fi
  11482. done
  11483. for ac_func in bzero dup2 gethostbyname gethostname gettimeofday malloc_stats memset select socket strcasecmp strchr strdup strerror strncasecmp strndup strrchr strtol
  11484. do :
  11485. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11486. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11487. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11488. cat >>confdefs.h <<_ACEOF
  11489. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11490. _ACEOF
  11491. fi
  11492. done
  11493. #------------------------------------
  11494. # Configuration and output
  11495. #------------------------------------
  11496. ac_config_files="$ac_config_files doc/dokuwiki-doc-stubber.pl examples/math_xul_client/Makefile examples/math_bench.pl examples/multisession-test.pl src/c-apps/Makefile src/gateway/Makefile src/jserver/Makefile src/libopensrf/Makefile src/perl/Makefile src/ports/strn_compat/Makefile src/python/opensrf.py src/router/Makefile src/srfsh/Makefile tests/Makefile bin/opensrf-perl.pl bin/osrf_config bin/osrf_ctl.sh"
  11497. fi
  11498. cat >confcache <<\_ACEOF
  11499. # This file is a shell script that caches the results of configure
  11500. # tests run on this system so they can be shared between configure
  11501. # scripts and configure runs, see configure's option --config-cache.
  11502. # It is not useful on other systems. If it contains results you don't
  11503. # want to keep, you may remove or edit it.
  11504. #
  11505. # config.status only pays attention to the cache file if you give it
  11506. # the --recheck option to rerun configure.
  11507. #
  11508. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11509. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11510. # following values.
  11511. _ACEOF
  11512. # The following way of writing the cache mishandles newlines in values,
  11513. # but we know of no workaround that is simple, portable, and efficient.
  11514. # So, we kill variables containing newlines.
  11515. # Ultrix sh set writes to stderr and can't be redirected directly,
  11516. # and sets the high bit in the cache file unless we assign to the vars.
  11517. (
  11518. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11519. eval ac_val=\$$ac_var
  11520. case $ac_val in #(
  11521. *${as_nl}*)
  11522. case $ac_var in #(
  11523. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11524. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11525. esac
  11526. case $ac_var in #(
  11527. _ | IFS | as_nl) ;; #(
  11528. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11529. *) { eval $ac_var=; unset $ac_var;} ;;
  11530. esac ;;
  11531. esac
  11532. done
  11533. (set) 2>&1 |
  11534. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11535. *${as_nl}ac_space=\ *)
  11536. # `set' does not quote correctly, so add quotes: double-quote
  11537. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11538. sed -n \
  11539. "s/'/'\\\\''/g;
  11540. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11541. ;; #(
  11542. *)
  11543. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11544. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11545. ;;
  11546. esac |
  11547. sort
  11548. ) |
  11549. sed '
  11550. /^ac_cv_env_/b end
  11551. t clear
  11552. :clear
  11553. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11554. t end
  11555. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11556. :end' >>confcache
  11557. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11558. if test -w "$cache_file"; then
  11559. test "x$cache_file" != "x/dev/null" &&
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11561. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11562. cat confcache >$cache_file
  11563. else
  11564. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11565. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11566. fi
  11567. fi
  11568. rm -f confcache
  11569. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11570. # Let make expand exec_prefix.
  11571. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11572. # Transform confdefs.h into DEFS.
  11573. # Protect against shell expansion while executing Makefile rules.
  11574. # Protect against Makefile macro expansion.
  11575. #
  11576. # If the first sed substitution is executed (which looks for macros that
  11577. # take arguments), then branch to the quote section. Otherwise,
  11578. # look for a macro that doesn't take arguments.
  11579. ac_script='
  11580. :mline
  11581. /\\$/{
  11582. N
  11583. s,\\\n,,
  11584. b mline
  11585. }
  11586. t clear
  11587. :clear
  11588. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  11589. t quote
  11590. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  11591. t quote
  11592. b any
  11593. :quote
  11594. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  11595. s/\[/\\&/g
  11596. s/\]/\\&/g
  11597. s/\$/$$/g
  11598. H
  11599. :any
  11600. ${
  11601. g
  11602. s/^\n//
  11603. s/\n/ /g
  11604. p
  11605. }
  11606. '
  11607. DEFS=`sed -n "$ac_script" confdefs.h`
  11608. ac_libobjs=
  11609. ac_ltlibobjs=
  11610. U=
  11611. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11612. # 1. Remove the extension, and $U if already installed.
  11613. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11614. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11615. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11616. # will be set to the directory where LIBOBJS objects are built.
  11617. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11618. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11619. done
  11620. LIBOBJS=$ac_libobjs
  11621. LTLIBOBJS=$ac_ltlibobjs
  11622. if test -n "$EXEEXT"; then
  11623. am__EXEEXT_TRUE=
  11624. am__EXEEXT_FALSE='#'
  11625. else
  11626. am__EXEEXT_TRUE='#'
  11627. am__EXEEXT_FALSE=
  11628. fi
  11629. if test -z "${BUILDJAVA_TRUE}" && test -z "${BUILDJAVA_FALSE}"; then
  11630. as_fn_error $? "conditional \"BUILDJAVA\" was never defined.
  11631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11632. fi
  11633. if test -z "${INSTALLJAVASCRIPT_TRUE}" && test -z "${INSTALLJAVASCRIPT_FALSE}"; then
  11634. as_fn_error $? "conditional \"INSTALLJAVASCRIPT\" was never defined.
  11635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11636. fi
  11637. if test -z "${BUILDCORE_TRUE}" && test -z "${BUILDCORE_FALSE}"; then
  11638. as_fn_error $? "conditional \"BUILDCORE\" was never defined.
  11639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11640. fi
  11641. if test -z "${BUILDPYTHON_TRUE}" && test -z "${BUILDPYTHON_FALSE}"; then
  11642. as_fn_error $? "conditional \"BUILDPYTHON\" was never defined.
  11643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11644. fi
  11645. if test -z "${BUILDCHOPCHOP_TRUE}" && test -z "${BUILDCHOPCHOP_FALSE}"; then
  11646. as_fn_error $? "conditional \"BUILDCHOPCHOP\" was never defined.
  11647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11648. fi
  11649. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  11650. as_fn_error $? "conditional \"DEBUG\" was never defined.
  11651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11652. fi
  11653. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11654. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11656. fi
  11657. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11658. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11660. fi
  11661. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11662. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11664. fi
  11665. if test -z "${CHECK_TESTS_TRUE}" && test -z "${CHECK_TESTS_FALSE}"; then
  11666. as_fn_error $? "conditional \"CHECK_TESTS\" was never defined.
  11667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11668. fi
  11669. : ${CONFIG_STATUS=./config.status}
  11670. ac_write_fail=0
  11671. ac_clean_files_save=$ac_clean_files
  11672. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11674. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11675. as_write_fail=0
  11676. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11677. #! $SHELL
  11678. # Generated by $as_me.
  11679. # Run this file to recreate the current configuration.
  11680. # Compiler output produced by configure, useful for debugging
  11681. # configure, is in config.log if it exists.
  11682. debug=false
  11683. ac_cs_recheck=false
  11684. ac_cs_silent=false
  11685. SHELL=\${CONFIG_SHELL-$SHELL}
  11686. export SHELL
  11687. _ASEOF
  11688. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11689. ## -------------------- ##
  11690. ## M4sh Initialization. ##
  11691. ## -------------------- ##
  11692. # Be more Bourne compatible
  11693. DUALCASE=1; export DUALCASE # for MKS sh
  11694. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11695. emulate sh
  11696. NULLCMD=:
  11697. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11698. # is contrary to our usage. Disable this feature.
  11699. alias -g '${1+"$@"}'='"$@"'
  11700. setopt NO_GLOB_SUBST
  11701. else
  11702. case `(set -o) 2>/dev/null` in #(
  11703. *posix*) :
  11704. set -o posix ;; #(
  11705. *) :
  11706. ;;
  11707. esac
  11708. fi
  11709. as_nl='
  11710. '
  11711. export as_nl
  11712. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11713. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11714. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11715. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11716. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11717. # but without wasting forks for bash or zsh.
  11718. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11719. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11720. as_echo='print -r --'
  11721. as_echo_n='print -rn --'
  11722. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11723. as_echo='printf %s\n'
  11724. as_echo_n='printf %s'
  11725. else
  11726. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11727. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11728. as_echo_n='/usr/ucb/echo -n'
  11729. else
  11730. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11731. as_echo_n_body='eval
  11732. arg=$1;
  11733. case $arg in #(
  11734. *"$as_nl"*)
  11735. expr "X$arg" : "X\\(.*\\)$as_nl";
  11736. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11737. esac;
  11738. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11739. '
  11740. export as_echo_n_body
  11741. as_echo_n='sh -c $as_echo_n_body as_echo'
  11742. fi
  11743. export as_echo_body
  11744. as_echo='sh -c $as_echo_body as_echo'
  11745. fi
  11746. # The user is always right.
  11747. if test "${PATH_SEPARATOR+set}" != set; then
  11748. PATH_SEPARATOR=:
  11749. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11750. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11751. PATH_SEPARATOR=';'
  11752. }
  11753. fi
  11754. # IFS
  11755. # We need space, tab and new line, in precisely that order. Quoting is
  11756. # there to prevent editors from complaining about space-tab.
  11757. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11758. # splitting by setting IFS to empty value.)
  11759. IFS=" "" $as_nl"
  11760. # Find who we are. Look in the path if we contain no directory separator.
  11761. case $0 in #((
  11762. *[\\/]* ) as_myself=$0 ;;
  11763. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11764. for as_dir in $PATH
  11765. do
  11766. IFS=$as_save_IFS
  11767. test -z "$as_dir" && as_dir=.
  11768. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11769. done
  11770. IFS=$as_save_IFS
  11771. ;;
  11772. esac
  11773. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11774. # in which case we are not to be found in the path.
  11775. if test "x$as_myself" = x; then
  11776. as_myself=$0
  11777. fi
  11778. if test ! -f "$as_myself"; then
  11779. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11780. exit 1
  11781. fi
  11782. # Unset variables that we do not need and which cause bugs (e.g. in
  11783. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11784. # suppresses any "Segmentation fault" message there. '((' could
  11785. # trigger a bug in pdksh 5.2.14.
  11786. for as_var in BASH_ENV ENV MAIL MAILPATH
  11787. do eval test x\${$as_var+set} = xset \
  11788. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11789. done
  11790. PS1='$ '
  11791. PS2='> '
  11792. PS4='+ '
  11793. # NLS nuisances.
  11794. LC_ALL=C
  11795. export LC_ALL
  11796. LANGUAGE=C
  11797. export LANGUAGE
  11798. # CDPATH.
  11799. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11800. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11801. # ----------------------------------------
  11802. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11803. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11804. # script with STATUS, using 1 if that was 0.
  11805. as_fn_error ()
  11806. {
  11807. as_status=$1; test $as_status -eq 0 && as_status=1
  11808. if test "$4"; then
  11809. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11810. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11811. fi
  11812. $as_echo "$as_me: error: $2" >&2
  11813. as_fn_exit $as_status
  11814. } # as_fn_error
  11815. # as_fn_set_status STATUS
  11816. # -----------------------
  11817. # Set $? to STATUS, without forking.
  11818. as_fn_set_status ()
  11819. {
  11820. return $1
  11821. } # as_fn_set_status
  11822. # as_fn_exit STATUS
  11823. # -----------------
  11824. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11825. as_fn_exit ()
  11826. {
  11827. set +e
  11828. as_fn_set_status $1
  11829. exit $1
  11830. } # as_fn_exit
  11831. # as_fn_unset VAR
  11832. # ---------------
  11833. # Portably unset VAR.
  11834. as_fn_unset ()
  11835. {
  11836. { eval $1=; unset $1;}
  11837. }
  11838. as_unset=as_fn_unset
  11839. # as_fn_append VAR VALUE
  11840. # ----------------------
  11841. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11842. # advantage of any shell optimizations that allow amortized linear growth over
  11843. # repeated appends, instead of the typical quadratic growth present in naive
  11844. # implementations.
  11845. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11846. eval 'as_fn_append ()
  11847. {
  11848. eval $1+=\$2
  11849. }'
  11850. else
  11851. as_fn_append ()
  11852. {
  11853. eval $1=\$$1\$2
  11854. }
  11855. fi # as_fn_append
  11856. # as_fn_arith ARG...
  11857. # ------------------
  11858. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11859. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11860. # must be portable across $(()) and expr.
  11861. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11862. eval 'as_fn_arith ()
  11863. {
  11864. as_val=$(( $* ))
  11865. }'
  11866. else
  11867. as_fn_arith ()
  11868. {
  11869. as_val=`expr "$@" || test $? -eq 1`
  11870. }
  11871. fi # as_fn_arith
  11872. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11873. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11874. as_expr=expr
  11875. else
  11876. as_expr=false
  11877. fi
  11878. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11879. as_basename=basename
  11880. else
  11881. as_basename=false
  11882. fi
  11883. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11884. as_dirname=dirname
  11885. else
  11886. as_dirname=false
  11887. fi
  11888. as_me=`$as_basename -- "$0" ||
  11889. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11890. X"$0" : 'X\(//\)$' \| \
  11891. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11892. $as_echo X/"$0" |
  11893. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11894. s//\1/
  11895. q
  11896. }
  11897. /^X\/\(\/\/\)$/{
  11898. s//\1/
  11899. q
  11900. }
  11901. /^X\/\(\/\).*/{
  11902. s//\1/
  11903. q
  11904. }
  11905. s/.*/./; q'`
  11906. # Avoid depending upon Character Ranges.
  11907. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11908. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11909. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11910. as_cr_digits='0123456789'
  11911. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11912. ECHO_C= ECHO_N= ECHO_T=
  11913. case `echo -n x` in #(((((
  11914. -n*)
  11915. case `echo 'xy\c'` in
  11916. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11917. xy) ECHO_C='\c';;
  11918. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11919. ECHO_T=' ';;
  11920. esac;;
  11921. *)
  11922. ECHO_N='-n';;
  11923. esac
  11924. rm -f conf$$ conf$$.exe conf$$.file
  11925. if test -d conf$$.dir; then
  11926. rm -f conf$$.dir/conf$$.file
  11927. else
  11928. rm -f conf$$.dir
  11929. mkdir conf$$.dir 2>/dev/null
  11930. fi
  11931. if (echo >conf$$.file) 2>/dev/null; then
  11932. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11933. as_ln_s='ln -s'
  11934. # ... but there are two gotchas:
  11935. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11936. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11937. # In both cases, we have to default to `cp -p'.
  11938. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11939. as_ln_s='cp -p'
  11940. elif ln conf$$.file conf$$ 2>/dev/null; then
  11941. as_ln_s=ln
  11942. else
  11943. as_ln_s='cp -p'
  11944. fi
  11945. else
  11946. as_ln_s='cp -p'
  11947. fi
  11948. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11949. rmdir conf$$.dir 2>/dev/null
  11950. # as_fn_mkdir_p
  11951. # -------------
  11952. # Create "$as_dir" as a directory, including parents if necessary.
  11953. as_fn_mkdir_p ()
  11954. {
  11955. case $as_dir in #(
  11956. -*) as_dir=./$as_dir;;
  11957. esac
  11958. test -d "$as_dir" || eval $as_mkdir_p || {
  11959. as_dirs=
  11960. while :; do
  11961. case $as_dir in #(
  11962. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11963. *) as_qdir=$as_dir;;
  11964. esac
  11965. as_dirs="'$as_qdir' $as_dirs"
  11966. as_dir=`$as_dirname -- "$as_dir" ||
  11967. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11968. X"$as_dir" : 'X\(//\)[^/]' \| \
  11969. X"$as_dir" : 'X\(//\)$' \| \
  11970. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11971. $as_echo X"$as_dir" |
  11972. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11973. s//\1/
  11974. q
  11975. }
  11976. /^X\(\/\/\)[^/].*/{
  11977. s//\1/
  11978. q
  11979. }
  11980. /^X\(\/\/\)$/{
  11981. s//\1/
  11982. q
  11983. }
  11984. /^X\(\/\).*/{
  11985. s//\1/
  11986. q
  11987. }
  11988. s/.*/./; q'`
  11989. test -d "$as_dir" && break
  11990. done
  11991. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11992. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11993. } # as_fn_mkdir_p
  11994. if mkdir -p . 2>/dev/null; then
  11995. as_mkdir_p='mkdir -p "$as_dir"'
  11996. else
  11997. test -d ./-p && rmdir ./-p
  11998. as_mkdir_p=false
  11999. fi
  12000. if test -x / >/dev/null 2>&1; then
  12001. as_test_x='test -x'
  12002. else
  12003. if ls -dL / >/dev/null 2>&1; then
  12004. as_ls_L_option=L
  12005. else
  12006. as_ls_L_option=
  12007. fi
  12008. as_test_x='
  12009. eval sh -c '\''
  12010. if test -d "$1"; then
  12011. test -d "$1/.";
  12012. else
  12013. case $1 in #(
  12014. -*)set "./$1";;
  12015. esac;
  12016. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12017. ???[sx]*):;;*)false;;esac;fi
  12018. '\'' sh
  12019. '
  12020. fi
  12021. as_executable_p=$as_test_x
  12022. # Sed expression to map a string onto a valid CPP name.
  12023. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12024. # Sed expression to map a string onto a valid variable name.
  12025. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12026. exec 6>&1
  12027. ## ----------------------------------- ##
  12028. ## Main body of $CONFIG_STATUS script. ##
  12029. ## ----------------------------------- ##
  12030. _ASEOF
  12031. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12033. # Save the log message, to keep $0 and so on meaningful, and to
  12034. # report actual input values of CONFIG_FILES etc. instead of their
  12035. # values after options handling.
  12036. ac_log="
  12037. This file was extended by OpenSRF $as_me trunk, which was
  12038. generated by GNU Autoconf 2.66. Invocation command line was
  12039. CONFIG_FILES = $CONFIG_FILES
  12040. CONFIG_HEADERS = $CONFIG_HEADERS
  12041. CONFIG_LINKS = $CONFIG_LINKS
  12042. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12043. $ $0 $@
  12044. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12045. "
  12046. _ACEOF
  12047. case $ac_config_files in *"
  12048. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12049. esac
  12050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12051. # Files that config.status was made for.
  12052. config_files="$ac_config_files"
  12053. config_commands="$ac_config_commands"
  12054. _ACEOF
  12055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12056. ac_cs_usage="\
  12057. \`$as_me' instantiates files and other configuration actions
  12058. from templates according to the current configuration. Unless the files
  12059. and actions are specified as TAGs, all are instantiated by default.
  12060. Usage: $0 [OPTION]... [TAG]...
  12061. -h, --help print this help, then exit
  12062. -V, --version print version number and configuration settings, then exit
  12063. --config print configuration, then exit
  12064. -q, --quiet, --silent
  12065. do not print progress messages
  12066. -d, --debug don't remove temporary files
  12067. --recheck update $as_me by reconfiguring in the same conditions
  12068. --file=FILE[:TEMPLATE]
  12069. instantiate the configuration file FILE
  12070. Configuration files:
  12071. $config_files
  12072. Configuration commands:
  12073. $config_commands
  12074. Report bugs to <open-ils-dev@list.georgialibraries.org>."
  12075. _ACEOF
  12076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12077. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12078. ac_cs_version="\\
  12079. OpenSRF config.status trunk
  12080. configured by $0, generated by GNU Autoconf 2.66,
  12081. with options \\"\$ac_cs_config\\"
  12082. Copyright (C) 2010 Free Software Foundation, Inc.
  12083. This config.status script is free software; the Free Software Foundation
  12084. gives unlimited permission to copy, distribute and modify it."
  12085. ac_pwd='$ac_pwd'
  12086. srcdir='$srcdir'
  12087. INSTALL='$INSTALL'
  12088. MKDIR_P='$MKDIR_P'
  12089. AWK='$AWK'
  12090. test -n "\$AWK" || AWK=awk
  12091. _ACEOF
  12092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12093. # The default lists apply if the user does not specify any file.
  12094. ac_need_defaults=:
  12095. while test $# != 0
  12096. do
  12097. case $1 in
  12098. --*=*)
  12099. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12100. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12101. ac_shift=:
  12102. ;;
  12103. *)
  12104. ac_option=$1
  12105. ac_optarg=$2
  12106. ac_shift=shift
  12107. ;;
  12108. esac
  12109. case $ac_option in
  12110. # Handling of the options.
  12111. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12112. ac_cs_recheck=: ;;
  12113. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12114. $as_echo "$ac_cs_version"; exit ;;
  12115. --config | --confi | --conf | --con | --co | --c )
  12116. $as_echo "$ac_cs_config"; exit ;;
  12117. --debug | --debu | --deb | --de | --d | -d )
  12118. debug=: ;;
  12119. --file | --fil | --fi | --f )
  12120. $ac_shift
  12121. case $ac_optarg in
  12122. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12123. esac
  12124. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12125. ac_need_defaults=false;;
  12126. --he | --h | --help | --hel | -h )
  12127. $as_echo "$ac_cs_usage"; exit ;;
  12128. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12129. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12130. ac_cs_silent=: ;;
  12131. # This is an error.
  12132. -*) as_fn_error $? "unrecognized option: \`$1'
  12133. Try \`$0 --help' for more information." ;;
  12134. *) as_fn_append ac_config_targets " $1"
  12135. ac_need_defaults=false ;;
  12136. esac
  12137. shift
  12138. done
  12139. ac_configure_extra_args=
  12140. if $ac_cs_silent; then
  12141. exec 6>/dev/null
  12142. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12143. fi
  12144. _ACEOF
  12145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12146. if \$ac_cs_recheck; then
  12147. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12148. shift
  12149. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12150. CONFIG_SHELL='$SHELL'
  12151. export CONFIG_SHELL
  12152. exec "\$@"
  12153. fi
  12154. _ACEOF
  12155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12156. exec 5>>config.log
  12157. {
  12158. echo
  12159. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12160. ## Running $as_me. ##
  12161. _ASBOX
  12162. $as_echo "$ac_log"
  12163. } >&5
  12164. _ACEOF
  12165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12166. #
  12167. # INIT-COMMANDS
  12168. #
  12169. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12170. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12171. # if CDPATH is set.
  12172. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12173. sed_quote_subst='$sed_quote_subst'
  12174. double_quote_subst='$double_quote_subst'
  12175. delay_variable_subst='$delay_variable_subst'
  12176. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12177. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12178. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12179. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12180. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12181. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12182. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12183. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12184. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12185. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12186. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12187. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12188. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12189. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12190. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12191. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12192. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12193. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12194. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12195. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12196. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12197. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12198. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12199. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12200. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12201. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12202. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12203. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12204. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12205. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12206. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12207. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12208. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12209. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12210. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12211. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12212. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12213. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12214. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12215. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12216. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12217. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12218. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12219. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12220. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12221. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12222. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12223. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12224. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12225. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12226. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12227. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12228. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12229. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12230. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12231. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12232. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12233. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12234. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12235. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12236. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12237. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12238. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12239. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12240. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12241. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12242. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12243. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12244. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12245. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12246. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12247. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12248. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12249. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12250. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12251. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12252. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12253. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12254. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12255. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12256. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12257. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12258. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12259. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12260. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12261. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12262. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12263. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12264. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12265. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12266. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12267. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12268. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12269. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12270. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12271. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12272. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12273. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12274. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12275. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12276. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12277. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12278. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12279. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12280. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12281. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12282. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12283. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12284. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12285. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12286. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12287. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12288. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12289. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12290. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12291. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12292. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12293. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12294. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12295. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12296. LTCC='$LTCC'
  12297. LTCFLAGS='$LTCFLAGS'
  12298. compiler='$compiler_DEFAULT'
  12299. # A function that is used when there is no print builtin or printf.
  12300. func_fallback_echo ()
  12301. {
  12302. eval 'cat <<_LTECHO_EOF
  12303. \$1
  12304. _LTECHO_EOF'
  12305. }
  12306. # Quote evaled strings.
  12307. for var in SHELL \
  12308. ECHO \
  12309. SED \
  12310. GREP \
  12311. EGREP \
  12312. FGREP \
  12313. LD \
  12314. NM \
  12315. LN_S \
  12316. lt_SP2NL \
  12317. lt_NL2SP \
  12318. reload_flag \
  12319. OBJDUMP \
  12320. deplibs_check_method \
  12321. file_magic_cmd \
  12322. AR \
  12323. AR_FLAGS \
  12324. STRIP \
  12325. RANLIB \
  12326. CC \
  12327. CFLAGS \
  12328. compiler \
  12329. lt_cv_sys_global_symbol_pipe \
  12330. lt_cv_sys_global_symbol_to_cdecl \
  12331. lt_cv_sys_global_symbol_to_c_name_address \
  12332. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12333. lt_prog_compiler_no_builtin_flag \
  12334. lt_prog_compiler_wl \
  12335. lt_prog_compiler_pic \
  12336. lt_prog_compiler_static \
  12337. lt_cv_prog_compiler_c_o \
  12338. need_locks \
  12339. DSYMUTIL \
  12340. NMEDIT \
  12341. LIPO \
  12342. OTOOL \
  12343. OTOOL64 \
  12344. shrext_cmds \
  12345. export_dynamic_flag_spec \
  12346. whole_archive_flag_spec \
  12347. compiler_needs_object \
  12348. with_gnu_ld \
  12349. allow_undefined_flag \
  12350. no_undefined_flag \
  12351. hardcode_libdir_flag_spec \
  12352. hardcode_libdir_flag_spec_ld \
  12353. hardcode_libdir_separator \
  12354. fix_srcfile_path \
  12355. exclude_expsyms \
  12356. include_expsyms \
  12357. file_list_spec \
  12358. variables_saved_for_relink \
  12359. libname_spec \
  12360. library_names_spec \
  12361. soname_spec \
  12362. install_override_mode \
  12363. finish_eval \
  12364. old_striplib \
  12365. striplib; do
  12366. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12367. *[\\\\\\\`\\"\\\$]*)
  12368. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12369. ;;
  12370. *)
  12371. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12372. ;;
  12373. esac
  12374. done
  12375. # Double-quote double-evaled strings.
  12376. for var in reload_cmds \
  12377. old_postinstall_cmds \
  12378. old_postuninstall_cmds \
  12379. old_archive_cmds \
  12380. extract_expsyms_cmds \
  12381. old_archive_from_new_cmds \
  12382. old_archive_from_expsyms_cmds \
  12383. archive_cmds \
  12384. archive_expsym_cmds \
  12385. module_cmds \
  12386. module_expsym_cmds \
  12387. export_symbols_cmds \
  12388. prelink_cmds \
  12389. postinstall_cmds \
  12390. postuninstall_cmds \
  12391. finish_cmds \
  12392. sys_lib_search_path_spec \
  12393. sys_lib_dlsearch_path_spec; do
  12394. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12395. *[\\\\\\\`\\"\\\$]*)
  12396. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12397. ;;
  12398. *)
  12399. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12400. ;;
  12401. esac
  12402. done
  12403. ac_aux_dir='$ac_aux_dir'
  12404. xsi_shell='$xsi_shell'
  12405. lt_shell_append='$lt_shell_append'
  12406. # See if we are running on zsh, and set the options which allow our
  12407. # commands through without removal of \ escapes INIT.
  12408. if test -n "\${ZSH_VERSION+set}" ; then
  12409. setopt NO_GLOB_SUBST
  12410. fi
  12411. PACKAGE='$PACKAGE'
  12412. VERSION='$VERSION'
  12413. TIMESTAMP='$TIMESTAMP'
  12414. RM='$RM'
  12415. ofile='$ofile'
  12416. _ACEOF
  12417. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12418. # Handling of arguments.
  12419. for ac_config_target in $ac_config_targets
  12420. do
  12421. case $ac_config_target in
  12422. "src/java/Makefile") CONFIG_FILES="$CONFIG_FILES src/java/Makefile" ;;
  12423. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12424. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12425. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12426. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12427. "examples/math_client.py") CONFIG_FILES="$CONFIG_FILES examples/math_client.py" ;;
  12428. "examples/simple_text.py") CONFIG_FILES="$CONFIG_FILES examples/simple_text.py" ;;
  12429. "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;;
  12430. "doc/dokuwiki-doc-stubber.pl") CONFIG_FILES="$CONFIG_FILES doc/dokuwiki-doc-stubber.pl" ;;
  12431. "examples/math_xul_client/Makefile") CONFIG_FILES="$CONFIG_FILES examples/math_xul_client/Makefile" ;;
  12432. "examples/math_bench.pl") CONFIG_FILES="$CONFIG_FILES examples/math_bench.pl" ;;
  12433. "examples/multisession-test.pl") CONFIG_FILES="$CONFIG_FILES examples/multisession-test.pl" ;;
  12434. "src/c-apps/Makefile") CONFIG_FILES="$CONFIG_FILES src/c-apps/Makefile" ;;
  12435. "src/gateway/Makefile") CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
  12436. "src/jserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/jserver/Makefile" ;;
  12437. "src/libopensrf/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopensrf/Makefile" ;;
  12438. "src/perl/Makefile") CONFIG_FILES="$CONFIG_FILES src/perl/Makefile" ;;
  12439. "src/ports/strn_compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/ports/strn_compat/Makefile" ;;
  12440. "src/python/opensrf.py") CONFIG_FILES="$CONFIG_FILES src/python/opensrf.py" ;;
  12441. "src/router/Makefile") CONFIG_FILES="$CONFIG_FILES src/router/Makefile" ;;
  12442. "src/srfsh/Makefile") CONFIG_FILES="$CONFIG_FILES src/srfsh/Makefile" ;;
  12443. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12444. "bin/opensrf-perl.pl") CONFIG_FILES="$CONFIG_FILES bin/opensrf-perl.pl" ;;
  12445. "bin/osrf_config") CONFIG_FILES="$CONFIG_FILES bin/osrf_config" ;;
  12446. "bin/osrf_ctl.sh") CONFIG_FILES="$CONFIG_FILES bin/osrf_ctl.sh" ;;
  12447. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12448. esac
  12449. done
  12450. # If the user did not use the arguments to specify the items to instantiate,
  12451. # then the envvar interface is used. Set only those that are not.
  12452. # We use the long form for the default assignment because of an extremely
  12453. # bizarre bug on SunOS 4.1.3.
  12454. if $ac_need_defaults; then
  12455. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12456. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12457. fi
  12458. # Have a temporary directory for convenience. Make it in the build tree
  12459. # simply because there is no reason against having it here, and in addition,
  12460. # creating and moving files from /tmp can sometimes cause problems.
  12461. # Hook for its removal unless debugging.
  12462. # Note that there is a small window in which the directory will not be cleaned:
  12463. # after its creation but before its name has been assigned to `$tmp'.
  12464. $debug ||
  12465. {
  12466. tmp=
  12467. trap 'exit_status=$?
  12468. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12469. ' 0
  12470. trap 'as_fn_exit 1' 1 2 13 15
  12471. }
  12472. # Create a (secure) tmp directory for tmp files.
  12473. {
  12474. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12475. test -n "$tmp" && test -d "$tmp"
  12476. } ||
  12477. {
  12478. tmp=./conf$$-$RANDOM
  12479. (umask 077 && mkdir "$tmp")
  12480. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12481. # Set up the scripts for CONFIG_FILES section.
  12482. # No need to generate them if there are no CONFIG_FILES.
  12483. # This happens for instance with `./config.status config.h'.
  12484. if test -n "$CONFIG_FILES"; then
  12485. ac_cr=`echo X | tr X '\015'`
  12486. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12487. # But we know of no other shell where ac_cr would be empty at this
  12488. # point, so we can use a bashism as a fallback.
  12489. if test "x$ac_cr" = x; then
  12490. eval ac_cr=\$\'\\r\'
  12491. fi
  12492. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12493. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12494. ac_cs_awk_cr='\\r'
  12495. else
  12496. ac_cs_awk_cr=$ac_cr
  12497. fi
  12498. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12499. _ACEOF
  12500. {
  12501. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12502. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12503. echo "_ACEOF"
  12504. } >conf$$subs.sh ||
  12505. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12506. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12507. ac_delim='%!_!# '
  12508. for ac_last_try in false false false false false :; do
  12509. . ./conf$$subs.sh ||
  12510. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12511. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12512. if test $ac_delim_n = $ac_delim_num; then
  12513. break
  12514. elif $ac_last_try; then
  12515. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12516. else
  12517. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12518. fi
  12519. done
  12520. rm -f conf$$subs.sh
  12521. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12522. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12523. _ACEOF
  12524. sed -n '
  12525. h
  12526. s/^/S["/; s/!.*/"]=/
  12527. p
  12528. g
  12529. s/^[^!]*!//
  12530. :repl
  12531. t repl
  12532. s/'"$ac_delim"'$//
  12533. t delim
  12534. :nl
  12535. h
  12536. s/\(.\{148\}\)..*/\1/
  12537. t more1
  12538. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12539. p
  12540. n
  12541. b repl
  12542. :more1
  12543. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12544. p
  12545. g
  12546. s/.\{148\}//
  12547. t nl
  12548. :delim
  12549. h
  12550. s/\(.\{148\}\)..*/\1/
  12551. t more2
  12552. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12553. p
  12554. b
  12555. :more2
  12556. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12557. p
  12558. g
  12559. s/.\{148\}//
  12560. t delim
  12561. ' <conf$$subs.awk | sed '
  12562. /^[^""]/{
  12563. N
  12564. s/\n//
  12565. }
  12566. ' >>$CONFIG_STATUS || ac_write_fail=1
  12567. rm -f conf$$subs.awk
  12568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12569. _ACAWK
  12570. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12571. for (key in S) S_is_set[key] = 1
  12572. FS = ""
  12573. }
  12574. {
  12575. line = $ 0
  12576. nfields = split(line, field, "@")
  12577. substed = 0
  12578. len = length(field[1])
  12579. for (i = 2; i < nfields; i++) {
  12580. key = field[i]
  12581. keylen = length(key)
  12582. if (S_is_set[key]) {
  12583. value = S[key]
  12584. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12585. len += length(value) + length(field[++i])
  12586. substed = 1
  12587. } else
  12588. len += 1 + keylen
  12589. }
  12590. print line
  12591. }
  12592. _ACAWK
  12593. _ACEOF
  12594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12595. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12596. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12597. else
  12598. cat
  12599. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12600. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12601. _ACEOF
  12602. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12603. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12604. # trailing colons and then remove the whole line if VPATH becomes empty
  12605. # (actually we leave an empty line to preserve line numbers).
  12606. if test "x$srcdir" = x.; then
  12607. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12608. h
  12609. s///
  12610. s/^/:/
  12611. s/[ ]*$/:/
  12612. s/:\$(srcdir):/:/g
  12613. s/:\${srcdir}:/:/g
  12614. s/:@srcdir@:/:/g
  12615. s/^:*//
  12616. s/:*$//
  12617. x
  12618. s/\(=[ ]*\).*/\1/
  12619. G
  12620. s/\n//
  12621. s/^[^=]*=[ ]*$//
  12622. }'
  12623. fi
  12624. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12625. fi # test -n "$CONFIG_FILES"
  12626. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  12627. shift
  12628. for ac_tag
  12629. do
  12630. case $ac_tag in
  12631. :[FHLC]) ac_mode=$ac_tag; continue;;
  12632. esac
  12633. case $ac_mode$ac_tag in
  12634. :[FHL]*:*);;
  12635. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12636. :[FH]-) ac_tag=-:-;;
  12637. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12638. esac
  12639. ac_save_IFS=$IFS
  12640. IFS=:
  12641. set x $ac_tag
  12642. IFS=$ac_save_IFS
  12643. shift
  12644. ac_file=$1
  12645. shift
  12646. case $ac_mode in
  12647. :L) ac_source=$1;;
  12648. :[FH])
  12649. ac_file_inputs=
  12650. for ac_f
  12651. do
  12652. case $ac_f in
  12653. -) ac_f="$tmp/stdin";;
  12654. *) # Look for the file first in the build tree, then in the source tree
  12655. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12656. # because $ac_f cannot contain `:'.
  12657. test -f "$ac_f" ||
  12658. case $ac_f in
  12659. [\\/$]*) false;;
  12660. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12661. esac ||
  12662. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12663. esac
  12664. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12665. as_fn_append ac_file_inputs " '$ac_f'"
  12666. done
  12667. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12668. # use $as_me), people would be surprised to read:
  12669. # /* config.h. Generated by config.status. */
  12670. configure_input='Generated from '`
  12671. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12672. `' by configure.'
  12673. if test x"$ac_file" != x-; then
  12674. configure_input="$ac_file. $configure_input"
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12676. $as_echo "$as_me: creating $ac_file" >&6;}
  12677. fi
  12678. # Neutralize special characters interpreted by sed in replacement strings.
  12679. case $configure_input in #(
  12680. *\&* | *\|* | *\\* )
  12681. ac_sed_conf_input=`$as_echo "$configure_input" |
  12682. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12683. *) ac_sed_conf_input=$configure_input;;
  12684. esac
  12685. case $ac_tag in
  12686. *:-:* | *:-) cat >"$tmp/stdin" \
  12687. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12688. esac
  12689. ;;
  12690. esac
  12691. ac_dir=`$as_dirname -- "$ac_file" ||
  12692. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12693. X"$ac_file" : 'X\(//\)[^/]' \| \
  12694. X"$ac_file" : 'X\(//\)$' \| \
  12695. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12696. $as_echo X"$ac_file" |
  12697. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12698. s//\1/
  12699. q
  12700. }
  12701. /^X\(\/\/\)[^/].*/{
  12702. s//\1/
  12703. q
  12704. }
  12705. /^X\(\/\/\)$/{
  12706. s//\1/
  12707. q
  12708. }
  12709. /^X\(\/\).*/{
  12710. s//\1/
  12711. q
  12712. }
  12713. s/.*/./; q'`
  12714. as_dir="$ac_dir"; as_fn_mkdir_p
  12715. ac_builddir=.
  12716. case "$ac_dir" in
  12717. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12718. *)
  12719. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12720. # A ".." for each directory in $ac_dir_suffix.
  12721. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12722. case $ac_top_builddir_sub in
  12723. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12724. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12725. esac ;;
  12726. esac
  12727. ac_abs_top_builddir=$ac_pwd
  12728. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12729. # for backward compatibility:
  12730. ac_top_builddir=$ac_top_build_prefix
  12731. case $srcdir in
  12732. .) # We are building in place.
  12733. ac_srcdir=.
  12734. ac_top_srcdir=$ac_top_builddir_sub
  12735. ac_abs_top_srcdir=$ac_pwd ;;
  12736. [\\/]* | ?:[\\/]* ) # Absolute name.
  12737. ac_srcdir=$srcdir$ac_dir_suffix;
  12738. ac_top_srcdir=$srcdir
  12739. ac_abs_top_srcdir=$srcdir ;;
  12740. *) # Relative name.
  12741. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12742. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12743. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12744. esac
  12745. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12746. case $ac_mode in
  12747. :F)
  12748. #
  12749. # CONFIG_FILE
  12750. #
  12751. case $INSTALL in
  12752. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12753. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12754. esac
  12755. ac_MKDIR_P=$MKDIR_P
  12756. case $MKDIR_P in
  12757. [\\/$]* | ?:[\\/]* ) ;;
  12758. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12759. esac
  12760. _ACEOF
  12761. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12762. # If the template does not know about datarootdir, expand it.
  12763. # FIXME: This hack should be removed a few years after 2.60.
  12764. ac_datarootdir_hack=; ac_datarootdir_seen=
  12765. ac_sed_dataroot='
  12766. /datarootdir/ {
  12767. p
  12768. q
  12769. }
  12770. /@datadir@/p
  12771. /@docdir@/p
  12772. /@infodir@/p
  12773. /@localedir@/p
  12774. /@mandir@/p'
  12775. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12776. *datarootdir*) ac_datarootdir_seen=yes;;
  12777. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12779. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12780. _ACEOF
  12781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12782. ac_datarootdir_hack='
  12783. s&@datadir@&$datadir&g
  12784. s&@docdir@&$docdir&g
  12785. s&@infodir@&$infodir&g
  12786. s&@localedir@&$localedir&g
  12787. s&@mandir@&$mandir&g
  12788. s&\\\${datarootdir}&$datarootdir&g' ;;
  12789. esac
  12790. _ACEOF
  12791. # Neutralize VPATH when `$srcdir' = `.'.
  12792. # Shell code in configure.ac might set extrasub.
  12793. # FIXME: do we really want to maintain this feature?
  12794. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12795. ac_sed_extra="$ac_vpsub
  12796. $extrasub
  12797. _ACEOF
  12798. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12799. :t
  12800. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12801. s|@configure_input@|$ac_sed_conf_input|;t t
  12802. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12803. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12804. s&@srcdir@&$ac_srcdir&;t t
  12805. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12806. s&@top_srcdir@&$ac_top_srcdir&;t t
  12807. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12808. s&@builddir@&$ac_builddir&;t t
  12809. s&@abs_builddir@&$ac_abs_builddir&;t t
  12810. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12811. s&@INSTALL@&$ac_INSTALL&;t t
  12812. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12813. $ac_datarootdir_hack
  12814. "
  12815. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12817. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12818. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12819. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12821. which seems to be undefined. Please make sure it is defined" >&5
  12822. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12823. which seems to be undefined. Please make sure it is defined" >&2;}
  12824. rm -f "$tmp/stdin"
  12825. case $ac_file in
  12826. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12827. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12828. esac \
  12829. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12830. ;;
  12831. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12832. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12833. ;;
  12834. esac
  12835. case $ac_file$ac_mode in
  12836. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12837. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12838. # are listed without --file. Let's play safe and only enable the eval
  12839. # if we detect the quoting.
  12840. case $CONFIG_FILES in
  12841. *\'*) eval set x "$CONFIG_FILES" ;;
  12842. *) set x $CONFIG_FILES ;;
  12843. esac
  12844. shift
  12845. for mf
  12846. do
  12847. # Strip MF so we end up with the name of the file.
  12848. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12849. # Check whether this is an Automake generated Makefile or not.
  12850. # We used to match only the files named `Makefile.in', but
  12851. # some people rename them; so instead we look at the file content.
  12852. # Grep'ing the first line is not enough: some people post-process
  12853. # each Makefile.in and add a new line on top of each file to say so.
  12854. # Grep'ing the whole file is not good either: AIX grep has a line
  12855. # limit of 2048, but all sed's we know have understand at least 4000.
  12856. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12857. dirpart=`$as_dirname -- "$mf" ||
  12858. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12859. X"$mf" : 'X\(//\)[^/]' \| \
  12860. X"$mf" : 'X\(//\)$' \| \
  12861. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12862. $as_echo X"$mf" |
  12863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12864. s//\1/
  12865. q
  12866. }
  12867. /^X\(\/\/\)[^/].*/{
  12868. s//\1/
  12869. q
  12870. }
  12871. /^X\(\/\/\)$/{
  12872. s//\1/
  12873. q
  12874. }
  12875. /^X\(\/\).*/{
  12876. s//\1/
  12877. q
  12878. }
  12879. s/.*/./; q'`
  12880. else
  12881. continue
  12882. fi
  12883. # Extract the definition of DEPDIR, am__include, and am__quote
  12884. # from the Makefile without running `make'.
  12885. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12886. test -z "$DEPDIR" && continue
  12887. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12888. test -z "am__include" && continue
  12889. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12890. # When using ansi2knr, U may be empty or an underscore; expand it
  12891. U=`sed -n 's/^U = //p' < "$mf"`
  12892. # Find all dependency output files, they are included files with
  12893. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12894. # simplest approach to changing $(DEPDIR) to its actual value in the
  12895. # expansion.
  12896. for file in `sed -n "
  12897. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12898. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12899. # Make sure the directory exists.
  12900. test -f "$dirpart/$file" && continue
  12901. fdir=`$as_dirname -- "$file" ||
  12902. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12903. X"$file" : 'X\(//\)[^/]' \| \
  12904. X"$file" : 'X\(//\)$' \| \
  12905. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12906. $as_echo X"$file" |
  12907. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12908. s//\1/
  12909. q
  12910. }
  12911. /^X\(\/\/\)[^/].*/{
  12912. s//\1/
  12913. q
  12914. }
  12915. /^X\(\/\/\)$/{
  12916. s//\1/
  12917. q
  12918. }
  12919. /^X\(\/\).*/{
  12920. s//\1/
  12921. q
  12922. }
  12923. s/.*/./; q'`
  12924. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12925. # echo "creating $dirpart/$file"
  12926. echo '# dummy' > "$dirpart/$file"
  12927. done
  12928. done
  12929. }
  12930. ;;
  12931. "libtool":C)
  12932. # See if we are running on zsh, and set the options which allow our
  12933. # commands through without removal of \ escapes.
  12934. if test -n "${ZSH_VERSION+set}" ; then
  12935. setopt NO_GLOB_SUBST
  12936. fi
  12937. cfgfile="${ofile}T"
  12938. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12939. $RM "$cfgfile"
  12940. cat <<_LT_EOF >> "$cfgfile"
  12941. #! $SHELL
  12942. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12943. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12944. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12945. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12946. #
  12947. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12948. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  12949. # Inc.
  12950. # Written by Gordon Matzigkeit, 1996
  12951. #
  12952. # This file is part of GNU Libtool.
  12953. #
  12954. # GNU Libtool is free software; you can redistribute it and/or
  12955. # modify it under the terms of the GNU General Public License as
  12956. # published by the Free Software Foundation; either version 2 of
  12957. # the License, or (at your option) any later version.
  12958. #
  12959. # As a special exception to the GNU General Public License,
  12960. # if you distribute this file as part of a program or library that
  12961. # is built using GNU Libtool, you may include this file under the
  12962. # same distribution terms that you use for the rest of that program.
  12963. #
  12964. # GNU Libtool is distributed in the hope that it will be useful,
  12965. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12966. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12967. # GNU General Public License for more details.
  12968. #
  12969. # You should have received a copy of the GNU General Public License
  12970. # along with GNU Libtool; see the file COPYING. If not, a copy
  12971. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12972. # obtained by writing to the Free Software Foundation, Inc.,
  12973. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12974. # The names of the tagged configurations supported by this script.
  12975. available_tags=""
  12976. # ### BEGIN LIBTOOL CONFIG
  12977. # Which release of libtool.m4 was used?
  12978. macro_version=$macro_version
  12979. macro_revision=$macro_revision
  12980. # Whether or not to build shared libraries.
  12981. build_libtool_libs=$enable_shared
  12982. # Whether or not to build static libraries.
  12983. build_old_libs=$enable_static
  12984. # What type of objects to build.
  12985. pic_mode=$pic_mode
  12986. # Whether or not to optimize for fast installation.
  12987. fast_install=$enable_fast_install
  12988. # Shell to use when invoking shell scripts.
  12989. SHELL=$lt_SHELL
  12990. # An echo program that protects backslashes.
  12991. ECHO=$lt_ECHO
  12992. # The host system.
  12993. host_alias=$host_alias
  12994. host=$host
  12995. host_os=$host_os
  12996. # The build system.
  12997. build_alias=$build_alias
  12998. build=$build
  12999. build_os=$build_os
  13000. # A sed program that does not truncate output.
  13001. SED=$lt_SED
  13002. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13003. Xsed="\$SED -e 1s/^X//"
  13004. # A grep program that handles long lines.
  13005. GREP=$lt_GREP
  13006. # An ERE matcher.
  13007. EGREP=$lt_EGREP
  13008. # A literal string matcher.
  13009. FGREP=$lt_FGREP
  13010. # A BSD- or MS-compatible name lister.
  13011. NM=$lt_NM
  13012. # Whether we need soft or hard links.
  13013. LN_S=$lt_LN_S
  13014. # What is the maximum length of a command?
  13015. max_cmd_len=$max_cmd_len
  13016. # Object file suffix (normally "o").
  13017. objext=$ac_objext
  13018. # Executable file suffix (normally "").
  13019. exeext=$exeext
  13020. # whether the shell understands "unset".
  13021. lt_unset=$lt_unset
  13022. # turn spaces into newlines.
  13023. SP2NL=$lt_lt_SP2NL
  13024. # turn newlines into spaces.
  13025. NL2SP=$lt_lt_NL2SP
  13026. # An object symbol dumper.
  13027. OBJDUMP=$lt_OBJDUMP
  13028. # Method to check whether dependent libraries are shared objects.
  13029. deplibs_check_method=$lt_deplibs_check_method
  13030. # Command to use when deplibs_check_method == "file_magic".
  13031. file_magic_cmd=$lt_file_magic_cmd
  13032. # The archiver.
  13033. AR=$lt_AR
  13034. AR_FLAGS=$lt_AR_FLAGS
  13035. # A symbol stripping program.
  13036. STRIP=$lt_STRIP
  13037. # Commands used to install an old-style archive.
  13038. RANLIB=$lt_RANLIB
  13039. old_postinstall_cmds=$lt_old_postinstall_cmds
  13040. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13041. # Whether to use a lock for old archive extraction.
  13042. lock_old_archive_extraction=$lock_old_archive_extraction
  13043. # A C compiler.
  13044. LTCC=$lt_CC
  13045. # LTCC compiler flags.
  13046. LTCFLAGS=$lt_CFLAGS
  13047. # Take the output of nm and produce a listing of raw symbols and C names.
  13048. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13049. # Transform the output of nm in a proper C declaration.
  13050. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13051. # Transform the output of nm in a C name address pair.
  13052. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13053. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13054. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13055. # The name of the directory that contains temporary libtool files.
  13056. objdir=$objdir
  13057. # Used to examine libraries when file_magic_cmd begins with "file".
  13058. MAGIC_CMD=$MAGIC_CMD
  13059. # Must we lock files when doing compilation?
  13060. need_locks=$lt_need_locks
  13061. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13062. DSYMUTIL=$lt_DSYMUTIL
  13063. # Tool to change global to local symbols on Mac OS X.
  13064. NMEDIT=$lt_NMEDIT
  13065. # Tool to manipulate fat objects and archives on Mac OS X.
  13066. LIPO=$lt_LIPO
  13067. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13068. OTOOL=$lt_OTOOL
  13069. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13070. OTOOL64=$lt_OTOOL64
  13071. # Old archive suffix (normally "a").
  13072. libext=$libext
  13073. # Shared library suffix (normally ".so").
  13074. shrext_cmds=$lt_shrext_cmds
  13075. # The commands to extract the exported symbol list from a shared archive.
  13076. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13077. # Variables whose values should be saved in libtool wrapper scripts and
  13078. # restored at link time.
  13079. variables_saved_for_relink=$lt_variables_saved_for_relink
  13080. # Do we need the "lib" prefix for modules?
  13081. need_lib_prefix=$need_lib_prefix
  13082. # Do we need a version for libraries?
  13083. need_version=$need_version
  13084. # Library versioning type.
  13085. version_type=$version_type
  13086. # Shared library runtime path variable.
  13087. runpath_var=$runpath_var
  13088. # Shared library path variable.
  13089. shlibpath_var=$shlibpath_var
  13090. # Is shlibpath searched before the hard-coded library search path?
  13091. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13092. # Format of library name prefix.
  13093. libname_spec=$lt_libname_spec
  13094. # List of archive names. First name is the real one, the rest are links.
  13095. # The last name is the one that the linker finds with -lNAME
  13096. library_names_spec=$lt_library_names_spec
  13097. # The coded name of the library, if different from the real name.
  13098. soname_spec=$lt_soname_spec
  13099. # Permission mode override for installation of shared libraries.
  13100. install_override_mode=$lt_install_override_mode
  13101. # Command to use after installation of a shared archive.
  13102. postinstall_cmds=$lt_postinstall_cmds
  13103. # Command to use after uninstallation of a shared archive.
  13104. postuninstall_cmds=$lt_postuninstall_cmds
  13105. # Commands used to finish a libtool library installation in a directory.
  13106. finish_cmds=$lt_finish_cmds
  13107. # As "finish_cmds", except a single script fragment to be evaled but
  13108. # not shown.
  13109. finish_eval=$lt_finish_eval
  13110. # Whether we should hardcode library paths into libraries.
  13111. hardcode_into_libs=$hardcode_into_libs
  13112. # Compile-time system search path for libraries.
  13113. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13114. # Run-time system search path for libraries.
  13115. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13116. # Whether dlopen is supported.
  13117. dlopen_support=$enable_dlopen
  13118. # Whether dlopen of programs is supported.
  13119. dlopen_self=$enable_dlopen_self
  13120. # Whether dlopen of statically linked programs is supported.
  13121. dlopen_self_static=$enable_dlopen_self_static
  13122. # Commands to strip libraries.
  13123. old_striplib=$lt_old_striplib
  13124. striplib=$lt_striplib
  13125. # The linker used to build libraries.
  13126. LD=$lt_LD
  13127. # How to create reloadable object files.
  13128. reload_flag=$lt_reload_flag
  13129. reload_cmds=$lt_reload_cmds
  13130. # Commands used to build an old-style archive.
  13131. old_archive_cmds=$lt_old_archive_cmds
  13132. # A language specific compiler.
  13133. CC=$lt_compiler
  13134. # Is the compiler the GNU compiler?
  13135. with_gcc=$GCC
  13136. # Compiler flag to turn off builtin functions.
  13137. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13138. # How to pass a linker flag through the compiler.
  13139. wl=$lt_lt_prog_compiler_wl
  13140. # Additional compiler flags for building library objects.
  13141. pic_flag=$lt_lt_prog_compiler_pic
  13142. # Compiler flag to prevent dynamic linking.
  13143. link_static_flag=$lt_lt_prog_compiler_static
  13144. # Does compiler simultaneously support -c and -o options?
  13145. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13146. # Whether or not to add -lc for building shared libraries.
  13147. build_libtool_need_lc=$archive_cmds_need_lc
  13148. # Whether or not to disallow shared libs when runtime libs are static.
  13149. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13150. # Compiler flag to allow reflexive dlopens.
  13151. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13152. # Compiler flag to generate shared objects directly from archives.
  13153. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13154. # Whether the compiler copes with passing no objects directly.
  13155. compiler_needs_object=$lt_compiler_needs_object
  13156. # Create an old-style archive from a shared archive.
  13157. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13158. # Create a temporary old-style archive to link instead of a shared archive.
  13159. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13160. # Commands used to build a shared archive.
  13161. archive_cmds=$lt_archive_cmds
  13162. archive_expsym_cmds=$lt_archive_expsym_cmds
  13163. # Commands used to build a loadable module if different from building
  13164. # a shared archive.
  13165. module_cmds=$lt_module_cmds
  13166. module_expsym_cmds=$lt_module_expsym_cmds
  13167. # Whether we are building with GNU ld or not.
  13168. with_gnu_ld=$lt_with_gnu_ld
  13169. # Flag that allows shared libraries with undefined symbols to be built.
  13170. allow_undefined_flag=$lt_allow_undefined_flag
  13171. # Flag that enforces no undefined symbols.
  13172. no_undefined_flag=$lt_no_undefined_flag
  13173. # Flag to hardcode \$libdir into a binary during linking.
  13174. # This must work even if \$libdir does not exist
  13175. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13176. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13177. # during linking. This must work even if \$libdir does not exist.
  13178. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13179. # Whether we need a single "-rpath" flag with a separated argument.
  13180. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13181. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13182. # DIR into the resulting binary.
  13183. hardcode_direct=$hardcode_direct
  13184. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13185. # DIR into the resulting binary and the resulting library dependency is
  13186. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13187. # library is relocated.
  13188. hardcode_direct_absolute=$hardcode_direct_absolute
  13189. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13190. # into the resulting binary.
  13191. hardcode_minus_L=$hardcode_minus_L
  13192. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13193. # into the resulting binary.
  13194. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13195. # Set to "yes" if building a shared library automatically hardcodes DIR
  13196. # into the library and all subsequent libraries and executables linked
  13197. # against it.
  13198. hardcode_automatic=$hardcode_automatic
  13199. # Set to yes if linker adds runtime paths of dependent libraries
  13200. # to runtime path list.
  13201. inherit_rpath=$inherit_rpath
  13202. # Whether libtool must link a program against all its dependency libraries.
  13203. link_all_deplibs=$link_all_deplibs
  13204. # Fix the shell variable \$srcfile for the compiler.
  13205. fix_srcfile_path=$lt_fix_srcfile_path
  13206. # Set to "yes" if exported symbols are required.
  13207. always_export_symbols=$always_export_symbols
  13208. # The commands to list exported symbols.
  13209. export_symbols_cmds=$lt_export_symbols_cmds
  13210. # Symbols that should not be listed in the preloaded symbols.
  13211. exclude_expsyms=$lt_exclude_expsyms
  13212. # Symbols that must always be exported.
  13213. include_expsyms=$lt_include_expsyms
  13214. # Commands necessary for linking programs (against libraries) with templates.
  13215. prelink_cmds=$lt_prelink_cmds
  13216. # Specify filename containing input files.
  13217. file_list_spec=$lt_file_list_spec
  13218. # How to hardcode a shared library path into an executable.
  13219. hardcode_action=$hardcode_action
  13220. # ### END LIBTOOL CONFIG
  13221. _LT_EOF
  13222. case $host_os in
  13223. aix3*)
  13224. cat <<\_LT_EOF >> "$cfgfile"
  13225. # AIX sometimes has problems with the GCC collect2 program. For some
  13226. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13227. # vanish in a puff of smoke.
  13228. if test "X${COLLECT_NAMES+set}" != Xset; then
  13229. COLLECT_NAMES=
  13230. export COLLECT_NAMES
  13231. fi
  13232. _LT_EOF
  13233. ;;
  13234. esac
  13235. ltmain="$ac_aux_dir/ltmain.sh"
  13236. # We use sed instead of cat because bash on DJGPP gets confused if
  13237. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13238. # text mode, it properly converts lines to CR/LF. This bash problem
  13239. # is reportedly fixed, but why not run on old versions too?
  13240. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13241. || (rm -f "$cfgfile"; exit 1)
  13242. case $xsi_shell in
  13243. yes)
  13244. cat << \_LT_EOF >> "$cfgfile"
  13245. # func_dirname file append nondir_replacement
  13246. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13247. # otherwise set result to NONDIR_REPLACEMENT.
  13248. func_dirname ()
  13249. {
  13250. case ${1} in
  13251. */*) func_dirname_result="${1%/*}${2}" ;;
  13252. * ) func_dirname_result="${3}" ;;
  13253. esac
  13254. }
  13255. # func_basename file
  13256. func_basename ()
  13257. {
  13258. func_basename_result="${1##*/}"
  13259. }
  13260. # func_dirname_and_basename file append nondir_replacement
  13261. # perform func_basename and func_dirname in a single function
  13262. # call:
  13263. # dirname: Compute the dirname of FILE. If nonempty,
  13264. # add APPEND to the result, otherwise set result
  13265. # to NONDIR_REPLACEMENT.
  13266. # value returned in "$func_dirname_result"
  13267. # basename: Compute filename of FILE.
  13268. # value retuned in "$func_basename_result"
  13269. # Implementation must be kept synchronized with func_dirname
  13270. # and func_basename. For efficiency, we do not delegate to
  13271. # those functions but instead duplicate the functionality here.
  13272. func_dirname_and_basename ()
  13273. {
  13274. case ${1} in
  13275. */*) func_dirname_result="${1%/*}${2}" ;;
  13276. * ) func_dirname_result="${3}" ;;
  13277. esac
  13278. func_basename_result="${1##*/}"
  13279. }
  13280. # func_stripname prefix suffix name
  13281. # strip PREFIX and SUFFIX off of NAME.
  13282. # PREFIX and SUFFIX must not contain globbing or regex special
  13283. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13284. # dot (in which case that matches only a dot).
  13285. func_stripname ()
  13286. {
  13287. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13288. # positional parameters, so assign one to ordinary parameter first.
  13289. func_stripname_result=${3}
  13290. func_stripname_result=${func_stripname_result#"${1}"}
  13291. func_stripname_result=${func_stripname_result%"${2}"}
  13292. }
  13293. # func_opt_split
  13294. func_opt_split ()
  13295. {
  13296. func_opt_split_opt=${1%%=*}
  13297. func_opt_split_arg=${1#*=}
  13298. }
  13299. # func_lo2o object
  13300. func_lo2o ()
  13301. {
  13302. case ${1} in
  13303. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13304. *) func_lo2o_result=${1} ;;
  13305. esac
  13306. }
  13307. # func_xform libobj-or-source
  13308. func_xform ()
  13309. {
  13310. func_xform_result=${1%.*}.lo
  13311. }
  13312. # func_arith arithmetic-term...
  13313. func_arith ()
  13314. {
  13315. func_arith_result=$(( $* ))
  13316. }
  13317. # func_len string
  13318. # STRING may not start with a hyphen.
  13319. func_len ()
  13320. {
  13321. func_len_result=${#1}
  13322. }
  13323. _LT_EOF
  13324. ;;
  13325. *) # Bourne compatible functions.
  13326. cat << \_LT_EOF >> "$cfgfile"
  13327. # func_dirname file append nondir_replacement
  13328. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13329. # otherwise set result to NONDIR_REPLACEMENT.
  13330. func_dirname ()
  13331. {
  13332. # Extract subdirectory from the argument.
  13333. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  13334. if test "X$func_dirname_result" = "X${1}"; then
  13335. func_dirname_result="${3}"
  13336. else
  13337. func_dirname_result="$func_dirname_result${2}"
  13338. fi
  13339. }
  13340. # func_basename file
  13341. func_basename ()
  13342. {
  13343. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  13344. }
  13345. # func_stripname prefix suffix name
  13346. # strip PREFIX and SUFFIX off of NAME.
  13347. # PREFIX and SUFFIX must not contain globbing or regex special
  13348. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13349. # dot (in which case that matches only a dot).
  13350. # func_strip_suffix prefix name
  13351. func_stripname ()
  13352. {
  13353. case ${2} in
  13354. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13355. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13356. esac
  13357. }
  13358. # sed scripts:
  13359. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13360. my_sed_long_arg='1s/^-[^=]*=//'
  13361. # func_opt_split
  13362. func_opt_split ()
  13363. {
  13364. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  13365. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  13366. }
  13367. # func_lo2o object
  13368. func_lo2o ()
  13369. {
  13370. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  13371. }
  13372. # func_xform libobj-or-source
  13373. func_xform ()
  13374. {
  13375. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  13376. }
  13377. # func_arith arithmetic-term...
  13378. func_arith ()
  13379. {
  13380. func_arith_result=`expr "$@"`
  13381. }
  13382. # func_len string
  13383. # STRING may not start with a hyphen.
  13384. func_len ()
  13385. {
  13386. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13387. }
  13388. _LT_EOF
  13389. esac
  13390. case $lt_shell_append in
  13391. yes)
  13392. cat << \_LT_EOF >> "$cfgfile"
  13393. # func_append var value
  13394. # Append VALUE to the end of shell variable VAR.
  13395. func_append ()
  13396. {
  13397. eval "$1+=\$2"
  13398. }
  13399. _LT_EOF
  13400. ;;
  13401. *)
  13402. cat << \_LT_EOF >> "$cfgfile"
  13403. # func_append var value
  13404. # Append VALUE to the end of shell variable VAR.
  13405. func_append ()
  13406. {
  13407. eval "$1=\$$1\$2"
  13408. }
  13409. _LT_EOF
  13410. ;;
  13411. esac
  13412. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13413. || (rm -f "$cfgfile"; exit 1)
  13414. mv -f "$cfgfile" "$ofile" ||
  13415. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13416. chmod +x "$ofile"
  13417. ;;
  13418. esac
  13419. done # for ac_tag
  13420. as_fn_exit 0
  13421. _ACEOF
  13422. ac_clean_files=$ac_clean_files_save
  13423. test $ac_write_fail = 0 ||
  13424. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13425. # configure is writing to config.log, and then calls config.status.
  13426. # config.status does its own redirection, appending to config.log.
  13427. # Unfortunately, on DOS this fails, as config.log is still kept open
  13428. # by configure, so config.status won't be able to write to it; its
  13429. # output is simply discarded. So we exec the FD to /dev/null,
  13430. # effectively closing config.log, so it can be properly (re)opened and
  13431. # appended to by config.status. When coming back to configure, we
  13432. # need to make the FD available again.
  13433. if test "$no_create" != yes; then
  13434. ac_cs_success=:
  13435. ac_config_status_args=
  13436. test "$silent" = yes &&
  13437. ac_config_status_args="$ac_config_status_args --quiet"
  13438. exec 5>/dev/null
  13439. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13440. exec 5>>config.log
  13441. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13442. # would make configure fail if this is the last instruction.
  13443. $ac_cs_success || as_fn_exit 1
  13444. fi
  13445. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13447. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13448. fi
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  13450. $as_echo "" >&6; }
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: --------------------- Configuration options: -----------------------" >&5
  13452. $as_echo "--------------------- Configuration options: -----------------------" >&6; }
  13453. if test "$OSRF_INSTALL_JAVA" = "true" ; then
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install Java support? yes" >&5
  13455. $as_echo "OSRF install Java support? yes" >&6; }
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java support files $OSRF_JAVA_DEPSDIR" >&5
  13457. $as_echo "Java support files $OSRF_JAVA_DEPSDIR" >&6; }
  13458. else
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install Java support? no" >&5
  13460. $as_echo "OSRF install Java support? no" >&6; }
  13461. fi
  13462. if test "$OSRF_INSTALL_PYTHON" = "true" ; then
  13463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install Python support? yes" >&5
  13464. $as_echo "OSRF install Python support? yes" >&6; }
  13465. else
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install Python support? no" >&5
  13467. $as_echo "OSRF install Python support? no" >&6; }
  13468. fi
  13469. if test "$OSRF_INSTALL_CHOPCHOP" = "true" ; then
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install chopchop? yes" >&5
  13471. $as_echo "OSRF install chopchop? yes" >&6; }
  13472. else
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSRF install chopchop? no" >&5
  13474. $as_echo "OSRF install chopchop? no" >&6; }
  13475. fi
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directory prefix: ${prefix}" >&5
  13477. $as_echo "Installation directory prefix: ${prefix}" >&6; }
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Temporary directory: ${TMP}" >&5
  13479. $as_echo "Temporary directory: ${TMP}" >&6; }
  13480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: APXS2 location: ${APXS2}" >&5
  13481. $as_echo "APXS2 location: ${APXS2}" >&6; }
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apache headers location: ${APACHE2_HEADERS}" >&5
  13483. $as_echo "Apache headers location: ${APACHE2_HEADERS}" >&6; }
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: APR headers location: ${APR_HEADERS}" >&5
  13485. $as_echo "APR headers location: ${APR_HEADERS}" >&6; }
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libxml2 headers location: ${LIBXML2_HEADERS}" >&5
  13487. $as_echo "libxml2 headers location: ${LIBXML2_HEADERS}" >&6; }
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------------------------------------------------------------------" >&5
  13489. $as_echo "----------------------------------------------------------------------" >&6; }