Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15024 lines
432 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for libjpeg 8.0.2.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='libjpeg'
  637. PACKAGE_TARNAME='libjpeg'
  638. PACKAGE_VERSION='8.0.2'
  639. PACKAGE_STRING='libjpeg 8.0.2'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. JPEG_LIB_VERSION
  682. MEMORYMGR
  683. OTOOL64
  684. OTOOL
  685. LIPO
  686. NMEDIT
  687. DSYMUTIL
  688. lt_ECHO
  689. RANLIB
  690. AR
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. SED
  697. LIBTOOL
  698. OBJDUMP
  699. DLLTOOL
  700. AS
  701. HAVE_LD_VERSION_SCRIPT_FALSE
  702. HAVE_LD_VERSION_SCRIPT_TRUE
  703. LN_S
  704. MAINT
  705. MAINTAINER_MODE_FALSE
  706. MAINTAINER_MODE_TRUE
  707. ANSI2KNR
  708. U
  709. EGREP
  710. GREP
  711. CPP
  712. am__fastdepCC_FALSE
  713. am__fastdepCC_TRUE
  714. CCDEPMODE
  715. AMDEPBACKSLASH
  716. AMDEP_FALSE
  717. AMDEP_TRUE
  718. am__quote
  719. am__include
  720. DEPDIR
  721. OBJEXT
  722. EXEEXT
  723. ac_ct_CC
  724. CPPFLAGS
  725. LDFLAGS
  726. CFLAGS
  727. CC
  728. AM_BACKSLASH
  729. AM_DEFAULT_VERBOSITY
  730. am__untar
  731. am__tar
  732. AMTAR
  733. am__leading_dot
  734. SET_MAKE
  735. AWK
  736. mkdir_p
  737. MKDIR_P
  738. INSTALL_STRIP_PROGRAM
  739. STRIP
  740. install_sh
  741. MAKEINFO
  742. AUTOHEADER
  743. AUTOMAKE
  744. AUTOCONF
  745. ACLOCAL
  746. VERSION
  747. PACKAGE
  748. CYGPATH_W
  749. am__isrc
  750. INSTALL_DATA
  751. INSTALL_SCRIPT
  752. INSTALL_PROGRAM
  753. target_os
  754. target_vendor
  755. target_cpu
  756. target
  757. host_os
  758. host_vendor
  759. host_cpu
  760. host
  761. build_os
  762. build_vendor
  763. build_cpu
  764. build
  765. target_alias
  766. host_alias
  767. build_alias
  768. LIBS
  769. ECHO_T
  770. ECHO_N
  771. ECHO_C
  772. DEFS
  773. mandir
  774. localedir
  775. libdir
  776. psdir
  777. pdfdir
  778. dvidir
  779. htmldir
  780. infodir
  781. docdir
  782. oldincludedir
  783. includedir
  784. localstatedir
  785. sharedstatedir
  786. sysconfdir
  787. datadir
  788. datarootdir
  789. libexecdir
  790. sbindir
  791. bindir
  792. program_transform_name
  793. prefix
  794. exec_prefix
  795. PACKAGE_URL
  796. PACKAGE_BUGREPORT
  797. PACKAGE_STRING
  798. PACKAGE_VERSION
  799. PACKAGE_TARNAME
  800. PACKAGE_NAME
  801. PATH_SEPARATOR
  802. SHELL'
  803. ac_subst_files=''
  804. ac_user_opts='
  805. enable_option_checking
  806. enable_silent_rules
  807. enable_dependency_tracking
  808. enable_maintainer_mode
  809. enable_ld_version_script
  810. enable_shared
  811. enable_static
  812. with_pic
  813. enable_fast_install
  814. with_gnu_ld
  815. enable_libtool_lock
  816. enable_maxmem
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CC
  822. CFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CPP'
  827. # Initialize some variables set by options.
  828. ac_init_help=
  829. ac_init_version=false
  830. ac_unrecognized_opts=
  831. ac_unrecognized_sep=
  832. # The variables have the same names as the options, with
  833. # dashes changed to underlines.
  834. cache_file=/dev/null
  835. exec_prefix=NONE
  836. no_create=
  837. no_recursion=
  838. prefix=NONE
  839. program_prefix=NONE
  840. program_suffix=NONE
  841. program_transform_name=s,x,x,
  842. silent=
  843. site=
  844. srcdir=
  845. verbose=
  846. x_includes=NONE
  847. x_libraries=NONE
  848. # Installation directory options.
  849. # These are left unexpanded so users can "make install exec_prefix=/foo"
  850. # and all the variables that are supposed to be based on exec_prefix
  851. # by default will actually change.
  852. # Use braces instead of parens because sh, perl, etc. also accept them.
  853. # (The list follows the same order as the GNU Coding Standards.)
  854. bindir='${exec_prefix}/bin'
  855. sbindir='${exec_prefix}/sbin'
  856. libexecdir='${exec_prefix}/libexec'
  857. datarootdir='${prefix}/share'
  858. datadir='${datarootdir}'
  859. sysconfdir='${prefix}/etc'
  860. sharedstatedir='${prefix}/com'
  861. localstatedir='${prefix}/var'
  862. includedir='${prefix}/include'
  863. oldincludedir='/usr/include'
  864. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  865. infodir='${datarootdir}/info'
  866. htmldir='${docdir}'
  867. dvidir='${docdir}'
  868. pdfdir='${docdir}'
  869. psdir='${docdir}'
  870. libdir='${exec_prefix}/lib'
  871. localedir='${datarootdir}/locale'
  872. mandir='${datarootdir}/man'
  873. ac_prev=
  874. ac_dashdash=
  875. for ac_option
  876. do
  877. # If the previous option needs an argument, assign it.
  878. if test -n "$ac_prev"; then
  879. eval $ac_prev=\$ac_option
  880. ac_prev=
  881. continue
  882. fi
  883. case $ac_option in
  884. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921. as_fn_error "invalid feature name: $ac_useropt"
  922. ac_useropt_orig=$ac_useropt
  923. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924. case $ac_user_opts in
  925. *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  929. ac_unrecognized_sep=', ';;
  930. esac
  931. eval enable_$ac_useropt=no ;;
  932. -docdir | --docdir | --docdi | --doc | --do)
  933. ac_prev=docdir ;;
  934. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  935. docdir=$ac_optarg ;;
  936. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  937. ac_prev=dvidir ;;
  938. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  939. dvidir=$ac_optarg ;;
  940. -enable-* | --enable-*)
  941. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944. as_fn_error "invalid feature name: $ac_useropt"
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=\$ac_optarg ;;
  955. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  956. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  957. | --exec | --exe | --ex)
  958. ac_prev=exec_prefix ;;
  959. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  960. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  961. | --exec=* | --exe=* | --ex=*)
  962. exec_prefix=$ac_optarg ;;
  963. -gas | --gas | --ga | --g)
  964. # Obsolete; use --with-gas.
  965. with_gas=yes ;;
  966. -help | --help | --hel | --he | -h)
  967. ac_init_help=long ;;
  968. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  969. ac_init_help=recursive ;;
  970. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  971. ac_init_help=short ;;
  972. -host | --host | --hos | --ho)
  973. ac_prev=host_alias ;;
  974. -host=* | --host=* | --hos=* | --ho=*)
  975. host_alias=$ac_optarg ;;
  976. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  977. ac_prev=htmldir ;;
  978. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  979. | --ht=*)
  980. htmldir=$ac_optarg ;;
  981. -includedir | --includedir | --includedi | --included | --include \
  982. | --includ | --inclu | --incl | --inc)
  983. ac_prev=includedir ;;
  984. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  985. | --includ=* | --inclu=* | --incl=* | --inc=*)
  986. includedir=$ac_optarg ;;
  987. -infodir | --infodir | --infodi | --infod | --info | --inf)
  988. ac_prev=infodir ;;
  989. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  990. infodir=$ac_optarg ;;
  991. -libdir | --libdir | --libdi | --libd)
  992. ac_prev=libdir ;;
  993. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  994. libdir=$ac_optarg ;;
  995. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  996. | --libexe | --libex | --libe)
  997. ac_prev=libexecdir ;;
  998. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  999. | --libexe=* | --libex=* | --libe=*)
  1000. libexecdir=$ac_optarg ;;
  1001. -localedir | --localedir | --localedi | --localed | --locale)
  1002. ac_prev=localedir ;;
  1003. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1004. localedir=$ac_optarg ;;
  1005. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1006. | --localstate | --localstat | --localsta | --localst | --locals)
  1007. ac_prev=localstatedir ;;
  1008. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1009. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1010. localstatedir=$ac_optarg ;;
  1011. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1012. ac_prev=mandir ;;
  1013. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1014. mandir=$ac_optarg ;;
  1015. -nfp | --nfp | --nf)
  1016. # Obsolete; use --without-fp.
  1017. with_fp=no ;;
  1018. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1019. | --no-cr | --no-c | -n)
  1020. no_create=yes ;;
  1021. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1022. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1023. no_recursion=yes ;;
  1024. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1025. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1026. | --oldin | --oldi | --old | --ol | --o)
  1027. ac_prev=oldincludedir ;;
  1028. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1029. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1030. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1031. oldincludedir=$ac_optarg ;;
  1032. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1033. ac_prev=prefix ;;
  1034. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1035. prefix=$ac_optarg ;;
  1036. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1037. | --program-pre | --program-pr | --program-p)
  1038. ac_prev=program_prefix ;;
  1039. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1040. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1041. program_prefix=$ac_optarg ;;
  1042. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1043. | --program-suf | --program-su | --program-s)
  1044. ac_prev=program_suffix ;;
  1045. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1046. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1047. program_suffix=$ac_optarg ;;
  1048. -program-transform-name | --program-transform-name \
  1049. | --program-transform-nam | --program-transform-na \
  1050. | --program-transform-n | --program-transform- \
  1051. | --program-transform | --program-transfor \
  1052. | --program-transfo | --program-transf \
  1053. | --program-trans | --program-tran \
  1054. | --progr-tra | --program-tr | --program-t)
  1055. ac_prev=program_transform_name ;;
  1056. -program-transform-name=* | --program-transform-name=* \
  1057. | --program-transform-nam=* | --program-transform-na=* \
  1058. | --program-transform-n=* | --program-transform-=* \
  1059. | --program-transform=* | --program-transfor=* \
  1060. | --program-transfo=* | --program-transf=* \
  1061. | --program-trans=* | --program-tran=* \
  1062. | --progr-tra=* | --program-tr=* | --program-t=*)
  1063. program_transform_name=$ac_optarg ;;
  1064. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1065. ac_prev=pdfdir ;;
  1066. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1067. pdfdir=$ac_optarg ;;
  1068. -psdir | --psdir | --psdi | --psd | --ps)
  1069. ac_prev=psdir ;;
  1070. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1071. psdir=$ac_optarg ;;
  1072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073. | -silent | --silent | --silen | --sile | --sil)
  1074. silent=yes ;;
  1075. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1076. ac_prev=sbindir ;;
  1077. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1078. | --sbi=* | --sb=*)
  1079. sbindir=$ac_optarg ;;
  1080. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1081. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1082. | --sharedst | --shareds | --shared | --share | --shar \
  1083. | --sha | --sh)
  1084. ac_prev=sharedstatedir ;;
  1085. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1086. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1087. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1088. | --sha=* | --sh=*)
  1089. sharedstatedir=$ac_optarg ;;
  1090. -site | --site | --sit)
  1091. ac_prev=site ;;
  1092. -site=* | --site=* | --sit=*)
  1093. site=$ac_optarg ;;
  1094. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1095. ac_prev=srcdir ;;
  1096. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1097. srcdir=$ac_optarg ;;
  1098. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1099. | --syscon | --sysco | --sysc | --sys | --sy)
  1100. ac_prev=sysconfdir ;;
  1101. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1102. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1103. sysconfdir=$ac_optarg ;;
  1104. -target | --target | --targe | --targ | --tar | --ta | --t)
  1105. ac_prev=target_alias ;;
  1106. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1107. target_alias=$ac_optarg ;;
  1108. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1109. verbose=yes ;;
  1110. -version | --version | --versio | --versi | --vers | -V)
  1111. ac_init_version=: ;;
  1112. -with-* | --with-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. as_fn_error "invalid package name: $ac_useropt"
  1117. ac_useropt_orig=$ac_useropt
  1118. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1119. case $ac_user_opts in
  1120. *"
  1121. "with_$ac_useropt"
  1122. "*) ;;
  1123. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1124. ac_unrecognized_sep=', ';;
  1125. esac
  1126. eval with_$ac_useropt=\$ac_optarg ;;
  1127. -without-* | --without-*)
  1128. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1131. as_fn_error "invalid package name: $ac_useropt"
  1132. ac_useropt_orig=$ac_useropt
  1133. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1134. case $ac_user_opts in
  1135. *"
  1136. "with_$ac_useropt"
  1137. "*) ;;
  1138. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1139. ac_unrecognized_sep=', ';;
  1140. esac
  1141. eval with_$ac_useropt=no ;;
  1142. --x)
  1143. # Obsolete; use --with-x.
  1144. with_x=yes ;;
  1145. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1146. | --x-incl | --x-inc | --x-in | --x-i)
  1147. ac_prev=x_includes ;;
  1148. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1149. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1150. x_includes=$ac_optarg ;;
  1151. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1152. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1153. ac_prev=x_libraries ;;
  1154. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1155. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1156. x_libraries=$ac_optarg ;;
  1157. -*) as_fn_error "unrecognized option: \`$ac_option'
  1158. Try \`$0 --help' for more information."
  1159. ;;
  1160. *=*)
  1161. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1162. # Reject names that are not valid shell variable names.
  1163. case $ac_envvar in #(
  1164. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1165. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1166. esac
  1167. eval $ac_envvar=\$ac_optarg
  1168. export $ac_envvar ;;
  1169. *)
  1170. # FIXME: should be removed in autoconf 3.0.
  1171. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1172. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1173. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1174. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1175. ;;
  1176. esac
  1177. done
  1178. if test -n "$ac_prev"; then
  1179. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1180. as_fn_error "missing argument to $ac_option"
  1181. fi
  1182. if test -n "$ac_unrecognized_opts"; then
  1183. case $enable_option_checking in
  1184. no) ;;
  1185. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1186. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1187. esac
  1188. fi
  1189. # Check all directory arguments for consistency.
  1190. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1191. datadir sysconfdir sharedstatedir localstatedir includedir \
  1192. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1193. libdir localedir mandir
  1194. do
  1195. eval ac_val=\$$ac_var
  1196. # Remove trailing slashes.
  1197. case $ac_val in
  1198. */ )
  1199. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1200. eval $ac_var=\$ac_val;;
  1201. esac
  1202. # Be sure to have absolute directory names.
  1203. case $ac_val in
  1204. [\\/$]* | ?:[\\/]* ) continue;;
  1205. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1206. esac
  1207. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1208. done
  1209. # There might be people who depend on the old broken behavior: `$host'
  1210. # used to hold the argument of --host etc.
  1211. # FIXME: To remove some day.
  1212. build=$build_alias
  1213. host=$host_alias
  1214. target=$target_alias
  1215. # FIXME: To remove some day.
  1216. if test "x$host_alias" != x; then
  1217. if test "x$build_alias" = x; then
  1218. cross_compiling=maybe
  1219. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1220. If a cross compiler is detected then cross compile mode will be used." >&2
  1221. elif test "x$build_alias" != "x$host_alias"; then
  1222. cross_compiling=yes
  1223. fi
  1224. fi
  1225. ac_tool_prefix=
  1226. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1227. test "$silent" = yes && exec 6>/dev/null
  1228. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1229. ac_ls_di=`ls -di .` &&
  1230. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1231. as_fn_error "working directory cannot be determined"
  1232. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1233. as_fn_error "pwd does not report name of working directory"
  1234. # Find the source files, if location was not specified.
  1235. if test -z "$srcdir"; then
  1236. ac_srcdir_defaulted=yes
  1237. # Try the directory containing this script, then the parent directory.
  1238. ac_confdir=`$as_dirname -- "$as_myself" ||
  1239. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1240. X"$as_myself" : 'X\(//\)[^/]' \| \
  1241. X"$as_myself" : 'X\(//\)$' \| \
  1242. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1243. $as_echo X"$as_myself" |
  1244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)[^/].*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\/\)$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\).*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. s/.*/./; q'`
  1261. srcdir=$ac_confdir
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. srcdir=..
  1264. fi
  1265. else
  1266. ac_srcdir_defaulted=no
  1267. fi
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1270. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1271. fi
  1272. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1273. ac_abs_confdir=`(
  1274. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1275. pwd)`
  1276. # When building in place, set srcdir=.
  1277. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1278. srcdir=.
  1279. fi
  1280. # Remove unnecessary trailing slashes from srcdir.
  1281. # Double slashes in file names in object file debugging info
  1282. # mess up M-x gdb in Emacs.
  1283. case $srcdir in
  1284. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1285. esac
  1286. for ac_var in $ac_precious_vars; do
  1287. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1288. eval ac_env_${ac_var}_value=\$${ac_var}
  1289. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1290. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1291. done
  1292. #
  1293. # Report the --help message.
  1294. #
  1295. if test "$ac_init_help" = "long"; then
  1296. # Omit some internal or obsolete options to make the list less imposing.
  1297. # This message is too long to be a string in the A/UX 3.1 sh.
  1298. cat <<_ACEOF
  1299. \`configure' configures libjpeg 8.0.2 to adapt to many kinds of systems.
  1300. Usage: $0 [OPTION]... [VAR=VALUE]...
  1301. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1302. VAR=VALUE. See below for descriptions of some of the useful variables.
  1303. Defaults for the options are specified in brackets.
  1304. Configuration:
  1305. -h, --help display this help and exit
  1306. --help=short display options specific to this package
  1307. --help=recursive display the short help of all the included packages
  1308. -V, --version display version information and exit
  1309. -q, --quiet, --silent do not print \`checking...' messages
  1310. --cache-file=FILE cache test results in FILE [disabled]
  1311. -C, --config-cache alias for \`--cache-file=config.cache'
  1312. -n, --no-create do not create output files
  1313. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1314. Installation directories:
  1315. --prefix=PREFIX install architecture-independent files in PREFIX
  1316. [$ac_default_prefix]
  1317. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1318. [PREFIX]
  1319. By default, \`make install' will install all the files in
  1320. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1321. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1322. for instance \`--prefix=\$HOME'.
  1323. For better control, use the options below.
  1324. Fine tuning of the installation directories:
  1325. --bindir=DIR user executables [EPREFIX/bin]
  1326. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1327. --libexecdir=DIR program executables [EPREFIX/libexec]
  1328. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1329. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1330. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1331. --libdir=DIR object code libraries [EPREFIX/lib]
  1332. --includedir=DIR C header files [PREFIX/include]
  1333. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1334. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1335. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1336. --infodir=DIR info documentation [DATAROOTDIR/info]
  1337. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1338. --mandir=DIR man documentation [DATAROOTDIR/man]
  1339. --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
  1340. --htmldir=DIR html documentation [DOCDIR]
  1341. --dvidir=DIR dvi documentation [DOCDIR]
  1342. --pdfdir=DIR pdf documentation [DOCDIR]
  1343. --psdir=DIR ps documentation [DOCDIR]
  1344. _ACEOF
  1345. cat <<\_ACEOF
  1346. Program names:
  1347. --program-prefix=PREFIX prepend PREFIX to installed program names
  1348. --program-suffix=SUFFIX append SUFFIX to installed program names
  1349. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1350. System types:
  1351. --build=BUILD configure for building on BUILD [guessed]
  1352. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1353. --target=TARGET configure for building compilers for TARGET [HOST]
  1354. _ACEOF
  1355. fi
  1356. if test -n "$ac_init_help"; then
  1357. case $ac_init_help in
  1358. short | recursive ) echo "Configuration of libjpeg 8.0.2:";;
  1359. esac
  1360. cat <<\_ACEOF
  1361. Optional Features:
  1362. --disable-option-checking ignore unrecognized --enable/--with options
  1363. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1364. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1365. --enable-silent-rules less verbose build output (undo: `make V=1')
  1366. --disable-silent-rules verbose build output (undo: `make V=0')
  1367. --disable-dependency-tracking speeds up one-time build
  1368. --enable-dependency-tracking do not reject slow dependency extractors
  1369. --enable-maintainer-mode enable make rules and dependencies not useful
  1370. (and sometimes confusing) to the casual installer
  1371. --enable-ld-version-script
  1372. enable linker version script (default is enabled
  1373. when possible)
  1374. --enable-shared[=PKGS] build shared libraries [default=yes]
  1375. --enable-static[=PKGS] build static libraries [default=yes]
  1376. --enable-fast-install[=PKGS]
  1377. optimize for fast installation [default=yes]
  1378. --disable-libtool-lock avoid locking (might break parallel builds)
  1379. --enable-maxmem=N enable use of temp files, set max mem usage to N MB
  1380. Optional Packages:
  1381. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1382. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1383. --with-pic try to use only PIC/non-PIC objects [default=use
  1384. both]
  1385. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1386. Some influential environment variables:
  1387. CC C compiler command
  1388. CFLAGS C compiler flags
  1389. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1390. nonstandard directory <lib dir>
  1391. LIBS libraries to pass to the linker, e.g. -l<library>
  1392. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1393. you have headers in a nonstandard directory <include dir>
  1394. CPP C preprocessor
  1395. Use these variables to override the choices made by `configure' or to help
  1396. it to find libraries and programs with nonstandard names/locations.
  1397. Report bugs to the package provider.
  1398. _ACEOF
  1399. ac_status=$?
  1400. fi
  1401. if test "$ac_init_help" = "recursive"; then
  1402. # If there are subdirs, report their specific --help.
  1403. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1404. test -d "$ac_dir" ||
  1405. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1406. continue
  1407. ac_builddir=.
  1408. case "$ac_dir" in
  1409. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1410. *)
  1411. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1412. # A ".." for each directory in $ac_dir_suffix.
  1413. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1414. case $ac_top_builddir_sub in
  1415. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1416. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1417. esac ;;
  1418. esac
  1419. ac_abs_top_builddir=$ac_pwd
  1420. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1421. # for backward compatibility:
  1422. ac_top_builddir=$ac_top_build_prefix
  1423. case $srcdir in
  1424. .) # We are building in place.
  1425. ac_srcdir=.
  1426. ac_top_srcdir=$ac_top_builddir_sub
  1427. ac_abs_top_srcdir=$ac_pwd ;;
  1428. [\\/]* | ?:[\\/]* ) # Absolute name.
  1429. ac_srcdir=$srcdir$ac_dir_suffix;
  1430. ac_top_srcdir=$srcdir
  1431. ac_abs_top_srcdir=$srcdir ;;
  1432. *) # Relative name.
  1433. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1434. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1435. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1436. esac
  1437. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1438. cd "$ac_dir" || { ac_status=$?; continue; }
  1439. # Check for guested configure.
  1440. if test -f "$ac_srcdir/configure.gnu"; then
  1441. echo &&
  1442. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1443. elif test -f "$ac_srcdir/configure"; then
  1444. echo &&
  1445. $SHELL "$ac_srcdir/configure" --help=recursive
  1446. else
  1447. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1448. fi || ac_status=$?
  1449. cd "$ac_pwd" || { ac_status=$?; break; }
  1450. done
  1451. fi
  1452. test -n "$ac_init_help" && exit $ac_status
  1453. if $ac_init_version; then
  1454. cat <<\_ACEOF
  1455. libjpeg configure 8.0.2
  1456. generated by GNU Autoconf 2.65
  1457. Copyright (C) 2009 Free Software Foundation, Inc.
  1458. This configure script is free software; the Free Software Foundation
  1459. gives unlimited permission to copy, distribute and modify it.
  1460. _ACEOF
  1461. exit
  1462. fi
  1463. ## ------------------------ ##
  1464. ## Autoconf initialization. ##
  1465. ## ------------------------ ##
  1466. # ac_fn_c_try_compile LINENO
  1467. # --------------------------
  1468. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1469. ac_fn_c_try_compile ()
  1470. {
  1471. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1472. rm -f conftest.$ac_objext
  1473. if { { ac_try="$ac_compile"
  1474. case "(($ac_try" in
  1475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1476. *) ac_try_echo=$ac_try;;
  1477. esac
  1478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1479. $as_echo "$ac_try_echo"; } >&5
  1480. (eval "$ac_compile") 2>conftest.err
  1481. ac_status=$?
  1482. if test -s conftest.err; then
  1483. grep -v '^ *+' conftest.err >conftest.er1
  1484. cat conftest.er1 >&5
  1485. mv -f conftest.er1 conftest.err
  1486. fi
  1487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1488. test $ac_status = 0; } && {
  1489. test -z "$ac_c_werror_flag" ||
  1490. test ! -s conftest.err
  1491. } && test -s conftest.$ac_objext; then :
  1492. ac_retval=0
  1493. else
  1494. $as_echo "$as_me: failed program was:" >&5
  1495. sed 's/^/| /' conftest.$ac_ext >&5
  1496. ac_retval=1
  1497. fi
  1498. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1499. as_fn_set_status $ac_retval
  1500. } # ac_fn_c_try_compile
  1501. # ac_fn_c_try_cpp LINENO
  1502. # ----------------------
  1503. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1504. ac_fn_c_try_cpp ()
  1505. {
  1506. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1507. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } >/dev/null && {
  1523. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. }; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=1
  1531. fi
  1532. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1533. as_fn_set_status $ac_retval
  1534. } # ac_fn_c_try_cpp
  1535. # ac_fn_c_try_run LINENO
  1536. # ----------------------
  1537. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1538. # that executables *can* be run.
  1539. ac_fn_c_try_run ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if { { ac_try="$ac_link"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_link") 2>&5
  1550. ac_status=$?
  1551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1553. { { case "(($ac_try" in
  1554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1555. *) ac_try_echo=$ac_try;;
  1556. esac
  1557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1558. $as_echo "$ac_try_echo"; } >&5
  1559. (eval "$ac_try") 2>&5
  1560. ac_status=$?
  1561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1562. test $ac_status = 0; }; }; then :
  1563. ac_retval=0
  1564. else
  1565. $as_echo "$as_me: program exited with status $ac_status" >&5
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=$ac_status
  1569. fi
  1570. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1571. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1572. as_fn_set_status $ac_retval
  1573. } # ac_fn_c_try_run
  1574. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1575. # -------------------------------------------------------
  1576. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1577. # the include files in INCLUDES and setting the cache variable VAR
  1578. # accordingly.
  1579. ac_fn_c_check_header_mongrel ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1584. $as_echo_n "checking for $2... " >&6; }
  1585. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1586. $as_echo_n "(cached) " >&6
  1587. fi
  1588. eval ac_res=\$$3
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1590. $as_echo "$ac_res" >&6; }
  1591. else
  1592. # Is the header compilable?
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1594. $as_echo_n "checking $2 usability... " >&6; }
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. #include <$2>
  1599. _ACEOF
  1600. if ac_fn_c_try_compile "$LINENO"; then :
  1601. ac_header_compiler=yes
  1602. else
  1603. ac_header_compiler=no
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1607. $as_echo "$ac_header_compiler" >&6; }
  1608. # Is the header present?
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1610. $as_echo_n "checking $2 presence... " >&6; }
  1611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1612. /* end confdefs.h. */
  1613. #include <$2>
  1614. _ACEOF
  1615. if ac_fn_c_try_cpp "$LINENO"; then :
  1616. ac_header_preproc=yes
  1617. else
  1618. ac_header_preproc=no
  1619. fi
  1620. rm -f conftest.err conftest.$ac_ext
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1622. $as_echo "$ac_header_preproc" >&6; }
  1623. # So? What about this header?
  1624. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1625. yes:no: )
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1627. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1629. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1630. ;;
  1631. no:yes:* )
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1633. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1635. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1637. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1639. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1641. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1642. ;;
  1643. esac
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. eval "$3=\$ac_header_compiler"
  1650. fi
  1651. eval ac_res=\$$3
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1653. $as_echo "$ac_res" >&6; }
  1654. fi
  1655. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1656. } # ac_fn_c_check_header_mongrel
  1657. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1658. # -------------------------------------------------------
  1659. # Tests whether HEADER exists and can be compiled using the include files in
  1660. # INCLUDES, setting the cache variable VAR accordingly.
  1661. ac_fn_c_check_header_compile ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1665. $as_echo_n "checking for $2... " >&6; }
  1666. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1667. $as_echo_n "(cached) " >&6
  1668. else
  1669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1670. /* end confdefs.h. */
  1671. $4
  1672. #include <$2>
  1673. _ACEOF
  1674. if ac_fn_c_try_compile "$LINENO"; then :
  1675. eval "$3=yes"
  1676. else
  1677. eval "$3=no"
  1678. fi
  1679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1680. fi
  1681. eval ac_res=\$$3
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1683. $as_echo "$ac_res" >&6; }
  1684. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1685. } # ac_fn_c_check_header_compile
  1686. # ac_fn_c_try_link LINENO
  1687. # -----------------------
  1688. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1689. ac_fn_c_try_link ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. rm -f conftest.$ac_objext conftest$ac_exeext
  1693. if { { ac_try="$ac_link"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_link") 2>conftest.err
  1701. ac_status=$?
  1702. if test -s conftest.err; then
  1703. grep -v '^ *+' conftest.err >conftest.er1
  1704. cat conftest.er1 >&5
  1705. mv -f conftest.er1 conftest.err
  1706. fi
  1707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; } && {
  1709. test -z "$ac_c_werror_flag" ||
  1710. test ! -s conftest.err
  1711. } && test -s conftest$ac_exeext && {
  1712. test "$cross_compiling" = yes ||
  1713. $as_test_x conftest$ac_exeext
  1714. }; then :
  1715. ac_retval=0
  1716. else
  1717. $as_echo "$as_me: failed program was:" >&5
  1718. sed 's/^/| /' conftest.$ac_ext >&5
  1719. ac_retval=1
  1720. fi
  1721. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1722. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1723. # interfere with the next link command; also delete a directory that is
  1724. # left behind by Apple's compiler. We do this before executing the actions.
  1725. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1726. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_link
  1729. # ac_fn_c_check_func LINENO FUNC VAR
  1730. # ----------------------------------
  1731. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1732. ac_fn_c_check_func ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1736. $as_echo_n "checking for $2... " >&6; }
  1737. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1738. $as_echo_n "(cached) " >&6
  1739. else
  1740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1741. /* end confdefs.h. */
  1742. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1743. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1744. #define $2 innocuous_$2
  1745. /* System header to define __stub macros and hopefully few prototypes,
  1746. which can conflict with char $2 (); below.
  1747. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1748. <limits.h> exists even on freestanding compilers. */
  1749. #ifdef __STDC__
  1750. # include <limits.h>
  1751. #else
  1752. # include <assert.h>
  1753. #endif
  1754. #undef $2
  1755. /* Override any GCC internal prototype to avoid an error.
  1756. Use char because int might match the return type of a GCC
  1757. builtin and then its argument prototype would still apply. */
  1758. #ifdef __cplusplus
  1759. extern "C"
  1760. #endif
  1761. char $2 ();
  1762. /* The GNU C library defines this for functions which it implements
  1763. to always fail with ENOSYS. Some functions are actually named
  1764. something starting with __ and the normal name is an alias. */
  1765. #if defined __stub_$2 || defined __stub___$2
  1766. choke me
  1767. #endif
  1768. int
  1769. main ()
  1770. {
  1771. return $2 ();
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_c_try_link "$LINENO"; then :
  1777. eval "$3=yes"
  1778. else
  1779. eval "$3=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext \
  1782. conftest$ac_exeext conftest.$ac_ext
  1783. fi
  1784. eval ac_res=\$$3
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1788. } # ac_fn_c_check_func
  1789. cat >config.log <<_ACEOF
  1790. This file contains any messages produced by compilers while
  1791. running configure, to aid debugging if configure makes a mistake.
  1792. It was created by libjpeg $as_me 8.0.2, which was
  1793. generated by GNU Autoconf 2.65. Invocation command line was
  1794. $ $0 $@
  1795. _ACEOF
  1796. exec 5>>config.log
  1797. {
  1798. cat <<_ASUNAME
  1799. ## --------- ##
  1800. ## Platform. ##
  1801. ## --------- ##
  1802. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1803. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1804. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1805. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1806. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1807. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1808. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1809. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1810. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1811. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1812. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1813. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1814. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1815. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1816. _ASUNAME
  1817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1818. for as_dir in $PATH
  1819. do
  1820. IFS=$as_save_IFS
  1821. test -z "$as_dir" && as_dir=.
  1822. $as_echo "PATH: $as_dir"
  1823. done
  1824. IFS=$as_save_IFS
  1825. } >&5
  1826. cat >&5 <<_ACEOF
  1827. ## ----------- ##
  1828. ## Core tests. ##
  1829. ## ----------- ##
  1830. _ACEOF
  1831. # Keep a trace of the command line.
  1832. # Strip out --no-create and --no-recursion so they do not pile up.
  1833. # Strip out --silent because we don't want to record it for future runs.
  1834. # Also quote any args containing shell meta-characters.
  1835. # Make two passes to allow for proper duplicate-argument suppression.
  1836. ac_configure_args=
  1837. ac_configure_args0=
  1838. ac_configure_args1=
  1839. ac_must_keep_next=false
  1840. for ac_pass in 1 2
  1841. do
  1842. for ac_arg
  1843. do
  1844. case $ac_arg in
  1845. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1846. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1847. | -silent | --silent | --silen | --sile | --sil)
  1848. continue ;;
  1849. *\'*)
  1850. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1851. esac
  1852. case $ac_pass in
  1853. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1854. 2)
  1855. as_fn_append ac_configure_args1 " '$ac_arg'"
  1856. if test $ac_must_keep_next = true; then
  1857. ac_must_keep_next=false # Got value, back to normal.
  1858. else
  1859. case $ac_arg in
  1860. *=* | --config-cache | -C | -disable-* | --disable-* \
  1861. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1862. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1863. | -with-* | --with-* | -without-* | --without-* | --x)
  1864. case "$ac_configure_args0 " in
  1865. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1866. esac
  1867. ;;
  1868. -* ) ac_must_keep_next=true ;;
  1869. esac
  1870. fi
  1871. as_fn_append ac_configure_args " '$ac_arg'"
  1872. ;;
  1873. esac
  1874. done
  1875. done
  1876. { ac_configure_args0=; unset ac_configure_args0;}
  1877. { ac_configure_args1=; unset ac_configure_args1;}
  1878. # When interrupted or exit'd, cleanup temporary files, and complete
  1879. # config.log. We remove comments because anyway the quotes in there
  1880. # would cause problems or look ugly.
  1881. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1882. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1883. trap 'exit_status=$?
  1884. # Save into config.log some information that might help in debugging.
  1885. {
  1886. echo
  1887. cat <<\_ASBOX
  1888. ## ---------------- ##
  1889. ## Cache variables. ##
  1890. ## ---------------- ##
  1891. _ASBOX
  1892. echo
  1893. # The following way of writing the cache mishandles newlines in values,
  1894. (
  1895. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1896. eval ac_val=\$$ac_var
  1897. case $ac_val in #(
  1898. *${as_nl}*)
  1899. case $ac_var in #(
  1900. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1901. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1902. esac
  1903. case $ac_var in #(
  1904. _ | IFS | as_nl) ;; #(
  1905. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1906. *) { eval $ac_var=; unset $ac_var;} ;;
  1907. esac ;;
  1908. esac
  1909. done
  1910. (set) 2>&1 |
  1911. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1912. *${as_nl}ac_space=\ *)
  1913. sed -n \
  1914. "s/'\''/'\''\\\\'\'''\''/g;
  1915. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1916. ;; #(
  1917. *)
  1918. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1919. ;;
  1920. esac |
  1921. sort
  1922. )
  1923. echo
  1924. cat <<\_ASBOX
  1925. ## ----------------- ##
  1926. ## Output variables. ##
  1927. ## ----------------- ##
  1928. _ASBOX
  1929. echo
  1930. for ac_var in $ac_subst_vars
  1931. do
  1932. eval ac_val=\$$ac_var
  1933. case $ac_val in
  1934. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1935. esac
  1936. $as_echo "$ac_var='\''$ac_val'\''"
  1937. done | sort
  1938. echo
  1939. if test -n "$ac_subst_files"; then
  1940. cat <<\_ASBOX
  1941. ## ------------------- ##
  1942. ## File substitutions. ##
  1943. ## ------------------- ##
  1944. _ASBOX
  1945. echo
  1946. for ac_var in $ac_subst_files
  1947. do
  1948. eval ac_val=\$$ac_var
  1949. case $ac_val in
  1950. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1951. esac
  1952. $as_echo "$ac_var='\''$ac_val'\''"
  1953. done | sort
  1954. echo
  1955. fi
  1956. if test -s confdefs.h; then
  1957. cat <<\_ASBOX
  1958. ## ----------- ##
  1959. ## confdefs.h. ##
  1960. ## ----------- ##
  1961. _ASBOX
  1962. echo
  1963. cat confdefs.h
  1964. echo
  1965. fi
  1966. test "$ac_signal" != 0 &&
  1967. $as_echo "$as_me: caught signal $ac_signal"
  1968. $as_echo "$as_me: exit $exit_status"
  1969. } >&5
  1970. rm -f core *.core core.conftest.* &&
  1971. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1972. exit $exit_status
  1973. ' 0
  1974. for ac_signal in 1 2 13 15; do
  1975. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1976. done
  1977. ac_signal=0
  1978. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1979. rm -f -r conftest* confdefs.h
  1980. $as_echo "/* confdefs.h */" > confdefs.h
  1981. # Predefined preprocessor variables.
  1982. cat >>confdefs.h <<_ACEOF
  1983. #define PACKAGE_NAME "$PACKAGE_NAME"
  1984. _ACEOF
  1985. cat >>confdefs.h <<_ACEOF
  1986. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1987. _ACEOF
  1988. cat >>confdefs.h <<_ACEOF
  1989. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1990. _ACEOF
  1991. cat >>confdefs.h <<_ACEOF
  1992. #define PACKAGE_STRING "$PACKAGE_STRING"
  1993. _ACEOF
  1994. cat >>confdefs.h <<_ACEOF
  1995. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1996. _ACEOF
  1997. cat >>confdefs.h <<_ACEOF
  1998. #define PACKAGE_URL "$PACKAGE_URL"
  1999. _ACEOF
  2000. # Let the site file select an alternate cache file if it wants to.
  2001. # Prefer an explicitly selected file to automatically selected ones.
  2002. ac_site_file1=NONE
  2003. ac_site_file2=NONE
  2004. if test -n "$CONFIG_SITE"; then
  2005. ac_site_file1=$CONFIG_SITE
  2006. elif test "x$prefix" != xNONE; then
  2007. ac_site_file1=$prefix/share/config.site
  2008. ac_site_file2=$prefix/etc/config.site
  2009. else
  2010. ac_site_file1=$ac_default_prefix/share/config.site
  2011. ac_site_file2=$ac_default_prefix/etc/config.site
  2012. fi
  2013. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2014. do
  2015. test "x$ac_site_file" = xNONE && continue
  2016. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2018. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2019. sed 's/^/| /' "$ac_site_file" >&5
  2020. . "$ac_site_file"
  2021. fi
  2022. done
  2023. if test -r "$cache_file"; then
  2024. # Some versions of bash will fail to source /dev/null (special files
  2025. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2026. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2028. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2029. case $cache_file in
  2030. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2031. *) . "./$cache_file";;
  2032. esac
  2033. fi
  2034. else
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2036. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2037. >$cache_file
  2038. fi
  2039. # Check that the precious variables saved in the cache have kept the same
  2040. # value.
  2041. ac_cache_corrupted=false
  2042. for ac_var in $ac_precious_vars; do
  2043. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2044. eval ac_new_set=\$ac_env_${ac_var}_set
  2045. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2046. eval ac_new_val=\$ac_env_${ac_var}_value
  2047. case $ac_old_set,$ac_new_set in
  2048. set,)
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2050. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2051. ac_cache_corrupted=: ;;
  2052. ,set)
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2054. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2055. ac_cache_corrupted=: ;;
  2056. ,);;
  2057. *)
  2058. if test "x$ac_old_val" != "x$ac_new_val"; then
  2059. # differences in whitespace do not lead to failure.
  2060. ac_old_val_w=`echo x $ac_old_val`
  2061. ac_new_val_w=`echo x $ac_new_val`
  2062. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2064. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2065. ac_cache_corrupted=:
  2066. else
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2068. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2069. eval $ac_var=\$ac_old_val
  2070. fi
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2072. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2074. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2075. fi;;
  2076. esac
  2077. # Pass precious variables to config.status.
  2078. if test "$ac_new_set" = set; then
  2079. case $ac_new_val in
  2080. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2081. *) ac_arg=$ac_var=$ac_new_val ;;
  2082. esac
  2083. case " $ac_configure_args " in
  2084. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2085. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2086. esac
  2087. fi
  2088. done
  2089. if $ac_cache_corrupted; then
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2093. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2094. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2095. fi
  2096. ## -------------------- ##
  2097. ## Main body of script. ##
  2098. ## -------------------- ##
  2099. ac_ext=c
  2100. ac_cpp='$CPP $CPPFLAGS'
  2101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2104. # Directory where autotools helper scripts lives.
  2105. ac_aux_dir=
  2106. for ac_dir in . "$srcdir"/.; do
  2107. for ac_t in install-sh install.sh shtool; do
  2108. if test -f "$ac_dir/$ac_t"; then
  2109. ac_aux_dir=$ac_dir
  2110. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2111. break 2
  2112. fi
  2113. done
  2114. done
  2115. if test -z "$ac_aux_dir"; then
  2116. as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2117. fi
  2118. # These three variables are undocumented and unsupported,
  2119. # and are intended to be withdrawn in a future Autoconf release.
  2120. # They can cause serious problems if a builder's source tree is in a directory
  2121. # whose full name contains unusual characters.
  2122. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2123. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2124. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2125. # Generate configuration headers.
  2126. ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
  2127. # Hack: disable autoheader so that it doesn't overwrite our cfg template.
  2128. AUTOHEADER="echo autoheader ignored"
  2129. # Check system type
  2130. # Make sure we can run config.sub.
  2131. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2132. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2134. $as_echo_n "checking build system type... " >&6; }
  2135. if test "${ac_cv_build+set}" = set; then :
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. ac_build_alias=$build_alias
  2139. test "x$ac_build_alias" = x &&
  2140. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2141. test "x$ac_build_alias" = x &&
  2142. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2143. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2144. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2145. fi
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2147. $as_echo "$ac_cv_build" >&6; }
  2148. case $ac_cv_build in
  2149. *-*-*) ;;
  2150. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2151. esac
  2152. build=$ac_cv_build
  2153. ac_save_IFS=$IFS; IFS='-'
  2154. set x $ac_cv_build
  2155. shift
  2156. build_cpu=$1
  2157. build_vendor=$2
  2158. shift; shift
  2159. # Remember, the first character of IFS is used to create $*,
  2160. # except with old shells:
  2161. build_os=$*
  2162. IFS=$ac_save_IFS
  2163. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2165. $as_echo_n "checking host system type... " >&6; }
  2166. if test "${ac_cv_host+set}" = set; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. if test "x$host_alias" = x; then
  2170. ac_cv_host=$ac_cv_build
  2171. else
  2172. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2173. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2174. fi
  2175. fi
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2177. $as_echo "$ac_cv_host" >&6; }
  2178. case $ac_cv_host in
  2179. *-*-*) ;;
  2180. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2181. esac
  2182. host=$ac_cv_host
  2183. ac_save_IFS=$IFS; IFS='-'
  2184. set x $ac_cv_host
  2185. shift
  2186. host_cpu=$1
  2187. host_vendor=$2
  2188. shift; shift
  2189. # Remember, the first character of IFS is used to create $*,
  2190. # except with old shells:
  2191. host_os=$*
  2192. IFS=$ac_save_IFS
  2193. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2195. $as_echo_n "checking target system type... " >&6; }
  2196. if test "${ac_cv_target+set}" = set; then :
  2197. $as_echo_n "(cached) " >&6
  2198. else
  2199. if test "x$target_alias" = x; then
  2200. ac_cv_target=$ac_cv_host
  2201. else
  2202. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2203. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2204. fi
  2205. fi
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2207. $as_echo "$ac_cv_target" >&6; }
  2208. case $ac_cv_target in
  2209. *-*-*) ;;
  2210. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2211. esac
  2212. target=$ac_cv_target
  2213. ac_save_IFS=$IFS; IFS='-'
  2214. set x $ac_cv_target
  2215. shift
  2216. target_cpu=$1
  2217. target_vendor=$2
  2218. shift; shift
  2219. # Remember, the first character of IFS is used to create $*,
  2220. # except with old shells:
  2221. target_os=$*
  2222. IFS=$ac_save_IFS
  2223. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2224. # The aliases save the names the user supplied, while $host etc.
  2225. # will get canonicalized.
  2226. test -n "$target_alias" &&
  2227. test "$program_prefix$program_suffix$program_transform_name" = \
  2228. NONENONEs,x,x, &&
  2229. program_prefix=${target_alias}-
  2230. # Initialize Automake
  2231. # Don't require all the GNU mandated files
  2232. am__api_version='1.11'
  2233. # Find a good install program. We prefer a C program (faster),
  2234. # so one script is as good as another. But avoid the broken or
  2235. # incompatible versions:
  2236. # SysV /etc/install, /usr/sbin/install
  2237. # SunOS /usr/etc/install
  2238. # IRIX /sbin/install
  2239. # AIX /bin/install
  2240. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2241. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2242. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2243. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2244. # OS/2's system install, which has a completely different semantic
  2245. # ./install, which can be erroneously created by make from ./install.sh.
  2246. # Reject install programs that cannot install multiple files.
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2248. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2249. if test -z "$INSTALL"; then
  2250. if test "${ac_cv_path_install+set}" = set; then :
  2251. $as_echo_n "(cached) " >&6
  2252. else
  2253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2254. for as_dir in $PATH
  2255. do
  2256. IFS=$as_save_IFS
  2257. test -z "$as_dir" && as_dir=.
  2258. # Account for people who put trailing slashes in PATH elements.
  2259. case $as_dir/ in #((
  2260. ./ | .// | /[cC]/* | \
  2261. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2262. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2263. /usr/ucb/* ) ;;
  2264. *)
  2265. # OSF1 and SCO ODT 3.0 have their own names for install.
  2266. # Don't use installbsd from OSF since it installs stuff as root
  2267. # by default.
  2268. for ac_prog in ginstall scoinst install; do
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2271. if test $ac_prog = install &&
  2272. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2273. # AIX install. It has an incompatible calling convention.
  2274. :
  2275. elif test $ac_prog = install &&
  2276. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2277. # program-specific install script used by HP pwplus--don't use.
  2278. :
  2279. else
  2280. rm -rf conftest.one conftest.two conftest.dir
  2281. echo one > conftest.one
  2282. echo two > conftest.two
  2283. mkdir conftest.dir
  2284. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2285. test -s conftest.one && test -s conftest.two &&
  2286. test -s conftest.dir/conftest.one &&
  2287. test -s conftest.dir/conftest.two
  2288. then
  2289. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2290. break 3
  2291. fi
  2292. fi
  2293. fi
  2294. done
  2295. done
  2296. ;;
  2297. esac
  2298. done
  2299. IFS=$as_save_IFS
  2300. rm -rf conftest.one conftest.two conftest.dir
  2301. fi
  2302. if test "${ac_cv_path_install+set}" = set; then
  2303. INSTALL=$ac_cv_path_install
  2304. else
  2305. # As a last resort, use the slow shell script. Don't cache a
  2306. # value for INSTALL within a source directory, because that will
  2307. # break other packages using the cache if that directory is
  2308. # removed, or if the value is a relative name.
  2309. INSTALL=$ac_install_sh
  2310. fi
  2311. fi
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2313. $as_echo "$INSTALL" >&6; }
  2314. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2315. # It thinks the first close brace ends the variable substitution.
  2316. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2317. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2318. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2320. $as_echo_n "checking whether build environment is sane... " >&6; }
  2321. # Just in case
  2322. sleep 1
  2323. echo timestamp > conftest.file
  2324. # Reject unsafe characters in $srcdir or the absolute working directory
  2325. # name. Accept space and tab only in the latter.
  2326. am_lf='
  2327. '
  2328. case `pwd` in
  2329. *[\\\"\#\$\&\'\`$am_lf]*)
  2330. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2331. esac
  2332. case $srcdir in
  2333. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2334. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2335. esac
  2336. # Do `set' in a subshell so we don't clobber the current shell's
  2337. # arguments. Must try -L first in case configure is actually a
  2338. # symlink; some systems play weird games with the mod time of symlinks
  2339. # (eg FreeBSD returns the mod time of the symlink's containing
  2340. # directory).
  2341. if (
  2342. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2343. if test "$*" = "X"; then
  2344. # -L didn't work.
  2345. set X `ls -t "$srcdir/configure" conftest.file`
  2346. fi
  2347. rm -f conftest.file
  2348. if test "$*" != "X $srcdir/configure conftest.file" \
  2349. && test "$*" != "X conftest.file $srcdir/configure"; then
  2350. # If neither matched, then we have a broken ls. This can happen
  2351. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2352. # broken ls alias from the environment. This has actually
  2353. # happened. Such a system could not be considered "sane".
  2354. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2355. alias in your environment" "$LINENO" 5
  2356. fi
  2357. test "$2" = conftest.file
  2358. )
  2359. then
  2360. # Ok.
  2361. :
  2362. else
  2363. as_fn_error "newly created file is older than distributed files!
  2364. Check your system clock" "$LINENO" 5
  2365. fi
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2367. $as_echo "yes" >&6; }
  2368. test "$program_prefix" != NONE &&
  2369. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2370. # Use a double $ so make ignores it.
  2371. test "$program_suffix" != NONE &&
  2372. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2373. # Double any \ or $.
  2374. # By default was `s,x,x', remove it if useless.
  2375. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2376. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2377. # expand $ac_aux_dir to an absolute path
  2378. am_aux_dir=`cd $ac_aux_dir && pwd`
  2379. if test x"${MISSING+set}" != xset; then
  2380. case $am_aux_dir in
  2381. *\ * | *\ *)
  2382. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2383. *)
  2384. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2385. esac
  2386. fi
  2387. # Use eval to expand $SHELL
  2388. if eval "$MISSING --run true"; then
  2389. am_missing_run="$MISSING --run "
  2390. else
  2391. am_missing_run=
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2393. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2394. fi
  2395. if test x"${install_sh}" != xset; then
  2396. case $am_aux_dir in
  2397. *\ * | *\ *)
  2398. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2399. *)
  2400. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2401. esac
  2402. fi
  2403. # Installed binaries are usually stripped using `strip' when the user
  2404. # run `make install-strip'. However `strip' might not be the right
  2405. # tool to use in cross-compilation environments, therefore Automake
  2406. # will honor the `STRIP' environment variable to overrule this program.
  2407. if test "$cross_compiling" != no; then
  2408. if test -n "$ac_tool_prefix"; then
  2409. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2410. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$STRIP"; then
  2417. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2426. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. STRIP=$ac_cv_prog_STRIP
  2436. if test -n "$STRIP"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2438. $as_echo "$STRIP" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. fi
  2444. if test -z "$ac_cv_prog_STRIP"; then
  2445. ac_ct_STRIP=$STRIP
  2446. # Extract the first word of "strip", so it can be a program name with args.
  2447. set dummy strip; ac_word=$2
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2449. $as_echo_n "checking for $ac_word... " >&6; }
  2450. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. if test -n "$ac_ct_STRIP"; then
  2454. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2455. else
  2456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2457. for as_dir in $PATH
  2458. do
  2459. IFS=$as_save_IFS
  2460. test -z "$as_dir" && as_dir=.
  2461. for ac_exec_ext in '' $ac_executable_extensions; do
  2462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2463. ac_cv_prog_ac_ct_STRIP="strip"
  2464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2465. break 2
  2466. fi
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. fi
  2471. fi
  2472. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2473. if test -n "$ac_ct_STRIP"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2475. $as_echo "$ac_ct_STRIP" >&6; }
  2476. else
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2478. $as_echo "no" >&6; }
  2479. fi
  2480. if test "x$ac_ct_STRIP" = x; then
  2481. STRIP=":"
  2482. else
  2483. case $cross_compiling:$ac_tool_warned in
  2484. yes:)
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2487. ac_tool_warned=yes ;;
  2488. esac
  2489. STRIP=$ac_ct_STRIP
  2490. fi
  2491. else
  2492. STRIP="$ac_cv_prog_STRIP"
  2493. fi
  2494. fi
  2495. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2497. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2498. if test -z "$MKDIR_P"; then
  2499. if test "${ac_cv_path_mkdir+set}" = set; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_prog in mkdir gmkdir; do
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2510. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2511. 'mkdir (GNU coreutils) '* | \
  2512. 'mkdir (coreutils) '* | \
  2513. 'mkdir (fileutils) '4.1*)
  2514. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2515. break 3;;
  2516. esac
  2517. done
  2518. done
  2519. done
  2520. IFS=$as_save_IFS
  2521. fi
  2522. test -d ./--version && rmdir ./--version
  2523. if test "${ac_cv_path_mkdir+set}" = set; then
  2524. MKDIR_P="$ac_cv_path_mkdir -p"
  2525. else
  2526. # As a last resort, use the slow shell script. Don't cache a
  2527. # value for MKDIR_P within a source directory, because that will
  2528. # break other packages using the cache if that directory is
  2529. # removed, or if the value is a relative name.
  2530. MKDIR_P="$ac_install_sh -d"
  2531. fi
  2532. fi
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2534. $as_echo "$MKDIR_P" >&6; }
  2535. mkdir_p="$MKDIR_P"
  2536. case $mkdir_p in
  2537. [\\/$]* | ?:[\\/]*) ;;
  2538. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2539. esac
  2540. for ac_prog in gawk mawk nawk awk
  2541. do
  2542. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2543. set dummy $ac_prog; ac_word=$2
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2545. $as_echo_n "checking for $ac_word... " >&6; }
  2546. if test "${ac_cv_prog_AWK+set}" = set; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. if test -n "$AWK"; then
  2550. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2551. else
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_exec_ext in '' $ac_executable_extensions; do
  2558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2559. ac_cv_prog_AWK="$ac_prog"
  2560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2561. break 2
  2562. fi
  2563. done
  2564. done
  2565. IFS=$as_save_IFS
  2566. fi
  2567. fi
  2568. AWK=$ac_cv_prog_AWK
  2569. if test -n "$AWK"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2571. $as_echo "$AWK" >&6; }
  2572. else
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. fi
  2576. test -n "$AWK" && break
  2577. done
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2579. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2580. set x ${MAKE-make}
  2581. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2582. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. cat >conftest.make <<\_ACEOF
  2586. SHELL = /bin/sh
  2587. all:
  2588. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2589. _ACEOF
  2590. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2591. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2592. *@@@%%%=?*=@@@%%%*)
  2593. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2594. *)
  2595. eval ac_cv_prog_make_${ac_make}_set=no;;
  2596. esac
  2597. rm -f conftest.make
  2598. fi
  2599. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2601. $as_echo "yes" >&6; }
  2602. SET_MAKE=
  2603. else
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2605. $as_echo "no" >&6; }
  2606. SET_MAKE="MAKE=${MAKE-make}"
  2607. fi
  2608. rm -rf .tst 2>/dev/null
  2609. mkdir .tst 2>/dev/null
  2610. if test -d .tst; then
  2611. am__leading_dot=.
  2612. else
  2613. am__leading_dot=_
  2614. fi
  2615. rmdir .tst 2>/dev/null
  2616. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2617. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2618. # is not polluted with repeated "-I."
  2619. am__isrc=' -I$(srcdir)'
  2620. # test to see if srcdir already configured
  2621. if test -f $srcdir/config.status; then
  2622. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2623. fi
  2624. fi
  2625. # test whether we have cygpath
  2626. if test -z "$CYGPATH_W"; then
  2627. if (cygpath --version) >/dev/null 2>/dev/null; then
  2628. CYGPATH_W='cygpath -w'
  2629. else
  2630. CYGPATH_W=echo
  2631. fi
  2632. fi
  2633. # Define the identity of the package.
  2634. PACKAGE='libjpeg'
  2635. VERSION='8.0.2'
  2636. cat >>confdefs.h <<_ACEOF
  2637. #define PACKAGE "$PACKAGE"
  2638. _ACEOF
  2639. cat >>confdefs.h <<_ACEOF
  2640. #define VERSION "$VERSION"
  2641. _ACEOF
  2642. # Some tools Automake needs.
  2643. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2644. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2645. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2646. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2647. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2648. # We need awk for the "check" target. The system "awk" is bad on
  2649. # some platforms.
  2650. # Always define AMTAR for backward compatibility.
  2651. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2652. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2653. # Make --enable-silent-rules the default.
  2654. # To get verbose build output you may configure
  2655. # with --disable-silent-rules or use "make V=1".
  2656. # Check whether --enable-silent-rules was given.
  2657. if test "${enable_silent_rules+set}" = set; then :
  2658. enableval=$enable_silent_rules;
  2659. fi
  2660. case $enable_silent_rules in
  2661. yes) AM_DEFAULT_VERBOSITY=0;;
  2662. no) AM_DEFAULT_VERBOSITY=1;;
  2663. *) AM_DEFAULT_VERBOSITY=0;;
  2664. esac
  2665. AM_BACKSLASH='\'
  2666. # This is required when using the de-ANSI-fication feature.
  2667. DEPDIR="${am__leading_dot}deps"
  2668. ac_config_commands="$ac_config_commands depfiles"
  2669. am_make=${MAKE-make}
  2670. cat > confinc << 'END'
  2671. am__doit:
  2672. @echo this is the am__doit target
  2673. .PHONY: am__doit
  2674. END
  2675. # If we don't find an include directive, just comment out the code.
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2677. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2678. am__include="#"
  2679. am__quote=
  2680. _am_result=none
  2681. # First try GNU make style include.
  2682. echo "include confinc" > confmf
  2683. # Ignore all kinds of additional output from `make'.
  2684. case `$am_make -s -f confmf 2> /dev/null` in #(
  2685. *the\ am__doit\ target*)
  2686. am__include=include
  2687. am__quote=
  2688. _am_result=GNU
  2689. ;;
  2690. esac
  2691. # Now try BSD make style include.
  2692. if test "$am__include" = "#"; then
  2693. echo '.include "confinc"' > confmf
  2694. case `$am_make -s -f confmf 2> /dev/null` in #(
  2695. *the\ am__doit\ target*)
  2696. am__include=.include
  2697. am__quote="\""
  2698. _am_result=BSD
  2699. ;;
  2700. esac
  2701. fi
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2703. $as_echo "$_am_result" >&6; }
  2704. rm -f confinc confmf
  2705. # Check whether --enable-dependency-tracking was given.
  2706. if test "${enable_dependency_tracking+set}" = set; then :
  2707. enableval=$enable_dependency_tracking;
  2708. fi
  2709. if test "x$enable_dependency_tracking" != xno; then
  2710. am_depcomp="$ac_aux_dir/depcomp"
  2711. AMDEPBACKSLASH='\'
  2712. fi
  2713. if test "x$enable_dependency_tracking" != xno; then
  2714. AMDEP_TRUE=
  2715. AMDEP_FALSE='#'
  2716. else
  2717. AMDEP_TRUE='#'
  2718. AMDEP_FALSE=
  2719. fi
  2720. ac_ext=c
  2721. ac_cpp='$CPP $CPPFLAGS'
  2722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2725. if test -n "$ac_tool_prefix"; then
  2726. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2727. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if test "${ac_cv_prog_CC+set}" = set; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$CC"; then
  2734. ac_cv_prog_CC="$CC" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2743. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi
  2751. fi
  2752. CC=$ac_cv_prog_CC
  2753. if test -n "$CC"; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2755. $as_echo "$CC" >&6; }
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. fi
  2760. fi
  2761. if test -z "$ac_cv_prog_CC"; then
  2762. ac_ct_CC=$CC
  2763. # Extract the first word of "gcc", so it can be a program name with args.
  2764. set dummy gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$ac_ct_CC"; then
  2771. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2780. ac_cv_prog_ac_ct_CC="gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2790. if test -n "$ac_ct_CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2792. $as_echo "$ac_ct_CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. if test "x$ac_ct_CC" = x; then
  2798. CC=""
  2799. else
  2800. case $cross_compiling:$ac_tool_warned in
  2801. yes:)
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2804. ac_tool_warned=yes ;;
  2805. esac
  2806. CC=$ac_ct_CC
  2807. fi
  2808. else
  2809. CC="$ac_cv_prog_CC"
  2810. fi
  2811. if test -z "$CC"; then
  2812. if test -n "$ac_tool_prefix"; then
  2813. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2814. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2816. $as_echo_n "checking for $ac_word... " >&6; }
  2817. if test "${ac_cv_prog_CC+set}" = set; then :
  2818. $as_echo_n "(cached) " >&6
  2819. else
  2820. if test -n "$CC"; then
  2821. ac_cv_prog_CC="$CC" # Let the user override the test.
  2822. else
  2823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2824. for as_dir in $PATH
  2825. do
  2826. IFS=$as_save_IFS
  2827. test -z "$as_dir" && as_dir=.
  2828. for ac_exec_ext in '' $ac_executable_extensions; do
  2829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2830. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2832. break 2
  2833. fi
  2834. done
  2835. done
  2836. IFS=$as_save_IFS
  2837. fi
  2838. fi
  2839. CC=$ac_cv_prog_CC
  2840. if test -n "$CC"; then
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2842. $as_echo "$CC" >&6; }
  2843. else
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2845. $as_echo "no" >&6; }
  2846. fi
  2847. fi
  2848. fi
  2849. if test -z "$CC"; then
  2850. # Extract the first word of "cc", so it can be a program name with args.
  2851. set dummy cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if test "${ac_cv_prog_CC+set}" = set; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. ac_prog_rejected=no
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH
  2863. do
  2864. IFS=$as_save_IFS
  2865. test -z "$as_dir" && as_dir=.
  2866. for ac_exec_ext in '' $ac_executable_extensions; do
  2867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2868. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2869. ac_prog_rejected=yes
  2870. continue
  2871. fi
  2872. ac_cv_prog_CC="cc"
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. IFS=$as_save_IFS
  2879. if test $ac_prog_rejected = yes; then
  2880. # We found a bogon in the path, so make sure we never use it.
  2881. set dummy $ac_cv_prog_CC
  2882. shift
  2883. if test $# != 0; then
  2884. # We chose a different compiler from the bogus one.
  2885. # However, it has the same basename, so the bogon will be chosen
  2886. # first if we set CC to just the basename; use the full file name.
  2887. shift
  2888. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2889. fi
  2890. fi
  2891. fi
  2892. fi
  2893. CC=$ac_cv_prog_CC
  2894. if test -n "$CC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2896. $as_echo "$CC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. fi
  2902. if test -z "$CC"; then
  2903. if test -n "$ac_tool_prefix"; then
  2904. for ac_prog in cl.exe
  2905. do
  2906. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2907. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2909. $as_echo_n "checking for $ac_word... " >&6; }
  2910. if test "${ac_cv_prog_CC+set}" = set; then :
  2911. $as_echo_n "(cached) " >&6
  2912. else
  2913. if test -n "$CC"; then
  2914. ac_cv_prog_CC="$CC" # Let the user override the test.
  2915. else
  2916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. for as_dir in $PATH
  2918. do
  2919. IFS=$as_save_IFS
  2920. test -z "$as_dir" && as_dir=.
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2923. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2925. break 2
  2926. fi
  2927. done
  2928. done
  2929. IFS=$as_save_IFS
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. test -n "$CC" && break
  2941. done
  2942. fi
  2943. if test -z "$CC"; then
  2944. ac_ct_CC=$CC
  2945. for ac_prog in cl.exe
  2946. do
  2947. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2948. set dummy $ac_prog; ac_word=$2
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2950. $as_echo_n "checking for $ac_word... " >&6; }
  2951. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. if test -n "$ac_ct_CC"; then
  2955. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2956. else
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. for as_dir in $PATH
  2959. do
  2960. IFS=$as_save_IFS
  2961. test -z "$as_dir" && as_dir=.
  2962. for ac_exec_ext in '' $ac_executable_extensions; do
  2963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2964. ac_cv_prog_ac_ct_CC="$ac_prog"
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2966. break 2
  2967. fi
  2968. done
  2969. done
  2970. IFS=$as_save_IFS
  2971. fi
  2972. fi
  2973. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2974. if test -n "$ac_ct_CC"; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2976. $as_echo "$ac_ct_CC" >&6; }
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. fi
  2981. test -n "$ac_ct_CC" && break
  2982. done
  2983. if test "x$ac_ct_CC" = x; then
  2984. CC=""
  2985. else
  2986. case $cross_compiling:$ac_tool_warned in
  2987. yes:)
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2990. ac_tool_warned=yes ;;
  2991. esac
  2992. CC=$ac_ct_CC
  2993. fi
  2994. fi
  2995. fi
  2996. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error "no acceptable C compiler found in \$PATH
  2999. See \`config.log' for more details." "$LINENO" 5; }
  3000. # Provide some information about the compiler.
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3002. set X $ac_compile
  3003. ac_compiler=$2
  3004. for ac_option in --version -v -V -qversion; do
  3005. { { ac_try="$ac_compiler $ac_option >&5"
  3006. case "(($ac_try" in
  3007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3008. *) ac_try_echo=$ac_try;;
  3009. esac
  3010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3011. $as_echo "$ac_try_echo"; } >&5
  3012. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3013. ac_status=$?
  3014. if test -s conftest.err; then
  3015. sed '10a\
  3016. ... rest of stderr output deleted ...
  3017. 10q' conftest.err >conftest.er1
  3018. cat conftest.er1 >&5
  3019. fi
  3020. rm -f conftest.er1 conftest.err
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }
  3023. done
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. ac_clean_files_save=$ac_clean_files
  3034. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3035. # Try to create an executable without -o first, disregard a.out.
  3036. # It will help us diagnose broken compilers, and finding out an intuition
  3037. # of exeext.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3039. $as_echo_n "checking whether the C compiler works... " >&6; }
  3040. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3041. # The possible output files:
  3042. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3043. ac_rmfiles=
  3044. for ac_file in $ac_files
  3045. do
  3046. case $ac_file in
  3047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3048. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3049. esac
  3050. done
  3051. rm -f $ac_rmfiles
  3052. if { { ac_try="$ac_link_default"
  3053. case "(($ac_try" in
  3054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3055. *) ac_try_echo=$ac_try;;
  3056. esac
  3057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3058. $as_echo "$ac_try_echo"; } >&5
  3059. (eval "$ac_link_default") 2>&5
  3060. ac_status=$?
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3062. test $ac_status = 0; }; then :
  3063. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3064. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3065. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3066. # so that the user can short-circuit this test for compilers unknown to
  3067. # Autoconf.
  3068. for ac_file in $ac_files ''
  3069. do
  3070. test -f "$ac_file" || continue
  3071. case $ac_file in
  3072. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3073. ;;
  3074. [ab].out )
  3075. # We found the default executable, but exeext='' is most
  3076. # certainly right.
  3077. break;;
  3078. *.* )
  3079. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3080. then :; else
  3081. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3082. fi
  3083. # We set ac_cv_exeext here because the later test for it is not
  3084. # safe: cross compilers may not add the suffix if given an `-o'
  3085. # argument, so we may need to know it at that point already.
  3086. # Even if this section looks crufty: it has the advantage of
  3087. # actually working.
  3088. break;;
  3089. * )
  3090. break;;
  3091. esac
  3092. done
  3093. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3094. else
  3095. ac_file=''
  3096. fi
  3097. if test -z "$ac_file"; then :
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. $as_echo "no" >&6; }
  3100. $as_echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3104. { as_fn_set_status 77
  3105. as_fn_error "C compiler cannot create executables
  3106. See \`config.log' for more details." "$LINENO" 5; }; }
  3107. else
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3109. $as_echo "yes" >&6; }
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3112. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3114. $as_echo "$ac_file" >&6; }
  3115. ac_exeext=$ac_cv_exeext
  3116. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3117. ac_clean_files=$ac_clean_files_save
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3119. $as_echo_n "checking for suffix of executables... " >&6; }
  3120. if { { ac_try="$ac_link"
  3121. case "(($ac_try" in
  3122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3123. *) ac_try_echo=$ac_try;;
  3124. esac
  3125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3126. $as_echo "$ac_try_echo"; } >&5
  3127. (eval "$ac_link") 2>&5
  3128. ac_status=$?
  3129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3130. test $ac_status = 0; }; then :
  3131. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3132. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3133. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3134. # `rm'.
  3135. for ac_file in conftest.exe conftest conftest.*; do
  3136. test -f "$ac_file" || continue
  3137. case $ac_file in
  3138. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3139. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3140. break;;
  3141. * ) break;;
  3142. esac
  3143. done
  3144. else
  3145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3147. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3148. See \`config.log' for more details." "$LINENO" 5; }
  3149. fi
  3150. rm -f conftest conftest$ac_cv_exeext
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3152. $as_echo "$ac_cv_exeext" >&6; }
  3153. rm -f conftest.$ac_ext
  3154. EXEEXT=$ac_cv_exeext
  3155. ac_exeext=$EXEEXT
  3156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157. /* end confdefs.h. */
  3158. #include <stdio.h>
  3159. int
  3160. main ()
  3161. {
  3162. FILE *f = fopen ("conftest.out", "w");
  3163. return ferror (f) || fclose (f) != 0;
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. ac_clean_files="$ac_clean_files conftest.out"
  3169. # Check that the compiler produces executables we can run. If not, either
  3170. # the compiler is broken, or we cross compile.
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3172. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3173. if test "$cross_compiling" != yes; then
  3174. { { ac_try="$ac_link"
  3175. case "(($ac_try" in
  3176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177. *) ac_try_echo=$ac_try;;
  3178. esac
  3179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3180. $as_echo "$ac_try_echo"; } >&5
  3181. (eval "$ac_link") 2>&5
  3182. ac_status=$?
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3184. test $ac_status = 0; }
  3185. if { ac_try='./conftest$ac_cv_exeext'
  3186. { { case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3191. $as_echo "$ac_try_echo"; } >&5
  3192. (eval "$ac_try") 2>&5
  3193. ac_status=$?
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3195. test $ac_status = 0; }; }; then
  3196. cross_compiling=no
  3197. else
  3198. if test "$cross_compiling" = maybe; then
  3199. cross_compiling=yes
  3200. else
  3201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3203. as_fn_error "cannot run C compiled programs.
  3204. If you meant to cross compile, use \`--host'.
  3205. See \`config.log' for more details." "$LINENO" 5; }
  3206. fi
  3207. fi
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3210. $as_echo "$cross_compiling" >&6; }
  3211. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3212. ac_clean_files=$ac_clean_files_save
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3214. $as_echo_n "checking for suffix of object files... " >&6; }
  3215. if test "${ac_cv_objext+set}" = set; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. rm -f conftest.o conftest.obj
  3228. if { { ac_try="$ac_compile"
  3229. case "(($ac_try" in
  3230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3231. *) ac_try_echo=$ac_try;;
  3232. esac
  3233. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3234. $as_echo "$ac_try_echo"; } >&5
  3235. (eval "$ac_compile") 2>&5
  3236. ac_status=$?
  3237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3238. test $ac_status = 0; }; then :
  3239. for ac_file in conftest.o conftest.obj conftest.*; do
  3240. test -f "$ac_file" || continue;
  3241. case $ac_file in
  3242. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3243. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3244. break;;
  3245. esac
  3246. done
  3247. else
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3252. as_fn_error "cannot compute suffix of object files: cannot compile
  3253. See \`config.log' for more details." "$LINENO" 5; }
  3254. fi
  3255. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3256. fi
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3258. $as_echo "$ac_cv_objext" >&6; }
  3259. OBJEXT=$ac_cv_objext
  3260. ac_objext=$OBJEXT
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3262. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3263. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3267. /* end confdefs.h. */
  3268. int
  3269. main ()
  3270. {
  3271. #ifndef __GNUC__
  3272. choke me
  3273. #endif
  3274. ;
  3275. return 0;
  3276. }
  3277. _ACEOF
  3278. if ac_fn_c_try_compile "$LINENO"; then :
  3279. ac_compiler_gnu=yes
  3280. else
  3281. ac_compiler_gnu=no
  3282. fi
  3283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3284. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3287. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3288. if test $ac_compiler_gnu = yes; then
  3289. GCC=yes
  3290. else
  3291. GCC=
  3292. fi
  3293. ac_test_CFLAGS=${CFLAGS+set}
  3294. ac_save_CFLAGS=$CFLAGS
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3296. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3297. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. ac_save_c_werror_flag=$ac_c_werror_flag
  3301. ac_c_werror_flag=yes
  3302. ac_cv_prog_cc_g=no
  3303. CFLAGS="-g"
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. if ac_fn_c_try_compile "$LINENO"; then :
  3314. ac_cv_prog_cc_g=yes
  3315. else
  3316. CFLAGS=""
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. int
  3320. main ()
  3321. {
  3322. ;
  3323. return 0;
  3324. }
  3325. _ACEOF
  3326. if ac_fn_c_try_compile "$LINENO"; then :
  3327. else
  3328. ac_c_werror_flag=$ac_save_c_werror_flag
  3329. CFLAGS="-g"
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. int
  3333. main ()
  3334. {
  3335. ;
  3336. return 0;
  3337. }
  3338. _ACEOF
  3339. if ac_fn_c_try_compile "$LINENO"; then :
  3340. ac_cv_prog_cc_g=yes
  3341. fi
  3342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. fi
  3346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3347. ac_c_werror_flag=$ac_save_c_werror_flag
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3350. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3351. if test "$ac_test_CFLAGS" = set; then
  3352. CFLAGS=$ac_save_CFLAGS
  3353. elif test $ac_cv_prog_cc_g = yes; then
  3354. if test "$GCC" = yes; then
  3355. CFLAGS="-g -O2"
  3356. else
  3357. CFLAGS="-g"
  3358. fi
  3359. else
  3360. if test "$GCC" = yes; then
  3361. CFLAGS="-O2"
  3362. else
  3363. CFLAGS=
  3364. fi
  3365. fi
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3367. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3368. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3369. $as_echo_n "(cached) " >&6
  3370. else
  3371. ac_cv_prog_cc_c89=no
  3372. ac_save_CC=$CC
  3373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3374. /* end confdefs.h. */
  3375. #include <stdarg.h>
  3376. #include <stdio.h>
  3377. #include <sys/types.h>
  3378. #include <sys/stat.h>
  3379. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3380. struct buf { int x; };
  3381. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3382. static char *e (p, i)
  3383. char **p;
  3384. int i;
  3385. {
  3386. return p[i];
  3387. }
  3388. static char *f (char * (*g) (char **, int), char **p, ...)
  3389. {
  3390. char *s;
  3391. va_list v;
  3392. va_start (v,p);
  3393. s = g (p, va_arg (v,int));
  3394. va_end (v);
  3395. return s;
  3396. }
  3397. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3398. function prototypes and stuff, but not '\xHH' hex character constants.
  3399. These don't provoke an error unfortunately, instead are silently treated
  3400. as 'x'. The following induces an error, until -std is added to get
  3401. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3402. array size at least. It's necessary to write '\x00'==0 to get something
  3403. that's true only with -std. */
  3404. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3405. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3406. inside strings and character constants. */
  3407. #define FOO(x) 'x'
  3408. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3409. int test (int i, double x);
  3410. struct s1 {int (*f) (int a);};
  3411. struct s2 {int (*f) (double a);};
  3412. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3413. int argc;
  3414. char **argv;
  3415. int
  3416. main ()
  3417. {
  3418. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3419. ;
  3420. return 0;
  3421. }
  3422. _ACEOF
  3423. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3424. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3425. do
  3426. CC="$ac_save_CC $ac_arg"
  3427. if ac_fn_c_try_compile "$LINENO"; then :
  3428. ac_cv_prog_cc_c89=$ac_arg
  3429. fi
  3430. rm -f core conftest.err conftest.$ac_objext
  3431. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3432. done
  3433. rm -f conftest.$ac_ext
  3434. CC=$ac_save_CC
  3435. fi
  3436. # AC_CACHE_VAL
  3437. case "x$ac_cv_prog_cc_c89" in
  3438. x)
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3440. $as_echo "none needed" >&6; } ;;
  3441. xno)
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3443. $as_echo "unsupported" >&6; } ;;
  3444. *)
  3445. CC="$CC $ac_cv_prog_cc_c89"
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3447. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3448. esac
  3449. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3450. fi
  3451. ac_ext=c
  3452. ac_cpp='$CPP $CPPFLAGS'
  3453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3456. depcc="$CC" am_compiler_list=
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3458. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3459. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3460. $as_echo_n "(cached) " >&6
  3461. else
  3462. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3463. # We make a subdir and do the tests there. Otherwise we can end up
  3464. # making bogus files that we don't know about and never remove. For
  3465. # instance it was reported that on HP-UX the gcc test will end up
  3466. # making a dummy file named `D' -- because `-MD' means `put the output
  3467. # in D'.
  3468. mkdir conftest.dir
  3469. # Copy depcomp to subdir because otherwise we won't find it if we're
  3470. # using a relative directory.
  3471. cp "$am_depcomp" conftest.dir
  3472. cd conftest.dir
  3473. # We will build objects and dependencies in a subdirectory because
  3474. # it helps to detect inapplicable dependency modes. For instance
  3475. # both Tru64's cc and ICC support -MD to output dependencies as a
  3476. # side effect of compilation, but ICC will put the dependencies in
  3477. # the current directory while Tru64 will put them in the object
  3478. # directory.
  3479. mkdir sub
  3480. am_cv_CC_dependencies_compiler_type=none
  3481. if test "$am_compiler_list" = ""; then
  3482. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3483. fi
  3484. am__universal=false
  3485. case " $depcc " in #(
  3486. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3487. esac
  3488. for depmode in $am_compiler_list; do
  3489. # Setup a source with many dependencies, because some compilers
  3490. # like to wrap large dependency lists on column 80 (with \), and
  3491. # we should not choose a depcomp mode which is confused by this.
  3492. #
  3493. # We need to recreate these files for each test, as the compiler may
  3494. # overwrite some of them when testing with obscure command lines.
  3495. # This happens at least with the AIX C compiler.
  3496. : > sub/conftest.c
  3497. for i in 1 2 3 4 5 6; do
  3498. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3499. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3500. # Solaris 8's {/usr,}/bin/sh.
  3501. touch sub/conftst$i.h
  3502. done
  3503. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3504. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3505. # mode. It turns out that the SunPro C++ compiler does not properly
  3506. # handle `-M -o', and we need to detect this. Also, some Intel
  3507. # versions had trouble with output in subdirs
  3508. am__obj=sub/conftest.${OBJEXT-o}
  3509. am__minus_obj="-o $am__obj"
  3510. case $depmode in
  3511. gcc)
  3512. # This depmode causes a compiler race in universal mode.
  3513. test "$am__universal" = false || continue
  3514. ;;
  3515. nosideeffect)
  3516. # after this tag, mechanisms are not by side-effect, so they'll
  3517. # only be used when explicitly requested
  3518. if test "x$enable_dependency_tracking" = xyes; then
  3519. continue
  3520. else
  3521. break
  3522. fi
  3523. ;;
  3524. msvisualcpp | msvcmsys)
  3525. # This compiler won't grok `-c -o', but also, the minuso test has
  3526. # not run yet. These depmodes are late enough in the game, and
  3527. # so weak that their functioning should not be impacted.
  3528. am__obj=conftest.${OBJEXT-o}
  3529. am__minus_obj=
  3530. ;;
  3531. none) break ;;
  3532. esac
  3533. if depmode=$depmode \
  3534. source=sub/conftest.c object=$am__obj \
  3535. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3536. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3537. >/dev/null 2>conftest.err &&
  3538. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3539. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3540. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3541. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3542. # icc doesn't choke on unknown options, it will just issue warnings
  3543. # or remarks (even with -Werror). So we grep stderr for any message
  3544. # that says an option was ignored or not supported.
  3545. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3546. # icc: Command line warning: ignoring option '-M'; no argument required
  3547. # The diagnosis changed in icc 8.0:
  3548. # icc: Command line remark: option '-MP' not supported
  3549. if (grep 'ignoring option' conftest.err ||
  3550. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3551. am_cv_CC_dependencies_compiler_type=$depmode
  3552. break
  3553. fi
  3554. fi
  3555. done
  3556. cd ..
  3557. rm -rf conftest.dir
  3558. else
  3559. am_cv_CC_dependencies_compiler_type=none
  3560. fi
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3563. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3564. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3565. if
  3566. test "x$enable_dependency_tracking" != xno \
  3567. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3568. am__fastdepCC_TRUE=
  3569. am__fastdepCC_FALSE='#'
  3570. else
  3571. am__fastdepCC_TRUE='#'
  3572. am__fastdepCC_FALSE=
  3573. fi
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  3575. $as_echo_n "checking for function prototypes... " >&6; }
  3576. if test "$ac_cv_prog_cc_c89" != no; then
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3578. $as_echo "yes" >&6; }
  3579. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  3580. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. ac_ext=c
  3586. ac_cpp='$CPP $CPPFLAGS'
  3587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3591. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3592. # On Suns, sometimes $CPP names a directory.
  3593. if test -n "$CPP" && test -d "$CPP"; then
  3594. CPP=
  3595. fi
  3596. if test -z "$CPP"; then
  3597. if test "${ac_cv_prog_CPP+set}" = set; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. # Double quotes because CPP needs to be expanded
  3601. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3602. do
  3603. ac_preproc_ok=false
  3604. for ac_c_preproc_warn_flag in '' yes
  3605. do
  3606. # Use a header file that comes with gcc, so configuring glibc
  3607. # with a fresh cross-compiler works.
  3608. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3609. # <limits.h> exists even on freestanding compilers.
  3610. # On the NeXT, cc -E runs the code through the compiler's parser,
  3611. # not just through cpp. "Syntax error" is here to catch this case.
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. #ifdef __STDC__
  3615. # include <limits.h>
  3616. #else
  3617. # include <assert.h>
  3618. #endif
  3619. Syntax error
  3620. _ACEOF
  3621. if ac_fn_c_try_cpp "$LINENO"; then :
  3622. else
  3623. # Broken: fails on valid input.
  3624. continue
  3625. fi
  3626. rm -f conftest.err conftest.$ac_ext
  3627. # OK, works on sane cases. Now check whether nonexistent headers
  3628. # can be detected and how.
  3629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3630. /* end confdefs.h. */
  3631. #include <ac_nonexistent.h>
  3632. _ACEOF
  3633. if ac_fn_c_try_cpp "$LINENO"; then :
  3634. # Broken: success on invalid input.
  3635. continue
  3636. else
  3637. # Passes both tests.
  3638. ac_preproc_ok=:
  3639. break
  3640. fi
  3641. rm -f conftest.err conftest.$ac_ext
  3642. done
  3643. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3644. rm -f conftest.err conftest.$ac_ext
  3645. if $ac_preproc_ok; then :
  3646. break
  3647. fi
  3648. done
  3649. ac_cv_prog_CPP=$CPP
  3650. fi
  3651. CPP=$ac_cv_prog_CPP
  3652. else
  3653. ac_cv_prog_CPP=$CPP
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3656. $as_echo "$CPP" >&6; }
  3657. ac_preproc_ok=false
  3658. for ac_c_preproc_warn_flag in '' yes
  3659. do
  3660. # Use a header file that comes with gcc, so configuring glibc
  3661. # with a fresh cross-compiler works.
  3662. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3663. # <limits.h> exists even on freestanding compilers.
  3664. # On the NeXT, cc -E runs the code through the compiler's parser,
  3665. # not just through cpp. "Syntax error" is here to catch this case.
  3666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3667. /* end confdefs.h. */
  3668. #ifdef __STDC__
  3669. # include <limits.h>
  3670. #else
  3671. # include <assert.h>
  3672. #endif
  3673. Syntax error
  3674. _ACEOF
  3675. if ac_fn_c_try_cpp "$LINENO"; then :
  3676. else
  3677. # Broken: fails on valid input.
  3678. continue
  3679. fi
  3680. rm -f conftest.err conftest.$ac_ext
  3681. # OK, works on sane cases. Now check whether nonexistent headers
  3682. # can be detected and how.
  3683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3684. /* end confdefs.h. */
  3685. #include <ac_nonexistent.h>
  3686. _ACEOF
  3687. if ac_fn_c_try_cpp "$LINENO"; then :
  3688. # Broken: success on invalid input.
  3689. continue
  3690. else
  3691. # Passes both tests.
  3692. ac_preproc_ok=:
  3693. break
  3694. fi
  3695. rm -f conftest.err conftest.$ac_ext
  3696. done
  3697. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3698. rm -f conftest.err conftest.$ac_ext
  3699. if $ac_preproc_ok; then :
  3700. else
  3701. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3702. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3703. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3704. See \`config.log' for more details." "$LINENO" 5; }
  3705. fi
  3706. ac_ext=c
  3707. ac_cpp='$CPP $CPPFLAGS'
  3708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3712. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3713. if test "${ac_cv_path_GREP+set}" = set; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. if test -z "$GREP"; then
  3717. ac_path_GREP_found=false
  3718. # Loop through the user's path and test for each of PROGNAME-LIST
  3719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3720. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3721. do
  3722. IFS=$as_save_IFS
  3723. test -z "$as_dir" && as_dir=.
  3724. for ac_prog in grep ggrep; do
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3727. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3728. # Check for GNU ac_path_GREP and select it if it is found.
  3729. # Check for GNU $ac_path_GREP
  3730. case `"$ac_path_GREP" --version 2>&1` in
  3731. *GNU*)
  3732. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3733. *)
  3734. ac_count=0
  3735. $as_echo_n 0123456789 >"conftest.in"
  3736. while :
  3737. do
  3738. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3739. mv "conftest.tmp" "conftest.in"
  3740. cp "conftest.in" "conftest.nl"
  3741. $as_echo 'GREP' >> "conftest.nl"
  3742. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3743. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3744. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3745. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3746. # Best one so far, save it but keep looking for a better one
  3747. ac_cv_path_GREP="$ac_path_GREP"
  3748. ac_path_GREP_max=$ac_count
  3749. fi
  3750. # 10*(2^10) chars as input seems more than enough
  3751. test $ac_count -gt 10 && break
  3752. done
  3753. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3754. esac
  3755. $ac_path_GREP_found && break 3
  3756. done
  3757. done
  3758. done
  3759. IFS=$as_save_IFS
  3760. if test -z "$ac_cv_path_GREP"; then
  3761. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3762. fi
  3763. else
  3764. ac_cv_path_GREP=$GREP
  3765. fi
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3768. $as_echo "$ac_cv_path_GREP" >&6; }
  3769. GREP="$ac_cv_path_GREP"
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3771. $as_echo_n "checking for egrep... " >&6; }
  3772. if test "${ac_cv_path_EGREP+set}" = set; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3776. then ac_cv_path_EGREP="$GREP -E"
  3777. else
  3778. if test -z "$EGREP"; then
  3779. ac_path_EGREP_found=false
  3780. # Loop through the user's path and test for each of PROGNAME-LIST
  3781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3782. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3783. do
  3784. IFS=$as_save_IFS
  3785. test -z "$as_dir" && as_dir=.
  3786. for ac_prog in egrep; do
  3787. for ac_exec_ext in '' $ac_executable_extensions; do
  3788. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3789. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3790. # Check for GNU ac_path_EGREP and select it if it is found.
  3791. # Check for GNU $ac_path_EGREP
  3792. case `"$ac_path_EGREP" --version 2>&1` in
  3793. *GNU*)
  3794. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3795. *)
  3796. ac_count=0
  3797. $as_echo_n 0123456789 >"conftest.in"
  3798. while :
  3799. do
  3800. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3801. mv "conftest.tmp" "conftest.in"
  3802. cp "conftest.in" "conftest.nl"
  3803. $as_echo 'EGREP' >> "conftest.nl"
  3804. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3805. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3806. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3807. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3808. # Best one so far, save it but keep looking for a better one
  3809. ac_cv_path_EGREP="$ac_path_EGREP"
  3810. ac_path_EGREP_max=$ac_count
  3811. fi
  3812. # 10*(2^10) chars as input seems more than enough
  3813. test $ac_count -gt 10 && break
  3814. done
  3815. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3816. esac
  3817. $ac_path_EGREP_found && break 3
  3818. done
  3819. done
  3820. done
  3821. IFS=$as_save_IFS
  3822. if test -z "$ac_cv_path_EGREP"; then
  3823. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3824. fi
  3825. else
  3826. ac_cv_path_EGREP=$EGREP
  3827. fi
  3828. fi
  3829. fi
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3831. $as_echo "$ac_cv_path_EGREP" >&6; }
  3832. EGREP="$ac_cv_path_EGREP"
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3834. $as_echo_n "checking for ANSI C header files... " >&6; }
  3835. if test "${ac_cv_header_stdc+set}" = set; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3839. /* end confdefs.h. */
  3840. #include <stdlib.h>
  3841. #include <stdarg.h>
  3842. #include <string.h>
  3843. #include <float.h>
  3844. int
  3845. main ()
  3846. {
  3847. ;
  3848. return 0;
  3849. }
  3850. _ACEOF
  3851. if ac_fn_c_try_compile "$LINENO"; then :
  3852. ac_cv_header_stdc=yes
  3853. else
  3854. ac_cv_header_stdc=no
  3855. fi
  3856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3857. if test $ac_cv_header_stdc = yes; then
  3858. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3860. /* end confdefs.h. */
  3861. #include <string.h>
  3862. _ACEOF
  3863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3864. $EGREP "memchr" >/dev/null 2>&1; then :
  3865. else
  3866. ac_cv_header_stdc=no
  3867. fi
  3868. rm -f conftest*
  3869. fi
  3870. if test $ac_cv_header_stdc = yes; then
  3871. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3873. /* end confdefs.h. */
  3874. #include <stdlib.h>
  3875. _ACEOF
  3876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3877. $EGREP "free" >/dev/null 2>&1; then :
  3878. else
  3879. ac_cv_header_stdc=no
  3880. fi
  3881. rm -f conftest*
  3882. fi
  3883. if test $ac_cv_header_stdc = yes; then
  3884. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3885. if test "$cross_compiling" = yes; then :
  3886. :
  3887. else
  3888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3889. /* end confdefs.h. */
  3890. #include <ctype.h>
  3891. #include <stdlib.h>
  3892. #if ((' ' & 0x0FF) == 0x020)
  3893. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3894. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3895. #else
  3896. # define ISLOWER(c) \
  3897. (('a' <= (c) && (c) <= 'i') \
  3898. || ('j' <= (c) && (c) <= 'r') \
  3899. || ('s' <= (c) && (c) <= 'z'))
  3900. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3901. #endif
  3902. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3903. int
  3904. main ()
  3905. {
  3906. int i;
  3907. for (i = 0; i < 256; i++)
  3908. if (XOR (islower (i), ISLOWER (i))
  3909. || toupper (i) != TOUPPER (i))
  3910. return 2;
  3911. return 0;
  3912. }
  3913. _ACEOF
  3914. if ac_fn_c_try_run "$LINENO"; then :
  3915. else
  3916. ac_cv_header_stdc=no
  3917. fi
  3918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3919. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3920. fi
  3921. fi
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3924. $as_echo "$ac_cv_header_stdc" >&6; }
  3925. if test $ac_cv_header_stdc = yes; then
  3926. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3927. fi
  3928. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3929. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3930. inttypes.h stdint.h unistd.h
  3931. do :
  3932. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3933. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3934. "
  3935. eval as_val=\$$as_ac_Header
  3936. if test "x$as_val" = x""yes; then :
  3937. cat >>confdefs.h <<_ACEOF
  3938. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3939. _ACEOF
  3940. fi
  3941. done
  3942. if test "$ac_cv_prog_cc_stdc" != no; then
  3943. U= ANSI2KNR=
  3944. else
  3945. U=_ ANSI2KNR=./ansi2knr
  3946. fi
  3947. # Ensure some checks needed by ansi2knr itself.
  3948. for ac_header in string.h
  3949. do :
  3950. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  3951. if test "x$ac_cv_header_string_h" = x""yes; then :
  3952. cat >>confdefs.h <<_ACEOF
  3953. #define HAVE_STRING_H 1
  3954. _ACEOF
  3955. fi
  3956. done
  3957. # Add configure option --enable-maintainer-mode which enables
  3958. # dependency checking and generation useful to package maintainers.
  3959. # This is made an option to avoid confusing end users.
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3961. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3962. # Check whether --enable-maintainer-mode was given.
  3963. if test "${enable_maintainer_mode+set}" = set; then :
  3964. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3965. else
  3966. USE_MAINTAINER_MODE=no
  3967. fi
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3969. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3970. if test $USE_MAINTAINER_MODE = yes; then
  3971. MAINTAINER_MODE_TRUE=
  3972. MAINTAINER_MODE_FALSE='#'
  3973. else
  3974. MAINTAINER_MODE_TRUE='#'
  3975. MAINTAINER_MODE_FALSE=
  3976. fi
  3977. MAINT=$MAINTAINER_MODE_TRUE
  3978. # Check for programs
  3979. ac_ext=c
  3980. ac_cpp='$CPP $CPPFLAGS'
  3981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3984. if test -n "$ac_tool_prefix"; then
  3985. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3986. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3988. $as_echo_n "checking for $ac_word... " >&6; }
  3989. if test "${ac_cv_prog_CC+set}" = set; then :
  3990. $as_echo_n "(cached) " >&6
  3991. else
  3992. if test -n "$CC"; then
  3993. ac_cv_prog_CC="$CC" # Let the user override the test.
  3994. else
  3995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3996. for as_dir in $PATH
  3997. do
  3998. IFS=$as_save_IFS
  3999. test -z "$as_dir" && as_dir=.
  4000. for ac_exec_ext in '' $ac_executable_extensions; do
  4001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4002. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4004. break 2
  4005. fi
  4006. done
  4007. done
  4008. IFS=$as_save_IFS
  4009. fi
  4010. fi
  4011. CC=$ac_cv_prog_CC
  4012. if test -n "$CC"; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4014. $as_echo "$CC" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4017. $as_echo "no" >&6; }
  4018. fi
  4019. fi
  4020. if test -z "$ac_cv_prog_CC"; then
  4021. ac_ct_CC=$CC
  4022. # Extract the first word of "gcc", so it can be a program name with args.
  4023. set dummy gcc; ac_word=$2
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4025. $as_echo_n "checking for $ac_word... " >&6; }
  4026. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. if test -n "$ac_ct_CC"; then
  4030. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4031. else
  4032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4033. for as_dir in $PATH
  4034. do
  4035. IFS=$as_save_IFS
  4036. test -z "$as_dir" && as_dir=.
  4037. for ac_exec_ext in '' $ac_executable_extensions; do
  4038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4039. ac_cv_prog_ac_ct_CC="gcc"
  4040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4041. break 2
  4042. fi
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. fi
  4047. fi
  4048. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4049. if test -n "$ac_ct_CC"; then
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4051. $as_echo "$ac_ct_CC" >&6; }
  4052. else
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4054. $as_echo "no" >&6; }
  4055. fi
  4056. if test "x$ac_ct_CC" = x; then
  4057. CC=""
  4058. else
  4059. case $cross_compiling:$ac_tool_warned in
  4060. yes:)
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4063. ac_tool_warned=yes ;;
  4064. esac
  4065. CC=$ac_ct_CC
  4066. fi
  4067. else
  4068. CC="$ac_cv_prog_CC"
  4069. fi
  4070. if test -z "$CC"; then
  4071. if test -n "$ac_tool_prefix"; then
  4072. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4073. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if test "${ac_cv_prog_CC+set}" = set; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$CC"; then
  4080. ac_cv_prog_CC="$CC" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4089. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. CC=$ac_cv_prog_CC
  4099. if test -n "$CC"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4101. $as_echo "$CC" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. fi
  4107. fi
  4108. if test -z "$CC"; then
  4109. # Extract the first word of "cc", so it can be a program name with args.
  4110. set dummy cc; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if test "${ac_cv_prog_CC+set}" = set; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$CC"; then
  4117. ac_cv_prog_CC="$CC" # Let the user override the test.
  4118. else
  4119. ac_prog_rejected=no
  4120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4121. for as_dir in $PATH
  4122. do
  4123. IFS=$as_save_IFS
  4124. test -z "$as_dir" && as_dir=.
  4125. for ac_exec_ext in '' $ac_executable_extensions; do
  4126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4127. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4128. ac_prog_rejected=yes
  4129. continue
  4130. fi
  4131. ac_cv_prog_CC="cc"
  4132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4133. break 2
  4134. fi
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. if test $ac_prog_rejected = yes; then
  4139. # We found a bogon in the path, so make sure we never use it.
  4140. set dummy $ac_cv_prog_CC
  4141. shift
  4142. if test $# != 0; then
  4143. # We chose a different compiler from the bogus one.
  4144. # However, it has the same basename, so the bogon will be chosen
  4145. # first if we set CC to just the basename; use the full file name.
  4146. shift
  4147. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4148. fi
  4149. fi
  4150. fi
  4151. fi
  4152. CC=$ac_cv_prog_CC
  4153. if test -n "$CC"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4155. $as_echo "$CC" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. fi
  4161. if test -z "$CC"; then
  4162. if test -n "$ac_tool_prefix"; then
  4163. for ac_prog in cl.exe
  4164. do
  4165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4168. $as_echo_n "checking for $ac_word... " >&6; }
  4169. if test "${ac_cv_prog_CC+set}" = set; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -n "$CC"; then
  4173. ac_cv_prog_CC="$CC" # Let the user override the test.
  4174. else
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_exec_ext in '' $ac_executable_extensions; do
  4181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4182. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4184. break 2
  4185. fi
  4186. done
  4187. done
  4188. IFS=$as_save_IFS
  4189. fi
  4190. fi
  4191. CC=$ac_cv_prog_CC
  4192. if test -n "$CC"; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4194. $as_echo "$CC" >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4197. $as_echo "no" >&6; }
  4198. fi
  4199. test -n "$CC" && break
  4200. done
  4201. fi
  4202. if test -z "$CC"; then
  4203. ac_ct_CC=$CC
  4204. for ac_prog in cl.exe
  4205. do
  4206. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4207. set dummy $ac_prog; ac_word=$2
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4209. $as_echo_n "checking for $ac_word... " >&6; }
  4210. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -n "$ac_ct_CC"; then
  4214. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4215. else
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_exec_ext in '' $ac_executable_extensions; do
  4222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4223. ac_cv_prog_ac_ct_CC="$ac_prog"
  4224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4225. break 2
  4226. fi
  4227. done
  4228. done
  4229. IFS=$as_save_IFS
  4230. fi
  4231. fi
  4232. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4233. if test -n "$ac_ct_CC"; then
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4235. $as_echo "$ac_ct_CC" >&6; }
  4236. else
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4238. $as_echo "no" >&6; }
  4239. fi
  4240. test -n "$ac_ct_CC" && break
  4241. done
  4242. if test "x$ac_ct_CC" = x; then
  4243. CC=""
  4244. else
  4245. case $cross_compiling:$ac_tool_warned in
  4246. yes:)
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4249. ac_tool_warned=yes ;;
  4250. esac
  4251. CC=$ac_ct_CC
  4252. fi
  4253. fi
  4254. fi
  4255. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4257. as_fn_error "no acceptable C compiler found in \$PATH
  4258. See \`config.log' for more details." "$LINENO" 5; }
  4259. # Provide some information about the compiler.
  4260. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4261. set X $ac_compile
  4262. ac_compiler=$2
  4263. for ac_option in --version -v -V -qversion; do
  4264. { { ac_try="$ac_compiler $ac_option >&5"
  4265. case "(($ac_try" in
  4266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4267. *) ac_try_echo=$ac_try;;
  4268. esac
  4269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4270. $as_echo "$ac_try_echo"; } >&5
  4271. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4272. ac_status=$?
  4273. if test -s conftest.err; then
  4274. sed '10a\
  4275. ... rest of stderr output deleted ...
  4276. 10q' conftest.err >conftest.er1
  4277. cat conftest.er1 >&5
  4278. fi
  4279. rm -f conftest.er1 conftest.err
  4280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4281. test $ac_status = 0; }
  4282. done
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4284. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4285. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int
  4291. main ()
  4292. {
  4293. #ifndef __GNUC__
  4294. choke me
  4295. #endif
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_compiler_gnu=yes
  4302. else
  4303. ac_compiler_gnu=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4309. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4310. if test $ac_compiler_gnu = yes; then
  4311. GCC=yes
  4312. else
  4313. GCC=
  4314. fi
  4315. ac_test_CFLAGS=${CFLAGS+set}
  4316. ac_save_CFLAGS=$CFLAGS
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4318. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4319. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4320. $as_echo_n "(cached) " >&6
  4321. else
  4322. ac_save_c_werror_flag=$ac_c_werror_flag
  4323. ac_c_werror_flag=yes
  4324. ac_cv_prog_cc_g=no
  4325. CFLAGS="-g"
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. int
  4329. main ()
  4330. {
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_compile "$LINENO"; then :
  4336. ac_cv_prog_cc_g=yes
  4337. else
  4338. CFLAGS=""
  4339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4340. /* end confdefs.h. */
  4341. int
  4342. main ()
  4343. {
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. if ac_fn_c_try_compile "$LINENO"; then :
  4349. else
  4350. ac_c_werror_flag=$ac_save_c_werror_flag
  4351. CFLAGS="-g"
  4352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4353. /* end confdefs.h. */
  4354. int
  4355. main ()
  4356. {
  4357. ;
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_compile "$LINENO"; then :
  4362. ac_cv_prog_cc_g=yes
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4369. ac_c_werror_flag=$ac_save_c_werror_flag
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4372. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4373. if test "$ac_test_CFLAGS" = set; then
  4374. CFLAGS=$ac_save_CFLAGS
  4375. elif test $ac_cv_prog_cc_g = yes; then
  4376. if test "$GCC" = yes; then
  4377. CFLAGS="-g -O2"
  4378. else
  4379. CFLAGS="-g"
  4380. fi
  4381. else
  4382. if test "$GCC" = yes; then
  4383. CFLAGS="-O2"
  4384. else
  4385. CFLAGS=
  4386. fi
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4389. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4390. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. ac_cv_prog_cc_c89=no
  4394. ac_save_CC=$CC
  4395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end confdefs.h. */
  4397. #include <stdarg.h>
  4398. #include <stdio.h>
  4399. #include <sys/types.h>
  4400. #include <sys/stat.h>
  4401. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4402. struct buf { int x; };
  4403. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4404. static char *e (p, i)
  4405. char **p;
  4406. int i;
  4407. {
  4408. return p[i];
  4409. }
  4410. static char *f (char * (*g) (char **, int), char **p, ...)
  4411. {
  4412. char *s;
  4413. va_list v;
  4414. va_start (v,p);
  4415. s = g (p, va_arg (v,int));
  4416. va_end (v);
  4417. return s;
  4418. }
  4419. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4420. function prototypes and stuff, but not '\xHH' hex character constants.
  4421. These don't provoke an error unfortunately, instead are silently treated
  4422. as 'x'. The following induces an error, until -std is added to get
  4423. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4424. array size at least. It's necessary to write '\x00'==0 to get something
  4425. that's true only with -std. */
  4426. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4427. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4428. inside strings and character constants. */
  4429. #define FOO(x) 'x'
  4430. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4431. int test (int i, double x);
  4432. struct s1 {int (*f) (int a);};
  4433. struct s2 {int (*f) (double a);};
  4434. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4435. int argc;
  4436. char **argv;
  4437. int
  4438. main ()
  4439. {
  4440. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4441. ;
  4442. return 0;
  4443. }
  4444. _ACEOF
  4445. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4446. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4447. do
  4448. CC="$ac_save_CC $ac_arg"
  4449. if ac_fn_c_try_compile "$LINENO"; then :
  4450. ac_cv_prog_cc_c89=$ac_arg
  4451. fi
  4452. rm -f core conftest.err conftest.$ac_objext
  4453. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4454. done
  4455. rm -f conftest.$ac_ext
  4456. CC=$ac_save_CC
  4457. fi
  4458. # AC_CACHE_VAL
  4459. case "x$ac_cv_prog_cc_c89" in
  4460. x)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4462. $as_echo "none needed" >&6; } ;;
  4463. xno)
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4465. $as_echo "unsupported" >&6; } ;;
  4466. *)
  4467. CC="$CC $ac_cv_prog_cc_c89"
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4469. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4470. esac
  4471. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4472. fi
  4473. ac_ext=c
  4474. ac_cpp='$CPP $CPPFLAGS'
  4475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4478. depcc="$CC" am_compiler_list=
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4480. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4481. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4485. # We make a subdir and do the tests there. Otherwise we can end up
  4486. # making bogus files that we don't know about and never remove. For
  4487. # instance it was reported that on HP-UX the gcc test will end up
  4488. # making a dummy file named `D' -- because `-MD' means `put the output
  4489. # in D'.
  4490. mkdir conftest.dir
  4491. # Copy depcomp to subdir because otherwise we won't find it if we're
  4492. # using a relative directory.
  4493. cp "$am_depcomp" conftest.dir
  4494. cd conftest.dir
  4495. # We will build objects and dependencies in a subdirectory because
  4496. # it helps to detect inapplicable dependency modes. For instance
  4497. # both Tru64's cc and ICC support -MD to output dependencies as a
  4498. # side effect of compilation, but ICC will put the dependencies in
  4499. # the current directory while Tru64 will put them in the object
  4500. # directory.
  4501. mkdir sub
  4502. am_cv_CC_dependencies_compiler_type=none
  4503. if test "$am_compiler_list" = ""; then
  4504. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4505. fi
  4506. am__universal=false
  4507. case " $depcc " in #(
  4508. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4509. esac
  4510. for depmode in $am_compiler_list; do
  4511. # Setup a source with many dependencies, because some compilers
  4512. # like to wrap large dependency lists on column 80 (with \), and
  4513. # we should not choose a depcomp mode which is confused by this.
  4514. #
  4515. # We need to recreate these files for each test, as the compiler may
  4516. # overwrite some of them when testing with obscure command lines.
  4517. # This happens at least with the AIX C compiler.
  4518. : > sub/conftest.c
  4519. for i in 1 2 3 4 5 6; do
  4520. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4521. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4522. # Solaris 8's {/usr,}/bin/sh.
  4523. touch sub/conftst$i.h
  4524. done
  4525. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4526. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4527. # mode. It turns out that the SunPro C++ compiler does not properly
  4528. # handle `-M -o', and we need to detect this. Also, some Intel
  4529. # versions had trouble with output in subdirs
  4530. am__obj=sub/conftest.${OBJEXT-o}
  4531. am__minus_obj="-o $am__obj"
  4532. case $depmode in
  4533. gcc)
  4534. # This depmode causes a compiler race in universal mode.
  4535. test "$am__universal" = false || continue
  4536. ;;
  4537. nosideeffect)
  4538. # after this tag, mechanisms are not by side-effect, so they'll
  4539. # only be used when explicitly requested
  4540. if test "x$enable_dependency_tracking" = xyes; then
  4541. continue
  4542. else
  4543. break
  4544. fi
  4545. ;;
  4546. msvisualcpp | msvcmsys)
  4547. # This compiler won't grok `-c -o', but also, the minuso test has
  4548. # not run yet. These depmodes are late enough in the game, and
  4549. # so weak that their functioning should not be impacted.
  4550. am__obj=conftest.${OBJEXT-o}
  4551. am__minus_obj=
  4552. ;;
  4553. none) break ;;
  4554. esac
  4555. if depmode=$depmode \
  4556. source=sub/conftest.c object=$am__obj \
  4557. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4558. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4559. >/dev/null 2>conftest.err &&
  4560. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4561. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4562. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4563. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4564. # icc doesn't choke on unknown options, it will just issue warnings
  4565. # or remarks (even with -Werror). So we grep stderr for any message
  4566. # that says an option was ignored or not supported.
  4567. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4568. # icc: Command line warning: ignoring option '-M'; no argument required
  4569. # The diagnosis changed in icc 8.0:
  4570. # icc: Command line remark: option '-MP' not supported
  4571. if (grep 'ignoring option' conftest.err ||
  4572. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4573. am_cv_CC_dependencies_compiler_type=$depmode
  4574. break
  4575. fi
  4576. fi
  4577. done
  4578. cd ..
  4579. rm -rf conftest.dir
  4580. else
  4581. am_cv_CC_dependencies_compiler_type=none
  4582. fi
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4585. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4586. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4587. if
  4588. test "x$enable_dependency_tracking" != xno \
  4589. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4590. am__fastdepCC_TRUE=
  4591. am__fastdepCC_FALSE='#'
  4592. else
  4593. am__fastdepCC_TRUE='#'
  4594. am__fastdepCC_FALSE=
  4595. fi
  4596. case $ac_cv_prog_cc_stdc in #(
  4597. no) :
  4598. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  4599. *) :
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4601. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4602. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. ac_cv_prog_cc_c99=no
  4606. ac_save_CC=$CC
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. #include <stdarg.h>
  4610. #include <stdbool.h>
  4611. #include <stdlib.h>
  4612. #include <wchar.h>
  4613. #include <stdio.h>
  4614. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4615. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4616. #define showlist(...) puts (#__VA_ARGS__)
  4617. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4618. static void
  4619. test_varargs_macros (void)
  4620. {
  4621. int x = 1234;
  4622. int y = 5678;
  4623. debug ("Flag");
  4624. debug ("X = %d\n", x);
  4625. showlist (The first, second, and third items.);
  4626. report (x>y, "x is %d but y is %d", x, y);
  4627. }
  4628. // Check long long types.
  4629. #define BIG64 18446744073709551615ull
  4630. #define BIG32 4294967295ul
  4631. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4632. #if !BIG_OK
  4633. your preprocessor is broken;
  4634. #endif
  4635. #if BIG_OK
  4636. #else
  4637. your preprocessor is broken;
  4638. #endif
  4639. static long long int bignum = -9223372036854775807LL;
  4640. static unsigned long long int ubignum = BIG64;
  4641. struct incomplete_array
  4642. {
  4643. int datasize;
  4644. double data[];
  4645. };
  4646. struct named_init {
  4647. int number;
  4648. const wchar_t *name;
  4649. double average;
  4650. };
  4651. typedef const char *ccp;
  4652. static inline int
  4653. test_restrict (ccp restrict text)
  4654. {
  4655. // See if C++-style comments work.
  4656. // Iterate through items via the restricted pointer.
  4657. // Also check for declarations in for loops.
  4658. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4659. continue;
  4660. return 0;
  4661. }
  4662. // Check varargs and va_copy.
  4663. static void
  4664. test_varargs (const char *format, ...)
  4665. {
  4666. va_list args;
  4667. va_start (args, format);
  4668. va_list args_copy;
  4669. va_copy (args_copy, args);
  4670. const char *str;
  4671. int number;
  4672. float fnumber;
  4673. while (*format)
  4674. {
  4675. switch (*format++)
  4676. {
  4677. case 's': // string
  4678. str = va_arg (args_copy, const char *);
  4679. break;
  4680. case 'd': // int
  4681. number = va_arg (args_copy, int);
  4682. break;
  4683. case 'f': // float
  4684. fnumber = va_arg (args_copy, double);
  4685. break;
  4686. default:
  4687. break;
  4688. }
  4689. }
  4690. va_end (args_copy);
  4691. va_end (args);
  4692. }
  4693. int
  4694. main ()
  4695. {
  4696. // Check bool.
  4697. _Bool success = false;
  4698. // Check restrict.
  4699. if (test_restrict ("String literal") == 0)
  4700. success = true;
  4701. char *restrict newvar = "Another string";
  4702. // Check varargs.
  4703. test_varargs ("s, d' f .", "string", 65, 34.234);
  4704. test_varargs_macros ();
  4705. // Check flexible array members.
  4706. struct incomplete_array *ia =
  4707. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4708. ia->datasize = 10;
  4709. for (int i = 0; i < ia->datasize; ++i)
  4710. ia->data[i] = i * 1.234;
  4711. // Check named initializers.
  4712. struct named_init ni = {
  4713. .number = 34,
  4714. .name = L"Test wide string",
  4715. .average = 543.34343,
  4716. };
  4717. ni.number = 58;
  4718. int dynamic_array[ni.number];
  4719. dynamic_array[ni.number - 1] = 543;
  4720. // work around unused variable warnings
  4721. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4722. || dynamic_array[ni.number - 1] != 543);
  4723. ;
  4724. return 0;
  4725. }
  4726. _ACEOF
  4727. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  4728. do
  4729. CC="$ac_save_CC $ac_arg"
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. ac_cv_prog_cc_c99=$ac_arg
  4732. fi
  4733. rm -f core conftest.err conftest.$ac_objext
  4734. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4735. done
  4736. rm -f conftest.$ac_ext
  4737. CC=$ac_save_CC
  4738. fi
  4739. # AC_CACHE_VAL
  4740. case "x$ac_cv_prog_cc_c99" in
  4741. x)
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4743. $as_echo "none needed" >&6; } ;;
  4744. xno)
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4746. $as_echo "unsupported" >&6; } ;;
  4747. *)
  4748. CC="$CC $ac_cv_prog_cc_c99"
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4750. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4751. esac
  4752. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4753. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4756. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4757. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. ac_cv_prog_cc_c89=no
  4761. ac_save_CC=$CC
  4762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4763. /* end confdefs.h. */
  4764. #include <stdarg.h>
  4765. #include <stdio.h>
  4766. #include <sys/types.h>
  4767. #include <sys/stat.h>
  4768. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4769. struct buf { int x; };
  4770. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4771. static char *e (p, i)
  4772. char **p;
  4773. int i;
  4774. {
  4775. return p[i];
  4776. }
  4777. static char *f (char * (*g) (char **, int), char **p, ...)
  4778. {
  4779. char *s;
  4780. va_list v;
  4781. va_start (v,p);
  4782. s = g (p, va_arg (v,int));
  4783. va_end (v);
  4784. return s;
  4785. }
  4786. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4787. function prototypes and stuff, but not '\xHH' hex character constants.
  4788. These don't provoke an error unfortunately, instead are silently treated
  4789. as 'x'. The following induces an error, until -std is added to get
  4790. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4791. array size at least. It's necessary to write '\x00'==0 to get something
  4792. that's true only with -std. */
  4793. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4794. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4795. inside strings and character constants. */
  4796. #define FOO(x) 'x'
  4797. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4798. int test (int i, double x);
  4799. struct s1 {int (*f) (int a);};
  4800. struct s2 {int (*f) (double a);};
  4801. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4802. int argc;
  4803. char **argv;
  4804. int
  4805. main ()
  4806. {
  4807. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4808. ;
  4809. return 0;
  4810. }
  4811. _ACEOF
  4812. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4813. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4814. do
  4815. CC="$ac_save_CC $ac_arg"
  4816. if ac_fn_c_try_compile "$LINENO"; then :
  4817. ac_cv_prog_cc_c89=$ac_arg
  4818. fi
  4819. rm -f core conftest.err conftest.$ac_objext
  4820. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4821. done
  4822. rm -f conftest.$ac_ext
  4823. CC=$ac_save_CC
  4824. fi
  4825. # AC_CACHE_VAL
  4826. case "x$ac_cv_prog_cc_c89" in
  4827. x)
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4829. $as_echo "none needed" >&6; } ;;
  4830. xno)
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4832. $as_echo "unsupported" >&6; } ;;
  4833. *)
  4834. CC="$CC $ac_cv_prog_cc_c89"
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4836. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4837. esac
  4838. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4839. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4840. else
  4841. ac_cv_prog_cc_stdc=no
  4842. fi
  4843. fi
  4844. ;;
  4845. esac
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4847. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4848. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  4849. $as_echo_n "(cached) " >&6
  4850. fi
  4851. case $ac_cv_prog_cc_stdc in #(
  4852. no) :
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4854. $as_echo "unsupported" >&6; } ;; #(
  4855. '') :
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4857. $as_echo "none needed" >&6; } ;; #(
  4858. *) :
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4860. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4861. esac
  4862. ac_ext=c
  4863. ac_cpp='$CPP $CPPFLAGS'
  4864. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4865. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4866. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4868. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4869. # On Suns, sometimes $CPP names a directory.
  4870. if test -n "$CPP" && test -d "$CPP"; then
  4871. CPP=
  4872. fi
  4873. if test -z "$CPP"; then
  4874. if test "${ac_cv_prog_CPP+set}" = set; then :
  4875. $as_echo_n "(cached) " >&6
  4876. else
  4877. # Double quotes because CPP needs to be expanded
  4878. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4879. do
  4880. ac_preproc_ok=false
  4881. for ac_c_preproc_warn_flag in '' yes
  4882. do
  4883. # Use a header file that comes with gcc, so configuring glibc
  4884. # with a fresh cross-compiler works.
  4885. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4886. # <limits.h> exists even on freestanding compilers.
  4887. # On the NeXT, cc -E runs the code through the compiler's parser,
  4888. # not just through cpp. "Syntax error" is here to catch this case.
  4889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4890. /* end confdefs.h. */
  4891. #ifdef __STDC__
  4892. # include <limits.h>
  4893. #else
  4894. # include <assert.h>
  4895. #endif
  4896. Syntax error
  4897. _ACEOF
  4898. if ac_fn_c_try_cpp "$LINENO"; then :
  4899. else
  4900. # Broken: fails on valid input.
  4901. continue
  4902. fi
  4903. rm -f conftest.err conftest.$ac_ext
  4904. # OK, works on sane cases. Now check whether nonexistent headers
  4905. # can be detected and how.
  4906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4907. /* end confdefs.h. */
  4908. #include <ac_nonexistent.h>
  4909. _ACEOF
  4910. if ac_fn_c_try_cpp "$LINENO"; then :
  4911. # Broken: success on invalid input.
  4912. continue
  4913. else
  4914. # Passes both tests.
  4915. ac_preproc_ok=:
  4916. break
  4917. fi
  4918. rm -f conftest.err conftest.$ac_ext
  4919. done
  4920. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4921. rm -f conftest.err conftest.$ac_ext
  4922. if $ac_preproc_ok; then :
  4923. break
  4924. fi
  4925. done
  4926. ac_cv_prog_CPP=$CPP
  4927. fi
  4928. CPP=$ac_cv_prog_CPP
  4929. else
  4930. ac_cv_prog_CPP=$CPP
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4933. $as_echo "$CPP" >&6; }
  4934. ac_preproc_ok=false
  4935. for ac_c_preproc_warn_flag in '' yes
  4936. do
  4937. # Use a header file that comes with gcc, so configuring glibc
  4938. # with a fresh cross-compiler works.
  4939. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4940. # <limits.h> exists even on freestanding compilers.
  4941. # On the NeXT, cc -E runs the code through the compiler's parser,
  4942. # not just through cpp. "Syntax error" is here to catch this case.
  4943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4944. /* end confdefs.h. */
  4945. #ifdef __STDC__
  4946. # include <limits.h>
  4947. #else
  4948. # include <assert.h>
  4949. #endif
  4950. Syntax error
  4951. _ACEOF
  4952. if ac_fn_c_try_cpp "$LINENO"; then :
  4953. else
  4954. # Broken: fails on valid input.
  4955. continue
  4956. fi
  4957. rm -f conftest.err conftest.$ac_ext
  4958. # OK, works on sane cases. Now check whether nonexistent headers
  4959. # can be detected and how.
  4960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4961. /* end confdefs.h. */
  4962. #include <ac_nonexistent.h>
  4963. _ACEOF
  4964. if ac_fn_c_try_cpp "$LINENO"; then :
  4965. # Broken: success on invalid input.
  4966. continue
  4967. else
  4968. # Passes both tests.
  4969. ac_preproc_ok=:
  4970. break
  4971. fi
  4972. rm -f conftest.err conftest.$ac_ext
  4973. done
  4974. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4975. rm -f conftest.err conftest.$ac_ext
  4976. if $ac_preproc_ok; then :
  4977. else
  4978. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4979. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4980. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4981. See \`config.log' for more details." "$LINENO" 5; }
  4982. fi
  4983. ac_ext=c
  4984. ac_cpp='$CPP $CPPFLAGS'
  4985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4989. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4990. set x ${MAKE-make}
  4991. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4992. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. cat >conftest.make <<\_ACEOF
  4996. SHELL = /bin/sh
  4997. all:
  4998. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4999. _ACEOF
  5000. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  5001. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5002. *@@@%%%=?*=@@@%%%*)
  5003. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5004. *)
  5005. eval ac_cv_prog_make_${ac_make}_set=no;;
  5006. esac
  5007. rm -f conftest.make
  5008. fi
  5009. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5011. $as_echo "yes" >&6; }
  5012. SET_MAKE=
  5013. else
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5015. $as_echo "no" >&6; }
  5016. SET_MAKE="MAKE=${MAKE-make}"
  5017. fi
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5019. $as_echo_n "checking whether ln -s works... " >&6; }
  5020. LN_S=$as_ln_s
  5021. if test "$LN_S" = "ln -s"; then
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5023. $as_echo "yes" >&6; }
  5024. else
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5026. $as_echo "no, using $LN_S" >&6; }
  5027. fi
  5028. # Check if LD supports linker scripts,
  5029. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  5030. # Check whether --enable-ld-version-script was given.
  5031. if test "${enable_ld_version_script+set}" = set; then :
  5032. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  5033. fi
  5034. if test -z "$have_ld_version_script"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  5036. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  5037. save_LDFLAGS="$LDFLAGS"
  5038. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  5039. cat > conftest.map <<EOF
  5040. VERS_1 {
  5041. global: sym;
  5042. };
  5043. VERS_2 {
  5044. global: sym;
  5045. } VERS_1;
  5046. EOF
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. int
  5050. main ()
  5051. {
  5052. ;
  5053. return 0;
  5054. }
  5055. _ACEOF
  5056. if ac_fn_c_try_link "$LINENO"; then :
  5057. have_ld_version_script=yes
  5058. else
  5059. have_ld_version_script=no
  5060. fi
  5061. rm -f core conftest.err conftest.$ac_objext \
  5062. conftest$ac_exeext conftest.$ac_ext
  5063. rm -f conftest.map
  5064. LDFLAGS="$save_LDFLAGS"
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
  5066. $as_echo "$have_ld_version_script" >&6; }
  5067. fi
  5068. if test "$have_ld_version_script" = "yes"; then
  5069. HAVE_LD_VERSION_SCRIPT_TRUE=
  5070. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  5071. else
  5072. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  5073. HAVE_LD_VERSION_SCRIPT_FALSE=
  5074. fi
  5075. # See if compiler supports prototypes.
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  5077. $as_echo_n "checking for function prototypes... " >&6; }
  5078. if test "${ijg_cv_have_prototypes+set}" = set; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5082. /* end confdefs.h. */
  5083. int testfunction (int arg1, int * arg2); /* check prototypes */
  5084. struct methods_struct { /* check method-pointer declarations */
  5085. int (*error_exit) (char *msgtext);
  5086. int (*trace_message) (char *msgtext);
  5087. int (*another_method) (void);
  5088. };
  5089. int testfunction (int arg1, int * arg2) /* check definitions */
  5090. { return arg2[arg1]; }
  5091. int test2function (void) /* check void arg list */
  5092. { return 0; }
  5093. int
  5094. main ()
  5095. {
  5096. ;
  5097. return 0;
  5098. }
  5099. _ACEOF
  5100. if ac_fn_c_try_compile "$LINENO"; then :
  5101. ijg_cv_have_prototypes=yes
  5102. else
  5103. ijg_cv_have_prototypes=no
  5104. fi
  5105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5106. fi
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
  5108. $as_echo "$ijg_cv_have_prototypes" >&6; }
  5109. if test $ijg_cv_have_prototypes = yes; then
  5110. $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
  5111. else
  5112. echo Your compiler does not seem to know about function prototypes.
  5113. echo Perhaps it needs a special switch to enable ANSI C mode.
  5114. echo If so, we recommend running configure like this:
  5115. echo " ./configure CC='cc -switch'"
  5116. echo where -switch is the proper switch.
  5117. fi
  5118. # Check header files
  5119. for ac_header in stddef.h stdlib.h locale.h
  5120. do :
  5121. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5122. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5123. eval as_val=\$$as_ac_Header
  5124. if test "x$as_val" = x""yes; then :
  5125. cat >>confdefs.h <<_ACEOF
  5126. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5127. _ACEOF
  5128. fi
  5129. done
  5130. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  5131. if test "x$ac_cv_header_string_h" = x""yes; then :
  5132. else
  5133. $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
  5134. fi
  5135. # See whether type size_t is defined in any ANSI-standard places;
  5136. # if not, perhaps it is defined in <sys/types.h>.
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
  5138. $as_echo_n "checking for size_t... " >&6; }
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. #ifdef HAVE_STDDEF_H
  5142. #include <stddef.h>
  5143. #endif
  5144. #ifdef HAVE_STDLIB_H
  5145. #include <stdlib.h>
  5146. #endif
  5147. #include <stdio.h>
  5148. #ifdef NEED_BSD_STRINGS
  5149. #include <strings.h>
  5150. #else
  5151. #include <string.h>
  5152. #endif
  5153. typedef size_t my_size_t;
  5154. int
  5155. main ()
  5156. {
  5157. my_size_t foovar;
  5158. ;
  5159. return 0;
  5160. }
  5161. _ACEOF
  5162. if ac_fn_c_try_compile "$LINENO"; then :
  5163. ijg_size_t_ok=yes
  5164. else
  5165. ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
  5169. $as_echo "$ijg_size_t_ok" >&6; }
  5170. if test "$ijg_size_t_ok" != yes; then
  5171. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  5172. if test "x$ac_cv_header_sys_types_h" = x""yes; then :
  5173. $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
  5174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5175. /* end confdefs.h. */
  5176. #include <sys/types.h>
  5177. _ACEOF
  5178. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5179. $EGREP "size_t" >/dev/null 2>&1; then :
  5180. ijg_size_t_ok="size_t is in sys/types.h"
  5181. else
  5182. ijg_size_t_ok=no
  5183. fi
  5184. rm -f conftest*
  5185. else
  5186. ijg_size_t_ok=no
  5187. fi
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
  5189. $as_echo "$ijg_size_t_ok" >&6; }
  5190. if test "$ijg_size_t_ok" = no; then
  5191. echo Type size_t is not defined in any of the usual places.
  5192. echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
  5193. fi
  5194. fi
  5195. # Check compiler characteristics
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
  5197. $as_echo_n "checking for type unsigned char... " >&6; }
  5198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5199. /* end confdefs.h. */
  5200. int
  5201. main ()
  5202. {
  5203. unsigned char un_char;
  5204. ;
  5205. return 0;
  5206. }
  5207. _ACEOF
  5208. if ac_fn_c_try_compile "$LINENO"; then :
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5210. $as_echo "yes" >&6; }
  5211. $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5214. $as_echo "no" >&6; }
  5215. fi
  5216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
  5218. $as_echo_n "checking for type unsigned short... " >&6; }
  5219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5220. /* end confdefs.h. */
  5221. int
  5222. main ()
  5223. {
  5224. unsigned short un_short;
  5225. ;
  5226. return 0;
  5227. }
  5228. _ACEOF
  5229. if ac_fn_c_try_compile "$LINENO"; then :
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5231. $as_echo "yes" >&6; }
  5232. $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
  5233. else
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. $as_echo "no" >&6; }
  5236. fi
  5237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
  5239. $as_echo_n "checking for type void... " >&6; }
  5240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5241. /* end confdefs.h. */
  5242. /* Caution: a C++ compiler will insist on valid prototypes */
  5243. typedef void * void_ptr; /* check void * */
  5244. #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
  5245. typedef void (*void_func) (int a, int b);
  5246. #else
  5247. typedef void (*void_func) ();
  5248. #endif
  5249. #ifdef HAVE_PROTOTYPES /* check void function result */
  5250. void test3function (void_ptr arg1, void_func arg2)
  5251. #else
  5252. void test3function (arg1, arg2)
  5253. void_ptr arg1;
  5254. void_func arg2;
  5255. #endif
  5256. {
  5257. char * locptr = (char *) arg1; /* check casting to and from void * */
  5258. arg1 = (void *) locptr;
  5259. (*arg2) (1, 2); /* check call of fcn returning void */
  5260. }
  5261. int
  5262. main ()
  5263. {
  5264. ;
  5265. return 0;
  5266. }
  5267. _ACEOF
  5268. if ac_fn_c_try_compile "$LINENO"; then :
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5270. $as_echo "yes" >&6; }
  5271. else
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5273. $as_echo "no" >&6; }
  5274. $as_echo "#define void char" >>confdefs.h
  5275. fi
  5276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5278. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5279. if test "${ac_cv_c_const+set}" = set; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5283. /* end confdefs.h. */
  5284. int
  5285. main ()
  5286. {
  5287. /* FIXME: Include the comments suggested by Paul. */
  5288. #ifndef __cplusplus
  5289. /* Ultrix mips cc rejects this. */
  5290. typedef int charset[2];
  5291. const charset cs;
  5292. /* SunOS 4.1.1 cc rejects this. */
  5293. char const *const *pcpcc;
  5294. char **ppc;
  5295. /* NEC SVR4.0.2 mips cc rejects this. */
  5296. struct point {int x, y;};
  5297. static struct point const zero = {0,0};
  5298. /* AIX XL C 1.02.0.0 rejects this.
  5299. It does not let you subtract one const X* pointer from another in
  5300. an arm of an if-expression whose if-part is not a constant
  5301. expression */
  5302. const char *g = "string";
  5303. pcpcc = &g + (g ? g-g : 0);
  5304. /* HPUX 7.0 cc rejects these. */
  5305. ++pcpcc;
  5306. ppc = (char**) pcpcc;
  5307. pcpcc = (char const *const *) ppc;
  5308. { /* SCO 3.2v4 cc rejects this. */
  5309. char *t;
  5310. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5311. *t++ = 0;
  5312. if (s) return 0;
  5313. }
  5314. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5315. int x[] = {25, 17};
  5316. const int *foo = &x[0];
  5317. ++foo;
  5318. }
  5319. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5320. typedef const int *iptr;
  5321. iptr p = 0;
  5322. ++p;
  5323. }
  5324. { /* AIX XL C 1.02.0.0 rejects this saying
  5325. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5326. struct s { int j; const int *ap[3]; };
  5327. struct s *b; b->j = 5;
  5328. }
  5329. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5330. const int foo = 10;
  5331. if (!foo) return 0;
  5332. }
  5333. return !cs[0] && !zero.x;
  5334. #endif
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. if ac_fn_c_try_compile "$LINENO"; then :
  5340. ac_cv_c_const=yes
  5341. else
  5342. ac_cv_c_const=no
  5343. fi
  5344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5345. fi
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5347. $as_echo "$ac_cv_c_const" >&6; }
  5348. if test $ac_cv_c_const = no; then
  5349. $as_echo "#define const /**/" >>confdefs.h
  5350. fi
  5351. # Check for non-broken inline under various spellings
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5353. $as_echo_n "checking for inline... " >&6; }
  5354. ijg_cv_inline=""
  5355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5356. /* end confdefs.h. */
  5357. int
  5358. main ()
  5359. {
  5360. } __inline__ int foo() { return 0; }
  5361. int bar() { return foo();
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. if ac_fn_c_try_compile "$LINENO"; then :
  5367. ijg_cv_inline="__inline__"
  5368. else
  5369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5370. /* end confdefs.h. */
  5371. int
  5372. main ()
  5373. {
  5374. } __inline int foo() { return 0; }
  5375. int bar() { return foo();
  5376. ;
  5377. return 0;
  5378. }
  5379. _ACEOF
  5380. if ac_fn_c_try_compile "$LINENO"; then :
  5381. ijg_cv_inline="__inline"
  5382. else
  5383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5384. /* end confdefs.h. */
  5385. int
  5386. main ()
  5387. {
  5388. } inline int foo() { return 0; }
  5389. int bar() { return foo();
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. if ac_fn_c_try_compile "$LINENO"; then :
  5395. ijg_cv_inline="inline"
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5398. fi
  5399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5400. fi
  5401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
  5403. $as_echo "$ijg_cv_inline" >&6; }
  5404. cat >>confdefs.h <<_ACEOF
  5405. #define INLINE $ijg_cv_inline
  5406. _ACEOF
  5407. # We cannot check for bogus warnings, but at least we can check for errors
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
  5409. $as_echo_n "checking for broken incomplete types... " >&6; }
  5410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5411. /* end confdefs.h. */
  5412. typedef struct undefined_structure * undef_struct_ptr;
  5413. int
  5414. main ()
  5415. {
  5416. ;
  5417. return 0;
  5418. }
  5419. _ACEOF
  5420. if ac_fn_c_try_compile "$LINENO"; then :
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5422. $as_echo "ok" >&6; }
  5423. else
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
  5425. $as_echo "broken" >&6; }
  5426. $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
  5427. fi
  5428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5429. # Test whether global names are unique to at least 15 chars
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
  5431. $as_echo_n "checking for short external names... " >&6; }
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. int possibly_duplicate_function () { return 0; }
  5435. int possibly_dupli_function () { return 1; }
  5436. int
  5437. main ()
  5438. {
  5439. ;
  5440. return 0;
  5441. }
  5442. _ACEOF
  5443. if ac_fn_c_try_link "$LINENO"; then :
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5445. $as_echo "ok" >&6; }
  5446. else
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
  5448. $as_echo "short" >&6; }
  5449. $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
  5450. fi
  5451. rm -f core conftest.err conftest.$ac_objext \
  5452. conftest$ac_exeext conftest.$ac_ext
  5453. # Run-time checks
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
  5455. $as_echo_n "checking to see if char is signed... " >&6; }
  5456. if test "$cross_compiling" = yes; then :
  5457. echo Assuming that char is signed on target machine.
  5458. echo If it is unsigned, this will be a little bit inefficient.
  5459. else
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. #ifdef HAVE_PROTOTYPES
  5463. int is_char_signed (int arg)
  5464. #else
  5465. int is_char_signed (arg)
  5466. int arg;
  5467. #endif
  5468. {
  5469. if (arg == 189) { /* expected result for unsigned char */
  5470. return 0; /* type char is unsigned */
  5471. }
  5472. else if (arg != -67) { /* expected result for signed char */
  5473. printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
  5474. printf("I fear the JPEG software will not work at all.\n\n");
  5475. }
  5476. return 1; /* assume char is signed otherwise */
  5477. }
  5478. char signed_char_check = (char) (-67);
  5479. int main() {
  5480. exit(is_char_signed((int) signed_char_check));
  5481. }
  5482. _ACEOF
  5483. if ac_fn_c_try_run "$LINENO"; then :
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. $as_echo "no" >&6; }
  5486. $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
  5487. else
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5489. $as_echo "yes" >&6; }
  5490. fi
  5491. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5492. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5493. fi
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
  5495. $as_echo_n "checking to see if right shift is signed... " >&6; }
  5496. if test "$cross_compiling" = yes; then :
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
  5498. $as_echo "Assuming that right shift is signed on target machine." >&6; }
  5499. else
  5500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5501. /* end confdefs.h. */
  5502. #ifdef HAVE_PROTOTYPES
  5503. int is_shifting_signed (long arg)
  5504. #else
  5505. int is_shifting_signed (arg)
  5506. long arg;
  5507. #endif
  5508. /* See whether right-shift on a long is signed or not. */
  5509. {
  5510. long res = arg >> 4;
  5511. if (res == -0x7F7E80CL) { /* expected result for signed shift */
  5512. return 1; /* right shift is signed */
  5513. }
  5514. /* see if unsigned-shift hack will fix it. */
  5515. /* we can't just test exact value since it depends on width of long... */
  5516. res |= (~0L) << (32-4);
  5517. if (res == -0x7F7E80CL) { /* expected result now? */
  5518. return 0; /* right shift is unsigned */
  5519. }
  5520. printf("Right shift isn't acting as I expect it to.\n");
  5521. printf("I fear the JPEG software will not work at all.\n\n");
  5522. return 0; /* try it with unsigned anyway */
  5523. }
  5524. int main() {
  5525. exit(is_shifting_signed(-0x7F7E80B1L));
  5526. }
  5527. _ACEOF
  5528. if ac_fn_c_try_run "$LINENO"; then :
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5530. $as_echo "no" >&6; }
  5531. $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
  5532. else
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5534. $as_echo "yes" >&6; }
  5535. fi
  5536. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5537. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5538. fi
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
  5540. $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
  5541. if test "$cross_compiling" = yes; then :
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
  5543. $as_echo "Assuming that it does." >&6; }
  5544. else
  5545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5546. /* end confdefs.h. */
  5547. #include <stdio.h>
  5548. int main() {
  5549. if (fopen("conftestdata", "wb") != NULL)
  5550. exit(0);
  5551. exit(1);
  5552. }
  5553. _ACEOF
  5554. if ac_fn_c_try_run "$LINENO"; then :
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5556. $as_echo "yes" >&6; }
  5557. else
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5559. $as_echo "no" >&6; }
  5560. $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
  5561. fi
  5562. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5563. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5564. fi
  5565. # Configure libtool
  5566. enable_win32_dll=yes
  5567. case $host in
  5568. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  5569. if test -n "$ac_tool_prefix"; then
  5570. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5571. set dummy ${ac_tool_prefix}as; ac_word=$2
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5573. $as_echo_n "checking for $ac_word... " >&6; }
  5574. if test "${ac_cv_prog_AS+set}" = set; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. if test -n "$AS"; then
  5578. ac_cv_prog_AS="$AS" # Let the user override the test.
  5579. else
  5580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5581. for as_dir in $PATH
  5582. do
  5583. IFS=$as_save_IFS
  5584. test -z "$as_dir" && as_dir=.
  5585. for ac_exec_ext in '' $ac_executable_extensions; do
  5586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5587. ac_cv_prog_AS="${ac_tool_prefix}as"
  5588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5589. break 2
  5590. fi
  5591. done
  5592. done
  5593. IFS=$as_save_IFS
  5594. fi
  5595. fi
  5596. AS=$ac_cv_prog_AS
  5597. if test -n "$AS"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5599. $as_echo "$AS" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5602. $as_echo "no" >&6; }
  5603. fi
  5604. fi
  5605. if test -z "$ac_cv_prog_AS"; then
  5606. ac_ct_AS=$AS
  5607. # Extract the first word of "as", so it can be a program name with args.
  5608. set dummy as; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$ac_ct_AS"; then
  5615. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5624. ac_cv_prog_ac_ct_AS="as"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5634. if test -n "$ac_ct_AS"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5636. $as_echo "$ac_ct_AS" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. if test "x$ac_ct_AS" = x; then
  5642. AS="false"
  5643. else
  5644. case $cross_compiling:$ac_tool_warned in
  5645. yes:)
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5648. ac_tool_warned=yes ;;
  5649. esac
  5650. AS=$ac_ct_AS
  5651. fi
  5652. else
  5653. AS="$ac_cv_prog_AS"
  5654. fi
  5655. if test -n "$ac_tool_prefix"; then
  5656. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5657. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$DLLTOOL"; then
  5664. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5673. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. DLLTOOL=$ac_cv_prog_DLLTOOL
  5683. if test -n "$DLLTOOL"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5685. $as_echo "$DLLTOOL" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. fi
  5691. if test -z "$ac_cv_prog_DLLTOOL"; then
  5692. ac_ct_DLLTOOL=$DLLTOOL
  5693. # Extract the first word of "dlltool", so it can be a program name with args.
  5694. set dummy dlltool; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$ac_ct_DLLTOOL"; then
  5701. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5710. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5720. if test -n "$ac_ct_DLLTOOL"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5722. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. if test "x$ac_ct_DLLTOOL" = x; then
  5728. DLLTOOL="false"
  5729. else
  5730. case $cross_compiling:$ac_tool_warned in
  5731. yes:)
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5734. ac_tool_warned=yes ;;
  5735. esac
  5736. DLLTOOL=$ac_ct_DLLTOOL
  5737. fi
  5738. else
  5739. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5740. fi
  5741. if test -n "$ac_tool_prefix"; then
  5742. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5743. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5745. $as_echo_n "checking for $ac_word... " >&6; }
  5746. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if test -n "$OBJDUMP"; then
  5750. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5759. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. OBJDUMP=$ac_cv_prog_OBJDUMP
  5769. if test -n "$OBJDUMP"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5771. $as_echo "$OBJDUMP" >&6; }
  5772. else
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. $as_echo "no" >&6; }
  5775. fi
  5776. fi
  5777. if test -z "$ac_cv_prog_OBJDUMP"; then
  5778. ac_ct_OBJDUMP=$OBJDUMP
  5779. # Extract the first word of "objdump", so it can be a program name with args.
  5780. set dummy objdump; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$ac_ct_OBJDUMP"; then
  5787. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5796. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5806. if test -n "$ac_ct_OBJDUMP"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5808. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. if test "x$ac_ct_OBJDUMP" = x; then
  5814. OBJDUMP="false"
  5815. else
  5816. case $cross_compiling:$ac_tool_warned in
  5817. yes:)
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5820. ac_tool_warned=yes ;;
  5821. esac
  5822. OBJDUMP=$ac_ct_OBJDUMP
  5823. fi
  5824. else
  5825. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5826. fi
  5827. ;;
  5828. esac
  5829. test -z "$AS" && AS=as
  5830. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5831. test -z "$OBJDUMP" && OBJDUMP=objdump
  5832. case `pwd` in
  5833. *\ * | *\ *)
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5835. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5836. esac
  5837. macro_version='2.2.6b'
  5838. macro_revision='1.3017'
  5839. ltmain="$ac_aux_dir/ltmain.sh"
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5841. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5842. if test "${ac_cv_path_SED+set}" = set; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5846. for ac_i in 1 2 3 4 5 6 7; do
  5847. ac_script="$ac_script$as_nl$ac_script"
  5848. done
  5849. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5850. { ac_script=; unset ac_script;}
  5851. if test -z "$SED"; then
  5852. ac_path_SED_found=false
  5853. # Loop through the user's path and test for each of PROGNAME-LIST
  5854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855. for as_dir in $PATH
  5856. do
  5857. IFS=$as_save_IFS
  5858. test -z "$as_dir" && as_dir=.
  5859. for ac_prog in sed gsed; do
  5860. for ac_exec_ext in '' $ac_executable_extensions; do
  5861. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5862. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5863. # Check for GNU ac_path_SED and select it if it is found.
  5864. # Check for GNU $ac_path_SED
  5865. case `"$ac_path_SED" --version 2>&1` in
  5866. *GNU*)
  5867. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5868. *)
  5869. ac_count=0
  5870. $as_echo_n 0123456789 >"conftest.in"
  5871. while :
  5872. do
  5873. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5874. mv "conftest.tmp" "conftest.in"
  5875. cp "conftest.in" "conftest.nl"
  5876. $as_echo '' >> "conftest.nl"
  5877. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5878. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5879. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5880. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5881. # Best one so far, save it but keep looking for a better one
  5882. ac_cv_path_SED="$ac_path_SED"
  5883. ac_path_SED_max=$ac_count
  5884. fi
  5885. # 10*(2^10) chars as input seems more than enough
  5886. test $ac_count -gt 10 && break
  5887. done
  5888. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5889. esac
  5890. $ac_path_SED_found && break 3
  5891. done
  5892. done
  5893. done
  5894. IFS=$as_save_IFS
  5895. if test -z "$ac_cv_path_SED"; then
  5896. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5897. fi
  5898. else
  5899. ac_cv_path_SED=$SED
  5900. fi
  5901. fi
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5903. $as_echo "$ac_cv_path_SED" >&6; }
  5904. SED="$ac_cv_path_SED"
  5905. rm -f conftest.sed
  5906. test -z "$SED" && SED=sed
  5907. Xsed="$SED -e 1s/^X//"
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5909. $as_echo_n "checking for fgrep... " >&6; }
  5910. if test "${ac_cv_path_FGREP+set}" = set; then :
  5911. $as_echo_n "(cached) " >&6
  5912. else
  5913. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5914. then ac_cv_path_FGREP="$GREP -F"
  5915. else
  5916. if test -z "$FGREP"; then
  5917. ac_path_FGREP_found=false
  5918. # Loop through the user's path and test for each of PROGNAME-LIST
  5919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5920. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5921. do
  5922. IFS=$as_save_IFS
  5923. test -z "$as_dir" && as_dir=.
  5924. for ac_prog in fgrep; do
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5927. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5928. # Check for GNU ac_path_FGREP and select it if it is found.
  5929. # Check for GNU $ac_path_FGREP
  5930. case `"$ac_path_FGREP" --version 2>&1` in
  5931. *GNU*)
  5932. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5933. *)
  5934. ac_count=0
  5935. $as_echo_n 0123456789 >"conftest.in"
  5936. while :
  5937. do
  5938. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5939. mv "conftest.tmp" "conftest.in"
  5940. cp "conftest.in" "conftest.nl"
  5941. $as_echo 'FGREP' >> "conftest.nl"
  5942. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5943. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5944. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5945. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5946. # Best one so far, save it but keep looking for a better one
  5947. ac_cv_path_FGREP="$ac_path_FGREP"
  5948. ac_path_FGREP_max=$ac_count
  5949. fi
  5950. # 10*(2^10) chars as input seems more than enough
  5951. test $ac_count -gt 10 && break
  5952. done
  5953. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5954. esac
  5955. $ac_path_FGREP_found && break 3
  5956. done
  5957. done
  5958. done
  5959. IFS=$as_save_IFS
  5960. if test -z "$ac_cv_path_FGREP"; then
  5961. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5962. fi
  5963. else
  5964. ac_cv_path_FGREP=$FGREP
  5965. fi
  5966. fi
  5967. fi
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5969. $as_echo "$ac_cv_path_FGREP" >&6; }
  5970. FGREP="$ac_cv_path_FGREP"
  5971. test -z "$GREP" && GREP=grep
  5972. # Check whether --with-gnu-ld was given.
  5973. if test "${with_gnu_ld+set}" = set; then :
  5974. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5975. else
  5976. with_gnu_ld=no
  5977. fi
  5978. ac_prog=ld
  5979. if test "$GCC" = yes; then
  5980. # Check if gcc -print-prog-name=ld gives a path.
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5982. $as_echo_n "checking for ld used by $CC... " >&6; }
  5983. case $host in
  5984. *-*-mingw*)
  5985. # gcc leaves a trailing carriage return which upsets mingw
  5986. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5987. *)
  5988. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5989. esac
  5990. case $ac_prog in
  5991. # Accept absolute paths.
  5992. [\\/]* | ?:[\\/]*)
  5993. re_direlt='/[^/][^/]*/\.\./'
  5994. # Canonicalize the pathname of ld
  5995. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5996. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5997. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5998. done
  5999. test -z "$LD" && LD="$ac_prog"
  6000. ;;
  6001. "")
  6002. # If it fails, then pretend we aren't using GCC.
  6003. ac_prog=ld
  6004. ;;
  6005. *)
  6006. # If it is relative, then search for the first ld in PATH.
  6007. with_gnu_ld=unknown
  6008. ;;
  6009. esac
  6010. elif test "$with_gnu_ld" = yes; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6012. $as_echo_n "checking for GNU ld... " >&6; }
  6013. else
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6015. $as_echo_n "checking for non-GNU ld... " >&6; }
  6016. fi
  6017. if test "${lt_cv_path_LD+set}" = set; then :
  6018. $as_echo_n "(cached) " >&6
  6019. else
  6020. if test -z "$LD"; then
  6021. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6022. for ac_dir in $PATH; do
  6023. IFS="$lt_save_ifs"
  6024. test -z "$ac_dir" && ac_dir=.
  6025. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6026. lt_cv_path_LD="$ac_dir/$ac_prog"
  6027. # Check to see if the program is GNU ld. I'd rather use --version,
  6028. # but apparently some variants of GNU ld only accept -v.
  6029. # Break only if it was the GNU/non-GNU ld that we prefer.
  6030. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6031. *GNU* | *'with BFD'*)
  6032. test "$with_gnu_ld" != no && break
  6033. ;;
  6034. *)
  6035. test "$with_gnu_ld" != yes && break
  6036. ;;
  6037. esac
  6038. fi
  6039. done
  6040. IFS="$lt_save_ifs"
  6041. else
  6042. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6043. fi
  6044. fi
  6045. LD="$lt_cv_path_LD"
  6046. if test -n "$LD"; then
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6048. $as_echo "$LD" >&6; }
  6049. else
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6051. $as_echo "no" >&6; }
  6052. fi
  6053. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6055. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6056. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6060. case `$LD -v 2>&1 </dev/null` in
  6061. *GNU* | *'with BFD'*)
  6062. lt_cv_prog_gnu_ld=yes
  6063. ;;
  6064. *)
  6065. lt_cv_prog_gnu_ld=no
  6066. ;;
  6067. esac
  6068. fi
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6070. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6071. with_gnu_ld=$lt_cv_prog_gnu_ld
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6073. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6074. if test "${lt_cv_path_NM+set}" = set; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. if test -n "$NM"; then
  6078. # Let the user override the test.
  6079. lt_cv_path_NM="$NM"
  6080. else
  6081. lt_nm_to_check="${ac_tool_prefix}nm"
  6082. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6083. lt_nm_to_check="$lt_nm_to_check nm"
  6084. fi
  6085. for lt_tmp_nm in $lt_nm_to_check; do
  6086. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6087. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6088. IFS="$lt_save_ifs"
  6089. test -z "$ac_dir" && ac_dir=.
  6090. tmp_nm="$ac_dir/$lt_tmp_nm"
  6091. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6092. # Check to see if the nm accepts a BSD-compat flag.
  6093. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6094. # nm: unknown option "B" ignored
  6095. # Tru64's nm complains that /dev/null is an invalid object file
  6096. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6097. */dev/null* | *'Invalid file or object type'*)
  6098. lt_cv_path_NM="$tmp_nm -B"
  6099. break
  6100. ;;
  6101. *)
  6102. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6103. */dev/null*)
  6104. lt_cv_path_NM="$tmp_nm -p"
  6105. break
  6106. ;;
  6107. *)
  6108. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6109. continue # so that we can try to find one that supports BSD flags
  6110. ;;
  6111. esac
  6112. ;;
  6113. esac
  6114. fi
  6115. done
  6116. IFS="$lt_save_ifs"
  6117. done
  6118. : ${lt_cv_path_NM=no}
  6119. fi
  6120. fi
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6122. $as_echo "$lt_cv_path_NM" >&6; }
  6123. if test "$lt_cv_path_NM" != "no"; then
  6124. NM="$lt_cv_path_NM"
  6125. else
  6126. # Didn't find any BSD compatible name lister, look for dumpbin.
  6127. if test -n "$ac_tool_prefix"; then
  6128. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  6129. do
  6130. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6131. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6133. $as_echo_n "checking for $ac_word... " >&6; }
  6134. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. if test -n "$DUMPBIN"; then
  6138. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6139. else
  6140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6141. for as_dir in $PATH
  6142. do
  6143. IFS=$as_save_IFS
  6144. test -z "$as_dir" && as_dir=.
  6145. for ac_exec_ext in '' $ac_executable_extensions; do
  6146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6147. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6149. break 2
  6150. fi
  6151. done
  6152. done
  6153. IFS=$as_save_IFS
  6154. fi
  6155. fi
  6156. DUMPBIN=$ac_cv_prog_DUMPBIN
  6157. if test -n "$DUMPBIN"; then
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6159. $as_echo "$DUMPBIN" >&6; }
  6160. else
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6162. $as_echo "no" >&6; }
  6163. fi
  6164. test -n "$DUMPBIN" && break
  6165. done
  6166. fi
  6167. if test -z "$DUMPBIN"; then
  6168. ac_ct_DUMPBIN=$DUMPBIN
  6169. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  6170. do
  6171. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6172. set dummy $ac_prog; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$ac_ct_DUMPBIN"; then
  6179. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6198. if test -n "$ac_ct_DUMPBIN"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6200. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. test -n "$ac_ct_DUMPBIN" && break
  6206. done
  6207. if test "x$ac_ct_DUMPBIN" = x; then
  6208. DUMPBIN=":"
  6209. else
  6210. case $cross_compiling:$ac_tool_warned in
  6211. yes:)
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6214. ac_tool_warned=yes ;;
  6215. esac
  6216. DUMPBIN=$ac_ct_DUMPBIN
  6217. fi
  6218. fi
  6219. if test "$DUMPBIN" != ":"; then
  6220. NM="$DUMPBIN"
  6221. fi
  6222. fi
  6223. test -z "$NM" && NM=nm
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6225. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6226. if test "${lt_cv_nm_interface+set}" = set; then :
  6227. $as_echo_n "(cached) " >&6
  6228. else
  6229. lt_cv_nm_interface="BSD nm"
  6230. echo "int some_variable = 0;" > conftest.$ac_ext
  6231. (eval echo "\"\$as_me:6952: $ac_compile\"" >&5)
  6232. (eval "$ac_compile" 2>conftest.err)
  6233. cat conftest.err >&5
  6234. (eval echo "\"\$as_me:6955: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6235. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6236. cat conftest.err >&5
  6237. (eval echo "\"\$as_me:6958: output\"" >&5)
  6238. cat conftest.out >&5
  6239. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6240. lt_cv_nm_interface="MS dumpbin"
  6241. fi
  6242. rm -f conftest*
  6243. fi
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6245. $as_echo "$lt_cv_nm_interface" >&6; }
  6246. # find the maximum length of command line arguments
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6248. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6249. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. i=0
  6253. teststring="ABCD"
  6254. case $build_os in
  6255. msdosdjgpp*)
  6256. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6257. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6258. # during glob expansion). Even if it were fixed, the result of this
  6259. # check would be larger than it should be.
  6260. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6261. ;;
  6262. gnu*)
  6263. # Under GNU Hurd, this test is not required because there is
  6264. # no limit to the length of command line arguments.
  6265. # Libtool will interpret -1 as no limit whatsoever
  6266. lt_cv_sys_max_cmd_len=-1;
  6267. ;;
  6268. cygwin* | mingw* | cegcc*)
  6269. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6270. # about 5 minutes as the teststring grows exponentially.
  6271. # Worse, since 9x/ME are not pre-emptively multitasking,
  6272. # you end up with a "frozen" computer, even though with patience
  6273. # the test eventually succeeds (with a max line length of 256k).
  6274. # Instead, let's just punt: use the minimum linelength reported by
  6275. # all of the supported platforms: 8192 (on NT/2K/XP).
  6276. lt_cv_sys_max_cmd_len=8192;
  6277. ;;
  6278. amigaos*)
  6279. # On AmigaOS with pdksh, this test takes hours, literally.
  6280. # So we just punt and use a minimum line length of 8192.
  6281. lt_cv_sys_max_cmd_len=8192;
  6282. ;;
  6283. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6284. # This has been around since 386BSD, at least. Likely further.
  6285. if test -x /sbin/sysctl; then
  6286. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6287. elif test -x /usr/sbin/sysctl; then
  6288. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6289. else
  6290. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6291. fi
  6292. # And add a safety zone
  6293. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6294. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6295. ;;
  6296. interix*)
  6297. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6298. lt_cv_sys_max_cmd_len=196608
  6299. ;;
  6300. osf*)
  6301. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6302. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6303. # nice to cause kernel panics so lets avoid the loop below.
  6304. # First set a reasonable default.
  6305. lt_cv_sys_max_cmd_len=16384
  6306. #
  6307. if test -x /sbin/sysconfig; then
  6308. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6309. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6310. esac
  6311. fi
  6312. ;;
  6313. sco3.2v5*)
  6314. lt_cv_sys_max_cmd_len=102400
  6315. ;;
  6316. sysv5* | sco5v6* | sysv4.2uw2*)
  6317. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6318. if test -n "$kargmax"; then
  6319. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6320. else
  6321. lt_cv_sys_max_cmd_len=32768
  6322. fi
  6323. ;;
  6324. *)
  6325. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6326. if test -n "$lt_cv_sys_max_cmd_len"; then
  6327. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6328. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6329. else
  6330. # Make teststring a little bigger before we do anything with it.
  6331. # a 1K string should be a reasonable start.
  6332. for i in 1 2 3 4 5 6 7 8 ; do
  6333. teststring=$teststring$teststring
  6334. done
  6335. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6336. # If test is not a shell built-in, we'll probably end up computing a
  6337. # maximum length that is only half of the actual maximum length, but
  6338. # we can't tell.
  6339. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  6340. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  6341. test $i != 17 # 1/2 MB should be enough
  6342. do
  6343. i=`expr $i + 1`
  6344. teststring=$teststring$teststring
  6345. done
  6346. # Only check the string length outside the loop.
  6347. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6348. teststring=
  6349. # Add a significant safety factor because C++ compilers can tack on
  6350. # massive amounts of additional arguments before passing them to the
  6351. # linker. It appears as though 1/2 is a usable value.
  6352. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6353. fi
  6354. ;;
  6355. esac
  6356. fi
  6357. if test -n $lt_cv_sys_max_cmd_len ; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6359. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6362. $as_echo "none" >&6; }
  6363. fi
  6364. max_cmd_len=$lt_cv_sys_max_cmd_len
  6365. : ${CP="cp -f"}
  6366. : ${MV="mv -f"}
  6367. : ${RM="rm -f"}
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6369. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6370. # Try some XSI features
  6371. xsi_shell=no
  6372. ( _lt_dummy="a/b/c"
  6373. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6374. = c,a/b,, \
  6375. && eval 'test $(( 1 + 1 )) -eq 2 \
  6376. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6377. && xsi_shell=yes
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6379. $as_echo "$xsi_shell" >&6; }
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6381. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6382. lt_shell_append=no
  6383. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6384. >/dev/null 2>&1 \
  6385. && lt_shell_append=yes
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6387. $as_echo "$lt_shell_append" >&6; }
  6388. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6389. lt_unset=unset
  6390. else
  6391. lt_unset=false
  6392. fi
  6393. # test EBCDIC or ASCII
  6394. case `echo X|tr X '\101'` in
  6395. A) # ASCII based system
  6396. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6397. lt_SP2NL='tr \040 \012'
  6398. lt_NL2SP='tr \015\012 \040\040'
  6399. ;;
  6400. *) # EBCDIC based system
  6401. lt_SP2NL='tr \100 \n'
  6402. lt_NL2SP='tr \r\n \100\100'
  6403. ;;
  6404. esac
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6406. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6407. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. lt_cv_ld_reload_flag='-r'
  6411. fi
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6413. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6414. reload_flag=$lt_cv_ld_reload_flag
  6415. case $reload_flag in
  6416. "" | " "*) ;;
  6417. *) reload_flag=" $reload_flag" ;;
  6418. esac
  6419. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6420. case $host_os in
  6421. darwin*)
  6422. if test "$GCC" = yes; then
  6423. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6424. else
  6425. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6426. fi
  6427. ;;
  6428. esac
  6429. if test -n "$ac_tool_prefix"; then
  6430. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6431. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6433. $as_echo_n "checking for $ac_word... " >&6; }
  6434. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. if test -n "$OBJDUMP"; then
  6438. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6439. else
  6440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6441. for as_dir in $PATH
  6442. do
  6443. IFS=$as_save_IFS
  6444. test -z "$as_dir" && as_dir=.
  6445. for ac_exec_ext in '' $ac_executable_extensions; do
  6446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6447. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6449. break 2
  6450. fi
  6451. done
  6452. done
  6453. IFS=$as_save_IFS
  6454. fi
  6455. fi
  6456. OBJDUMP=$ac_cv_prog_OBJDUMP
  6457. if test -n "$OBJDUMP"; then
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6459. $as_echo "$OBJDUMP" >&6; }
  6460. else
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6462. $as_echo "no" >&6; }
  6463. fi
  6464. fi
  6465. if test -z "$ac_cv_prog_OBJDUMP"; then
  6466. ac_ct_OBJDUMP=$OBJDUMP
  6467. # Extract the first word of "objdump", so it can be a program name with args.
  6468. set dummy objdump; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$ac_ct_OBJDUMP"; then
  6475. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6484. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6494. if test -n "$ac_ct_OBJDUMP"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6496. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. if test "x$ac_ct_OBJDUMP" = x; then
  6502. OBJDUMP="false"
  6503. else
  6504. case $cross_compiling:$ac_tool_warned in
  6505. yes:)
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6508. ac_tool_warned=yes ;;
  6509. esac
  6510. OBJDUMP=$ac_ct_OBJDUMP
  6511. fi
  6512. else
  6513. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6514. fi
  6515. test -z "$OBJDUMP" && OBJDUMP=objdump
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6517. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6518. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  6519. $as_echo_n "(cached) " >&6
  6520. else
  6521. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6522. lt_cv_file_magic_test_file=
  6523. lt_cv_deplibs_check_method='unknown'
  6524. # Need to set the preceding variable on all platforms that support
  6525. # interlibrary dependencies.
  6526. # 'none' -- dependencies not supported.
  6527. # `unknown' -- same as none, but documents that we really don't know.
  6528. # 'pass_all' -- all dependencies passed with no checks.
  6529. # 'test_compile' -- check by making test program.
  6530. # 'file_magic [[regex]]' -- check by looking for files in library path
  6531. # which responds to the $file_magic_cmd with a given extended regex.
  6532. # If you have `file' or equivalent on your system and you're not sure
  6533. # whether `pass_all' will *always* work, you probably want this one.
  6534. case $host_os in
  6535. aix[4-9]*)
  6536. lt_cv_deplibs_check_method=pass_all
  6537. ;;
  6538. beos*)
  6539. lt_cv_deplibs_check_method=pass_all
  6540. ;;
  6541. bsdi[45]*)
  6542. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6543. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6544. lt_cv_file_magic_test_file=/shlib/libc.so
  6545. ;;
  6546. cygwin*)
  6547. # func_win32_libid is a shell function defined in ltmain.sh
  6548. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6549. lt_cv_file_magic_cmd='func_win32_libid'
  6550. ;;
  6551. mingw* | pw32*)
  6552. # Base MSYS/MinGW do not provide the 'file' command needed by
  6553. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6554. # unless we find 'file', for example because we are cross-compiling.
  6555. if ( file / ) >/dev/null 2>&1; then
  6556. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6557. lt_cv_file_magic_cmd='func_win32_libid'
  6558. else
  6559. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6560. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6561. fi
  6562. ;;
  6563. cegcc)
  6564. # use the weaker test based on 'objdump'. See mingw*.
  6565. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6566. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6567. ;;
  6568. darwin* | rhapsody*)
  6569. lt_cv_deplibs_check_method=pass_all
  6570. ;;
  6571. freebsd* | dragonfly*)
  6572. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6573. case $host_cpu in
  6574. i*86 )
  6575. # Not sure whether the presence of OpenBSD here was a mistake.
  6576. # Let's accept both of them until this is cleared up.
  6577. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6578. lt_cv_file_magic_cmd=/usr/bin/file
  6579. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6580. ;;
  6581. esac
  6582. else
  6583. lt_cv_deplibs_check_method=pass_all
  6584. fi
  6585. ;;
  6586. gnu*)
  6587. lt_cv_deplibs_check_method=pass_all
  6588. ;;
  6589. hpux10.20* | hpux11*)
  6590. lt_cv_file_magic_cmd=/usr/bin/file
  6591. case $host_cpu in
  6592. ia64*)
  6593. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6594. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6595. ;;
  6596. hppa*64*)
  6597. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  6598. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6599. ;;
  6600. *)
  6601. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  6602. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6603. ;;
  6604. esac
  6605. ;;
  6606. interix[3-9]*)
  6607. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6608. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6609. ;;
  6610. irix5* | irix6* | nonstopux*)
  6611. case $LD in
  6612. *-32|*"-32 ") libmagic=32-bit;;
  6613. *-n32|*"-n32 ") libmagic=N32;;
  6614. *-64|*"-64 ") libmagic=64-bit;;
  6615. *) libmagic=never-match;;
  6616. esac
  6617. lt_cv_deplibs_check_method=pass_all
  6618. ;;
  6619. # This must be Linux ELF.
  6620. linux* | k*bsd*-gnu)
  6621. lt_cv_deplibs_check_method=pass_all
  6622. ;;
  6623. netbsd*)
  6624. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6625. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6626. else
  6627. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6628. fi
  6629. ;;
  6630. newos6*)
  6631. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6632. lt_cv_file_magic_cmd=/usr/bin/file
  6633. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6634. ;;
  6635. *nto* | *qnx*)
  6636. lt_cv_deplibs_check_method=pass_all
  6637. ;;
  6638. openbsd*)
  6639. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6640. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6641. else
  6642. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6643. fi
  6644. ;;
  6645. osf3* | osf4* | osf5*)
  6646. lt_cv_deplibs_check_method=pass_all
  6647. ;;
  6648. rdos*)
  6649. lt_cv_deplibs_check_method=pass_all
  6650. ;;
  6651. solaris*)
  6652. lt_cv_deplibs_check_method=pass_all
  6653. ;;
  6654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6655. lt_cv_deplibs_check_method=pass_all
  6656. ;;
  6657. sysv4 | sysv4.3*)
  6658. case $host_vendor in
  6659. motorola)
  6660. 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]'
  6661. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6662. ;;
  6663. ncr)
  6664. lt_cv_deplibs_check_method=pass_all
  6665. ;;
  6666. sequent)
  6667. lt_cv_file_magic_cmd='/bin/file'
  6668. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6669. ;;
  6670. sni)
  6671. lt_cv_file_magic_cmd='/bin/file'
  6672. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6673. lt_cv_file_magic_test_file=/lib/libc.so
  6674. ;;
  6675. siemens)
  6676. lt_cv_deplibs_check_method=pass_all
  6677. ;;
  6678. pc)
  6679. lt_cv_deplibs_check_method=pass_all
  6680. ;;
  6681. esac
  6682. ;;
  6683. tpf*)
  6684. lt_cv_deplibs_check_method=pass_all
  6685. ;;
  6686. esac
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6689. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6690. file_magic_cmd=$lt_cv_file_magic_cmd
  6691. deplibs_check_method=$lt_cv_deplibs_check_method
  6692. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6693. if test -n "$ac_tool_prefix"; then
  6694. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6695. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6697. $as_echo_n "checking for $ac_word... " >&6; }
  6698. if test "${ac_cv_prog_AR+set}" = set; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. if test -n "$AR"; then
  6702. ac_cv_prog_AR="$AR" # Let the user override the test.
  6703. else
  6704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6705. for as_dir in $PATH
  6706. do
  6707. IFS=$as_save_IFS
  6708. test -z "$as_dir" && as_dir=.
  6709. for ac_exec_ext in '' $ac_executable_extensions; do
  6710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6711. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6713. break 2
  6714. fi
  6715. done
  6716. done
  6717. IFS=$as_save_IFS
  6718. fi
  6719. fi
  6720. AR=$ac_cv_prog_AR
  6721. if test -n "$AR"; then
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6723. $as_echo "$AR" >&6; }
  6724. else
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6726. $as_echo "no" >&6; }
  6727. fi
  6728. fi
  6729. if test -z "$ac_cv_prog_AR"; then
  6730. ac_ct_AR=$AR
  6731. # Extract the first word of "ar", so it can be a program name with args.
  6732. set dummy ar; ac_word=$2
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6734. $as_echo_n "checking for $ac_word... " >&6; }
  6735. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. if test -n "$ac_ct_AR"; then
  6739. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6740. else
  6741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. for as_dir in $PATH
  6743. do
  6744. IFS=$as_save_IFS
  6745. test -z "$as_dir" && as_dir=.
  6746. for ac_exec_ext in '' $ac_executable_extensions; do
  6747. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6748. ac_cv_prog_ac_ct_AR="ar"
  6749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6750. break 2
  6751. fi
  6752. done
  6753. done
  6754. IFS=$as_save_IFS
  6755. fi
  6756. fi
  6757. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6758. if test -n "$ac_ct_AR"; then
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6760. $as_echo "$ac_ct_AR" >&6; }
  6761. else
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6763. $as_echo "no" >&6; }
  6764. fi
  6765. if test "x$ac_ct_AR" = x; then
  6766. AR="false"
  6767. else
  6768. case $cross_compiling:$ac_tool_warned in
  6769. yes:)
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6772. ac_tool_warned=yes ;;
  6773. esac
  6774. AR=$ac_ct_AR
  6775. fi
  6776. else
  6777. AR="$ac_cv_prog_AR"
  6778. fi
  6779. test -z "$AR" && AR=ar
  6780. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6781. if test -n "$ac_tool_prefix"; then
  6782. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6783. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6785. $as_echo_n "checking for $ac_word... " >&6; }
  6786. if test "${ac_cv_prog_STRIP+set}" = set; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. if test -n "$STRIP"; then
  6790. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6791. else
  6792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6793. for as_dir in $PATH
  6794. do
  6795. IFS=$as_save_IFS
  6796. test -z "$as_dir" && as_dir=.
  6797. for ac_exec_ext in '' $ac_executable_extensions; do
  6798. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6799. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6801. break 2
  6802. fi
  6803. done
  6804. done
  6805. IFS=$as_save_IFS
  6806. fi
  6807. fi
  6808. STRIP=$ac_cv_prog_STRIP
  6809. if test -n "$STRIP"; then
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6811. $as_echo "$STRIP" >&6; }
  6812. else
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6814. $as_echo "no" >&6; }
  6815. fi
  6816. fi
  6817. if test -z "$ac_cv_prog_STRIP"; then
  6818. ac_ct_STRIP=$STRIP
  6819. # Extract the first word of "strip", so it can be a program name with args.
  6820. set dummy strip; ac_word=$2
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6822. $as_echo_n "checking for $ac_word... " >&6; }
  6823. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. if test -n "$ac_ct_STRIP"; then
  6827. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6828. else
  6829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6830. for as_dir in $PATH
  6831. do
  6832. IFS=$as_save_IFS
  6833. test -z "$as_dir" && as_dir=.
  6834. for ac_exec_ext in '' $ac_executable_extensions; do
  6835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6836. ac_cv_prog_ac_ct_STRIP="strip"
  6837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6838. break 2
  6839. fi
  6840. done
  6841. done
  6842. IFS=$as_save_IFS
  6843. fi
  6844. fi
  6845. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6846. if test -n "$ac_ct_STRIP"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6848. $as_echo "$ac_ct_STRIP" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. if test "x$ac_ct_STRIP" = x; then
  6854. STRIP=":"
  6855. else
  6856. case $cross_compiling:$ac_tool_warned in
  6857. yes:)
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6859. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6860. ac_tool_warned=yes ;;
  6861. esac
  6862. STRIP=$ac_ct_STRIP
  6863. fi
  6864. else
  6865. STRIP="$ac_cv_prog_STRIP"
  6866. fi
  6867. test -z "$STRIP" && STRIP=:
  6868. if test -n "$ac_tool_prefix"; then
  6869. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6870. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6872. $as_echo_n "checking for $ac_word... " >&6; }
  6873. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. if test -n "$RANLIB"; then
  6877. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6878. else
  6879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6880. for as_dir in $PATH
  6881. do
  6882. IFS=$as_save_IFS
  6883. test -z "$as_dir" && as_dir=.
  6884. for ac_exec_ext in '' $ac_executable_extensions; do
  6885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6886. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6888. break 2
  6889. fi
  6890. done
  6891. done
  6892. IFS=$as_save_IFS
  6893. fi
  6894. fi
  6895. RANLIB=$ac_cv_prog_RANLIB
  6896. if test -n "$RANLIB"; then
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6898. $as_echo "$RANLIB" >&6; }
  6899. else
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6901. $as_echo "no" >&6; }
  6902. fi
  6903. fi
  6904. if test -z "$ac_cv_prog_RANLIB"; then
  6905. ac_ct_RANLIB=$RANLIB
  6906. # Extract the first word of "ranlib", so it can be a program name with args.
  6907. set dummy ranlib; ac_word=$2
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6909. $as_echo_n "checking for $ac_word... " >&6; }
  6910. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6911. $as_echo_n "(cached) " >&6
  6912. else
  6913. if test -n "$ac_ct_RANLIB"; then
  6914. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6915. else
  6916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6917. for as_dir in $PATH
  6918. do
  6919. IFS=$as_save_IFS
  6920. test -z "$as_dir" && as_dir=.
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6923. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6933. if test -n "$ac_ct_RANLIB"; then
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6935. $as_echo "$ac_ct_RANLIB" >&6; }
  6936. else
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_RANLIB" = x; then
  6941. RANLIB=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. RANLIB=$ac_ct_RANLIB
  6950. fi
  6951. else
  6952. RANLIB="$ac_cv_prog_RANLIB"
  6953. fi
  6954. test -z "$RANLIB" && RANLIB=:
  6955. # Determine commands to create old-style static archives.
  6956. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6957. old_postinstall_cmds='chmod 644 $oldlib'
  6958. old_postuninstall_cmds=
  6959. if test -n "$RANLIB"; then
  6960. case $host_os in
  6961. openbsd*)
  6962. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6963. ;;
  6964. *)
  6965. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6966. ;;
  6967. esac
  6968. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6969. fi
  6970. # If no C compiler was specified, use CC.
  6971. LTCC=${LTCC-"$CC"}
  6972. # If no C compiler flags were specified, use CFLAGS.
  6973. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6974. # Allow CC to be a program name with arguments.
  6975. compiler=$CC
  6976. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6978. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6979. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. # These are sane defaults that work on at least a few old systems.
  6983. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6984. # Character class describing NM global symbol codes.
  6985. symcode='[BCDEGRST]'
  6986. # Regexp to match symbols that can be accessed directly from C.
  6987. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6988. # Define system-specific variables.
  6989. case $host_os in
  6990. aix*)
  6991. symcode='[BCDT]'
  6992. ;;
  6993. cygwin* | mingw* | pw32* | cegcc*)
  6994. symcode='[ABCDGISTW]'
  6995. ;;
  6996. hpux*)
  6997. if test "$host_cpu" = ia64; then
  6998. symcode='[ABCDEGRST]'
  6999. fi
  7000. ;;
  7001. irix* | nonstopux*)
  7002. symcode='[BCDEGRST]'
  7003. ;;
  7004. osf*)
  7005. symcode='[BCDEGQRST]'
  7006. ;;
  7007. solaris*)
  7008. symcode='[BDRT]'
  7009. ;;
  7010. sco3.2v5*)
  7011. symcode='[DT]'
  7012. ;;
  7013. sysv4.2uw2*)
  7014. symcode='[DT]'
  7015. ;;
  7016. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7017. symcode='[ABDT]'
  7018. ;;
  7019. sysv4)
  7020. symcode='[DFNSTU]'
  7021. ;;
  7022. esac
  7023. # If we're using GNU nm, then use its standard symbol codes.
  7024. case `$NM -V 2>&1` in
  7025. *GNU* | *'with BFD'*)
  7026. symcode='[ABCDGIRSTW]' ;;
  7027. esac
  7028. # Transform an extracted symbol line into a proper C declaration.
  7029. # Some systems (esp. on ia64) link data and code symbols differently,
  7030. # so use this general approach.
  7031. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7032. # Transform an extracted symbol line into symbol name and symbol address
  7033. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7034. 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'"
  7035. # Handle CRLF in mingw tool chain
  7036. opt_cr=
  7037. case $build_os in
  7038. mingw*)
  7039. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7040. ;;
  7041. esac
  7042. # Try without a prefix underscore, then with it.
  7043. for ac_symprfx in "" "_"; do
  7044. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7045. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7046. # Write the raw and C identifiers.
  7047. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7048. # Fake it for dumpbin and say T for any non-static function
  7049. # and D for any global variable.
  7050. # Also find C++ and __fastcall symbols from MSVC++,
  7051. # which start with @ or ?.
  7052. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7053. " {last_section=section; section=\$ 3};"\
  7054. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7055. " \$ 0!~/External *\|/{next};"\
  7056. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7057. " {if(hide[section]) next};"\
  7058. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7059. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7060. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7061. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7062. " ' prfx=^$ac_symprfx"
  7063. else
  7064. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7065. fi
  7066. # Check to see that the pipe works correctly.
  7067. pipe_works=no
  7068. rm -f conftest*
  7069. cat > conftest.$ac_ext <<_LT_EOF
  7070. #ifdef __cplusplus
  7071. extern "C" {
  7072. #endif
  7073. char nm_test_var;
  7074. void nm_test_func(void);
  7075. void nm_test_func(void){}
  7076. #ifdef __cplusplus
  7077. }
  7078. #endif
  7079. int main(){nm_test_var='a';nm_test_func();return(0);}
  7080. _LT_EOF
  7081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7082. (eval $ac_compile) 2>&5
  7083. ac_status=$?
  7084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7085. test $ac_status = 0; }; then
  7086. # Now try to grab the symbols.
  7087. nlist=conftest.nm
  7088. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  7089. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7090. ac_status=$?
  7091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7092. test $ac_status = 0; } && test -s "$nlist"; then
  7093. # Try sorting and uniquifying the output.
  7094. if sort "$nlist" | uniq > "$nlist"T; then
  7095. mv -f "$nlist"T "$nlist"
  7096. else
  7097. rm -f "$nlist"T
  7098. fi
  7099. # Make sure that we snagged all the symbols we need.
  7100. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7101. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7102. cat <<_LT_EOF > conftest.$ac_ext
  7103. #ifdef __cplusplus
  7104. extern "C" {
  7105. #endif
  7106. _LT_EOF
  7107. # Now generate the symbol file.
  7108. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7109. cat <<_LT_EOF >> conftest.$ac_ext
  7110. /* The mapping between symbol names and symbols. */
  7111. const struct {
  7112. const char *name;
  7113. void *address;
  7114. }
  7115. lt__PROGRAM__LTX_preloaded_symbols[] =
  7116. {
  7117. { "@PROGRAM@", (void *) 0 },
  7118. _LT_EOF
  7119. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7120. cat <<\_LT_EOF >> conftest.$ac_ext
  7121. {0, (void *) 0}
  7122. };
  7123. /* This works around a problem in FreeBSD linker */
  7124. #ifdef FREEBSD_WORKAROUND
  7125. static const void *lt_preloaded_setup() {
  7126. return lt__PROGRAM__LTX_preloaded_symbols;
  7127. }
  7128. #endif
  7129. #ifdef __cplusplus
  7130. }
  7131. #endif
  7132. _LT_EOF
  7133. # Now try linking the two files.
  7134. mv conftest.$ac_objext conftstm.$ac_objext
  7135. lt_save_LIBS="$LIBS"
  7136. lt_save_CFLAGS="$CFLAGS"
  7137. LIBS="conftstm.$ac_objext"
  7138. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7140. (eval $ac_link) 2>&5
  7141. ac_status=$?
  7142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7143. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7144. pipe_works=yes
  7145. fi
  7146. LIBS="$lt_save_LIBS"
  7147. CFLAGS="$lt_save_CFLAGS"
  7148. else
  7149. echo "cannot find nm_test_func in $nlist" >&5
  7150. fi
  7151. else
  7152. echo "cannot find nm_test_var in $nlist" >&5
  7153. fi
  7154. else
  7155. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7156. fi
  7157. else
  7158. echo "$progname: failed program was:" >&5
  7159. cat conftest.$ac_ext >&5
  7160. fi
  7161. rm -rf conftest* conftst*
  7162. # Do not use the global_symbol_pipe unless it works.
  7163. if test "$pipe_works" = yes; then
  7164. break
  7165. else
  7166. lt_cv_sys_global_symbol_pipe=
  7167. fi
  7168. done
  7169. fi
  7170. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7171. lt_cv_sys_global_symbol_to_cdecl=
  7172. fi
  7173. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7175. $as_echo "failed" >&6; }
  7176. else
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7178. $as_echo "ok" >&6; }
  7179. fi
  7180. # Check whether --enable-libtool-lock was given.
  7181. if test "${enable_libtool_lock+set}" = set; then :
  7182. enableval=$enable_libtool_lock;
  7183. fi
  7184. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7185. # Some flags need to be propagated to the compiler or linker for good
  7186. # libtool support.
  7187. case $host in
  7188. ia64-*-hpux*)
  7189. # Find out which ABI we are using.
  7190. echo 'int i;' > conftest.$ac_ext
  7191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7192. (eval $ac_compile) 2>&5
  7193. ac_status=$?
  7194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7195. test $ac_status = 0; }; then
  7196. case `/usr/bin/file conftest.$ac_objext` in
  7197. *ELF-32*)
  7198. HPUX_IA64_MODE="32"
  7199. ;;
  7200. *ELF-64*)
  7201. HPUX_IA64_MODE="64"
  7202. ;;
  7203. esac
  7204. fi
  7205. rm -rf conftest*
  7206. ;;
  7207. *-*-irix6*)
  7208. # Find out which ABI we are using.
  7209. echo '#line 8149 "configure"' > conftest.$ac_ext
  7210. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7211. (eval $ac_compile) 2>&5
  7212. ac_status=$?
  7213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7214. test $ac_status = 0; }; then
  7215. if test "$lt_cv_prog_gnu_ld" = yes; then
  7216. case `/usr/bin/file conftest.$ac_objext` in
  7217. *32-bit*)
  7218. LD="${LD-ld} -melf32bsmip"
  7219. ;;
  7220. *N32*)
  7221. LD="${LD-ld} -melf32bmipn32"
  7222. ;;
  7223. *64-bit*)
  7224. LD="${LD-ld} -melf64bmip"
  7225. ;;
  7226. esac
  7227. else
  7228. case `/usr/bin/file conftest.$ac_objext` in
  7229. *32-bit*)
  7230. LD="${LD-ld} -32"
  7231. ;;
  7232. *N32*)
  7233. LD="${LD-ld} -n32"
  7234. ;;
  7235. *64-bit*)
  7236. LD="${LD-ld} -64"
  7237. ;;
  7238. esac
  7239. fi
  7240. fi
  7241. rm -rf conftest*
  7242. ;;
  7243. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7244. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7245. # Find out which ABI we are using.
  7246. echo 'int i;' > conftest.$ac_ext
  7247. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7248. (eval $ac_compile) 2>&5
  7249. ac_status=$?
  7250. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7251. test $ac_status = 0; }; then
  7252. case `/usr/bin/file conftest.o` in
  7253. *32-bit*)
  7254. case $host in
  7255. x86_64-*kfreebsd*-gnu)
  7256. LD="${LD-ld} -m elf_i386_fbsd"
  7257. ;;
  7258. x86_64-*linux*)
  7259. LD="${LD-ld} -m elf_i386"
  7260. ;;
  7261. ppc64-*linux*|powerpc64-*linux*)
  7262. LD="${LD-ld} -m elf32ppclinux"
  7263. ;;
  7264. s390x-*linux*)
  7265. LD="${LD-ld} -m elf_s390"
  7266. ;;
  7267. sparc64-*linux*)
  7268. LD="${LD-ld} -m elf32_sparc"
  7269. ;;
  7270. esac
  7271. ;;
  7272. *64-bit*)
  7273. case $host in
  7274. x86_64-*kfreebsd*-gnu)
  7275. LD="${LD-ld} -m elf_x86_64_fbsd"
  7276. ;;
  7277. x86_64-*linux*)
  7278. LD="${LD-ld} -m elf_x86_64"
  7279. ;;
  7280. ppc*-*linux*|powerpc*-*linux*)
  7281. LD="${LD-ld} -m elf64ppc"
  7282. ;;
  7283. s390*-*linux*|s390*-*tpf*)
  7284. LD="${LD-ld} -m elf64_s390"
  7285. ;;
  7286. sparc*-*linux*)
  7287. LD="${LD-ld} -m elf64_sparc"
  7288. ;;
  7289. esac
  7290. ;;
  7291. esac
  7292. fi
  7293. rm -rf conftest*
  7294. ;;
  7295. *-*-sco3.2v5*)
  7296. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7297. SAVE_CFLAGS="$CFLAGS"
  7298. CFLAGS="$CFLAGS -belf"
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7300. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7301. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. ac_ext=c
  7305. ac_cpp='$CPP $CPPFLAGS'
  7306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7310. /* end confdefs.h. */
  7311. int
  7312. main ()
  7313. {
  7314. ;
  7315. return 0;
  7316. }
  7317. _ACEOF
  7318. if ac_fn_c_try_link "$LINENO"; then :
  7319. lt_cv_cc_needs_belf=yes
  7320. else
  7321. lt_cv_cc_needs_belf=no
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext \
  7324. conftest$ac_exeext conftest.$ac_ext
  7325. ac_ext=c
  7326. ac_cpp='$CPP $CPPFLAGS'
  7327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7332. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7333. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7334. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7335. CFLAGS="$SAVE_CFLAGS"
  7336. fi
  7337. ;;
  7338. sparc*-*solaris*)
  7339. # Find out which ABI we are using.
  7340. echo 'int i;' > conftest.$ac_ext
  7341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7342. (eval $ac_compile) 2>&5
  7343. ac_status=$?
  7344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7345. test $ac_status = 0; }; then
  7346. case `/usr/bin/file conftest.o` in
  7347. *64-bit*)
  7348. case $lt_cv_prog_gnu_ld in
  7349. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7350. *)
  7351. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7352. LD="${LD-ld} -64"
  7353. fi
  7354. ;;
  7355. esac
  7356. ;;
  7357. esac
  7358. fi
  7359. rm -rf conftest*
  7360. ;;
  7361. esac
  7362. need_locks="$enable_libtool_lock"
  7363. case $host_os in
  7364. rhapsody* | darwin*)
  7365. if test -n "$ac_tool_prefix"; then
  7366. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7367. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7369. $as_echo_n "checking for $ac_word... " >&6; }
  7370. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. if test -n "$DSYMUTIL"; then
  7374. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7375. else
  7376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7377. for as_dir in $PATH
  7378. do
  7379. IFS=$as_save_IFS
  7380. test -z "$as_dir" && as_dir=.
  7381. for ac_exec_ext in '' $ac_executable_extensions; do
  7382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7383. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7385. break 2
  7386. fi
  7387. done
  7388. done
  7389. IFS=$as_save_IFS
  7390. fi
  7391. fi
  7392. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7393. if test -n "$DSYMUTIL"; then
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7395. $as_echo "$DSYMUTIL" >&6; }
  7396. else
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7398. $as_echo "no" >&6; }
  7399. fi
  7400. fi
  7401. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7402. ac_ct_DSYMUTIL=$DSYMUTIL
  7403. # Extract the first word of "dsymutil", so it can be a program name with args.
  7404. set dummy dsymutil; ac_word=$2
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7406. $as_echo_n "checking for $ac_word... " >&6; }
  7407. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. if test -n "$ac_ct_DSYMUTIL"; then
  7411. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7412. else
  7413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7414. for as_dir in $PATH
  7415. do
  7416. IFS=$as_save_IFS
  7417. test -z "$as_dir" && as_dir=.
  7418. for ac_exec_ext in '' $ac_executable_extensions; do
  7419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7420. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7422. break 2
  7423. fi
  7424. done
  7425. done
  7426. IFS=$as_save_IFS
  7427. fi
  7428. fi
  7429. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7430. if test -n "$ac_ct_DSYMUTIL"; then
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7432. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7433. else
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7435. $as_echo "no" >&6; }
  7436. fi
  7437. if test "x$ac_ct_DSYMUTIL" = x; then
  7438. DSYMUTIL=":"
  7439. else
  7440. case $cross_compiling:$ac_tool_warned in
  7441. yes:)
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7444. ac_tool_warned=yes ;;
  7445. esac
  7446. DSYMUTIL=$ac_ct_DSYMUTIL
  7447. fi
  7448. else
  7449. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7450. fi
  7451. if test -n "$ac_tool_prefix"; then
  7452. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7453. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7455. $as_echo_n "checking for $ac_word... " >&6; }
  7456. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. if test -n "$NMEDIT"; then
  7460. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7461. else
  7462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7463. for as_dir in $PATH
  7464. do
  7465. IFS=$as_save_IFS
  7466. test -z "$as_dir" && as_dir=.
  7467. for ac_exec_ext in '' $ac_executable_extensions; do
  7468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7469. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7471. break 2
  7472. fi
  7473. done
  7474. done
  7475. IFS=$as_save_IFS
  7476. fi
  7477. fi
  7478. NMEDIT=$ac_cv_prog_NMEDIT
  7479. if test -n "$NMEDIT"; then
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7481. $as_echo "$NMEDIT" >&6; }
  7482. else
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7484. $as_echo "no" >&6; }
  7485. fi
  7486. fi
  7487. if test -z "$ac_cv_prog_NMEDIT"; then
  7488. ac_ct_NMEDIT=$NMEDIT
  7489. # Extract the first word of "nmedit", so it can be a program name with args.
  7490. set dummy nmedit; ac_word=$2
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7492. $as_echo_n "checking for $ac_word... " >&6; }
  7493. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  7494. $as_echo_n "(cached) " >&6
  7495. else
  7496. if test -n "$ac_ct_NMEDIT"; then
  7497. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7498. else
  7499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7500. for as_dir in $PATH
  7501. do
  7502. IFS=$as_save_IFS
  7503. test -z "$as_dir" && as_dir=.
  7504. for ac_exec_ext in '' $ac_executable_extensions; do
  7505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7506. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7508. break 2
  7509. fi
  7510. done
  7511. done
  7512. IFS=$as_save_IFS
  7513. fi
  7514. fi
  7515. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7516. if test -n "$ac_ct_NMEDIT"; then
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7518. $as_echo "$ac_ct_NMEDIT" >&6; }
  7519. else
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7521. $as_echo "no" >&6; }
  7522. fi
  7523. if test "x$ac_ct_NMEDIT" = x; then
  7524. NMEDIT=":"
  7525. else
  7526. case $cross_compiling:$ac_tool_warned in
  7527. yes:)
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7530. ac_tool_warned=yes ;;
  7531. esac
  7532. NMEDIT=$ac_ct_NMEDIT
  7533. fi
  7534. else
  7535. NMEDIT="$ac_cv_prog_NMEDIT"
  7536. fi
  7537. if test -n "$ac_tool_prefix"; then
  7538. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7539. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7541. $as_echo_n "checking for $ac_word... " >&6; }
  7542. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7543. $as_echo_n "(cached) " >&6
  7544. else
  7545. if test -n "$LIPO"; then
  7546. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7547. else
  7548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7549. for as_dir in $PATH
  7550. do
  7551. IFS=$as_save_IFS
  7552. test -z "$as_dir" && as_dir=.
  7553. for ac_exec_ext in '' $ac_executable_extensions; do
  7554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7555. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7557. break 2
  7558. fi
  7559. done
  7560. done
  7561. IFS=$as_save_IFS
  7562. fi
  7563. fi
  7564. LIPO=$ac_cv_prog_LIPO
  7565. if test -n "$LIPO"; then
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7567. $as_echo "$LIPO" >&6; }
  7568. else
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. $as_echo "no" >&6; }
  7571. fi
  7572. fi
  7573. if test -z "$ac_cv_prog_LIPO"; then
  7574. ac_ct_LIPO=$LIPO
  7575. # Extract the first word of "lipo", so it can be a program name with args.
  7576. set dummy lipo; ac_word=$2
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7578. $as_echo_n "checking for $ac_word... " >&6; }
  7579. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  7580. $as_echo_n "(cached) " >&6
  7581. else
  7582. if test -n "$ac_ct_LIPO"; then
  7583. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7584. else
  7585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7586. for as_dir in $PATH
  7587. do
  7588. IFS=$as_save_IFS
  7589. test -z "$as_dir" && as_dir=.
  7590. for ac_exec_ext in '' $ac_executable_extensions; do
  7591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7592. ac_cv_prog_ac_ct_LIPO="lipo"
  7593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7594. break 2
  7595. fi
  7596. done
  7597. done
  7598. IFS=$as_save_IFS
  7599. fi
  7600. fi
  7601. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7602. if test -n "$ac_ct_LIPO"; then
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7604. $as_echo "$ac_ct_LIPO" >&6; }
  7605. else
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7607. $as_echo "no" >&6; }
  7608. fi
  7609. if test "x$ac_ct_LIPO" = x; then
  7610. LIPO=":"
  7611. else
  7612. case $cross_compiling:$ac_tool_warned in
  7613. yes:)
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7616. ac_tool_warned=yes ;;
  7617. esac
  7618. LIPO=$ac_ct_LIPO
  7619. fi
  7620. else
  7621. LIPO="$ac_cv_prog_LIPO"
  7622. fi
  7623. if test -n "$ac_tool_prefix"; then
  7624. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7625. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7627. $as_echo_n "checking for $ac_word... " >&6; }
  7628. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  7629. $as_echo_n "(cached) " >&6
  7630. else
  7631. if test -n "$OTOOL"; then
  7632. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7633. else
  7634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7635. for as_dir in $PATH
  7636. do
  7637. IFS=$as_save_IFS
  7638. test -z "$as_dir" && as_dir=.
  7639. for ac_exec_ext in '' $ac_executable_extensions; do
  7640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7641. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7643. break 2
  7644. fi
  7645. done
  7646. done
  7647. IFS=$as_save_IFS
  7648. fi
  7649. fi
  7650. OTOOL=$ac_cv_prog_OTOOL
  7651. if test -n "$OTOOL"; then
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7653. $as_echo "$OTOOL" >&6; }
  7654. else
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7656. $as_echo "no" >&6; }
  7657. fi
  7658. fi
  7659. if test -z "$ac_cv_prog_OTOOL"; then
  7660. ac_ct_OTOOL=$OTOOL
  7661. # Extract the first word of "otool", so it can be a program name with args.
  7662. set dummy otool; ac_word=$2
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7664. $as_echo_n "checking for $ac_word... " >&6; }
  7665. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  7666. $as_echo_n "(cached) " >&6
  7667. else
  7668. if test -n "$ac_ct_OTOOL"; then
  7669. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7670. else
  7671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7672. for as_dir in $PATH
  7673. do
  7674. IFS=$as_save_IFS
  7675. test -z "$as_dir" && as_dir=.
  7676. for ac_exec_ext in '' $ac_executable_extensions; do
  7677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7678. ac_cv_prog_ac_ct_OTOOL="otool"
  7679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7680. break 2
  7681. fi
  7682. done
  7683. done
  7684. IFS=$as_save_IFS
  7685. fi
  7686. fi
  7687. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7688. if test -n "$ac_ct_OTOOL"; then
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7690. $as_echo "$ac_ct_OTOOL" >&6; }
  7691. else
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7693. $as_echo "no" >&6; }
  7694. fi
  7695. if test "x$ac_ct_OTOOL" = x; then
  7696. OTOOL=":"
  7697. else
  7698. case $cross_compiling:$ac_tool_warned in
  7699. yes:)
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7702. ac_tool_warned=yes ;;
  7703. esac
  7704. OTOOL=$ac_ct_OTOOL
  7705. fi
  7706. else
  7707. OTOOL="$ac_cv_prog_OTOOL"
  7708. fi
  7709. if test -n "$ac_tool_prefix"; then
  7710. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7711. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7713. $as_echo_n "checking for $ac_word... " >&6; }
  7714. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  7715. $as_echo_n "(cached) " >&6
  7716. else
  7717. if test -n "$OTOOL64"; then
  7718. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7719. else
  7720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7721. for as_dir in $PATH
  7722. do
  7723. IFS=$as_save_IFS
  7724. test -z "$as_dir" && as_dir=.
  7725. for ac_exec_ext in '' $ac_executable_extensions; do
  7726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7727. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7729. break 2
  7730. fi
  7731. done
  7732. done
  7733. IFS=$as_save_IFS
  7734. fi
  7735. fi
  7736. OTOOL64=$ac_cv_prog_OTOOL64
  7737. if test -n "$OTOOL64"; then
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7739. $as_echo "$OTOOL64" >&6; }
  7740. else
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7742. $as_echo "no" >&6; }
  7743. fi
  7744. fi
  7745. if test -z "$ac_cv_prog_OTOOL64"; then
  7746. ac_ct_OTOOL64=$OTOOL64
  7747. # Extract the first word of "otool64", so it can be a program name with args.
  7748. set dummy otool64; ac_word=$2
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7750. $as_echo_n "checking for $ac_word... " >&6; }
  7751. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. if test -n "$ac_ct_OTOOL64"; then
  7755. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7756. else
  7757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7758. for as_dir in $PATH
  7759. do
  7760. IFS=$as_save_IFS
  7761. test -z "$as_dir" && as_dir=.
  7762. for ac_exec_ext in '' $ac_executable_extensions; do
  7763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7764. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7766. break 2
  7767. fi
  7768. done
  7769. done
  7770. IFS=$as_save_IFS
  7771. fi
  7772. fi
  7773. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7774. if test -n "$ac_ct_OTOOL64"; then
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7776. $as_echo "$ac_ct_OTOOL64" >&6; }
  7777. else
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7779. $as_echo "no" >&6; }
  7780. fi
  7781. if test "x$ac_ct_OTOOL64" = x; then
  7782. OTOOL64=":"
  7783. else
  7784. case $cross_compiling:$ac_tool_warned in
  7785. yes:)
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7788. ac_tool_warned=yes ;;
  7789. esac
  7790. OTOOL64=$ac_ct_OTOOL64
  7791. fi
  7792. else
  7793. OTOOL64="$ac_cv_prog_OTOOL64"
  7794. fi
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7796. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7797. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  7798. $as_echo_n "(cached) " >&6
  7799. else
  7800. lt_cv_apple_cc_single_mod=no
  7801. if test -z "${LT_MULTI_MODULE}"; then
  7802. # By default we will add the -single_module flag. You can override
  7803. # by either setting the environment variable LT_MULTI_MODULE
  7804. # non-empty at configure time, or by adding -multi_module to the
  7805. # link flags.
  7806. rm -rf libconftest.dylib*
  7807. echo "int foo(void){return 1;}" > conftest.c
  7808. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7809. -dynamiclib -Wl,-single_module conftest.c" >&5
  7810. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7811. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7812. _lt_result=$?
  7813. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7814. lt_cv_apple_cc_single_mod=yes
  7815. else
  7816. cat conftest.err >&5
  7817. fi
  7818. rm -rf libconftest.dylib*
  7819. rm -f conftest.*
  7820. fi
  7821. fi
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7823. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7825. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7826. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7827. $as_echo_n "(cached) " >&6
  7828. else
  7829. lt_cv_ld_exported_symbols_list=no
  7830. save_LDFLAGS=$LDFLAGS
  7831. echo "_main" > conftest.sym
  7832. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7834. /* end confdefs.h. */
  7835. int
  7836. main ()
  7837. {
  7838. ;
  7839. return 0;
  7840. }
  7841. _ACEOF
  7842. if ac_fn_c_try_link "$LINENO"; then :
  7843. lt_cv_ld_exported_symbols_list=yes
  7844. else
  7845. lt_cv_ld_exported_symbols_list=no
  7846. fi
  7847. rm -f core conftest.err conftest.$ac_objext \
  7848. conftest$ac_exeext conftest.$ac_ext
  7849. LDFLAGS="$save_LDFLAGS"
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7852. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7853. case $host_os in
  7854. rhapsody* | darwin1.[012])
  7855. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7856. darwin1.*)
  7857. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7858. darwin*) # darwin 5.x on
  7859. # if running on 10.5 or later, the deployment target defaults
  7860. # to the OS version, if on x86, and 10.4, the deployment
  7861. # target defaults to 10.4. Don't you love it?
  7862. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7863. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7864. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7865. 10.[012]*)
  7866. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7867. 10.*)
  7868. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7869. esac
  7870. ;;
  7871. esac
  7872. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7873. _lt_dar_single_mod='$single_module'
  7874. fi
  7875. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7876. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7877. else
  7878. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7879. fi
  7880. if test "$DSYMUTIL" != ":"; then
  7881. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7882. else
  7883. _lt_dsymutil=
  7884. fi
  7885. ;;
  7886. esac
  7887. for ac_header in dlfcn.h
  7888. do :
  7889. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7890. "
  7891. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7892. cat >>confdefs.h <<_ACEOF
  7893. #define HAVE_DLFCN_H 1
  7894. _ACEOF
  7895. fi
  7896. done
  7897. # Set options
  7898. enable_dlopen=no
  7899. # Check whether --enable-shared was given.
  7900. if test "${enable_shared+set}" = set; then :
  7901. enableval=$enable_shared; p=${PACKAGE-default}
  7902. case $enableval in
  7903. yes) enable_shared=yes ;;
  7904. no) enable_shared=no ;;
  7905. *)
  7906. enable_shared=no
  7907. # Look at the argument we got. We use all the common list separators.
  7908. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7909. for pkg in $enableval; do
  7910. IFS="$lt_save_ifs"
  7911. if test "X$pkg" = "X$p"; then
  7912. enable_shared=yes
  7913. fi
  7914. done
  7915. IFS="$lt_save_ifs"
  7916. ;;
  7917. esac
  7918. else
  7919. enable_shared=yes
  7920. fi
  7921. # Check whether --enable-static was given.
  7922. if test "${enable_static+set}" = set; then :
  7923. enableval=$enable_static; p=${PACKAGE-default}
  7924. case $enableval in
  7925. yes) enable_static=yes ;;
  7926. no) enable_static=no ;;
  7927. *)
  7928. enable_static=no
  7929. # Look at the argument we got. We use all the common list separators.
  7930. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7931. for pkg in $enableval; do
  7932. IFS="$lt_save_ifs"
  7933. if test "X$pkg" = "X$p"; then
  7934. enable_static=yes
  7935. fi
  7936. done
  7937. IFS="$lt_save_ifs"
  7938. ;;
  7939. esac
  7940. else
  7941. enable_static=yes
  7942. fi
  7943. # Check whether --with-pic was given.
  7944. if test "${with_pic+set}" = set; then :
  7945. withval=$with_pic; pic_mode="$withval"
  7946. else
  7947. pic_mode=default
  7948. fi
  7949. test -z "$pic_mode" && pic_mode=default
  7950. # Check whether --enable-fast-install was given.
  7951. if test "${enable_fast_install+set}" = set; then :
  7952. enableval=$enable_fast_install; p=${PACKAGE-default}
  7953. case $enableval in
  7954. yes) enable_fast_install=yes ;;
  7955. no) enable_fast_install=no ;;
  7956. *)
  7957. enable_fast_install=no
  7958. # Look at the argument we got. We use all the common list separators.
  7959. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7960. for pkg in $enableval; do
  7961. IFS="$lt_save_ifs"
  7962. if test "X$pkg" = "X$p"; then
  7963. enable_fast_install=yes
  7964. fi
  7965. done
  7966. IFS="$lt_save_ifs"
  7967. ;;
  7968. esac
  7969. else
  7970. enable_fast_install=yes
  7971. fi
  7972. # This can be used to rebuild libtool when needed
  7973. LIBTOOL_DEPS="$ltmain"
  7974. # Always use our own libtool.
  7975. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7976. test -z "$LN_S" && LN_S="ln -s"
  7977. if test -n "${ZSH_VERSION+set}" ; then
  7978. setopt NO_GLOB_SUBST
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7981. $as_echo_n "checking for objdir... " >&6; }
  7982. if test "${lt_cv_objdir+set}" = set; then :
  7983. $as_echo_n "(cached) " >&6
  7984. else
  7985. rm -f .libs 2>/dev/null
  7986. mkdir .libs 2>/dev/null
  7987. if test -d .libs; then
  7988. lt_cv_objdir=.libs
  7989. else
  7990. # MS-DOS does not allow filenames that begin with a dot.
  7991. lt_cv_objdir=_libs
  7992. fi
  7993. rmdir .libs 2>/dev/null
  7994. fi
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7996. $as_echo "$lt_cv_objdir" >&6; }
  7997. objdir=$lt_cv_objdir
  7998. cat >>confdefs.h <<_ACEOF
  7999. #define LT_OBJDIR "$lt_cv_objdir/"
  8000. _ACEOF
  8001. case $host_os in
  8002. aix3*)
  8003. # AIX sometimes has problems with the GCC collect2 program. For some
  8004. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8005. # vanish in a puff of smoke.
  8006. if test "X${COLLECT_NAMES+set}" != Xset; then
  8007. COLLECT_NAMES=
  8008. export COLLECT_NAMES
  8009. fi
  8010. ;;
  8011. esac
  8012. # Sed substitution that helps us do robust quoting. It backslashifies
  8013. # metacharacters that are still active within double-quoted strings.
  8014. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8015. # Same as above, but do not quote variable references.
  8016. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8017. # Sed substitution to delay expansion of an escaped shell variable in a
  8018. # double_quote_subst'ed string.
  8019. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8020. # Sed substitution to delay expansion of an escaped single quote.
  8021. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8022. # Sed substitution to avoid accidental globbing in evaled expressions
  8023. no_glob_subst='s/\*/\\\*/g'
  8024. # Global variables:
  8025. ofile=libtool
  8026. can_build_shared=yes
  8027. # All known linkers require a `.a' archive for static linking (except MSVC,
  8028. # which needs '.lib').
  8029. libext=a
  8030. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8031. old_CC="$CC"
  8032. old_CFLAGS="$CFLAGS"
  8033. # Set sane defaults for various variables
  8034. test -z "$CC" && CC=cc
  8035. test -z "$LTCC" && LTCC=$CC
  8036. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8037. test -z "$LD" && LD=ld
  8038. test -z "$ac_objext" && ac_objext=o
  8039. for cc_temp in $compiler""; do
  8040. case $cc_temp in
  8041. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8042. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8043. \-*) ;;
  8044. *) break;;
  8045. esac
  8046. done
  8047. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8048. # Only perform the check for file, if the check method requires it
  8049. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8050. case $deplibs_check_method in
  8051. file_magic*)
  8052. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8054. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8055. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. case $MAGIC_CMD in
  8059. [\\/*] | ?:[\\/]*)
  8060. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8061. ;;
  8062. *)
  8063. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8064. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8065. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8066. for ac_dir in $ac_dummy; do
  8067. IFS="$lt_save_ifs"
  8068. test -z "$ac_dir" && ac_dir=.
  8069. if test -f $ac_dir/${ac_tool_prefix}file; then
  8070. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8071. if test -n "$file_magic_test_file"; then
  8072. case $deplibs_check_method in
  8073. "file_magic "*)
  8074. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8075. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8076. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8077. $EGREP "$file_magic_regex" > /dev/null; then
  8078. :
  8079. else
  8080. cat <<_LT_EOF 1>&2
  8081. *** Warning: the command libtool uses to detect shared libraries,
  8082. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8083. *** The result is that libtool may fail to recognize shared libraries
  8084. *** as such. This will affect the creation of libtool libraries that
  8085. *** depend on shared libraries, but programs linked with such libtool
  8086. *** libraries will work regardless of this problem. Nevertheless, you
  8087. *** may want to report the problem to your system manager and/or to
  8088. *** [email protected]
  8089. _LT_EOF
  8090. fi ;;
  8091. esac
  8092. fi
  8093. break
  8094. fi
  8095. done
  8096. IFS="$lt_save_ifs"
  8097. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8098. ;;
  8099. esac
  8100. fi
  8101. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8102. if test -n "$MAGIC_CMD"; then
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8104. $as_echo "$MAGIC_CMD" >&6; }
  8105. else
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8107. $as_echo "no" >&6; }
  8108. fi
  8109. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8110. if test -n "$ac_tool_prefix"; then
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8112. $as_echo_n "checking for file... " >&6; }
  8113. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8114. $as_echo_n "(cached) " >&6
  8115. else
  8116. case $MAGIC_CMD in
  8117. [\\/*] | ?:[\\/]*)
  8118. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8119. ;;
  8120. *)
  8121. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8122. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8123. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8124. for ac_dir in $ac_dummy; do
  8125. IFS="$lt_save_ifs"
  8126. test -z "$ac_dir" && ac_dir=.
  8127. if test -f $ac_dir/file; then
  8128. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8129. if test -n "$file_magic_test_file"; then
  8130. case $deplibs_check_method in
  8131. "file_magic "*)
  8132. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8133. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8134. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8135. $EGREP "$file_magic_regex" > /dev/null; then
  8136. :
  8137. else
  8138. cat <<_LT_EOF 1>&2
  8139. *** Warning: the command libtool uses to detect shared libraries,
  8140. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8141. *** The result is that libtool may fail to recognize shared libraries
  8142. *** as such. This will affect the creation of libtool libraries that
  8143. *** depend on shared libraries, but programs linked with such libtool
  8144. *** libraries will work regardless of this problem. Nevertheless, you
  8145. *** may want to report the problem to your system manager and/or to
  8146. *** [email protected]
  8147. _LT_EOF
  8148. fi ;;
  8149. esac
  8150. fi
  8151. break
  8152. fi
  8153. done
  8154. IFS="$lt_save_ifs"
  8155. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8156. ;;
  8157. esac
  8158. fi
  8159. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8160. if test -n "$MAGIC_CMD"; then
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8162. $as_echo "$MAGIC_CMD" >&6; }
  8163. else
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8165. $as_echo "no" >&6; }
  8166. fi
  8167. else
  8168. MAGIC_CMD=:
  8169. fi
  8170. fi
  8171. fi
  8172. ;;
  8173. esac
  8174. # Use C for the default configuration in the libtool script
  8175. lt_save_CC="$CC"
  8176. ac_ext=c
  8177. ac_cpp='$CPP $CPPFLAGS'
  8178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8181. # Source file extension for C test sources.
  8182. ac_ext=c
  8183. # Object file extension for compiled C test sources.
  8184. objext=o
  8185. objext=$objext
  8186. # Code to be used in simple compile tests
  8187. lt_simple_compile_test_code="int some_variable = 0;"
  8188. # Code to be used in simple link tests
  8189. lt_simple_link_test_code='int main(){return(0);}'
  8190. # If no C compiler was specified, use CC.
  8191. LTCC=${LTCC-"$CC"}
  8192. # If no C compiler flags were specified, use CFLAGS.
  8193. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8194. # Allow CC to be a program name with arguments.
  8195. compiler=$CC
  8196. # Save the default compiler, since it gets overwritten when the other
  8197. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8198. compiler_DEFAULT=$CC
  8199. # save warnings/boilerplate of simple test code
  8200. ac_outfile=conftest.$ac_objext
  8201. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8202. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8203. _lt_compiler_boilerplate=`cat conftest.err`
  8204. $RM conftest*
  8205. ac_outfile=conftest.$ac_objext
  8206. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8207. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8208. _lt_linker_boilerplate=`cat conftest.err`
  8209. $RM -r conftest*
  8210. if test -n "$compiler"; then
  8211. lt_prog_compiler_no_builtin_flag=
  8212. if test "$GCC" = yes; then
  8213. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8215. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8216. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  8217. $as_echo_n "(cached) " >&6
  8218. else
  8219. lt_cv_prog_compiler_rtti_exceptions=no
  8220. ac_outfile=conftest.$ac_objext
  8221. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8222. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8223. # Insert the option either (1) after the last *FLAGS variable, or
  8224. # (2) before a word containing "conftest.", or (3) at the end.
  8225. # Note that $ac_compile itself does not contain backslashes and begins
  8226. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8227. # The option is referenced via a variable to avoid confusing sed.
  8228. lt_compile=`echo "$ac_compile" | $SED \
  8229. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8230. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8231. -e 's:$: $lt_compiler_flag:'`
  8232. (eval echo "\"\$as_me:9405: $lt_compile\"" >&5)
  8233. (eval "$lt_compile" 2>conftest.err)
  8234. ac_status=$?
  8235. cat conftest.err >&5
  8236. echo "$as_me:9409: \$? = $ac_status" >&5
  8237. if (exit $ac_status) && test -s "$ac_outfile"; then
  8238. # The compiler can only warn and ignore the option if not recognized
  8239. # So say no if there are warnings other than the usual output.
  8240. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8241. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8242. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8243. lt_cv_prog_compiler_rtti_exceptions=yes
  8244. fi
  8245. fi
  8246. $RM conftest*
  8247. fi
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8249. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8250. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8251. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8252. else
  8253. :
  8254. fi
  8255. fi
  8256. lt_prog_compiler_wl=
  8257. lt_prog_compiler_pic=
  8258. lt_prog_compiler_static=
  8259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8260. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8261. if test "$GCC" = yes; then
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_static='-static'
  8264. case $host_os in
  8265. aix*)
  8266. # All AIX code is PIC.
  8267. if test "$host_cpu" = ia64; then
  8268. # AIX 5 now supports IA64 processor
  8269. lt_prog_compiler_static='-Bstatic'
  8270. fi
  8271. ;;
  8272. amigaos*)
  8273. case $host_cpu in
  8274. powerpc)
  8275. # see comment about AmigaOS4 .so support
  8276. lt_prog_compiler_pic='-fPIC'
  8277. ;;
  8278. m68k)
  8279. # FIXME: we need at least 68020 code to build shared libraries, but
  8280. # adding the `-m68020' flag to GCC prevents building anything better,
  8281. # like `-m68040'.
  8282. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8283. ;;
  8284. esac
  8285. ;;
  8286. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8287. # PIC is the default for these OSes.
  8288. ;;
  8289. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8290. # This hack is so that the source file can tell whether it is being
  8291. # built for inclusion in a dll (and should export symbols for example).
  8292. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8293. # (--disable-auto-import) libraries
  8294. lt_prog_compiler_pic='-DDLL_EXPORT'
  8295. ;;
  8296. darwin* | rhapsody*)
  8297. # PIC is the default on this platform
  8298. # Common symbols not allowed in MH_DYLIB files
  8299. lt_prog_compiler_pic='-fno-common'
  8300. ;;
  8301. hpux*)
  8302. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8303. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8304. # sets the default TLS model and affects inlining.
  8305. case $host_cpu in
  8306. hppa*64*)
  8307. # +Z the default
  8308. ;;
  8309. *)
  8310. lt_prog_compiler_pic='-fPIC'
  8311. ;;
  8312. esac
  8313. ;;
  8314. interix[3-9]*)
  8315. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8316. # Instead, we relocate shared libraries at runtime.
  8317. ;;
  8318. msdosdjgpp*)
  8319. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8320. # on systems that don't support them.
  8321. lt_prog_compiler_can_build_shared=no
  8322. enable_shared=no
  8323. ;;
  8324. *nto* | *qnx*)
  8325. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8326. # it will coredump.
  8327. lt_prog_compiler_pic='-fPIC -shared'
  8328. ;;
  8329. sysv4*MP*)
  8330. if test -d /usr/nec; then
  8331. lt_prog_compiler_pic=-Kconform_pic
  8332. fi
  8333. ;;
  8334. *)
  8335. lt_prog_compiler_pic='-fPIC'
  8336. ;;
  8337. esac
  8338. else
  8339. # PORTME Check for flag to pass linker flags through the system compiler.
  8340. case $host_os in
  8341. aix*)
  8342. lt_prog_compiler_wl='-Wl,'
  8343. if test "$host_cpu" = ia64; then
  8344. # AIX 5 now supports IA64 processor
  8345. lt_prog_compiler_static='-Bstatic'
  8346. else
  8347. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8348. fi
  8349. ;;
  8350. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8351. # This hack is so that the source file can tell whether it is being
  8352. # built for inclusion in a dll (and should export symbols for example).
  8353. lt_prog_compiler_pic='-DDLL_EXPORT'
  8354. ;;
  8355. hpux9* | hpux10* | hpux11*)
  8356. lt_prog_compiler_wl='-Wl,'
  8357. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8358. # not for PA HP-UX.
  8359. case $host_cpu in
  8360. hppa*64*|ia64*)
  8361. # +Z the default
  8362. ;;
  8363. *)
  8364. lt_prog_compiler_pic='+Z'
  8365. ;;
  8366. esac
  8367. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8368. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8369. ;;
  8370. irix5* | irix6* | nonstopux*)
  8371. lt_prog_compiler_wl='-Wl,'
  8372. # PIC (with -KPIC) is the default.
  8373. lt_prog_compiler_static='-non_shared'
  8374. ;;
  8375. linux* | k*bsd*-gnu)
  8376. case $cc_basename in
  8377. # old Intel for x86_64 which still supported -KPIC.
  8378. ecc*)
  8379. lt_prog_compiler_wl='-Wl,'
  8380. lt_prog_compiler_pic='-KPIC'
  8381. lt_prog_compiler_static='-static'
  8382. ;;
  8383. # icc used to be incompatible with GCC.
  8384. # ICC 10 doesn't accept -KPIC any more.
  8385. icc* | ifort*)
  8386. lt_prog_compiler_wl='-Wl,'
  8387. lt_prog_compiler_pic='-fPIC'
  8388. lt_prog_compiler_static='-static'
  8389. ;;
  8390. # Lahey Fortran 8.1.
  8391. lf95*)
  8392. lt_prog_compiler_wl='-Wl,'
  8393. lt_prog_compiler_pic='--shared'
  8394. lt_prog_compiler_static='--static'
  8395. ;;
  8396. pgcc* | pgf77* | pgf90* | pgf95*)
  8397. # Portland Group compilers (*not* the Pentium gcc compiler,
  8398. # which looks to be a dead project)
  8399. lt_prog_compiler_wl='-Wl,'
  8400. lt_prog_compiler_pic='-fpic'
  8401. lt_prog_compiler_static='-Bstatic'
  8402. ;;
  8403. ccc*)
  8404. lt_prog_compiler_wl='-Wl,'
  8405. # All Alpha code is PIC.
  8406. lt_prog_compiler_static='-non_shared'
  8407. ;;
  8408. xl*)
  8409. # IBM XL C 8.0/Fortran 10.1 on PPC
  8410. lt_prog_compiler_wl='-Wl,'
  8411. lt_prog_compiler_pic='-qpic'
  8412. lt_prog_compiler_static='-qstaticlink'
  8413. ;;
  8414. *)
  8415. case `$CC -V 2>&1 | sed 5q` in
  8416. *Sun\ C*)
  8417. # Sun C 5.9
  8418. lt_prog_compiler_pic='-KPIC'
  8419. lt_prog_compiler_static='-Bstatic'
  8420. lt_prog_compiler_wl='-Wl,'
  8421. ;;
  8422. *Sun\ F*)
  8423. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8424. lt_prog_compiler_pic='-KPIC'
  8425. lt_prog_compiler_static='-Bstatic'
  8426. lt_prog_compiler_wl=''
  8427. ;;
  8428. esac
  8429. ;;
  8430. esac
  8431. ;;
  8432. newsos6)
  8433. lt_prog_compiler_pic='-KPIC'
  8434. lt_prog_compiler_static='-Bstatic'
  8435. ;;
  8436. *nto* | *qnx*)
  8437. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8438. # it will coredump.
  8439. lt_prog_compiler_pic='-fPIC -shared'
  8440. ;;
  8441. osf3* | osf4* | osf5*)
  8442. lt_prog_compiler_wl='-Wl,'
  8443. # All OSF/1 code is PIC.
  8444. lt_prog_compiler_static='-non_shared'
  8445. ;;
  8446. rdos*)
  8447. lt_prog_compiler_static='-non_shared'
  8448. ;;
  8449. solaris*)
  8450. lt_prog_compiler_pic='-KPIC'
  8451. lt_prog_compiler_static='-Bstatic'
  8452. case $cc_basename in
  8453. f77* | f90* | f95*)
  8454. lt_prog_compiler_wl='-Qoption ld ';;
  8455. *)
  8456. lt_prog_compiler_wl='-Wl,';;
  8457. esac
  8458. ;;
  8459. sunos4*)
  8460. lt_prog_compiler_wl='-Qoption ld '
  8461. lt_prog_compiler_pic='-PIC'
  8462. lt_prog_compiler_static='-Bstatic'
  8463. ;;
  8464. sysv4 | sysv4.2uw2* | sysv4.3*)
  8465. lt_prog_compiler_wl='-Wl,'
  8466. lt_prog_compiler_pic='-KPIC'
  8467. lt_prog_compiler_static='-Bstatic'
  8468. ;;
  8469. sysv4*MP*)
  8470. if test -d /usr/nec ;then
  8471. lt_prog_compiler_pic='-Kconform_pic'
  8472. lt_prog_compiler_static='-Bstatic'
  8473. fi
  8474. ;;
  8475. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8476. lt_prog_compiler_wl='-Wl,'
  8477. lt_prog_compiler_pic='-KPIC'
  8478. lt_prog_compiler_static='-Bstatic'
  8479. ;;
  8480. unicos*)
  8481. lt_prog_compiler_wl='-Wl,'
  8482. lt_prog_compiler_can_build_shared=no
  8483. ;;
  8484. uts4*)
  8485. lt_prog_compiler_pic='-pic'
  8486. lt_prog_compiler_static='-Bstatic'
  8487. ;;
  8488. *)
  8489. lt_prog_compiler_can_build_shared=no
  8490. ;;
  8491. esac
  8492. fi
  8493. case $host_os in
  8494. # For platforms which do not support PIC, -DPIC is meaningless:
  8495. *djgpp*)
  8496. lt_prog_compiler_pic=
  8497. ;;
  8498. *)
  8499. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8500. ;;
  8501. esac
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8503. $as_echo "$lt_prog_compiler_pic" >&6; }
  8504. #
  8505. # Check to make sure the PIC flag actually works.
  8506. #
  8507. if test -n "$lt_prog_compiler_pic"; then
  8508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8509. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8510. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  8511. $as_echo_n "(cached) " >&6
  8512. else
  8513. lt_cv_prog_compiler_pic_works=no
  8514. ac_outfile=conftest.$ac_objext
  8515. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8516. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8517. # Insert the option either (1) after the last *FLAGS variable, or
  8518. # (2) before a word containing "conftest.", or (3) at the end.
  8519. # Note that $ac_compile itself does not contain backslashes and begins
  8520. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8521. # The option is referenced via a variable to avoid confusing sed.
  8522. lt_compile=`echo "$ac_compile" | $SED \
  8523. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8524. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8525. -e 's:$: $lt_compiler_flag:'`
  8526. (eval echo "\"\$as_me:9744: $lt_compile\"" >&5)
  8527. (eval "$lt_compile" 2>conftest.err)
  8528. ac_status=$?
  8529. cat conftest.err >&5
  8530. echo "$as_me:9748: \$? = $ac_status" >&5
  8531. if (exit $ac_status) && test -s "$ac_outfile"; then
  8532. # The compiler can only warn and ignore the option if not recognized
  8533. # So say no if there are warnings other than the usual output.
  8534. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8535. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8536. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8537. lt_cv_prog_compiler_pic_works=yes
  8538. fi
  8539. fi
  8540. $RM conftest*
  8541. fi
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8543. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8544. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8545. case $lt_prog_compiler_pic in
  8546. "" | " "*) ;;
  8547. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8548. esac
  8549. else
  8550. lt_prog_compiler_pic=
  8551. lt_prog_compiler_can_build_shared=no
  8552. fi
  8553. fi
  8554. #
  8555. # Check to make sure the static flag actually works.
  8556. #
  8557. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8559. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8560. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8561. $as_echo_n "(cached) " >&6
  8562. else
  8563. lt_cv_prog_compiler_static_works=no
  8564. save_LDFLAGS="$LDFLAGS"
  8565. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8566. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8567. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8568. # The linker can only warn and ignore the option if not recognized
  8569. # So say no if there are warnings
  8570. if test -s conftest.err; then
  8571. # Append any errors to the config.log.
  8572. cat conftest.err 1>&5
  8573. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8574. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8575. if diff conftest.exp conftest.er2 >/dev/null; then
  8576. lt_cv_prog_compiler_static_works=yes
  8577. fi
  8578. else
  8579. lt_cv_prog_compiler_static_works=yes
  8580. fi
  8581. fi
  8582. $RM -r conftest*
  8583. LDFLAGS="$save_LDFLAGS"
  8584. fi
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8586. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8587. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8588. :
  8589. else
  8590. lt_prog_compiler_static=
  8591. fi
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8593. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8594. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8595. $as_echo_n "(cached) " >&6
  8596. else
  8597. lt_cv_prog_compiler_c_o=no
  8598. $RM -r conftest 2>/dev/null
  8599. mkdir conftest
  8600. cd conftest
  8601. mkdir out
  8602. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8603. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8604. # Insert the option either (1) after the last *FLAGS variable, or
  8605. # (2) before a word containing "conftest.", or (3) at the end.
  8606. # Note that $ac_compile itself does not contain backslashes and begins
  8607. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8608. lt_compile=`echo "$ac_compile" | $SED \
  8609. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8610. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8611. -e 's:$: $lt_compiler_flag:'`
  8612. (eval echo "\"\$as_me:9849: $lt_compile\"" >&5)
  8613. (eval "$lt_compile" 2>out/conftest.err)
  8614. ac_status=$?
  8615. cat out/conftest.err >&5
  8616. echo "$as_me:9853: \$? = $ac_status" >&5
  8617. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8618. then
  8619. # The compiler can only warn and ignore the option if not recognized
  8620. # So say no if there are warnings
  8621. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8622. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8623. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8624. lt_cv_prog_compiler_c_o=yes
  8625. fi
  8626. fi
  8627. chmod u+w . 2>&5
  8628. $RM conftest*
  8629. # SGI C++ compiler will create directory out/ii_files/ for
  8630. # template instantiation
  8631. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8632. $RM out/* && rmdir out
  8633. cd ..
  8634. $RM -r conftest
  8635. $RM conftest*
  8636. fi
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8638. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8640. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8641. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8642. $as_echo_n "(cached) " >&6
  8643. else
  8644. lt_cv_prog_compiler_c_o=no
  8645. $RM -r conftest 2>/dev/null
  8646. mkdir conftest
  8647. cd conftest
  8648. mkdir out
  8649. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8650. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8651. # Insert the option either (1) after the last *FLAGS variable, or
  8652. # (2) before a word containing "conftest.", or (3) at the end.
  8653. # Note that $ac_compile itself does not contain backslashes and begins
  8654. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8655. lt_compile=`echo "$ac_compile" | $SED \
  8656. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8657. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8658. -e 's:$: $lt_compiler_flag:'`
  8659. (eval echo "\"\$as_me:9904: $lt_compile\"" >&5)
  8660. (eval "$lt_compile" 2>out/conftest.err)
  8661. ac_status=$?
  8662. cat out/conftest.err >&5
  8663. echo "$as_me:9908: \$? = $ac_status" >&5
  8664. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8665. then
  8666. # The compiler can only warn and ignore the option if not recognized
  8667. # So say no if there are warnings
  8668. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8669. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8670. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8671. lt_cv_prog_compiler_c_o=yes
  8672. fi
  8673. fi
  8674. chmod u+w . 2>&5
  8675. $RM conftest*
  8676. # SGI C++ compiler will create directory out/ii_files/ for
  8677. # template instantiation
  8678. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8679. $RM out/* && rmdir out
  8680. cd ..
  8681. $RM -r conftest
  8682. $RM conftest*
  8683. fi
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8685. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8686. hard_links="nottested"
  8687. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8688. # do not overwrite the value of need_locks provided by the user
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8690. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8691. hard_links=yes
  8692. $RM conftest*
  8693. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8694. touch conftest.a
  8695. ln conftest.a conftest.b 2>&5 || hard_links=no
  8696. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8698. $as_echo "$hard_links" >&6; }
  8699. if test "$hard_links" = no; then
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8701. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8702. need_locks=warn
  8703. fi
  8704. else
  8705. need_locks=no
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8708. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8709. runpath_var=
  8710. allow_undefined_flag=
  8711. always_export_symbols=no
  8712. archive_cmds=
  8713. archive_expsym_cmds=
  8714. compiler_needs_object=no
  8715. enable_shared_with_static_runtimes=no
  8716. export_dynamic_flag_spec=
  8717. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8718. hardcode_automatic=no
  8719. hardcode_direct=no
  8720. hardcode_direct_absolute=no
  8721. hardcode_libdir_flag_spec=
  8722. hardcode_libdir_flag_spec_ld=
  8723. hardcode_libdir_separator=
  8724. hardcode_minus_L=no
  8725. hardcode_shlibpath_var=unsupported
  8726. inherit_rpath=no
  8727. link_all_deplibs=unknown
  8728. module_cmds=
  8729. module_expsym_cmds=
  8730. old_archive_from_new_cmds=
  8731. old_archive_from_expsyms_cmds=
  8732. thread_safe_flag_spec=
  8733. whole_archive_flag_spec=
  8734. # include_expsyms should be a list of space-separated symbols to be *always*
  8735. # included in the symbol list
  8736. include_expsyms=
  8737. # exclude_expsyms can be an extended regexp of symbols to exclude
  8738. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8739. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8740. # as well as any symbol that contains `d'.
  8741. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8742. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8743. # platforms (ab)use it in PIC code, but their linkers get confused if
  8744. # the symbol is explicitly referenced. Since portable code cannot
  8745. # rely on this symbol name, it's probably fine to never include it in
  8746. # preloaded symbol tables.
  8747. # Exclude shared library initialization/finalization symbols.
  8748. extract_expsyms_cmds=
  8749. case $host_os in
  8750. cygwin* | mingw* | pw32* | cegcc*)
  8751. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8752. # When not using gcc, we currently assume that we are using
  8753. # Microsoft Visual C++.
  8754. if test "$GCC" != yes; then
  8755. with_gnu_ld=no
  8756. fi
  8757. ;;
  8758. interix*)
  8759. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8760. with_gnu_ld=yes
  8761. ;;
  8762. openbsd*)
  8763. with_gnu_ld=no
  8764. ;;
  8765. esac
  8766. ld_shlibs=yes
  8767. if test "$with_gnu_ld" = yes; then
  8768. # If archive_cmds runs LD, not CC, wlarc should be empty
  8769. wlarc='${wl}'
  8770. # Set some defaults for GNU ld with shared library support. These
  8771. # are reset later if shared libraries are not supported. Putting them
  8772. # here allows them to be overridden if necessary.
  8773. runpath_var=LD_RUN_PATH
  8774. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8775. export_dynamic_flag_spec='${wl}--export-dynamic'
  8776. # ancient GNU ld didn't support --whole-archive et. al.
  8777. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8778. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8779. else
  8780. whole_archive_flag_spec=
  8781. fi
  8782. supports_anon_versioning=no
  8783. case `$LD -v 2>&1` in
  8784. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8785. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8786. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8787. *\ 2.11.*) ;; # other 2.11 versions
  8788. *) supports_anon_versioning=yes ;;
  8789. esac
  8790. # See if GNU ld supports shared libraries.
  8791. case $host_os in
  8792. aix[3-9]*)
  8793. # On AIX/PPC, the GNU linker is very broken
  8794. if test "$host_cpu" != ia64; then
  8795. ld_shlibs=no
  8796. cat <<_LT_EOF 1>&2
  8797. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8798. *** to be unable to reliably create shared libraries on AIX.
  8799. *** Therefore, libtool is disabling shared libraries support. If you
  8800. *** really care for shared libraries, you may want to modify your PATH
  8801. *** so that a non-GNU linker is found, and then restart.
  8802. _LT_EOF
  8803. fi
  8804. ;;
  8805. amigaos*)
  8806. case $host_cpu in
  8807. powerpc)
  8808. # see comment about AmigaOS4 .so support
  8809. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8810. archive_expsym_cmds=''
  8811. ;;
  8812. m68k)
  8813. 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)'
  8814. hardcode_libdir_flag_spec='-L$libdir'
  8815. hardcode_minus_L=yes
  8816. ;;
  8817. esac
  8818. ;;
  8819. beos*)
  8820. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8821. allow_undefined_flag=unsupported
  8822. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8823. # support --undefined. This deserves some investigation. FIXME
  8824. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8825. else
  8826. ld_shlibs=no
  8827. fi
  8828. ;;
  8829. cygwin* | mingw* | pw32* | cegcc*)
  8830. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8831. # as there is no search path for DLLs.
  8832. hardcode_libdir_flag_spec='-L$libdir'
  8833. allow_undefined_flag=unsupported
  8834. always_export_symbols=no
  8835. enable_shared_with_static_runtimes=yes
  8836. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8837. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8839. # If the export-symbols file already is a .def file (1st line
  8840. # is EXPORTS), use it as is; otherwise, prepend...
  8841. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8842. cp $export_symbols $output_objdir/$soname.def;
  8843. else
  8844. echo EXPORTS > $output_objdir/$soname.def;
  8845. cat $export_symbols >> $output_objdir/$soname.def;
  8846. fi~
  8847. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8848. else
  8849. ld_shlibs=no
  8850. fi
  8851. ;;
  8852. interix[3-9]*)
  8853. hardcode_direct=no
  8854. hardcode_shlibpath_var=no
  8855. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8856. export_dynamic_flag_spec='${wl}-E'
  8857. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8858. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8859. # default) and relocated if they conflict, which is a slow very memory
  8860. # consuming and fragmenting process. To avoid this, we pick a random,
  8861. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8862. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8863. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8864. 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'
  8865. ;;
  8866. gnu* | linux* | tpf* | k*bsd*-gnu)
  8867. tmp_diet=no
  8868. if test "$host_os" = linux-dietlibc; then
  8869. case $cc_basename in
  8870. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8871. esac
  8872. fi
  8873. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8874. && test "$tmp_diet" = no
  8875. then
  8876. tmp_addflag=
  8877. tmp_sharedflag='-shared'
  8878. case $cc_basename,$host_cpu in
  8879. pgcc*) # Portland Group C compiler
  8880. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8881. tmp_addflag=' $pic_flag'
  8882. ;;
  8883. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8884. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8885. tmp_addflag=' $pic_flag -Mnomain' ;;
  8886. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8887. tmp_addflag=' -i_dynamic' ;;
  8888. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8889. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8890. ifc* | ifort*) # Intel Fortran compiler
  8891. tmp_addflag=' -nofor_main' ;;
  8892. lf95*) # Lahey Fortran 8.1
  8893. whole_archive_flag_spec=
  8894. tmp_sharedflag='--shared' ;;
  8895. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8896. tmp_sharedflag='-qmkshrobj'
  8897. tmp_addflag= ;;
  8898. esac
  8899. case `$CC -V 2>&1 | sed 5q` in
  8900. *Sun\ C*) # Sun C 5.9
  8901. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8902. compiler_needs_object=yes
  8903. tmp_sharedflag='-G' ;;
  8904. *Sun\ F*) # Sun Fortran 8.3
  8905. tmp_sharedflag='-G' ;;
  8906. esac
  8907. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8908. if test "x$supports_anon_versioning" = xyes; then
  8909. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8910. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8911. echo "local: *; };" >> $output_objdir/$libname.ver~
  8912. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8913. fi
  8914. case $cc_basename in
  8915. xlf*)
  8916. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8917. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8918. hardcode_libdir_flag_spec=
  8919. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8920. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8921. if test "x$supports_anon_versioning" = xyes; then
  8922. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8923. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8924. echo "local: *; };" >> $output_objdir/$libname.ver~
  8925. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8926. fi
  8927. ;;
  8928. esac
  8929. else
  8930. ld_shlibs=no
  8931. fi
  8932. ;;
  8933. netbsd*)
  8934. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8935. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8936. wlarc=
  8937. else
  8938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8939. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8940. fi
  8941. ;;
  8942. solaris*)
  8943. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8944. ld_shlibs=no
  8945. cat <<_LT_EOF 1>&2
  8946. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8947. *** create shared libraries on Solaris systems. Therefore, libtool
  8948. *** is disabling shared libraries support. We urge you to upgrade GNU
  8949. *** binutils to release 2.9.1 or newer. Another option is to modify
  8950. *** your PATH or compiler configuration so that the native linker is
  8951. *** used, and then restart.
  8952. _LT_EOF
  8953. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8955. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8956. else
  8957. ld_shlibs=no
  8958. fi
  8959. ;;
  8960. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8961. case `$LD -v 2>&1` in
  8962. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8963. ld_shlibs=no
  8964. cat <<_LT_EOF 1>&2
  8965. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8966. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8967. *** is disabling shared libraries support. We urge you to upgrade GNU
  8968. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8969. *** your PATH or compiler configuration so that the native linker is
  8970. *** used, and then restart.
  8971. _LT_EOF
  8972. ;;
  8973. *)
  8974. # For security reasons, it is highly recommended that you always
  8975. # use absolute paths for naming shared libraries, and exclude the
  8976. # DT_RUNPATH tag from executables and libraries. But doing so
  8977. # requires that you compile everything twice, which is a pain.
  8978. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8979. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8980. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8981. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8982. else
  8983. ld_shlibs=no
  8984. fi
  8985. ;;
  8986. esac
  8987. ;;
  8988. sunos4*)
  8989. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8990. wlarc=
  8991. hardcode_direct=yes
  8992. hardcode_shlibpath_var=no
  8993. ;;
  8994. *)
  8995. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8997. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8998. else
  8999. ld_shlibs=no
  9000. fi
  9001. ;;
  9002. esac
  9003. if test "$ld_shlibs" = no; then
  9004. runpath_var=
  9005. hardcode_libdir_flag_spec=
  9006. export_dynamic_flag_spec=
  9007. whole_archive_flag_spec=
  9008. fi
  9009. else
  9010. # PORTME fill in a description of your system's linker (not GNU ld)
  9011. case $host_os in
  9012. aix3*)
  9013. allow_undefined_flag=unsupported
  9014. always_export_symbols=yes
  9015. 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'
  9016. # Note: this linker hardcodes the directories in LIBPATH if there
  9017. # are no directories specified by -L.
  9018. hardcode_minus_L=yes
  9019. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9020. # Neither direct hardcoding nor static linking is supported with a
  9021. # broken collect2.
  9022. hardcode_direct=unsupported
  9023. fi
  9024. ;;
  9025. aix[4-9]*)
  9026. if test "$host_cpu" = ia64; then
  9027. # On IA64, the linker does run time linking by default, so we don't
  9028. # have to do anything special.
  9029. aix_use_runtimelinking=no
  9030. exp_sym_flag='-Bexport'
  9031. no_entry_flag=""
  9032. else
  9033. # If we're using GNU nm, then we don't want the "-C" option.
  9034. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9035. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9036. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  9037. else
  9038. 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'
  9039. fi
  9040. aix_use_runtimelinking=no
  9041. # Test if we are trying to use run time linking or normal
  9042. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9043. # need to do runtime linking.
  9044. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9045. for ld_flag in $LDFLAGS; do
  9046. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9047. aix_use_runtimelinking=yes
  9048. break
  9049. fi
  9050. done
  9051. ;;
  9052. esac
  9053. exp_sym_flag='-bexport'
  9054. no_entry_flag='-bnoentry'
  9055. fi
  9056. # When large executables or shared objects are built, AIX ld can
  9057. # have problems creating the table of contents. If linking a library
  9058. # or program results in "error TOC overflow" add -mminimal-toc to
  9059. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9060. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9061. archive_cmds=''
  9062. hardcode_direct=yes
  9063. hardcode_direct_absolute=yes
  9064. hardcode_libdir_separator=':'
  9065. link_all_deplibs=yes
  9066. file_list_spec='${wl}-f,'
  9067. if test "$GCC" = yes; then
  9068. case $host_os in aix4.[012]|aix4.[012].*)
  9069. # We only want to do this on AIX 4.2 and lower, the check
  9070. # below for broken collect2 doesn't work under 4.3+
  9071. collect2name=`${CC} -print-prog-name=collect2`
  9072. if test -f "$collect2name" &&
  9073. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9074. then
  9075. # We have reworked collect2
  9076. :
  9077. else
  9078. # We have old collect2
  9079. hardcode_direct=unsupported
  9080. # It fails to find uninstalled libraries when the uninstalled
  9081. # path is not listed in the libpath. Setting hardcode_minus_L
  9082. # to unsupported forces relinking
  9083. hardcode_minus_L=yes
  9084. hardcode_libdir_flag_spec='-L$libdir'
  9085. hardcode_libdir_separator=
  9086. fi
  9087. ;;
  9088. esac
  9089. shared_flag='-shared'
  9090. if test "$aix_use_runtimelinking" = yes; then
  9091. shared_flag="$shared_flag "'${wl}-G'
  9092. fi
  9093. else
  9094. # not using gcc
  9095. if test "$host_cpu" = ia64; then
  9096. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9097. # chokes on -Wl,-G. The following line is correct:
  9098. shared_flag='-G'
  9099. else
  9100. if test "$aix_use_runtimelinking" = yes; then
  9101. shared_flag='${wl}-G'
  9102. else
  9103. shared_flag='${wl}-bM:SRE'
  9104. fi
  9105. fi
  9106. fi
  9107. export_dynamic_flag_spec='${wl}-bexpall'
  9108. # It seems that -bexpall does not export symbols beginning with
  9109. # underscore (_), so it is better to generate a list of symbols to export.
  9110. always_export_symbols=yes
  9111. if test "$aix_use_runtimelinking" = yes; then
  9112. # Warning - without using the other runtime loading flags (-brtl),
  9113. # -berok will link without error, but may produce a broken library.
  9114. allow_undefined_flag='-berok'
  9115. # Determine the default libpath from the value encoded in an
  9116. # empty executable.
  9117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9118. /* end confdefs.h. */
  9119. int
  9120. main ()
  9121. {
  9122. ;
  9123. return 0;
  9124. }
  9125. _ACEOF
  9126. if ac_fn_c_try_link "$LINENO"; then :
  9127. lt_aix_libpath_sed='
  9128. /Import File Strings/,/^$/ {
  9129. /^0/ {
  9130. s/^0 *\(.*\)$/\1/
  9131. p
  9132. }
  9133. }'
  9134. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9135. # Check for a 64-bit object if we didn't find anything.
  9136. if test -z "$aix_libpath"; then
  9137. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9138. fi
  9139. fi
  9140. rm -f core conftest.err conftest.$ac_objext \
  9141. conftest$ac_exeext conftest.$ac_ext
  9142. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9143. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9144. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9145. else
  9146. if test "$host_cpu" = ia64; then
  9147. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9148. allow_undefined_flag="-z nodefs"
  9149. 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"
  9150. else
  9151. # Determine the default libpath from the value encoded in an
  9152. # empty executable.
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. int
  9156. main ()
  9157. {
  9158. ;
  9159. return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_link "$LINENO"; then :
  9163. lt_aix_libpath_sed='
  9164. /Import File Strings/,/^$/ {
  9165. /^0/ {
  9166. s/^0 *\(.*\)$/\1/
  9167. p
  9168. }
  9169. }'
  9170. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9171. # Check for a 64-bit object if we didn't find anything.
  9172. if test -z "$aix_libpath"; then
  9173. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9174. fi
  9175. fi
  9176. rm -f core conftest.err conftest.$ac_objext \
  9177. conftest$ac_exeext conftest.$ac_ext
  9178. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9179. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9180. # Warning - without using the other run time loading flags,
  9181. # -berok will link without error, but may produce a broken library.
  9182. no_undefined_flag=' ${wl}-bernotok'
  9183. allow_undefined_flag=' ${wl}-berok'
  9184. # Exported symbols can be pulled into shared objects from archives
  9185. whole_archive_flag_spec='$convenience'
  9186. archive_cmds_need_lc=yes
  9187. # This is similar to how AIX traditionally builds its shared libraries.
  9188. 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'
  9189. fi
  9190. fi
  9191. ;;
  9192. amigaos*)
  9193. case $host_cpu in
  9194. powerpc)
  9195. # see comment about AmigaOS4 .so support
  9196. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9197. archive_expsym_cmds=''
  9198. ;;
  9199. m68k)
  9200. 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)'
  9201. hardcode_libdir_flag_spec='-L$libdir'
  9202. hardcode_minus_L=yes
  9203. ;;
  9204. esac
  9205. ;;
  9206. bsdi[45]*)
  9207. export_dynamic_flag_spec=-rdynamic
  9208. ;;
  9209. cygwin* | mingw* | pw32* | cegcc*)
  9210. # When not using gcc, we currently assume that we are using
  9211. # Microsoft Visual C++.
  9212. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9213. # no search path for DLLs.
  9214. hardcode_libdir_flag_spec=' '
  9215. allow_undefined_flag=unsupported
  9216. # Tell ltmain to make .lib files, not .a files.
  9217. libext=lib
  9218. # Tell ltmain to make .dll files, not .so files.
  9219. shrext_cmds=".dll"
  9220. # FIXME: Setting linknames here is a bad hack.
  9221. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9222. # The linker will automatically build a .lib file if we build a DLL.
  9223. old_archive_from_new_cmds='true'
  9224. # FIXME: Should let the user specify the lib program.
  9225. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9226. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9227. enable_shared_with_static_runtimes=yes
  9228. ;;
  9229. darwin* | rhapsody*)
  9230. archive_cmds_need_lc=no
  9231. hardcode_direct=no
  9232. hardcode_automatic=yes
  9233. hardcode_shlibpath_var=unsupported
  9234. whole_archive_flag_spec=''
  9235. link_all_deplibs=yes
  9236. allow_undefined_flag="$_lt_dar_allow_undefined"
  9237. case $cc_basename in
  9238. ifort*) _lt_dar_can_shared=yes ;;
  9239. *) _lt_dar_can_shared=$GCC ;;
  9240. esac
  9241. if test "$_lt_dar_can_shared" = "yes"; then
  9242. output_verbose_link_cmd=echo
  9243. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9244. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9245. 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}"
  9246. 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}"
  9247. else
  9248. ld_shlibs=no
  9249. fi
  9250. ;;
  9251. dgux*)
  9252. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9253. hardcode_libdir_flag_spec='-L$libdir'
  9254. hardcode_shlibpath_var=no
  9255. ;;
  9256. freebsd1*)
  9257. ld_shlibs=no
  9258. ;;
  9259. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9260. # support. Future versions do this automatically, but an explicit c++rt0.o
  9261. # does not break anything, and helps significantly (at the cost of a little
  9262. # extra space).
  9263. freebsd2.2*)
  9264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9265. hardcode_libdir_flag_spec='-R$libdir'
  9266. hardcode_direct=yes
  9267. hardcode_shlibpath_var=no
  9268. ;;
  9269. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9270. freebsd2*)
  9271. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9272. hardcode_direct=yes
  9273. hardcode_minus_L=yes
  9274. hardcode_shlibpath_var=no
  9275. ;;
  9276. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9277. freebsd* | dragonfly*)
  9278. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9279. hardcode_libdir_flag_spec='-R$libdir'
  9280. hardcode_direct=yes
  9281. hardcode_shlibpath_var=no
  9282. ;;
  9283. hpux9*)
  9284. if test "$GCC" = yes; then
  9285. 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'
  9286. else
  9287. 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'
  9288. fi
  9289. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9290. hardcode_libdir_separator=:
  9291. hardcode_direct=yes
  9292. # hardcode_minus_L: Not really in the search PATH,
  9293. # but as the default location of the library.
  9294. hardcode_minus_L=yes
  9295. export_dynamic_flag_spec='${wl}-E'
  9296. ;;
  9297. hpux10*)
  9298. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9299. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9300. else
  9301. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9302. fi
  9303. if test "$with_gnu_ld" = no; then
  9304. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9305. hardcode_libdir_flag_spec_ld='+b $libdir'
  9306. hardcode_libdir_separator=:
  9307. hardcode_direct=yes
  9308. hardcode_direct_absolute=yes
  9309. export_dynamic_flag_spec='${wl}-E'
  9310. # hardcode_minus_L: Not really in the search PATH,
  9311. # but as the default location of the library.
  9312. hardcode_minus_L=yes
  9313. fi
  9314. ;;
  9315. hpux11*)
  9316. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9317. case $host_cpu in
  9318. hppa*64*)
  9319. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9320. ;;
  9321. ia64*)
  9322. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9323. ;;
  9324. *)
  9325. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9326. ;;
  9327. esac
  9328. else
  9329. case $host_cpu in
  9330. hppa*64*)
  9331. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9332. ;;
  9333. ia64*)
  9334. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9335. ;;
  9336. *)
  9337. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9338. ;;
  9339. esac
  9340. fi
  9341. if test "$with_gnu_ld" = no; then
  9342. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9343. hardcode_libdir_separator=:
  9344. case $host_cpu in
  9345. hppa*64*|ia64*)
  9346. hardcode_direct=no
  9347. hardcode_shlibpath_var=no
  9348. ;;
  9349. *)
  9350. hardcode_direct=yes
  9351. hardcode_direct_absolute=yes
  9352. export_dynamic_flag_spec='${wl}-E'
  9353. # hardcode_minus_L: Not really in the search PATH,
  9354. # but as the default location of the library.
  9355. hardcode_minus_L=yes
  9356. ;;
  9357. esac
  9358. fi
  9359. ;;
  9360. irix5* | irix6* | nonstopux*)
  9361. if test "$GCC" = yes; then
  9362. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9363. # Try to use the -exported_symbol ld option, if it does not
  9364. # work, assume that -exports_file does not work either and
  9365. # implicitly export all symbols.
  9366. save_LDFLAGS="$LDFLAGS"
  9367. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9369. /* end confdefs.h. */
  9370. int foo(void) {}
  9371. _ACEOF
  9372. if ac_fn_c_try_link "$LINENO"; then :
  9373. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LDFLAGS="$save_LDFLAGS"
  9378. else
  9379. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9380. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9381. fi
  9382. archive_cmds_need_lc='no'
  9383. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9384. hardcode_libdir_separator=:
  9385. inherit_rpath=yes
  9386. link_all_deplibs=yes
  9387. ;;
  9388. netbsd*)
  9389. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9390. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9391. else
  9392. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9393. fi
  9394. hardcode_libdir_flag_spec='-R$libdir'
  9395. hardcode_direct=yes
  9396. hardcode_shlibpath_var=no
  9397. ;;
  9398. newsos6)
  9399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9400. hardcode_direct=yes
  9401. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9402. hardcode_libdir_separator=:
  9403. hardcode_shlibpath_var=no
  9404. ;;
  9405. *nto* | *qnx*)
  9406. ;;
  9407. openbsd*)
  9408. if test -f /usr/libexec/ld.so; then
  9409. hardcode_direct=yes
  9410. hardcode_shlibpath_var=no
  9411. hardcode_direct_absolute=yes
  9412. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9413. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9414. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9415. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9416. export_dynamic_flag_spec='${wl}-E'
  9417. else
  9418. case $host_os in
  9419. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9420. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9421. hardcode_libdir_flag_spec='-R$libdir'
  9422. ;;
  9423. *)
  9424. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9425. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9426. ;;
  9427. esac
  9428. fi
  9429. else
  9430. ld_shlibs=no
  9431. fi
  9432. ;;
  9433. os2*)
  9434. hardcode_libdir_flag_spec='-L$libdir'
  9435. hardcode_minus_L=yes
  9436. allow_undefined_flag=unsupported
  9437. 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'
  9438. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9439. ;;
  9440. osf3*)
  9441. if test "$GCC" = yes; then
  9442. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9443. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9444. else
  9445. allow_undefined_flag=' -expect_unresolved \*'
  9446. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9447. fi
  9448. archive_cmds_need_lc='no'
  9449. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9450. hardcode_libdir_separator=:
  9451. ;;
  9452. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9453. if test "$GCC" = yes; then
  9454. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9455. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9456. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9457. else
  9458. allow_undefined_flag=' -expect_unresolved \*'
  9459. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9460. 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~
  9461. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9462. # Both c and cxx compiler support -rpath directly
  9463. hardcode_libdir_flag_spec='-rpath $libdir'
  9464. fi
  9465. archive_cmds_need_lc='no'
  9466. hardcode_libdir_separator=:
  9467. ;;
  9468. solaris*)
  9469. no_undefined_flag=' -z defs'
  9470. if test "$GCC" = yes; then
  9471. wlarc='${wl}'
  9472. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9474. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9475. else
  9476. case `$CC -V 2>&1` in
  9477. *"Compilers 5.0"*)
  9478. wlarc=''
  9479. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9480. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9481. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9482. ;;
  9483. *)
  9484. wlarc='${wl}'
  9485. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9486. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9487. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9488. ;;
  9489. esac
  9490. fi
  9491. hardcode_libdir_flag_spec='-R$libdir'
  9492. hardcode_shlibpath_var=no
  9493. case $host_os in
  9494. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9495. *)
  9496. # The compiler driver will combine and reorder linker options,
  9497. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9498. # but is careful enough not to reorder.
  9499. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9500. if test "$GCC" = yes; then
  9501. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9502. else
  9503. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9504. fi
  9505. ;;
  9506. esac
  9507. link_all_deplibs=yes
  9508. ;;
  9509. sunos4*)
  9510. if test "x$host_vendor" = xsequent; then
  9511. # Use $CC to link under sequent, because it throws in some extra .o
  9512. # files that make .init and .fini sections work.
  9513. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9514. else
  9515. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9516. fi
  9517. hardcode_libdir_flag_spec='-L$libdir'
  9518. hardcode_direct=yes
  9519. hardcode_minus_L=yes
  9520. hardcode_shlibpath_var=no
  9521. ;;
  9522. sysv4)
  9523. case $host_vendor in
  9524. sni)
  9525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9526. hardcode_direct=yes # is this really true???
  9527. ;;
  9528. siemens)
  9529. ## LD is ld it makes a PLAMLIB
  9530. ## CC just makes a GrossModule.
  9531. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9532. reload_cmds='$CC -r -o $output$reload_objs'
  9533. hardcode_direct=no
  9534. ;;
  9535. motorola)
  9536. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9537. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9538. ;;
  9539. esac
  9540. runpath_var='LD_RUN_PATH'
  9541. hardcode_shlibpath_var=no
  9542. ;;
  9543. sysv4.3*)
  9544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9545. hardcode_shlibpath_var=no
  9546. export_dynamic_flag_spec='-Bexport'
  9547. ;;
  9548. sysv4*MP*)
  9549. if test -d /usr/nec; then
  9550. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9551. hardcode_shlibpath_var=no
  9552. runpath_var=LD_RUN_PATH
  9553. hardcode_runpath_var=yes
  9554. ld_shlibs=yes
  9555. fi
  9556. ;;
  9557. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9558. no_undefined_flag='${wl}-z,text'
  9559. archive_cmds_need_lc=no
  9560. hardcode_shlibpath_var=no
  9561. runpath_var='LD_RUN_PATH'
  9562. if test "$GCC" = yes; then
  9563. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9564. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9565. else
  9566. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9567. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. fi
  9569. ;;
  9570. sysv5* | sco3.2v5* | sco5v6*)
  9571. # Note: We can NOT use -z defs as we might desire, because we do not
  9572. # link with -lc, and that would cause any symbols used from libc to
  9573. # always be unresolved, which means just about no library would
  9574. # ever link correctly. If we're not using GNU ld we use -z text
  9575. # though, which does catch some bad symbols but isn't as heavy-handed
  9576. # as -z defs.
  9577. no_undefined_flag='${wl}-z,text'
  9578. allow_undefined_flag='${wl}-z,nodefs'
  9579. archive_cmds_need_lc=no
  9580. hardcode_shlibpath_var=no
  9581. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9582. hardcode_libdir_separator=':'
  9583. link_all_deplibs=yes
  9584. export_dynamic_flag_spec='${wl}-Bexport'
  9585. runpath_var='LD_RUN_PATH'
  9586. if test "$GCC" = yes; then
  9587. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9588. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9589. else
  9590. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9591. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. fi
  9593. ;;
  9594. uts4*)
  9595. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9596. hardcode_libdir_flag_spec='-L$libdir'
  9597. hardcode_shlibpath_var=no
  9598. ;;
  9599. *)
  9600. ld_shlibs=no
  9601. ;;
  9602. esac
  9603. if test x$host_vendor = xsni; then
  9604. case $host in
  9605. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9606. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9607. ;;
  9608. esac
  9609. fi
  9610. fi
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9612. $as_echo "$ld_shlibs" >&6; }
  9613. test "$ld_shlibs" = no && can_build_shared=no
  9614. with_gnu_ld=$with_gnu_ld
  9615. #
  9616. # Do we need to explicitly link libc?
  9617. #
  9618. case "x$archive_cmds_need_lc" in
  9619. x|xyes)
  9620. # Assume -lc should be added
  9621. archive_cmds_need_lc=yes
  9622. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9623. case $archive_cmds in
  9624. *'~'*)
  9625. # FIXME: we may have to deal with multi-command sequences.
  9626. ;;
  9627. '$CC '*)
  9628. # Test whether the compiler implicitly links with -lc since on some
  9629. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9630. # to ld, don't add -lc before -lgcc.
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9632. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9633. $RM conftest*
  9634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9636. (eval $ac_compile) 2>&5
  9637. ac_status=$?
  9638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9639. test $ac_status = 0; } 2>conftest.err; then
  9640. soname=conftest
  9641. lib=conftest
  9642. libobjs=conftest.$ac_objext
  9643. deplibs=
  9644. wl=$lt_prog_compiler_wl
  9645. pic_flag=$lt_prog_compiler_pic
  9646. compiler_flags=-v
  9647. linker_flags=-v
  9648. verstring=
  9649. output_objdir=.
  9650. libname=conftest
  9651. lt_save_allow_undefined_flag=$allow_undefined_flag
  9652. allow_undefined_flag=
  9653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9654. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9655. ac_status=$?
  9656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9657. test $ac_status = 0; }
  9658. then
  9659. archive_cmds_need_lc=no
  9660. else
  9661. archive_cmds_need_lc=yes
  9662. fi
  9663. allow_undefined_flag=$lt_save_allow_undefined_flag
  9664. else
  9665. cat conftest.err 1>&5
  9666. fi
  9667. $RM conftest*
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  9669. $as_echo "$archive_cmds_need_lc" >&6; }
  9670. ;;
  9671. esac
  9672. fi
  9673. ;;
  9674. esac
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9676. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9677. if test "$GCC" = yes; then
  9678. case $host_os in
  9679. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9680. *) lt_awk_arg="/^libraries:/" ;;
  9681. esac
  9682. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9683. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9684. # if the path contains ";" then we assume it to be the separator
  9685. # otherwise default to the standard path separator (i.e. ":") - it is
  9686. # assumed that no part of a normal pathname contains ";" but that should
  9687. # okay in the real world where ";" in dirpaths is itself problematic.
  9688. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9689. else
  9690. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9691. fi
  9692. # Ok, now we have the path, separated by spaces, we can step through it
  9693. # and add multilib dir if necessary.
  9694. lt_tmp_lt_search_path_spec=
  9695. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9696. for lt_sys_path in $lt_search_path_spec; do
  9697. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9698. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9699. else
  9700. test -d "$lt_sys_path" && \
  9701. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9702. fi
  9703. done
  9704. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9705. BEGIN {RS=" "; FS="/|\n";} {
  9706. lt_foo="";
  9707. lt_count=0;
  9708. for (lt_i = NF; lt_i > 0; lt_i--) {
  9709. if ($lt_i != "" && $lt_i != ".") {
  9710. if ($lt_i == "..") {
  9711. lt_count++;
  9712. } else {
  9713. if (lt_count == 0) {
  9714. lt_foo="/" $lt_i lt_foo;
  9715. } else {
  9716. lt_count--;
  9717. }
  9718. }
  9719. }
  9720. }
  9721. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9722. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9723. }'`
  9724. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9725. else
  9726. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9727. fi
  9728. library_names_spec=
  9729. libname_spec='lib$name'
  9730. soname_spec=
  9731. shrext_cmds=".so"
  9732. postinstall_cmds=
  9733. postuninstall_cmds=
  9734. finish_cmds=
  9735. finish_eval=
  9736. shlibpath_var=
  9737. shlibpath_overrides_runpath=unknown
  9738. version_type=none
  9739. dynamic_linker="$host_os ld.so"
  9740. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9741. need_lib_prefix=unknown
  9742. hardcode_into_libs=no
  9743. # when you set need_version to no, make sure it does not cause -set_version
  9744. # flags to be left without arguments
  9745. need_version=unknown
  9746. case $host_os in
  9747. aix3*)
  9748. version_type=linux
  9749. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9750. shlibpath_var=LIBPATH
  9751. # AIX 3 has no versioning support, so we append a major version to the name.
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. ;;
  9754. aix[4-9]*)
  9755. version_type=linux
  9756. need_lib_prefix=no
  9757. need_version=no
  9758. hardcode_into_libs=yes
  9759. if test "$host_cpu" = ia64; then
  9760. # AIX 5 supports IA64
  9761. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9762. shlibpath_var=LD_LIBRARY_PATH
  9763. else
  9764. # With GCC up to 2.95.x, collect2 would create an import file
  9765. # for dependence libraries. The import file would start with
  9766. # the line `#! .'. This would cause the generated library to
  9767. # depend on `.', always an invalid library. This was fixed in
  9768. # development snapshots of GCC prior to 3.0.
  9769. case $host_os in
  9770. aix4 | aix4.[01] | aix4.[01].*)
  9771. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9772. echo ' yes '
  9773. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9774. :
  9775. else
  9776. can_build_shared=no
  9777. fi
  9778. ;;
  9779. esac
  9780. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9781. # soname into executable. Probably we can add versioning support to
  9782. # collect2, so additional links can be useful in future.
  9783. if test "$aix_use_runtimelinking" = yes; then
  9784. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9785. # instead of lib<name>.a to let people know that these are not
  9786. # typical AIX shared libraries.
  9787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9788. else
  9789. # We preserve .a as extension for shared libraries through AIX4.2
  9790. # and later when we are not doing run time linking.
  9791. library_names_spec='${libname}${release}.a $libname.a'
  9792. soname_spec='${libname}${release}${shared_ext}$major'
  9793. fi
  9794. shlibpath_var=LIBPATH
  9795. fi
  9796. ;;
  9797. amigaos*)
  9798. case $host_cpu in
  9799. powerpc)
  9800. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9801. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. ;;
  9804. m68k)
  9805. library_names_spec='$libname.ixlibrary $libname.a'
  9806. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9807. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9808. ;;
  9809. esac
  9810. ;;
  9811. beos*)
  9812. library_names_spec='${libname}${shared_ext}'
  9813. dynamic_linker="$host_os ld.so"
  9814. shlibpath_var=LIBRARY_PATH
  9815. ;;
  9816. bsdi[45]*)
  9817. version_type=linux
  9818. need_version=no
  9819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9820. soname_spec='${libname}${release}${shared_ext}$major'
  9821. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9822. shlibpath_var=LD_LIBRARY_PATH
  9823. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9824. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9825. # the default ld.so.conf also contains /usr/contrib/lib and
  9826. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9827. # libtool to hard-code these into programs
  9828. ;;
  9829. cygwin* | mingw* | pw32* | cegcc*)
  9830. version_type=windows
  9831. shrext_cmds=".dll"
  9832. need_version=no
  9833. need_lib_prefix=no
  9834. case $GCC,$host_os in
  9835. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9836. library_names_spec='$libname.dll.a'
  9837. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9838. postinstall_cmds='base_file=`basename \${file}`~
  9839. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9840. dldir=$destdir/`dirname \$dlpath`~
  9841. test -d \$dldir || mkdir -p \$dldir~
  9842. $install_prog $dir/$dlname \$dldir/$dlname~
  9843. chmod a+x \$dldir/$dlname~
  9844. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9845. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9846. fi'
  9847. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9848. dlpath=$dir/\$dldll~
  9849. $RM \$dlpath'
  9850. shlibpath_overrides_runpath=yes
  9851. case $host_os in
  9852. cygwin*)
  9853. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9854. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9855. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9856. ;;
  9857. mingw* | cegcc*)
  9858. # MinGW DLLs use traditional 'lib' prefix
  9859. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9860. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9861. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9862. # It is most probably a Windows format PATH printed by
  9863. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9864. # path with ; separators, and with drive letters. We can handle the
  9865. # drive letters (cygwin fileutils understands them), so leave them,
  9866. # especially as we might pass files found there to a mingw objdump,
  9867. # which wouldn't understand a cygwinified path. Ahh.
  9868. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9869. else
  9870. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9871. fi
  9872. ;;
  9873. pw32*)
  9874. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9875. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9876. ;;
  9877. esac
  9878. ;;
  9879. *)
  9880. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9881. ;;
  9882. esac
  9883. dynamic_linker='Win32 ld.exe'
  9884. # FIXME: first we should search . and the directory the executable is in
  9885. shlibpath_var=PATH
  9886. ;;
  9887. darwin* | rhapsody*)
  9888. dynamic_linker="$host_os dyld"
  9889. version_type=darwin
  9890. need_lib_prefix=no
  9891. need_version=no
  9892. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9893. soname_spec='${libname}${release}${major}$shared_ext'
  9894. shlibpath_overrides_runpath=yes
  9895. shlibpath_var=DYLD_LIBRARY_PATH
  9896. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9897. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9898. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9899. ;;
  9900. dgux*)
  9901. version_type=linux
  9902. need_lib_prefix=no
  9903. need_version=no
  9904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9905. soname_spec='${libname}${release}${shared_ext}$major'
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. ;;
  9908. freebsd1*)
  9909. dynamic_linker=no
  9910. ;;
  9911. freebsd* | dragonfly*)
  9912. # DragonFly does not have aout. When/if they implement a new
  9913. # versioning mechanism, adjust this.
  9914. if test -x /usr/bin/objformat; then
  9915. objformat=`/usr/bin/objformat`
  9916. else
  9917. case $host_os in
  9918. freebsd[123]*) objformat=aout ;;
  9919. *) objformat=elf ;;
  9920. esac
  9921. fi
  9922. version_type=freebsd-$objformat
  9923. case $version_type in
  9924. freebsd-elf*)
  9925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9926. need_version=no
  9927. need_lib_prefix=no
  9928. ;;
  9929. freebsd-*)
  9930. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9931. need_version=yes
  9932. ;;
  9933. esac
  9934. shlibpath_var=LD_LIBRARY_PATH
  9935. case $host_os in
  9936. freebsd2*)
  9937. shlibpath_overrides_runpath=yes
  9938. ;;
  9939. freebsd3.[01]* | freebsdelf3.[01]*)
  9940. shlibpath_overrides_runpath=yes
  9941. hardcode_into_libs=yes
  9942. ;;
  9943. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9944. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9945. shlibpath_overrides_runpath=no
  9946. hardcode_into_libs=yes
  9947. ;;
  9948. *) # from 4.6 on, and DragonFly
  9949. shlibpath_overrides_runpath=yes
  9950. hardcode_into_libs=yes
  9951. ;;
  9952. esac
  9953. ;;
  9954. gnu*)
  9955. version_type=linux
  9956. need_lib_prefix=no
  9957. need_version=no
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. shlibpath_var=LD_LIBRARY_PATH
  9961. hardcode_into_libs=yes
  9962. ;;
  9963. hpux9* | hpux10* | hpux11*)
  9964. # Give a soname corresponding to the major version so that dld.sl refuses to
  9965. # link against other versions.
  9966. version_type=sunos
  9967. need_lib_prefix=no
  9968. need_version=no
  9969. case $host_cpu in
  9970. ia64*)
  9971. shrext_cmds='.so'
  9972. hardcode_into_libs=yes
  9973. dynamic_linker="$host_os dld.so"
  9974. shlibpath_var=LD_LIBRARY_PATH
  9975. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9977. soname_spec='${libname}${release}${shared_ext}$major'
  9978. if test "X$HPUX_IA64_MODE" = X32; then
  9979. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9980. else
  9981. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9982. fi
  9983. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9984. ;;
  9985. hppa*64*)
  9986. shrext_cmds='.sl'
  9987. hardcode_into_libs=yes
  9988. dynamic_linker="$host_os dld.sl"
  9989. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9990. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9992. soname_spec='${libname}${release}${shared_ext}$major'
  9993. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9994. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9995. ;;
  9996. *)
  9997. shrext_cmds='.sl'
  9998. dynamic_linker="$host_os dld.sl"
  9999. shlibpath_var=SHLIB_PATH
  10000. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10002. soname_spec='${libname}${release}${shared_ext}$major'
  10003. ;;
  10004. esac
  10005. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10006. postinstall_cmds='chmod 555 $lib'
  10007. ;;
  10008. interix[3-9]*)
  10009. version_type=linux
  10010. need_lib_prefix=no
  10011. need_version=no
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10013. soname_spec='${libname}${release}${shared_ext}$major'
  10014. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10015. shlibpath_var=LD_LIBRARY_PATH
  10016. shlibpath_overrides_runpath=no
  10017. hardcode_into_libs=yes
  10018. ;;
  10019. irix5* | irix6* | nonstopux*)
  10020. case $host_os in
  10021. nonstopux*) version_type=nonstopux ;;
  10022. *)
  10023. if test "$lt_cv_prog_gnu_ld" = yes; then
  10024. version_type=linux
  10025. else
  10026. version_type=irix
  10027. fi ;;
  10028. esac
  10029. need_lib_prefix=no
  10030. need_version=no
  10031. soname_spec='${libname}${release}${shared_ext}$major'
  10032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10033. case $host_os in
  10034. irix5* | nonstopux*)
  10035. libsuff= shlibsuff=
  10036. ;;
  10037. *)
  10038. case $LD in # libtool.m4 will add one of these switches to LD
  10039. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10040. libsuff= shlibsuff= libmagic=32-bit;;
  10041. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10042. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10043. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10044. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10045. *) libsuff= shlibsuff= libmagic=never-match;;
  10046. esac
  10047. ;;
  10048. esac
  10049. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10050. shlibpath_overrides_runpath=no
  10051. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10052. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10053. hardcode_into_libs=yes
  10054. ;;
  10055. # No shared lib support for Linux oldld, aout, or coff.
  10056. linux*oldld* | linux*aout* | linux*coff*)
  10057. dynamic_linker=no
  10058. ;;
  10059. # This must be Linux ELF.
  10060. linux* | k*bsd*-gnu)
  10061. version_type=linux
  10062. need_lib_prefix=no
  10063. need_version=no
  10064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10065. soname_spec='${libname}${release}${shared_ext}$major'
  10066. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10067. shlibpath_var=LD_LIBRARY_PATH
  10068. shlibpath_overrides_runpath=no
  10069. # Some binutils ld are patched to set DT_RUNPATH
  10070. save_LDFLAGS=$LDFLAGS
  10071. save_libdir=$libdir
  10072. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10073. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10075. /* end confdefs.h. */
  10076. int
  10077. main ()
  10078. {
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. if ac_fn_c_try_link "$LINENO"; then :
  10084. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10085. shlibpath_overrides_runpath=yes
  10086. fi
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. LDFLAGS=$save_LDFLAGS
  10091. libdir=$save_libdir
  10092. # This implies no fast_install, which is unacceptable.
  10093. # Some rework will be needed to allow for fast_install
  10094. # before this can be enabled.
  10095. hardcode_into_libs=yes
  10096. # Append ld.so.conf contents to the search path
  10097. if test -f /etc/ld.so.conf; then
  10098. 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;/^$/d' | tr '\n' ' '`
  10099. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10100. fi
  10101. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10102. # powerpc, because MkLinux only supported shared libraries with the
  10103. # GNU dynamic linker. Since this was broken with cross compilers,
  10104. # most powerpc-linux boxes support dynamic linking these days and
  10105. # people can always --disable-shared, the test was removed, and we
  10106. # assume the GNU/Linux dynamic linker is in use.
  10107. dynamic_linker='GNU/Linux ld.so'
  10108. ;;
  10109. netbsd*)
  10110. version_type=sunos
  10111. need_lib_prefix=no
  10112. need_version=no
  10113. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10115. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10116. dynamic_linker='NetBSD (a.out) ld.so'
  10117. else
  10118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10119. soname_spec='${libname}${release}${shared_ext}$major'
  10120. dynamic_linker='NetBSD ld.elf_so'
  10121. fi
  10122. shlibpath_var=LD_LIBRARY_PATH
  10123. shlibpath_overrides_runpath=yes
  10124. hardcode_into_libs=yes
  10125. ;;
  10126. newsos6)
  10127. version_type=linux
  10128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10129. shlibpath_var=LD_LIBRARY_PATH
  10130. shlibpath_overrides_runpath=yes
  10131. ;;
  10132. *nto* | *qnx*)
  10133. version_type=qnx
  10134. need_lib_prefix=no
  10135. need_version=no
  10136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10137. soname_spec='${libname}${release}${shared_ext}$major'
  10138. shlibpath_var=LD_LIBRARY_PATH
  10139. shlibpath_overrides_runpath=no
  10140. hardcode_into_libs=yes
  10141. dynamic_linker='ldqnx.so'
  10142. ;;
  10143. openbsd*)
  10144. version_type=sunos
  10145. sys_lib_dlsearch_path_spec="/usr/lib"
  10146. need_lib_prefix=no
  10147. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10148. case $host_os in
  10149. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10150. *) need_version=no ;;
  10151. esac
  10152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10154. shlibpath_var=LD_LIBRARY_PATH
  10155. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10156. case $host_os in
  10157. openbsd2.[89] | openbsd2.[89].*)
  10158. shlibpath_overrides_runpath=no
  10159. ;;
  10160. *)
  10161. shlibpath_overrides_runpath=yes
  10162. ;;
  10163. esac
  10164. else
  10165. shlibpath_overrides_runpath=yes
  10166. fi
  10167. ;;
  10168. os2*)
  10169. libname_spec='$name'
  10170. shrext_cmds=".dll"
  10171. need_lib_prefix=no
  10172. library_names_spec='$libname${shared_ext} $libname.a'
  10173. dynamic_linker='OS/2 ld.exe'
  10174. shlibpath_var=LIBPATH
  10175. ;;
  10176. osf3* | osf4* | osf5*)
  10177. version_type=osf
  10178. need_lib_prefix=no
  10179. need_version=no
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10182. shlibpath_var=LD_LIBRARY_PATH
  10183. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10184. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10185. ;;
  10186. rdos*)
  10187. dynamic_linker=no
  10188. ;;
  10189. solaris*)
  10190. version_type=linux
  10191. need_lib_prefix=no
  10192. need_version=no
  10193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10194. soname_spec='${libname}${release}${shared_ext}$major'
  10195. shlibpath_var=LD_LIBRARY_PATH
  10196. shlibpath_overrides_runpath=yes
  10197. hardcode_into_libs=yes
  10198. # ldd complains unless libraries are executable
  10199. postinstall_cmds='chmod +x $lib'
  10200. ;;
  10201. sunos4*)
  10202. version_type=sunos
  10203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10204. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10205. shlibpath_var=LD_LIBRARY_PATH
  10206. shlibpath_overrides_runpath=yes
  10207. if test "$with_gnu_ld" = yes; then
  10208. need_lib_prefix=no
  10209. fi
  10210. need_version=yes
  10211. ;;
  10212. sysv4 | sysv4.3*)
  10213. version_type=linux
  10214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10215. soname_spec='${libname}${release}${shared_ext}$major'
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. case $host_vendor in
  10218. sni)
  10219. shlibpath_overrides_runpath=no
  10220. need_lib_prefix=no
  10221. runpath_var=LD_RUN_PATH
  10222. ;;
  10223. siemens)
  10224. need_lib_prefix=no
  10225. ;;
  10226. motorola)
  10227. need_lib_prefix=no
  10228. need_version=no
  10229. shlibpath_overrides_runpath=no
  10230. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10231. ;;
  10232. esac
  10233. ;;
  10234. sysv4*MP*)
  10235. if test -d /usr/nec ;then
  10236. version_type=linux
  10237. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10238. soname_spec='$libname${shared_ext}.$major'
  10239. shlibpath_var=LD_LIBRARY_PATH
  10240. fi
  10241. ;;
  10242. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10243. version_type=freebsd-elf
  10244. need_lib_prefix=no
  10245. need_version=no
  10246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10247. soname_spec='${libname}${release}${shared_ext}$major'
  10248. shlibpath_var=LD_LIBRARY_PATH
  10249. shlibpath_overrides_runpath=yes
  10250. hardcode_into_libs=yes
  10251. if test "$with_gnu_ld" = yes; then
  10252. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10253. else
  10254. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10255. case $host_os in
  10256. sco3.2v5*)
  10257. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10258. ;;
  10259. esac
  10260. fi
  10261. sys_lib_dlsearch_path_spec='/usr/lib'
  10262. ;;
  10263. tpf*)
  10264. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10265. version_type=linux
  10266. need_lib_prefix=no
  10267. need_version=no
  10268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10269. shlibpath_var=LD_LIBRARY_PATH
  10270. shlibpath_overrides_runpath=no
  10271. hardcode_into_libs=yes
  10272. ;;
  10273. uts4*)
  10274. version_type=linux
  10275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10276. soname_spec='${libname}${release}${shared_ext}$major'
  10277. shlibpath_var=LD_LIBRARY_PATH
  10278. ;;
  10279. *)
  10280. dynamic_linker=no
  10281. ;;
  10282. esac
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10284. $as_echo "$dynamic_linker" >&6; }
  10285. test "$dynamic_linker" = no && can_build_shared=no
  10286. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10287. if test "$GCC" = yes; then
  10288. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10289. fi
  10290. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10291. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10292. fi
  10293. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10294. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10295. fi
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10297. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10298. hardcode_action=
  10299. if test -n "$hardcode_libdir_flag_spec" ||
  10300. test -n "$runpath_var" ||
  10301. test "X$hardcode_automatic" = "Xyes" ; then
  10302. # We can hardcode non-existent directories.
  10303. if test "$hardcode_direct" != no &&
  10304. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10305. # have to relink, otherwise we might link with an installed library
  10306. # when we should be linking with a yet-to-be-installed one
  10307. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10308. test "$hardcode_minus_L" != no; then
  10309. # Linking always hardcodes the temporary library directory.
  10310. hardcode_action=relink
  10311. else
  10312. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10313. hardcode_action=immediate
  10314. fi
  10315. else
  10316. # We cannot hardcode anything, or else we can only hardcode existing
  10317. # directories.
  10318. hardcode_action=unsupported
  10319. fi
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10321. $as_echo "$hardcode_action" >&6; }
  10322. if test "$hardcode_action" = relink ||
  10323. test "$inherit_rpath" = yes; then
  10324. # Fast installation is not supported
  10325. enable_fast_install=no
  10326. elif test "$shlibpath_overrides_runpath" = yes ||
  10327. test "$enable_shared" = no; then
  10328. # Fast installation is not necessary
  10329. enable_fast_install=needless
  10330. fi
  10331. if test "x$enable_dlopen" != xyes; then
  10332. enable_dlopen=unknown
  10333. enable_dlopen_self=unknown
  10334. enable_dlopen_self_static=unknown
  10335. else
  10336. lt_cv_dlopen=no
  10337. lt_cv_dlopen_libs=
  10338. case $host_os in
  10339. beos*)
  10340. lt_cv_dlopen="load_add_on"
  10341. lt_cv_dlopen_libs=
  10342. lt_cv_dlopen_self=yes
  10343. ;;
  10344. mingw* | pw32* | cegcc*)
  10345. lt_cv_dlopen="LoadLibrary"
  10346. lt_cv_dlopen_libs=
  10347. ;;
  10348. cygwin*)
  10349. lt_cv_dlopen="dlopen"
  10350. lt_cv_dlopen_libs=
  10351. ;;
  10352. darwin*)
  10353. # if libdl is installed we need to link against it
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10355. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10356. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10357. $as_echo_n "(cached) " >&6
  10358. else
  10359. ac_check_lib_save_LIBS=$LIBS
  10360. LIBS="-ldl $LIBS"
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. /* Override any GCC internal prototype to avoid an error.
  10364. Use char because int might match the return type of a GCC
  10365. builtin and then its argument prototype would still apply. */
  10366. #ifdef __cplusplus
  10367. extern "C"
  10368. #endif
  10369. char dlopen ();
  10370. int
  10371. main ()
  10372. {
  10373. return dlopen ();
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. if ac_fn_c_try_link "$LINENO"; then :
  10379. ac_cv_lib_dl_dlopen=yes
  10380. else
  10381. ac_cv_lib_dl_dlopen=no
  10382. fi
  10383. rm -f core conftest.err conftest.$ac_objext \
  10384. conftest$ac_exeext conftest.$ac_ext
  10385. LIBS=$ac_check_lib_save_LIBS
  10386. fi
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10388. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10389. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10390. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10391. else
  10392. lt_cv_dlopen="dyld"
  10393. lt_cv_dlopen_libs=
  10394. lt_cv_dlopen_self=yes
  10395. fi
  10396. ;;
  10397. *)
  10398. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10399. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10400. lt_cv_dlopen="shl_load"
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10403. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10404. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. ac_check_lib_save_LIBS=$LIBS
  10408. LIBS="-ldld $LIBS"
  10409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10410. /* end confdefs.h. */
  10411. /* Override any GCC internal prototype to avoid an error.
  10412. Use char because int might match the return type of a GCC
  10413. builtin and then its argument prototype would still apply. */
  10414. #ifdef __cplusplus
  10415. extern "C"
  10416. #endif
  10417. char shl_load ();
  10418. int
  10419. main ()
  10420. {
  10421. return shl_load ();
  10422. ;
  10423. return 0;
  10424. }
  10425. _ACEOF
  10426. if ac_fn_c_try_link "$LINENO"; then :
  10427. ac_cv_lib_dld_shl_load=yes
  10428. else
  10429. ac_cv_lib_dld_shl_load=no
  10430. fi
  10431. rm -f core conftest.err conftest.$ac_objext \
  10432. conftest$ac_exeext conftest.$ac_ext
  10433. LIBS=$ac_check_lib_save_LIBS
  10434. fi
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10436. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10437. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10438. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10439. else
  10440. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10441. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10442. lt_cv_dlopen="dlopen"
  10443. else
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10445. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10446. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10447. $as_echo_n "(cached) " >&6
  10448. else
  10449. ac_check_lib_save_LIBS=$LIBS
  10450. LIBS="-ldl $LIBS"
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. /* Override any GCC internal prototype to avoid an error.
  10454. Use char because int might match the return type of a GCC
  10455. builtin and then its argument prototype would still apply. */
  10456. #ifdef __cplusplus
  10457. extern "C"
  10458. #endif
  10459. char dlopen ();
  10460. int
  10461. main ()
  10462. {
  10463. return dlopen ();
  10464. ;
  10465. return 0;
  10466. }
  10467. _ACEOF
  10468. if ac_fn_c_try_link "$LINENO"; then :
  10469. ac_cv_lib_dl_dlopen=yes
  10470. else
  10471. ac_cv_lib_dl_dlopen=no
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext \
  10474. conftest$ac_exeext conftest.$ac_ext
  10475. LIBS=$ac_check_lib_save_LIBS
  10476. fi
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10478. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10479. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10480. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10481. else
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10483. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10484. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10485. $as_echo_n "(cached) " >&6
  10486. else
  10487. ac_check_lib_save_LIBS=$LIBS
  10488. LIBS="-lsvld $LIBS"
  10489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10490. /* end confdefs.h. */
  10491. /* Override any GCC internal prototype to avoid an error.
  10492. Use char because int might match the return type of a GCC
  10493. builtin and then its argument prototype would still apply. */
  10494. #ifdef __cplusplus
  10495. extern "C"
  10496. #endif
  10497. char dlopen ();
  10498. int
  10499. main ()
  10500. {
  10501. return dlopen ();
  10502. ;
  10503. return 0;
  10504. }
  10505. _ACEOF
  10506. if ac_fn_c_try_link "$LINENO"; then :
  10507. ac_cv_lib_svld_dlopen=yes
  10508. else
  10509. ac_cv_lib_svld_dlopen=no
  10510. fi
  10511. rm -f core conftest.err conftest.$ac_objext \
  10512. conftest$ac_exeext conftest.$ac_ext
  10513. LIBS=$ac_check_lib_save_LIBS
  10514. fi
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10516. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10517. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10518. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10519. else
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10521. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10522. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10523. $as_echo_n "(cached) " >&6
  10524. else
  10525. ac_check_lib_save_LIBS=$LIBS
  10526. LIBS="-ldld $LIBS"
  10527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10528. /* end confdefs.h. */
  10529. /* Override any GCC internal prototype to avoid an error.
  10530. Use char because int might match the return type of a GCC
  10531. builtin and then its argument prototype would still apply. */
  10532. #ifdef __cplusplus
  10533. extern "C"
  10534. #endif
  10535. char dld_link ();
  10536. int
  10537. main ()
  10538. {
  10539. return dld_link ();
  10540. ;
  10541. return 0;
  10542. }
  10543. _ACEOF
  10544. if ac_fn_c_try_link "$LINENO"; then :
  10545. ac_cv_lib_dld_dld_link=yes
  10546. else
  10547. ac_cv_lib_dld_dld_link=no
  10548. fi
  10549. rm -f core conftest.err conftest.$ac_objext \
  10550. conftest$ac_exeext conftest.$ac_ext
  10551. LIBS=$ac_check_lib_save_LIBS
  10552. fi
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10554. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10555. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10556. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10557. fi
  10558. fi
  10559. fi
  10560. fi
  10561. fi
  10562. fi
  10563. ;;
  10564. esac
  10565. if test "x$lt_cv_dlopen" != xno; then
  10566. enable_dlopen=yes
  10567. else
  10568. enable_dlopen=no
  10569. fi
  10570. case $lt_cv_dlopen in
  10571. dlopen)
  10572. save_CPPFLAGS="$CPPFLAGS"
  10573. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10574. save_LDFLAGS="$LDFLAGS"
  10575. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10576. save_LIBS="$LIBS"
  10577. LIBS="$lt_cv_dlopen_libs $LIBS"
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10579. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10580. if test "${lt_cv_dlopen_self+set}" = set; then :
  10581. $as_echo_n "(cached) " >&6
  10582. else
  10583. if test "$cross_compiling" = yes; then :
  10584. lt_cv_dlopen_self=cross
  10585. else
  10586. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10587. lt_status=$lt_dlunknown
  10588. cat > conftest.$ac_ext <<_LT_EOF
  10589. #line 12271 "configure"
  10590. #include "confdefs.h"
  10591. #if HAVE_DLFCN_H
  10592. #include <dlfcn.h>
  10593. #endif
  10594. #include <stdio.h>
  10595. #ifdef RTLD_GLOBAL
  10596. # define LT_DLGLOBAL RTLD_GLOBAL
  10597. #else
  10598. # ifdef DL_GLOBAL
  10599. # define LT_DLGLOBAL DL_GLOBAL
  10600. # else
  10601. # define LT_DLGLOBAL 0
  10602. # endif
  10603. #endif
  10604. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10605. find out it does not work in some platform. */
  10606. #ifndef LT_DLLAZY_OR_NOW
  10607. # ifdef RTLD_LAZY
  10608. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10609. # else
  10610. # ifdef DL_LAZY
  10611. # define LT_DLLAZY_OR_NOW DL_LAZY
  10612. # else
  10613. # ifdef RTLD_NOW
  10614. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10615. # else
  10616. # ifdef DL_NOW
  10617. # define LT_DLLAZY_OR_NOW DL_NOW
  10618. # else
  10619. # define LT_DLLAZY_OR_NOW 0
  10620. # endif
  10621. # endif
  10622. # endif
  10623. # endif
  10624. #endif
  10625. void fnord() { int i=42;}
  10626. int main ()
  10627. {
  10628. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10629. int status = $lt_dlunknown;
  10630. if (self)
  10631. {
  10632. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10633. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10634. /* dlclose (self); */
  10635. }
  10636. else
  10637. puts (dlerror ());
  10638. return status;
  10639. }
  10640. _LT_EOF
  10641. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10642. (eval $ac_link) 2>&5
  10643. ac_status=$?
  10644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10645. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10646. (./conftest; exit; ) >&5 2>/dev/null
  10647. lt_status=$?
  10648. case x$lt_status in
  10649. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10650. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10651. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10652. esac
  10653. else :
  10654. # compilation failed
  10655. lt_cv_dlopen_self=no
  10656. fi
  10657. fi
  10658. rm -fr conftest*
  10659. fi
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10661. $as_echo "$lt_cv_dlopen_self" >&6; }
  10662. if test "x$lt_cv_dlopen_self" = xyes; then
  10663. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10665. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10666. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10667. $as_echo_n "(cached) " >&6
  10668. else
  10669. if test "$cross_compiling" = yes; then :
  10670. lt_cv_dlopen_self_static=cross
  10671. else
  10672. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10673. lt_status=$lt_dlunknown
  10674. cat > conftest.$ac_ext <<_LT_EOF
  10675. #line 12367 "configure"
  10676. #include "confdefs.h"
  10677. #if HAVE_DLFCN_H
  10678. #include <dlfcn.h>
  10679. #endif
  10680. #include <stdio.h>
  10681. #ifdef RTLD_GLOBAL
  10682. # define LT_DLGLOBAL RTLD_GLOBAL
  10683. #else
  10684. # ifdef DL_GLOBAL
  10685. # define LT_DLGLOBAL DL_GLOBAL
  10686. # else
  10687. # define LT_DLGLOBAL 0
  10688. # endif
  10689. #endif
  10690. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10691. find out it does not work in some platform. */
  10692. #ifndef LT_DLLAZY_OR_NOW
  10693. # ifdef RTLD_LAZY
  10694. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10695. # else
  10696. # ifdef DL_LAZY
  10697. # define LT_DLLAZY_OR_NOW DL_LAZY
  10698. # else
  10699. # ifdef RTLD_NOW
  10700. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10701. # else
  10702. # ifdef DL_NOW
  10703. # define LT_DLLAZY_OR_NOW DL_NOW
  10704. # else
  10705. # define LT_DLLAZY_OR_NOW 0
  10706. # endif
  10707. # endif
  10708. # endif
  10709. # endif
  10710. #endif
  10711. void fnord() { int i=42;}
  10712. int main ()
  10713. {
  10714. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10715. int status = $lt_dlunknown;
  10716. if (self)
  10717. {
  10718. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10719. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10720. /* dlclose (self); */
  10721. }
  10722. else
  10723. puts (dlerror ());
  10724. return status;
  10725. }
  10726. _LT_EOF
  10727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10728. (eval $ac_link) 2>&5
  10729. ac_status=$?
  10730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10731. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10732. (./conftest; exit; ) >&5 2>/dev/null
  10733. lt_status=$?
  10734. case x$lt_status in
  10735. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10736. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10737. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10738. esac
  10739. else :
  10740. # compilation failed
  10741. lt_cv_dlopen_self_static=no
  10742. fi
  10743. fi
  10744. rm -fr conftest*
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10747. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10748. fi
  10749. CPPFLAGS="$save_CPPFLAGS"
  10750. LDFLAGS="$save_LDFLAGS"
  10751. LIBS="$save_LIBS"
  10752. ;;
  10753. esac
  10754. case $lt_cv_dlopen_self in
  10755. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10756. *) enable_dlopen_self=unknown ;;
  10757. esac
  10758. case $lt_cv_dlopen_self_static in
  10759. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10760. *) enable_dlopen_self_static=unknown ;;
  10761. esac
  10762. fi
  10763. striplib=
  10764. old_striplib=
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10766. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10767. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10768. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10769. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10771. $as_echo "yes" >&6; }
  10772. else
  10773. # FIXME - insert some real tests, host_os isn't really good enough
  10774. case $host_os in
  10775. darwin*)
  10776. if test -n "$STRIP" ; then
  10777. striplib="$STRIP -x"
  10778. old_striplib="$STRIP -S"
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10780. $as_echo "yes" >&6; }
  10781. else
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10783. $as_echo "no" >&6; }
  10784. fi
  10785. ;;
  10786. *)
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10788. $as_echo "no" >&6; }
  10789. ;;
  10790. esac
  10791. fi
  10792. # Report which library types will actually be built
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10794. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10796. $as_echo "$can_build_shared" >&6; }
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10798. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10799. test "$can_build_shared" = "no" && enable_shared=no
  10800. # On AIX, shared libraries and static libraries use the same namespace, and
  10801. # are all built from PIC.
  10802. case $host_os in
  10803. aix3*)
  10804. test "$enable_shared" = yes && enable_static=no
  10805. if test -n "$RANLIB"; then
  10806. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10807. postinstall_cmds='$RANLIB $lib'
  10808. fi
  10809. ;;
  10810. aix[4-9]*)
  10811. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10812. test "$enable_shared" = yes && enable_static=no
  10813. fi
  10814. ;;
  10815. esac
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10817. $as_echo "$enable_shared" >&6; }
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10819. $as_echo_n "checking whether to build static libraries... " >&6; }
  10820. # Make sure either enable_shared or enable_static is yes.
  10821. test "$enable_shared" = yes || enable_static=yes
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10823. $as_echo "$enable_static" >&6; }
  10824. fi
  10825. ac_ext=c
  10826. ac_cpp='$CPP $CPPFLAGS'
  10827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10830. CC="$lt_save_CC"
  10831. ac_config_commands="$ac_config_commands libtool"
  10832. # Only expand once:
  10833. # Select memory manager depending on user input.
  10834. # If no "-enable-maxmem", use jmemnobs
  10835. MEMORYMGR='jmemnobs'
  10836. MAXMEM="no"
  10837. # Check whether --enable-maxmem was given.
  10838. if test "${enable_maxmem+set}" = set; then :
  10839. enableval=$enable_maxmem; MAXMEM="$enableval"
  10840. fi
  10841. if test "x$MAXMEM" = xyes; then
  10842. MAXMEM=1
  10843. fi
  10844. if test "x$MAXMEM" != xno; then
  10845. if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
  10846. as_fn_error "non-numeric argument to --enable-maxmem" "$LINENO" 5
  10847. fi
  10848. DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
  10849. cat >>confdefs.h <<_ACEOF
  10850. #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
  10851. _ACEOF
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
  10853. $as_echo_n "checking for 'tmpfile()'... " >&6; }
  10854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10855. /* end confdefs.h. */
  10856. #include <stdio.h>
  10857. int
  10858. main ()
  10859. {
  10860. FILE * tfile = tmpfile();
  10861. ;
  10862. return 0;
  10863. }
  10864. _ACEOF
  10865. if ac_fn_c_try_link "$LINENO"; then :
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10867. $as_echo "yes" >&6; }
  10868. MEMORYMGR='jmemansi'
  10869. else
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10871. $as_echo "no" >&6; }
  10872. MEMORYMGR='jmemname'
  10873. # Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
  10874. $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
  10876. $as_echo_n "checking for 'mktemp()'... " >&6; }
  10877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10878. /* end confdefs.h. */
  10879. int
  10880. main ()
  10881. {
  10882. char fname[80]; mktemp(fname);
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. if ac_fn_c_try_link "$LINENO"; then :
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10889. $as_echo "yes" >&6; }
  10890. else
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10892. $as_echo "no" >&6; }
  10893. $as_echo "#define NO_MKTEMP 1" >>confdefs.h
  10894. fi
  10895. rm -f core conftest.err conftest.$ac_objext \
  10896. conftest$ac_exeext conftest.$ac_ext
  10897. fi
  10898. rm -f core conftest.err conftest.$ac_objext \
  10899. conftest$ac_exeext conftest.$ac_ext
  10900. fi
  10901. # Extract the library version ID from jpeglib.h.
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
  10903. $as_echo_n "checking libjpeg version number... " >&6; }
  10904. JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
  10905. JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:2"
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
  10907. $as_echo "$JPEG_LIB_VERSION" >&6; }
  10908. ac_config_files="$ac_config_files Makefile"
  10909. cat >confcache <<\_ACEOF
  10910. # This file is a shell script that caches the results of configure
  10911. # tests run on this system so they can be shared between configure
  10912. # scripts and configure runs, see configure's option --config-cache.
  10913. # It is not useful on other systems. If it contains results you don't
  10914. # want to keep, you may remove or edit it.
  10915. #
  10916. # config.status only pays attention to the cache file if you give it
  10917. # the --recheck option to rerun configure.
  10918. #
  10919. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10920. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10921. # following values.
  10922. _ACEOF
  10923. # The following way of writing the cache mishandles newlines in values,
  10924. # but we know of no workaround that is simple, portable, and efficient.
  10925. # So, we kill variables containing newlines.
  10926. # Ultrix sh set writes to stderr and can't be redirected directly,
  10927. # and sets the high bit in the cache file unless we assign to the vars.
  10928. (
  10929. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10930. eval ac_val=\$$ac_var
  10931. case $ac_val in #(
  10932. *${as_nl}*)
  10933. case $ac_var in #(
  10934. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10935. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10936. esac
  10937. case $ac_var in #(
  10938. _ | IFS | as_nl) ;; #(
  10939. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10940. *) { eval $ac_var=; unset $ac_var;} ;;
  10941. esac ;;
  10942. esac
  10943. done
  10944. (set) 2>&1 |
  10945. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10946. *${as_nl}ac_space=\ *)
  10947. # `set' does not quote correctly, so add quotes: double-quote
  10948. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10949. sed -n \
  10950. "s/'/'\\\\''/g;
  10951. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10952. ;; #(
  10953. *)
  10954. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10955. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10956. ;;
  10957. esac |
  10958. sort
  10959. ) |
  10960. sed '
  10961. /^ac_cv_env_/b end
  10962. t clear
  10963. :clear
  10964. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10965. t end
  10966. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10967. :end' >>confcache
  10968. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10969. if test -w "$cache_file"; then
  10970. test "x$cache_file" != "x/dev/null" &&
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10972. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10973. cat confcache >$cache_file
  10974. else
  10975. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10976. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10977. fi
  10978. fi
  10979. rm -f confcache
  10980. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10981. # Let make expand exec_prefix.
  10982. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10983. DEFS=-DHAVE_CONFIG_H
  10984. ac_libobjs=
  10985. ac_ltlibobjs=
  10986. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10987. # 1. Remove the extension, and $U if already installed.
  10988. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10989. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10990. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10991. # will be set to the directory where LIBOBJS objects are built.
  10992. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10993. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10994. done
  10995. LIBOBJS=$ac_libobjs
  10996. LTLIBOBJS=$ac_ltlibobjs
  10997. if test -n "$EXEEXT"; then
  10998. am__EXEEXT_TRUE=
  10999. am__EXEEXT_FALSE='#'
  11000. else
  11001. am__EXEEXT_TRUE='#'
  11002. am__EXEEXT_FALSE=
  11003. fi
  11004. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11005. as_fn_error "conditional \"AMDEP\" was never defined.
  11006. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11007. fi
  11008. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11009. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  11010. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11011. fi
  11012. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11013. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11014. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11015. fi
  11016. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11017. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  11018. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11019. fi
  11020. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  11021. as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  11022. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11023. fi
  11024. : ${CONFIG_STATUS=./config.status}
  11025. ac_write_fail=0
  11026. ac_clean_files_save=$ac_clean_files
  11027. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11029. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11030. as_write_fail=0
  11031. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11032. #! $SHELL
  11033. # Generated by $as_me.
  11034. # Run this file to recreate the current configuration.
  11035. # Compiler output produced by configure, useful for debugging
  11036. # configure, is in config.log if it exists.
  11037. debug=false
  11038. ac_cs_recheck=false
  11039. ac_cs_silent=false
  11040. SHELL=\${CONFIG_SHELL-$SHELL}
  11041. export SHELL
  11042. _ASEOF
  11043. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11044. ## -------------------- ##
  11045. ## M4sh Initialization. ##
  11046. ## -------------------- ##
  11047. # Be more Bourne compatible
  11048. DUALCASE=1; export DUALCASE # for MKS sh
  11049. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11050. emulate sh
  11051. NULLCMD=:
  11052. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11053. # is contrary to our usage. Disable this feature.
  11054. alias -g '${1+"$@"}'='"$@"'
  11055. setopt NO_GLOB_SUBST
  11056. else
  11057. case `(set -o) 2>/dev/null` in #(
  11058. *posix*) :
  11059. set -o posix ;; #(
  11060. *) :
  11061. ;;
  11062. esac
  11063. fi
  11064. as_nl='
  11065. '
  11066. export as_nl
  11067. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11068. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11069. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11070. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11071. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11072. # but without wasting forks for bash or zsh.
  11073. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11074. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11075. as_echo='print -r --'
  11076. as_echo_n='print -rn --'
  11077. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11078. as_echo='printf %s\n'
  11079. as_echo_n='printf %s'
  11080. else
  11081. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11082. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11083. as_echo_n='/usr/ucb/echo -n'
  11084. else
  11085. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11086. as_echo_n_body='eval
  11087. arg=$1;
  11088. case $arg in #(
  11089. *"$as_nl"*)
  11090. expr "X$arg" : "X\\(.*\\)$as_nl";
  11091. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11092. esac;
  11093. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11094. '
  11095. export as_echo_n_body
  11096. as_echo_n='sh -c $as_echo_n_body as_echo'
  11097. fi
  11098. export as_echo_body
  11099. as_echo='sh -c $as_echo_body as_echo'
  11100. fi
  11101. # The user is always right.
  11102. if test "${PATH_SEPARATOR+set}" != set; then
  11103. PATH_SEPARATOR=:
  11104. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11105. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11106. PATH_SEPARATOR=';'
  11107. }
  11108. fi
  11109. # IFS
  11110. # We need space, tab and new line, in precisely that order. Quoting is
  11111. # there to prevent editors from complaining about space-tab.
  11112. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11113. # splitting by setting IFS to empty value.)
  11114. IFS=" "" $as_nl"
  11115. # Find who we are. Look in the path if we contain no directory separator.
  11116. case $0 in #((
  11117. *[\\/]* ) as_myself=$0 ;;
  11118. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11119. for as_dir in $PATH
  11120. do
  11121. IFS=$as_save_IFS
  11122. test -z "$as_dir" && as_dir=.
  11123. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11124. done
  11125. IFS=$as_save_IFS
  11126. ;;
  11127. esac
  11128. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11129. # in which case we are not to be found in the path.
  11130. if test "x$as_myself" = x; then
  11131. as_myself=$0
  11132. fi
  11133. if test ! -f "$as_myself"; then
  11134. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11135. exit 1
  11136. fi
  11137. # Unset variables that we do not need and which cause bugs (e.g. in
  11138. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11139. # suppresses any "Segmentation fault" message there. '((' could
  11140. # trigger a bug in pdksh 5.2.14.
  11141. for as_var in BASH_ENV ENV MAIL MAILPATH
  11142. do eval test x\${$as_var+set} = xset \
  11143. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11144. done
  11145. PS1='$ '
  11146. PS2='> '
  11147. PS4='+ '
  11148. # NLS nuisances.
  11149. LC_ALL=C
  11150. export LC_ALL
  11151. LANGUAGE=C
  11152. export LANGUAGE
  11153. # CDPATH.
  11154. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11155. # as_fn_error ERROR [LINENO LOG_FD]
  11156. # ---------------------------------
  11157. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11158. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11159. # script with status $?, using 1 if that was 0.
  11160. as_fn_error ()
  11161. {
  11162. as_status=$?; test $as_status -eq 0 && as_status=1
  11163. if test "$3"; then
  11164. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11165. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11166. fi
  11167. $as_echo "$as_me: error: $1" >&2
  11168. as_fn_exit $as_status
  11169. } # as_fn_error
  11170. # as_fn_set_status STATUS
  11171. # -----------------------
  11172. # Set $? to STATUS, without forking.
  11173. as_fn_set_status ()
  11174. {
  11175. return $1
  11176. } # as_fn_set_status
  11177. # as_fn_exit STATUS
  11178. # -----------------
  11179. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11180. as_fn_exit ()
  11181. {
  11182. set +e
  11183. as_fn_set_status $1
  11184. exit $1
  11185. } # as_fn_exit
  11186. # as_fn_unset VAR
  11187. # ---------------
  11188. # Portably unset VAR.
  11189. as_fn_unset ()
  11190. {
  11191. { eval $1=; unset $1;}
  11192. }
  11193. as_unset=as_fn_unset
  11194. # as_fn_append VAR VALUE
  11195. # ----------------------
  11196. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11197. # advantage of any shell optimizations that allow amortized linear growth over
  11198. # repeated appends, instead of the typical quadratic growth present in naive
  11199. # implementations.
  11200. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11201. eval 'as_fn_append ()
  11202. {
  11203. eval $1+=\$2
  11204. }'
  11205. else
  11206. as_fn_append ()
  11207. {
  11208. eval $1=\$$1\$2
  11209. }
  11210. fi # as_fn_append
  11211. # as_fn_arith ARG...
  11212. # ------------------
  11213. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11214. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11215. # must be portable across $(()) and expr.
  11216. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11217. eval 'as_fn_arith ()
  11218. {
  11219. as_val=$(( $* ))
  11220. }'
  11221. else
  11222. as_fn_arith ()
  11223. {
  11224. as_val=`expr "$@" || test $? -eq 1`
  11225. }
  11226. fi # as_fn_arith
  11227. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11228. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11229. as_expr=expr
  11230. else
  11231. as_expr=false
  11232. fi
  11233. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11234. as_basename=basename
  11235. else
  11236. as_basename=false
  11237. fi
  11238. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11239. as_dirname=dirname
  11240. else
  11241. as_dirname=false
  11242. fi
  11243. as_me=`$as_basename -- "$0" ||
  11244. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11245. X"$0" : 'X\(//\)$' \| \
  11246. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11247. $as_echo X/"$0" |
  11248. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11249. s//\1/
  11250. q
  11251. }
  11252. /^X\/\(\/\/\)$/{
  11253. s//\1/
  11254. q
  11255. }
  11256. /^X\/\(\/\).*/{
  11257. s//\1/
  11258. q
  11259. }
  11260. s/.*/./; q'`
  11261. # Avoid depending upon Character Ranges.
  11262. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11263. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11264. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11265. as_cr_digits='0123456789'
  11266. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11267. ECHO_C= ECHO_N= ECHO_T=
  11268. case `echo -n x` in #(((((
  11269. -n*)
  11270. case `echo 'xy\c'` in
  11271. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11272. xy) ECHO_C='\c';;
  11273. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11274. ECHO_T=' ';;
  11275. esac;;
  11276. *)
  11277. ECHO_N='-n';;
  11278. esac
  11279. rm -f conf$$ conf$$.exe conf$$.file
  11280. if test -d conf$$.dir; then
  11281. rm -f conf$$.dir/conf$$.file
  11282. else
  11283. rm -f conf$$.dir
  11284. mkdir conf$$.dir 2>/dev/null
  11285. fi
  11286. if (echo >conf$$.file) 2>/dev/null; then
  11287. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11288. as_ln_s='ln -s'
  11289. # ... but there are two gotchas:
  11290. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11291. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11292. # In both cases, we have to default to `cp -p'.
  11293. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11294. as_ln_s='cp -p'
  11295. elif ln conf$$.file conf$$ 2>/dev/null; then
  11296. as_ln_s=ln
  11297. else
  11298. as_ln_s='cp -p'
  11299. fi
  11300. else
  11301. as_ln_s='cp -p'
  11302. fi
  11303. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11304. rmdir conf$$.dir 2>/dev/null
  11305. # as_fn_mkdir_p
  11306. # -------------
  11307. # Create "$as_dir" as a directory, including parents if necessary.
  11308. as_fn_mkdir_p ()
  11309. {
  11310. case $as_dir in #(
  11311. -*) as_dir=./$as_dir;;
  11312. esac
  11313. test -d "$as_dir" || eval $as_mkdir_p || {
  11314. as_dirs=
  11315. while :; do
  11316. case $as_dir in #(
  11317. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11318. *) as_qdir=$as_dir;;
  11319. esac
  11320. as_dirs="'$as_qdir' $as_dirs"
  11321. as_dir=`$as_dirname -- "$as_dir" ||
  11322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11323. X"$as_dir" : 'X\(//\)[^/]' \| \
  11324. X"$as_dir" : 'X\(//\)$' \| \
  11325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11326. $as_echo X"$as_dir" |
  11327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11328. s//\1/
  11329. q
  11330. }
  11331. /^X\(\/\/\)[^/].*/{
  11332. s//\1/
  11333. q
  11334. }
  11335. /^X\(\/\/\)$/{
  11336. s//\1/
  11337. q
  11338. }
  11339. /^X\(\/\).*/{
  11340. s//\1/
  11341. q
  11342. }
  11343. s/.*/./; q'`
  11344. test -d "$as_dir" && break
  11345. done
  11346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11347. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11348. } # as_fn_mkdir_p
  11349. if mkdir -p . 2>/dev/null; then
  11350. as_mkdir_p='mkdir -p "$as_dir"'
  11351. else
  11352. test -d ./-p && rmdir ./-p
  11353. as_mkdir_p=false
  11354. fi
  11355. if test -x / >/dev/null 2>&1; then
  11356. as_test_x='test -x'
  11357. else
  11358. if ls -dL / >/dev/null 2>&1; then
  11359. as_ls_L_option=L
  11360. else
  11361. as_ls_L_option=
  11362. fi
  11363. as_test_x='
  11364. eval sh -c '\''
  11365. if test -d "$1"; then
  11366. test -d "$1/.";
  11367. else
  11368. case $1 in #(
  11369. -*)set "./$1";;
  11370. esac;
  11371. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11372. ???[sx]*):;;*)false;;esac;fi
  11373. '\'' sh
  11374. '
  11375. fi
  11376. as_executable_p=$as_test_x
  11377. # Sed expression to map a string onto a valid CPP name.
  11378. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11379. # Sed expression to map a string onto a valid variable name.
  11380. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11381. exec 6>&1
  11382. ## ----------------------------------- ##
  11383. ## Main body of $CONFIG_STATUS script. ##
  11384. ## ----------------------------------- ##
  11385. _ASEOF
  11386. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11388. # Save the log message, to keep $0 and so on meaningful, and to
  11389. # report actual input values of CONFIG_FILES etc. instead of their
  11390. # values after options handling.
  11391. ac_log="
  11392. This file was extended by libjpeg $as_me 8.0.2, which was
  11393. generated by GNU Autoconf 2.65. Invocation command line was
  11394. CONFIG_FILES = $CONFIG_FILES
  11395. CONFIG_HEADERS = $CONFIG_HEADERS
  11396. CONFIG_LINKS = $CONFIG_LINKS
  11397. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11398. $ $0 $@
  11399. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11400. "
  11401. _ACEOF
  11402. case $ac_config_files in *"
  11403. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11404. esac
  11405. case $ac_config_headers in *"
  11406. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11407. esac
  11408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11409. # Files that config.status was made for.
  11410. config_files="$ac_config_files"
  11411. config_headers="$ac_config_headers"
  11412. config_commands="$ac_config_commands"
  11413. _ACEOF
  11414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11415. ac_cs_usage="\
  11416. \`$as_me' instantiates files and other configuration actions
  11417. from templates according to the current configuration. Unless the files
  11418. and actions are specified as TAGs, all are instantiated by default.
  11419. Usage: $0 [OPTION]... [TAG]...
  11420. -h, --help print this help, then exit
  11421. -V, --version print version number and configuration settings, then exit
  11422. --config print configuration, then exit
  11423. -q, --quiet, --silent
  11424. do not print progress messages
  11425. -d, --debug don't remove temporary files
  11426. --recheck update $as_me by reconfiguring in the same conditions
  11427. --file=FILE[:TEMPLATE]
  11428. instantiate the configuration file FILE
  11429. --header=FILE[:TEMPLATE]
  11430. instantiate the configuration header FILE
  11431. Configuration files:
  11432. $config_files
  11433. Configuration headers:
  11434. $config_headers
  11435. Configuration commands:
  11436. $config_commands
  11437. Report bugs to the package provider."
  11438. _ACEOF
  11439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11440. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11441. ac_cs_version="\\
  11442. libjpeg config.status 8.0.2
  11443. configured by $0, generated by GNU Autoconf 2.65,
  11444. with options \\"\$ac_cs_config\\"
  11445. Copyright (C) 2009 Free Software Foundation, Inc.
  11446. This config.status script is free software; the Free Software Foundation
  11447. gives unlimited permission to copy, distribute and modify it."
  11448. ac_pwd='$ac_pwd'
  11449. srcdir='$srcdir'
  11450. INSTALL='$INSTALL'
  11451. MKDIR_P='$MKDIR_P'
  11452. AWK='$AWK'
  11453. test -n "\$AWK" || AWK=awk
  11454. _ACEOF
  11455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11456. # The default lists apply if the user does not specify any file.
  11457. ac_need_defaults=:
  11458. while test $# != 0
  11459. do
  11460. case $1 in
  11461. --*=*)
  11462. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11463. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11464. ac_shift=:
  11465. ;;
  11466. *)
  11467. ac_option=$1
  11468. ac_optarg=$2
  11469. ac_shift=shift
  11470. ;;
  11471. esac
  11472. case $ac_option in
  11473. # Handling of the options.
  11474. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11475. ac_cs_recheck=: ;;
  11476. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11477. $as_echo "$ac_cs_version"; exit ;;
  11478. --config | --confi | --conf | --con | --co | --c )
  11479. $as_echo "$ac_cs_config"; exit ;;
  11480. --debug | --debu | --deb | --de | --d | -d )
  11481. debug=: ;;
  11482. --file | --fil | --fi | --f )
  11483. $ac_shift
  11484. case $ac_optarg in
  11485. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11486. esac
  11487. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11488. ac_need_defaults=false;;
  11489. --header | --heade | --head | --hea )
  11490. $ac_shift
  11491. case $ac_optarg in
  11492. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11493. esac
  11494. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11495. ac_need_defaults=false;;
  11496. --he | --h)
  11497. # Conflict between --help and --header
  11498. as_fn_error "ambiguous option: \`$1'
  11499. Try \`$0 --help' for more information.";;
  11500. --help | --hel | -h )
  11501. $as_echo "$ac_cs_usage"; exit ;;
  11502. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11503. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11504. ac_cs_silent=: ;;
  11505. # This is an error.
  11506. -*) as_fn_error "unrecognized option: \`$1'
  11507. Try \`$0 --help' for more information." ;;
  11508. *) as_fn_append ac_config_targets " $1"
  11509. ac_need_defaults=false ;;
  11510. esac
  11511. shift
  11512. done
  11513. ac_configure_extra_args=
  11514. if $ac_cs_silent; then
  11515. exec 6>/dev/null
  11516. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11517. fi
  11518. _ACEOF
  11519. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11520. if \$ac_cs_recheck; then
  11521. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11522. shift
  11523. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11524. CONFIG_SHELL='$SHELL'
  11525. export CONFIG_SHELL
  11526. exec "\$@"
  11527. fi
  11528. _ACEOF
  11529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11530. exec 5>>config.log
  11531. {
  11532. echo
  11533. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11534. ## Running $as_me. ##
  11535. _ASBOX
  11536. $as_echo "$ac_log"
  11537. } >&5
  11538. _ACEOF
  11539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11540. #
  11541. # INIT-COMMANDS
  11542. #
  11543. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11544. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11545. # if CDPATH is set.
  11546. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11547. sed_quote_subst='$sed_quote_subst'
  11548. double_quote_subst='$double_quote_subst'
  11549. delay_variable_subst='$delay_variable_subst'
  11550. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  11551. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11552. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  11553. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  11554. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  11555. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  11556. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  11557. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  11558. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  11559. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11560. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  11561. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  11562. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11563. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  11564. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  11565. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  11566. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  11567. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  11568. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11569. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11570. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  11571. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  11572. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  11573. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  11574. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  11575. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  11576. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  11577. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  11578. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  11579. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11580. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11581. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  11582. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  11583. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  11584. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11585. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  11586. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  11587. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11588. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11589. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11590. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  11591. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11592. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  11593. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  11594. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  11595. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  11596. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  11597. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11598. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  11599. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  11600. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  11601. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  11602. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11603. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  11604. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  11605. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  11606. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  11607. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  11608. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  11609. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  11610. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  11611. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11612. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  11613. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  11614. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11615. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11616. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  11617. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  11618. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11619. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11620. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  11621. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11622. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11623. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11624. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11625. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11626. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11627. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11628. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11629. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11630. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11631. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11632. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  11633. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  11634. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  11635. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  11636. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11637. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  11638. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  11639. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  11640. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  11641. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  11642. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11643. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11644. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11645. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11646. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11647. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  11648. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11649. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  11650. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  11651. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11652. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11653. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  11654. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11655. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11656. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11657. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11658. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11659. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11660. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  11661. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  11662. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11663. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11664. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  11665. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  11666. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  11667. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  11668. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11669. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11670. LTCC='$LTCC'
  11671. LTCFLAGS='$LTCFLAGS'
  11672. compiler='$compiler_DEFAULT'
  11673. # Quote evaled strings.
  11674. for var in SED \
  11675. GREP \
  11676. EGREP \
  11677. FGREP \
  11678. LD \
  11679. NM \
  11680. LN_S \
  11681. lt_SP2NL \
  11682. lt_NL2SP \
  11683. reload_flag \
  11684. deplibs_check_method \
  11685. file_magic_cmd \
  11686. AR \
  11687. AR_FLAGS \
  11688. STRIP \
  11689. RANLIB \
  11690. CC \
  11691. CFLAGS \
  11692. compiler \
  11693. lt_cv_sys_global_symbol_pipe \
  11694. lt_cv_sys_global_symbol_to_cdecl \
  11695. lt_cv_sys_global_symbol_to_c_name_address \
  11696. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11697. SHELL \
  11698. ECHO \
  11699. lt_prog_compiler_no_builtin_flag \
  11700. lt_prog_compiler_wl \
  11701. lt_prog_compiler_pic \
  11702. lt_prog_compiler_static \
  11703. lt_cv_prog_compiler_c_o \
  11704. need_locks \
  11705. DSYMUTIL \
  11706. NMEDIT \
  11707. LIPO \
  11708. OTOOL \
  11709. OTOOL64 \
  11710. shrext_cmds \
  11711. export_dynamic_flag_spec \
  11712. whole_archive_flag_spec \
  11713. compiler_needs_object \
  11714. with_gnu_ld \
  11715. allow_undefined_flag \
  11716. no_undefined_flag \
  11717. hardcode_libdir_flag_spec \
  11718. hardcode_libdir_flag_spec_ld \
  11719. hardcode_libdir_separator \
  11720. fix_srcfile_path \
  11721. exclude_expsyms \
  11722. include_expsyms \
  11723. file_list_spec \
  11724. variables_saved_for_relink \
  11725. libname_spec \
  11726. library_names_spec \
  11727. soname_spec \
  11728. finish_eval \
  11729. old_striplib \
  11730. striplib; do
  11731. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11732. *[\\\\\\\`\\"\\\$]*)
  11733. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11734. ;;
  11735. *)
  11736. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11737. ;;
  11738. esac
  11739. done
  11740. # Double-quote double-evaled strings.
  11741. for var in reload_cmds \
  11742. old_postinstall_cmds \
  11743. old_postuninstall_cmds \
  11744. old_archive_cmds \
  11745. extract_expsyms_cmds \
  11746. old_archive_from_new_cmds \
  11747. old_archive_from_expsyms_cmds \
  11748. archive_cmds \
  11749. archive_expsym_cmds \
  11750. module_cmds \
  11751. module_expsym_cmds \
  11752. export_symbols_cmds \
  11753. prelink_cmds \
  11754. postinstall_cmds \
  11755. postuninstall_cmds \
  11756. finish_cmds \
  11757. sys_lib_search_path_spec \
  11758. sys_lib_dlsearch_path_spec; do
  11759. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11760. *[\\\\\\\`\\"\\\$]*)
  11761. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11762. ;;
  11763. *)
  11764. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11765. ;;
  11766. esac
  11767. done
  11768. # Fix-up fallback echo if it was mangled by the above quoting rules.
  11769. case \$lt_ECHO in
  11770. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  11771. ;;
  11772. esac
  11773. ac_aux_dir='$ac_aux_dir'
  11774. xsi_shell='$xsi_shell'
  11775. lt_shell_append='$lt_shell_append'
  11776. # See if we are running on zsh, and set the options which allow our
  11777. # commands through without removal of \ escapes INIT.
  11778. if test -n "\${ZSH_VERSION+set}" ; then
  11779. setopt NO_GLOB_SUBST
  11780. fi
  11781. PACKAGE='$PACKAGE'
  11782. VERSION='$VERSION'
  11783. TIMESTAMP='$TIMESTAMP'
  11784. RM='$RM'
  11785. ofile='$ofile'
  11786. _ACEOF
  11787. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11788. # Handling of arguments.
  11789. for ac_config_target in $ac_config_targets
  11790. do
  11791. case $ac_config_target in
  11792. "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
  11793. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11794. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11795. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11796. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11797. esac
  11798. done
  11799. # If the user did not use the arguments to specify the items to instantiate,
  11800. # then the envvar interface is used. Set only those that are not.
  11801. # We use the long form for the default assignment because of an extremely
  11802. # bizarre bug on SunOS 4.1.3.
  11803. if $ac_need_defaults; then
  11804. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11805. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11806. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11807. fi
  11808. # Have a temporary directory for convenience. Make it in the build tree
  11809. # simply because there is no reason against having it here, and in addition,
  11810. # creating and moving files from /tmp can sometimes cause problems.
  11811. # Hook for its removal unless debugging.
  11812. # Note that there is a small window in which the directory will not be cleaned:
  11813. # after its creation but before its name has been assigned to `$tmp'.
  11814. $debug ||
  11815. {
  11816. tmp=
  11817. trap 'exit_status=$?
  11818. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11819. ' 0
  11820. trap 'as_fn_exit 1' 1 2 13 15
  11821. }
  11822. # Create a (secure) tmp directory for tmp files.
  11823. {
  11824. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11825. test -n "$tmp" && test -d "$tmp"
  11826. } ||
  11827. {
  11828. tmp=./conf$$-$RANDOM
  11829. (umask 077 && mkdir "$tmp")
  11830. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11831. # Set up the scripts for CONFIG_FILES section.
  11832. # No need to generate them if there are no CONFIG_FILES.
  11833. # This happens for instance with `./config.status config.h'.
  11834. if test -n "$CONFIG_FILES"; then
  11835. ac_cr=`echo X | tr X '\015'`
  11836. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11837. # But we know of no other shell where ac_cr would be empty at this
  11838. # point, so we can use a bashism as a fallback.
  11839. if test "x$ac_cr" = x; then
  11840. eval ac_cr=\$\'\\r\'
  11841. fi
  11842. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11843. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11844. ac_cs_awk_cr='\r'
  11845. else
  11846. ac_cs_awk_cr=$ac_cr
  11847. fi
  11848. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11849. _ACEOF
  11850. {
  11851. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11852. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11853. echo "_ACEOF"
  11854. } >conf$$subs.sh ||
  11855. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11856. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11857. ac_delim='%!_!# '
  11858. for ac_last_try in false false false false false :; do
  11859. . ./conf$$subs.sh ||
  11860. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11861. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11862. if test $ac_delim_n = $ac_delim_num; then
  11863. break
  11864. elif $ac_last_try; then
  11865. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11866. else
  11867. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11868. fi
  11869. done
  11870. rm -f conf$$subs.sh
  11871. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11872. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11873. _ACEOF
  11874. sed -n '
  11875. h
  11876. s/^/S["/; s/!.*/"]=/
  11877. p
  11878. g
  11879. s/^[^!]*!//
  11880. :repl
  11881. t repl
  11882. s/'"$ac_delim"'$//
  11883. t delim
  11884. :nl
  11885. h
  11886. s/\(.\{148\}\)..*/\1/
  11887. t more1
  11888. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11889. p
  11890. n
  11891. b repl
  11892. :more1
  11893. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11894. p
  11895. g
  11896. s/.\{148\}//
  11897. t nl
  11898. :delim
  11899. h
  11900. s/\(.\{148\}\)..*/\1/
  11901. t more2
  11902. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11903. p
  11904. b
  11905. :more2
  11906. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11907. p
  11908. g
  11909. s/.\{148\}//
  11910. t delim
  11911. ' <conf$$subs.awk | sed '
  11912. /^[^""]/{
  11913. N
  11914. s/\n//
  11915. }
  11916. ' >>$CONFIG_STATUS || ac_write_fail=1
  11917. rm -f conf$$subs.awk
  11918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11919. _ACAWK
  11920. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11921. for (key in S) S_is_set[key] = 1
  11922. FS = ""
  11923. }
  11924. {
  11925. line = $ 0
  11926. nfields = split(line, field, "@")
  11927. substed = 0
  11928. len = length(field[1])
  11929. for (i = 2; i < nfields; i++) {
  11930. key = field[i]
  11931. keylen = length(key)
  11932. if (S_is_set[key]) {
  11933. value = S[key]
  11934. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11935. len += length(value) + length(field[++i])
  11936. substed = 1
  11937. } else
  11938. len += 1 + keylen
  11939. }
  11940. print line
  11941. }
  11942. _ACAWK
  11943. _ACEOF
  11944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11945. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11946. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11947. else
  11948. cat
  11949. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11950. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11951. _ACEOF
  11952. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11953. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11954. # trailing colons and then remove the whole line if VPATH becomes empty
  11955. # (actually we leave an empty line to preserve line numbers).
  11956. if test "x$srcdir" = x.; then
  11957. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11958. s/:*\$(srcdir):*/:/
  11959. s/:*\${srcdir}:*/:/
  11960. s/:*@srcdir@:*/:/
  11961. s/^\([^=]*=[ ]*\):*/\1/
  11962. s/:*$//
  11963. s/^[^=]*=[ ]*$//
  11964. }'
  11965. fi
  11966. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11967. fi # test -n "$CONFIG_FILES"
  11968. # Set up the scripts for CONFIG_HEADERS section.
  11969. # No need to generate them if there are no CONFIG_HEADERS.
  11970. # This happens for instance with `./config.status Makefile'.
  11971. if test -n "$CONFIG_HEADERS"; then
  11972. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11973. BEGIN {
  11974. _ACEOF
  11975. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11976. # here-document in config.status, that substitutes the proper values into
  11977. # config.h.in to produce config.h.
  11978. # Create a delimiter string that does not exist in confdefs.h, to ease
  11979. # handling of long lines.
  11980. ac_delim='%!_!# '
  11981. for ac_last_try in false false :; do
  11982. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11983. if test -z "$ac_t"; then
  11984. break
  11985. elif $ac_last_try; then
  11986. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11987. else
  11988. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11989. fi
  11990. done
  11991. # For the awk script, D is an array of macro values keyed by name,
  11992. # likewise P contains macro parameters if any. Preserve backslash
  11993. # newline sequences.
  11994. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11995. sed -n '
  11996. s/.\{148\}/&'"$ac_delim"'/g
  11997. t rset
  11998. :rset
  11999. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12000. t def
  12001. d
  12002. :def
  12003. s/\\$//
  12004. t bsnl
  12005. s/["\\]/\\&/g
  12006. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12007. D["\1"]=" \3"/p
  12008. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12009. d
  12010. :bsnl
  12011. s/["\\]/\\&/g
  12012. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12013. D["\1"]=" \3\\\\\\n"\\/p
  12014. t cont
  12015. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12016. t cont
  12017. d
  12018. :cont
  12019. n
  12020. s/.\{148\}/&'"$ac_delim"'/g
  12021. t clear
  12022. :clear
  12023. s/\\$//
  12024. t bsnlc
  12025. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12026. d
  12027. :bsnlc
  12028. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12029. b cont
  12030. ' <confdefs.h | sed '
  12031. s/'"$ac_delim"'/"\\\
  12032. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12034. for (key in D) D_is_set[key] = 1
  12035. FS = ""
  12036. }
  12037. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12038. line = \$ 0
  12039. split(line, arg, " ")
  12040. if (arg[1] == "#") {
  12041. defundef = arg[2]
  12042. mac1 = arg[3]
  12043. } else {
  12044. defundef = substr(arg[1], 2)
  12045. mac1 = arg[2]
  12046. }
  12047. split(mac1, mac2, "(") #)
  12048. macro = mac2[1]
  12049. prefix = substr(line, 1, index(line, defundef) - 1)
  12050. if (D_is_set[macro]) {
  12051. # Preserve the white space surrounding the "#".
  12052. print prefix "define", macro P[macro] D[macro]
  12053. next
  12054. } else {
  12055. # Replace #undef with comments. This is necessary, for example,
  12056. # in the case of _POSIX_SOURCE, which is predefined and required
  12057. # on some systems where configure will not decide to define it.
  12058. if (defundef == "undef") {
  12059. print "/*", prefix defundef, macro, "*/"
  12060. next
  12061. }
  12062. }
  12063. }
  12064. { print }
  12065. _ACAWK
  12066. _ACEOF
  12067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12068. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12069. fi # test -n "$CONFIG_HEADERS"
  12070. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12071. shift
  12072. for ac_tag
  12073. do
  12074. case $ac_tag in
  12075. :[FHLC]) ac_mode=$ac_tag; continue;;
  12076. esac
  12077. case $ac_mode$ac_tag in
  12078. :[FHL]*:*);;
  12079. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12080. :[FH]-) ac_tag=-:-;;
  12081. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12082. esac
  12083. ac_save_IFS=$IFS
  12084. IFS=:
  12085. set x $ac_tag
  12086. IFS=$ac_save_IFS
  12087. shift
  12088. ac_file=$1
  12089. shift
  12090. case $ac_mode in
  12091. :L) ac_source=$1;;
  12092. :[FH])
  12093. ac_file_inputs=
  12094. for ac_f
  12095. do
  12096. case $ac_f in
  12097. -) ac_f="$tmp/stdin";;
  12098. *) # Look for the file first in the build tree, then in the source tree
  12099. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12100. # because $ac_f cannot contain `:'.
  12101. test -f "$ac_f" ||
  12102. case $ac_f in
  12103. [\\/$]*) false;;
  12104. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12105. esac ||
  12106. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12107. esac
  12108. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12109. as_fn_append ac_file_inputs " '$ac_f'"
  12110. done
  12111. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12112. # use $as_me), people would be surprised to read:
  12113. # /* config.h. Generated by config.status. */
  12114. configure_input='Generated from '`
  12115. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12116. `' by configure.'
  12117. if test x"$ac_file" != x-; then
  12118. configure_input="$ac_file. $configure_input"
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12120. $as_echo "$as_me: creating $ac_file" >&6;}
  12121. fi
  12122. # Neutralize special characters interpreted by sed in replacement strings.
  12123. case $configure_input in #(
  12124. *\&* | *\|* | *\\* )
  12125. ac_sed_conf_input=`$as_echo "$configure_input" |
  12126. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12127. *) ac_sed_conf_input=$configure_input;;
  12128. esac
  12129. case $ac_tag in
  12130. *:-:* | *:-) cat >"$tmp/stdin" \
  12131. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12132. esac
  12133. ;;
  12134. esac
  12135. ac_dir=`$as_dirname -- "$ac_file" ||
  12136. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12137. X"$ac_file" : 'X\(//\)[^/]' \| \
  12138. X"$ac_file" : 'X\(//\)$' \| \
  12139. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12140. $as_echo X"$ac_file" |
  12141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12142. s//\1/
  12143. q
  12144. }
  12145. /^X\(\/\/\)[^/].*/{
  12146. s//\1/
  12147. q
  12148. }
  12149. /^X\(\/\/\)$/{
  12150. s//\1/
  12151. q
  12152. }
  12153. /^X\(\/\).*/{
  12154. s//\1/
  12155. q
  12156. }
  12157. s/.*/./; q'`
  12158. as_dir="$ac_dir"; as_fn_mkdir_p
  12159. ac_builddir=.
  12160. case "$ac_dir" in
  12161. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12162. *)
  12163. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12164. # A ".." for each directory in $ac_dir_suffix.
  12165. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12166. case $ac_top_builddir_sub in
  12167. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12168. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12169. esac ;;
  12170. esac
  12171. ac_abs_top_builddir=$ac_pwd
  12172. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12173. # for backward compatibility:
  12174. ac_top_builddir=$ac_top_build_prefix
  12175. case $srcdir in
  12176. .) # We are building in place.
  12177. ac_srcdir=.
  12178. ac_top_srcdir=$ac_top_builddir_sub
  12179. ac_abs_top_srcdir=$ac_pwd ;;
  12180. [\\/]* | ?:[\\/]* ) # Absolute name.
  12181. ac_srcdir=$srcdir$ac_dir_suffix;
  12182. ac_top_srcdir=$srcdir
  12183. ac_abs_top_srcdir=$srcdir ;;
  12184. *) # Relative name.
  12185. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12186. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12187. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12188. esac
  12189. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12190. case $ac_mode in
  12191. :F)
  12192. #
  12193. # CONFIG_FILE
  12194. #
  12195. case $INSTALL in
  12196. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12197. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12198. esac
  12199. ac_MKDIR_P=$MKDIR_P
  12200. case $MKDIR_P in
  12201. [\\/$]* | ?:[\\/]* ) ;;
  12202. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12203. esac
  12204. _ACEOF
  12205. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12206. # If the template does not know about datarootdir, expand it.
  12207. # FIXME: This hack should be removed a few years after 2.60.
  12208. ac_datarootdir_hack=; ac_datarootdir_seen=
  12209. ac_sed_dataroot='
  12210. /datarootdir/ {
  12211. p
  12212. q
  12213. }
  12214. /@datadir@/p
  12215. /@docdir@/p
  12216. /@infodir@/p
  12217. /@localedir@/p
  12218. /@mandir@/p'
  12219. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12220. *datarootdir*) ac_datarootdir_seen=yes;;
  12221. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12223. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12224. _ACEOF
  12225. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12226. ac_datarootdir_hack='
  12227. s&@datadir@&$datadir&g
  12228. s&@docdir@&$docdir&g
  12229. s&@infodir@&$infodir&g
  12230. s&@localedir@&$localedir&g
  12231. s&@mandir@&$mandir&g
  12232. s&\\\${datarootdir}&$datarootdir&g' ;;
  12233. esac
  12234. _ACEOF
  12235. # Neutralize VPATH when `$srcdir' = `.'.
  12236. # Shell code in configure.ac might set extrasub.
  12237. # FIXME: do we really want to maintain this feature?
  12238. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12239. ac_sed_extra="$ac_vpsub
  12240. $extrasub
  12241. _ACEOF
  12242. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12243. :t
  12244. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12245. s|@configure_input@|$ac_sed_conf_input|;t t
  12246. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12247. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12248. s&@srcdir@&$ac_srcdir&;t t
  12249. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12250. s&@top_srcdir@&$ac_top_srcdir&;t t
  12251. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12252. s&@builddir@&$ac_builddir&;t t
  12253. s&@abs_builddir@&$ac_abs_builddir&;t t
  12254. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12255. s&@INSTALL@&$ac_INSTALL&;t t
  12256. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12257. $ac_datarootdir_hack
  12258. "
  12259. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12260. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12261. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12262. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12263. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12265. which seems to be undefined. Please make sure it is defined." >&5
  12266. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12267. which seems to be undefined. Please make sure it is defined." >&2;}
  12268. rm -f "$tmp/stdin"
  12269. case $ac_file in
  12270. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12271. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12272. esac \
  12273. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12274. ;;
  12275. :H)
  12276. #
  12277. # CONFIG_HEADER
  12278. #
  12279. if test x"$ac_file" != x-; then
  12280. {
  12281. $as_echo "/* $configure_input */" \
  12282. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12283. } >"$tmp/config.h" \
  12284. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12285. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12287. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12288. else
  12289. rm -f "$ac_file"
  12290. mv "$tmp/config.h" "$ac_file" \
  12291. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12292. fi
  12293. else
  12294. $as_echo "/* $configure_input */" \
  12295. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12296. || as_fn_error "could not create -" "$LINENO" 5
  12297. fi
  12298. # Compute "$ac_file"'s index in $config_headers.
  12299. _am_arg="$ac_file"
  12300. _am_stamp_count=1
  12301. for _am_header in $config_headers :; do
  12302. case $_am_header in
  12303. $_am_arg | $_am_arg:* )
  12304. break ;;
  12305. * )
  12306. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12307. esac
  12308. done
  12309. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12310. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12311. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12312. X"$_am_arg" : 'X\(//\)$' \| \
  12313. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12314. $as_echo X"$_am_arg" |
  12315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12316. s//\1/
  12317. q
  12318. }
  12319. /^X\(\/\/\)[^/].*/{
  12320. s//\1/
  12321. q
  12322. }
  12323. /^X\(\/\/\)$/{
  12324. s//\1/
  12325. q
  12326. }
  12327. /^X\(\/\).*/{
  12328. s//\1/
  12329. q
  12330. }
  12331. s/.*/./; q'`/stamp-h$_am_stamp_count
  12332. ;;
  12333. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12334. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12335. ;;
  12336. esac
  12337. case $ac_file$ac_mode in
  12338. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12339. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12340. # are listed without --file. Let's play safe and only enable the eval
  12341. # if we detect the quoting.
  12342. case $CONFIG_FILES in
  12343. *\'*) eval set x "$CONFIG_FILES" ;;
  12344. *) set x $CONFIG_FILES ;;
  12345. esac
  12346. shift
  12347. for mf
  12348. do
  12349. # Strip MF so we end up with the name of the file.
  12350. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12351. # Check whether this is an Automake generated Makefile or not.
  12352. # We used to match only the files named `Makefile.in', but
  12353. # some people rename them; so instead we look at the file content.
  12354. # Grep'ing the first line is not enough: some people post-process
  12355. # each Makefile.in and add a new line on top of each file to say so.
  12356. # Grep'ing the whole file is not good either: AIX grep has a line
  12357. # limit of 2048, but all sed's we know have understand at least 4000.
  12358. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12359. dirpart=`$as_dirname -- "$mf" ||
  12360. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12361. X"$mf" : 'X\(//\)[^/]' \| \
  12362. X"$mf" : 'X\(//\)$' \| \
  12363. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12364. $as_echo X"$mf" |
  12365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12366. s//\1/
  12367. q
  12368. }
  12369. /^X\(\/\/\)[^/].*/{
  12370. s//\1/
  12371. q
  12372. }
  12373. /^X\(\/\/\)$/{
  12374. s//\1/
  12375. q
  12376. }
  12377. /^X\(\/\).*/{
  12378. s//\1/
  12379. q
  12380. }
  12381. s/.*/./; q'`
  12382. else
  12383. continue
  12384. fi
  12385. # Extract the definition of DEPDIR, am__include, and am__quote
  12386. # from the Makefile without running `make'.
  12387. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12388. test -z "$DEPDIR" && continue
  12389. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12390. test -z "am__include" && continue
  12391. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12392. # When using ansi2knr, U may be empty or an underscore; expand it
  12393. U=`sed -n 's/^U = //p' < "$mf"`
  12394. # Find all dependency output files, they are included files with
  12395. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12396. # simplest approach to changing $(DEPDIR) to its actual value in the
  12397. # expansion.
  12398. for file in `sed -n "
  12399. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12400. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12401. # Make sure the directory exists.
  12402. test -f "$dirpart/$file" && continue
  12403. fdir=`$as_dirname -- "$file" ||
  12404. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12405. X"$file" : 'X\(//\)[^/]' \| \
  12406. X"$file" : 'X\(//\)$' \| \
  12407. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12408. $as_echo X"$file" |
  12409. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12410. s//\1/
  12411. q
  12412. }
  12413. /^X\(\/\/\)[^/].*/{
  12414. s//\1/
  12415. q
  12416. }
  12417. /^X\(\/\/\)$/{
  12418. s//\1/
  12419. q
  12420. }
  12421. /^X\(\/\).*/{
  12422. s//\1/
  12423. q
  12424. }
  12425. s/.*/./; q'`
  12426. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12427. # echo "creating $dirpart/$file"
  12428. echo '# dummy' > "$dirpart/$file"
  12429. done
  12430. done
  12431. }
  12432. ;;
  12433. "libtool":C)
  12434. # See if we are running on zsh, and set the options which allow our
  12435. # commands through without removal of \ escapes.
  12436. if test -n "${ZSH_VERSION+set}" ; then
  12437. setopt NO_GLOB_SUBST
  12438. fi
  12439. cfgfile="${ofile}T"
  12440. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12441. $RM "$cfgfile"
  12442. cat <<_LT_EOF >> "$cfgfile"
  12443. #! $SHELL
  12444. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12445. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12446. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12447. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12448. #
  12449. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12450. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12451. # Written by Gordon Matzigkeit, 1996
  12452. #
  12453. # This file is part of GNU Libtool.
  12454. #
  12455. # GNU Libtool is free software; you can redistribute it and/or
  12456. # modify it under the terms of the GNU General Public License as
  12457. # published by the Free Software Foundation; either version 2 of
  12458. # the License, or (at your option) any later version.
  12459. #
  12460. # As a special exception to the GNU General Public License,
  12461. # if you distribute this file as part of a program or library that
  12462. # is built using GNU Libtool, you may include this file under the
  12463. # same distribution terms that you use for the rest of that program.
  12464. #
  12465. # GNU Libtool is distributed in the hope that it will be useful,
  12466. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12467. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12468. # GNU General Public License for more details.
  12469. #
  12470. # You should have received a copy of the GNU General Public License
  12471. # along with GNU Libtool; see the file COPYING. If not, a copy
  12472. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12473. # obtained by writing to the Free Software Foundation, Inc.,
  12474. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12475. # The names of the tagged configurations supported by this script.
  12476. available_tags=""
  12477. # ### BEGIN LIBTOOL CONFIG
  12478. # Assembler program.
  12479. AS=$AS
  12480. # DLL creation program.
  12481. DLLTOOL=$DLLTOOL
  12482. # Object dumper program.
  12483. OBJDUMP=$OBJDUMP
  12484. # Which release of libtool.m4 was used?
  12485. macro_version=$macro_version
  12486. macro_revision=$macro_revision
  12487. # Whether or not to build shared libraries.
  12488. build_libtool_libs=$enable_shared
  12489. # Whether or not to build static libraries.
  12490. build_old_libs=$enable_static
  12491. # What type of objects to build.
  12492. pic_mode=$pic_mode
  12493. # Whether or not to optimize for fast installation.
  12494. fast_install=$enable_fast_install
  12495. # The host system.
  12496. host_alias=$host_alias
  12497. host=$host
  12498. host_os=$host_os
  12499. # The build system.
  12500. build_alias=$build_alias
  12501. build=$build
  12502. build_os=$build_os
  12503. # A sed program that does not truncate output.
  12504. SED=$lt_SED
  12505. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12506. Xsed="\$SED -e 1s/^X//"
  12507. # A grep program that handles long lines.
  12508. GREP=$lt_GREP
  12509. # An ERE matcher.
  12510. EGREP=$lt_EGREP
  12511. # A literal string matcher.
  12512. FGREP=$lt_FGREP
  12513. # A BSD- or MS-compatible name lister.
  12514. NM=$lt_NM
  12515. # Whether we need soft or hard links.
  12516. LN_S=$lt_LN_S
  12517. # What is the maximum length of a command?
  12518. max_cmd_len=$max_cmd_len
  12519. # Object file suffix (normally "o").
  12520. objext=$ac_objext
  12521. # Executable file suffix (normally "").
  12522. exeext=$exeext
  12523. # whether the shell understands "unset".
  12524. lt_unset=$lt_unset
  12525. # turn spaces into newlines.
  12526. SP2NL=$lt_lt_SP2NL
  12527. # turn newlines into spaces.
  12528. NL2SP=$lt_lt_NL2SP
  12529. # How to create reloadable object files.
  12530. reload_flag=$lt_reload_flag
  12531. reload_cmds=$lt_reload_cmds
  12532. # Method to check whether dependent libraries are shared objects.
  12533. deplibs_check_method=$lt_deplibs_check_method
  12534. # Command to use when deplibs_check_method == "file_magic".
  12535. file_magic_cmd=$lt_file_magic_cmd
  12536. # The archiver.
  12537. AR=$lt_AR
  12538. AR_FLAGS=$lt_AR_FLAGS
  12539. # A symbol stripping program.
  12540. STRIP=$lt_STRIP
  12541. # Commands used to install an old-style archive.
  12542. RANLIB=$lt_RANLIB
  12543. old_postinstall_cmds=$lt_old_postinstall_cmds
  12544. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12545. # A C compiler.
  12546. LTCC=$lt_CC
  12547. # LTCC compiler flags.
  12548. LTCFLAGS=$lt_CFLAGS
  12549. # Take the output of nm and produce a listing of raw symbols and C names.
  12550. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12551. # Transform the output of nm in a proper C declaration.
  12552. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12553. # Transform the output of nm in a C name address pair.
  12554. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12555. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12556. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12557. # The name of the directory that contains temporary libtool files.
  12558. objdir=$objdir
  12559. # Shell to use when invoking shell scripts.
  12560. SHELL=$lt_SHELL
  12561. # An echo program that does not interpret backslashes.
  12562. ECHO=$lt_ECHO
  12563. # Used to examine libraries when file_magic_cmd begins with "file".
  12564. MAGIC_CMD=$MAGIC_CMD
  12565. # Must we lock files when doing compilation?
  12566. need_locks=$lt_need_locks
  12567. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12568. DSYMUTIL=$lt_DSYMUTIL
  12569. # Tool to change global to local symbols on Mac OS X.
  12570. NMEDIT=$lt_NMEDIT
  12571. # Tool to manipulate fat objects and archives on Mac OS X.
  12572. LIPO=$lt_LIPO
  12573. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12574. OTOOL=$lt_OTOOL
  12575. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12576. OTOOL64=$lt_OTOOL64
  12577. # Old archive suffix (normally "a").
  12578. libext=$libext
  12579. # Shared library suffix (normally ".so").
  12580. shrext_cmds=$lt_shrext_cmds
  12581. # The commands to extract the exported symbol list from a shared archive.
  12582. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12583. # Variables whose values should be saved in libtool wrapper scripts and
  12584. # restored at link time.
  12585. variables_saved_for_relink=$lt_variables_saved_for_relink
  12586. # Do we need the "lib" prefix for modules?
  12587. need_lib_prefix=$need_lib_prefix
  12588. # Do we need a version for libraries?
  12589. need_version=$need_version
  12590. # Library versioning type.
  12591. version_type=$version_type
  12592. # Shared library runtime path variable.
  12593. runpath_var=$runpath_var
  12594. # Shared library path variable.
  12595. shlibpath_var=$shlibpath_var
  12596. # Is shlibpath searched before the hard-coded library search path?
  12597. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12598. # Format of library name prefix.
  12599. libname_spec=$lt_libname_spec
  12600. # List of archive names. First name is the real one, the rest are links.
  12601. # The last name is the one that the linker finds with -lNAME
  12602. library_names_spec=$lt_library_names_spec
  12603. # The coded name of the library, if different from the real name.
  12604. soname_spec=$lt_soname_spec
  12605. # Command to use after installation of a shared archive.
  12606. postinstall_cmds=$lt_postinstall_cmds
  12607. # Command to use after uninstallation of a shared archive.
  12608. postuninstall_cmds=$lt_postuninstall_cmds
  12609. # Commands used to finish a libtool library installation in a directory.
  12610. finish_cmds=$lt_finish_cmds
  12611. # As "finish_cmds", except a single script fragment to be evaled but
  12612. # not shown.
  12613. finish_eval=$lt_finish_eval
  12614. # Whether we should hardcode library paths into libraries.
  12615. hardcode_into_libs=$hardcode_into_libs
  12616. # Compile-time system search path for libraries.
  12617. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12618. # Run-time system search path for libraries.
  12619. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12620. # Whether dlopen is supported.
  12621. dlopen_support=$enable_dlopen
  12622. # Whether dlopen of programs is supported.
  12623. dlopen_self=$enable_dlopen_self
  12624. # Whether dlopen of statically linked programs is supported.
  12625. dlopen_self_static=$enable_dlopen_self_static
  12626. # Commands to strip libraries.
  12627. old_striplib=$lt_old_striplib
  12628. striplib=$lt_striplib
  12629. # The linker used to build libraries.
  12630. LD=$lt_LD
  12631. # Commands used to build an old-style archive.
  12632. old_archive_cmds=$lt_old_archive_cmds
  12633. # A language specific compiler.
  12634. CC=$lt_compiler
  12635. # Is the compiler the GNU compiler?
  12636. with_gcc=$GCC
  12637. # Compiler flag to turn off builtin functions.
  12638. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12639. # How to pass a linker flag through the compiler.
  12640. wl=$lt_lt_prog_compiler_wl
  12641. # Additional compiler flags for building library objects.
  12642. pic_flag=$lt_lt_prog_compiler_pic
  12643. # Compiler flag to prevent dynamic linking.
  12644. link_static_flag=$lt_lt_prog_compiler_static
  12645. # Does compiler simultaneously support -c and -o options?
  12646. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12647. # Whether or not to add -lc for building shared libraries.
  12648. build_libtool_need_lc=$archive_cmds_need_lc
  12649. # Whether or not to disallow shared libs when runtime libs are static.
  12650. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12651. # Compiler flag to allow reflexive dlopens.
  12652. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12653. # Compiler flag to generate shared objects directly from archives.
  12654. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12655. # Whether the compiler copes with passing no objects directly.
  12656. compiler_needs_object=$lt_compiler_needs_object
  12657. # Create an old-style archive from a shared archive.
  12658. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12659. # Create a temporary old-style archive to link instead of a shared archive.
  12660. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12661. # Commands used to build a shared archive.
  12662. archive_cmds=$lt_archive_cmds
  12663. archive_expsym_cmds=$lt_archive_expsym_cmds
  12664. # Commands used to build a loadable module if different from building
  12665. # a shared archive.
  12666. module_cmds=$lt_module_cmds
  12667. module_expsym_cmds=$lt_module_expsym_cmds
  12668. # Whether we are building with GNU ld or not.
  12669. with_gnu_ld=$lt_with_gnu_ld
  12670. # Flag that allows shared libraries with undefined symbols to be built.
  12671. allow_undefined_flag=$lt_allow_undefined_flag
  12672. # Flag that enforces no undefined symbols.
  12673. no_undefined_flag=$lt_no_undefined_flag
  12674. # Flag to hardcode \$libdir into a binary during linking.
  12675. # This must work even if \$libdir does not exist
  12676. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12677. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12678. # during linking. This must work even if \$libdir does not exist.
  12679. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12680. # Whether we need a single "-rpath" flag with a separated argument.
  12681. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12682. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12683. # DIR into the resulting binary.
  12684. hardcode_direct=$hardcode_direct
  12685. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12686. # DIR into the resulting binary and the resulting library dependency is
  12687. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12688. # library is relocated.
  12689. hardcode_direct_absolute=$hardcode_direct_absolute
  12690. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12691. # into the resulting binary.
  12692. hardcode_minus_L=$hardcode_minus_L
  12693. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12694. # into the resulting binary.
  12695. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12696. # Set to "yes" if building a shared library automatically hardcodes DIR
  12697. # into the library and all subsequent libraries and executables linked
  12698. # against it.
  12699. hardcode_automatic=$hardcode_automatic
  12700. # Set to yes if linker adds runtime paths of dependent libraries
  12701. # to runtime path list.
  12702. inherit_rpath=$inherit_rpath
  12703. # Whether libtool must link a program against all its dependency libraries.
  12704. link_all_deplibs=$link_all_deplibs
  12705. # Fix the shell variable \$srcfile for the compiler.
  12706. fix_srcfile_path=$lt_fix_srcfile_path
  12707. # Set to "yes" if exported symbols are required.
  12708. always_export_symbols=$always_export_symbols
  12709. # The commands to list exported symbols.
  12710. export_symbols_cmds=$lt_export_symbols_cmds
  12711. # Symbols that should not be listed in the preloaded symbols.
  12712. exclude_expsyms=$lt_exclude_expsyms
  12713. # Symbols that must always be exported.
  12714. include_expsyms=$lt_include_expsyms
  12715. # Commands necessary for linking programs (against libraries) with templates.
  12716. prelink_cmds=$lt_prelink_cmds
  12717. # Specify filename containing input files.
  12718. file_list_spec=$lt_file_list_spec
  12719. # How to hardcode a shared library path into an executable.
  12720. hardcode_action=$hardcode_action
  12721. # ### END LIBTOOL CONFIG
  12722. _LT_EOF
  12723. case $host_os in
  12724. aix3*)
  12725. cat <<\_LT_EOF >> "$cfgfile"
  12726. # AIX sometimes has problems with the GCC collect2 program. For some
  12727. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12728. # vanish in a puff of smoke.
  12729. if test "X${COLLECT_NAMES+set}" != Xset; then
  12730. COLLECT_NAMES=
  12731. export COLLECT_NAMES
  12732. fi
  12733. _LT_EOF
  12734. ;;
  12735. esac
  12736. ltmain="$ac_aux_dir/ltmain.sh"
  12737. # We use sed instead of cat because bash on DJGPP gets confused if
  12738. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12739. # text mode, it properly converts lines to CR/LF. This bash problem
  12740. # is reportedly fixed, but why not run on old versions too?
  12741. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12742. || (rm -f "$cfgfile"; exit 1)
  12743. case $xsi_shell in
  12744. yes)
  12745. cat << \_LT_EOF >> "$cfgfile"
  12746. # func_dirname file append nondir_replacement
  12747. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12748. # otherwise set result to NONDIR_REPLACEMENT.
  12749. func_dirname ()
  12750. {
  12751. case ${1} in
  12752. */*) func_dirname_result="${1%/*}${2}" ;;
  12753. * ) func_dirname_result="${3}" ;;
  12754. esac
  12755. }
  12756. # func_basename file
  12757. func_basename ()
  12758. {
  12759. func_basename_result="${1##*/}"
  12760. }
  12761. # func_dirname_and_basename file append nondir_replacement
  12762. # perform func_basename and func_dirname in a single function
  12763. # call:
  12764. # dirname: Compute the dirname of FILE. If nonempty,
  12765. # add APPEND to the result, otherwise set result
  12766. # to NONDIR_REPLACEMENT.
  12767. # value returned in "$func_dirname_result"
  12768. # basename: Compute filename of FILE.
  12769. # value retuned in "$func_basename_result"
  12770. # Implementation must be kept synchronized with func_dirname
  12771. # and func_basename. For efficiency, we do not delegate to
  12772. # those functions but instead duplicate the functionality here.
  12773. func_dirname_and_basename ()
  12774. {
  12775. case ${1} in
  12776. */*) func_dirname_result="${1%/*}${2}" ;;
  12777. * ) func_dirname_result="${3}" ;;
  12778. esac
  12779. func_basename_result="${1##*/}"
  12780. }
  12781. # func_stripname prefix suffix name
  12782. # strip PREFIX and SUFFIX off of NAME.
  12783. # PREFIX and SUFFIX must not contain globbing or regex special
  12784. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12785. # dot (in which case that matches only a dot).
  12786. func_stripname ()
  12787. {
  12788. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12789. # positional parameters, so assign one to ordinary parameter first.
  12790. func_stripname_result=${3}
  12791. func_stripname_result=${func_stripname_result#"${1}"}
  12792. func_stripname_result=${func_stripname_result%"${2}"}
  12793. }
  12794. # func_opt_split
  12795. func_opt_split ()
  12796. {
  12797. func_opt_split_opt=${1%%=*}
  12798. func_opt_split_arg=${1#*=}
  12799. }
  12800. # func_lo2o object
  12801. func_lo2o ()
  12802. {
  12803. case ${1} in
  12804. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12805. *) func_lo2o_result=${1} ;;
  12806. esac
  12807. }
  12808. # func_xform libobj-or-source
  12809. func_xform ()
  12810. {
  12811. func_xform_result=${1%.*}.lo
  12812. }
  12813. # func_arith arithmetic-term...
  12814. func_arith ()
  12815. {
  12816. func_arith_result=$(( $* ))
  12817. }
  12818. # func_len string
  12819. # STRING may not start with a hyphen.
  12820. func_len ()
  12821. {
  12822. func_len_result=${#1}
  12823. }
  12824. _LT_EOF
  12825. ;;
  12826. *) # Bourne compatible functions.
  12827. cat << \_LT_EOF >> "$cfgfile"
  12828. # func_dirname file append nondir_replacement
  12829. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12830. # otherwise set result to NONDIR_REPLACEMENT.
  12831. func_dirname ()
  12832. {
  12833. # Extract subdirectory from the argument.
  12834. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  12835. if test "X$func_dirname_result" = "X${1}"; then
  12836. func_dirname_result="${3}"
  12837. else
  12838. func_dirname_result="$func_dirname_result${2}"
  12839. fi
  12840. }
  12841. # func_basename file
  12842. func_basename ()
  12843. {
  12844. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  12845. }
  12846. # func_stripname prefix suffix name
  12847. # strip PREFIX and SUFFIX off of NAME.
  12848. # PREFIX and SUFFIX must not contain globbing or regex special
  12849. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12850. # dot (in which case that matches only a dot).
  12851. # func_strip_suffix prefix name
  12852. func_stripname ()
  12853. {
  12854. case ${2} in
  12855. .*) func_stripname_result=`$ECHO "X${3}" \
  12856. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  12857. *) func_stripname_result=`$ECHO "X${3}" \
  12858. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  12859. esac
  12860. }
  12861. # sed scripts:
  12862. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12863. my_sed_long_arg='1s/^-[^=]*=//'
  12864. # func_opt_split
  12865. func_opt_split ()
  12866. {
  12867. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  12868. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  12869. }
  12870. # func_lo2o object
  12871. func_lo2o ()
  12872. {
  12873. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  12874. }
  12875. # func_xform libobj-or-source
  12876. func_xform ()
  12877. {
  12878. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  12879. }
  12880. # func_arith arithmetic-term...
  12881. func_arith ()
  12882. {
  12883. func_arith_result=`expr "$@"`
  12884. }
  12885. # func_len string
  12886. # STRING may not start with a hyphen.
  12887. func_len ()
  12888. {
  12889. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12890. }
  12891. _LT_EOF
  12892. esac
  12893. case $lt_shell_append in
  12894. yes)
  12895. cat << \_LT_EOF >> "$cfgfile"
  12896. # func_append var value
  12897. # Append VALUE to the end of shell variable VAR.
  12898. func_append ()
  12899. {
  12900. eval "$1+=\$2"
  12901. }
  12902. _LT_EOF
  12903. ;;
  12904. *)
  12905. cat << \_LT_EOF >> "$cfgfile"
  12906. # func_append var value
  12907. # Append VALUE to the end of shell variable VAR.
  12908. func_append ()
  12909. {
  12910. eval "$1=\$$1\$2"
  12911. }
  12912. _LT_EOF
  12913. ;;
  12914. esac
  12915. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12916. || (rm -f "$cfgfile"; exit 1)
  12917. mv -f "$cfgfile" "$ofile" ||
  12918. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12919. chmod +x "$ofile"
  12920. ;;
  12921. esac
  12922. done # for ac_tag
  12923. as_fn_exit 0
  12924. _ACEOF
  12925. ac_clean_files=$ac_clean_files_save
  12926. test $ac_write_fail = 0 ||
  12927. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12928. # configure is writing to config.log, and then calls config.status.
  12929. # config.status does its own redirection, appending to config.log.
  12930. # Unfortunately, on DOS this fails, as config.log is still kept open
  12931. # by configure, so config.status won't be able to write to it; its
  12932. # output is simply discarded. So we exec the FD to /dev/null,
  12933. # effectively closing config.log, so it can be properly (re)opened and
  12934. # appended to by config.status. When coming back to configure, we
  12935. # need to make the FD available again.
  12936. if test "$no_create" != yes; then
  12937. ac_cs_success=:
  12938. ac_config_status_args=
  12939. test "$silent" = yes &&
  12940. ac_config_status_args="$ac_config_status_args --quiet"
  12941. exec 5>/dev/null
  12942. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12943. exec 5>>config.log
  12944. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12945. # would make configure fail if this is the last instruction.
  12946. $ac_cs_success || as_fn_exit $?
  12947. fi
  12948. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12950. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12951. fi