/gcc-4.5/libgfortran/configure

https://bitbucket.org/pizzafactory/blackfin-toolchain · Shell · 28014 lines · 26335 code · 966 blank · 713 comment · 752 complexity · 383e0dc6a9c043df8542fd70ed506dec MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='GNU Fortran Runtime Library'
  509. PACKAGE_TARNAME='libgfortran'
  510. PACKAGE_VERSION='0.3'
  511. PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. IEEE_FLAGS
  554. FPU_HOST_HEADER
  555. extra_ldflags_libgfortran
  556. ac_ct_FC
  557. FCFLAGS
  558. FC
  559. enable_static
  560. enable_shared
  561. CPP
  562. OTOOL64
  563. OTOOL
  564. LIPO
  565. NMEDIT
  566. DSYMUTIL
  567. OBJDUMP
  568. LN_S
  569. NM
  570. ac_ct_DUMPBIN
  571. DUMPBIN
  572. LD
  573. FGREP
  574. EGREP
  575. GREP
  576. SED
  577. LIBTOOL
  578. RANLIB
  579. AR
  580. AS
  581. SECTION_FLAGS
  582. LIBGFOR_USE_SYMVER_FALSE
  583. LIBGFOR_USE_SYMVER_TRUE
  584. AM_CFLAGS
  585. AM_FCFLAGS
  586. am__fastdepCC_FALSE
  587. am__fastdepCC_TRUE
  588. CCDEPMODE
  589. AMDEPBACKSLASH
  590. AMDEP_FALSE
  591. AMDEP_TRUE
  592. am__quote
  593. am__include
  594. DEPDIR
  595. OBJEXT
  596. EXEEXT
  597. ac_ct_CC
  598. CPPFLAGS
  599. LDFLAGS
  600. CFLAGS
  601. CC
  602. toolexeclibdir
  603. toolexecdir
  604. multi_basedir
  605. MAINT
  606. MAINTAINER_MODE_FALSE
  607. MAINTAINER_MODE_TRUE
  608. am__untar
  609. am__tar
  610. AMTAR
  611. am__leading_dot
  612. SET_MAKE
  613. AWK
  614. mkdir_p
  615. MKDIR_P
  616. INSTALL_STRIP_PROGRAM
  617. STRIP
  618. install_sh
  619. MAKEINFO
  620. AUTOHEADER
  621. AUTOMAKE
  622. AUTOCONF
  623. ACLOCAL
  624. VERSION
  625. PACKAGE
  626. CYGPATH_W
  627. am__isrc
  628. INSTALL_DATA
  629. INSTALL_SCRIPT
  630. INSTALL_PROGRAM
  631. target_os
  632. target_vendor
  633. target_cpu
  634. target
  635. host_os
  636. host_vendor
  637. host_cpu
  638. host
  639. onestep
  640. onestep_FALSE
  641. onestep_TRUE
  642. target_subdir
  643. host_subdir
  644. build_subdir
  645. build_libsubdir
  646. build_os
  647. build_vendor
  648. build_cpu
  649. build
  650. target_alias
  651. host_alias
  652. build_alias
  653. LIBS
  654. ECHO_T
  655. ECHO_N
  656. ECHO_C
  657. DEFS
  658. mandir
  659. localedir
  660. libdir
  661. psdir
  662. pdfdir
  663. dvidir
  664. htmldir
  665. infodir
  666. docdir
  667. oldincludedir
  668. includedir
  669. localstatedir
  670. sharedstatedir
  671. sysconfdir
  672. datadir
  673. datarootdir
  674. libexecdir
  675. sbindir
  676. bindir
  677. program_transform_name
  678. prefix
  679. exec_prefix
  680. PACKAGE_URL
  681. PACKAGE_BUGREPORT
  682. PACKAGE_STRING
  683. PACKAGE_VERSION
  684. PACKAGE_TARNAME
  685. PACKAGE_NAME
  686. PATH_SEPARATOR
  687. SHELL'
  688. ac_subst_files=''
  689. ac_user_opts='
  690. enable_option_checking
  691. with_build_libsubdir
  692. enable_version_specific_runtime_libs
  693. enable_intermodule
  694. enable_symvers
  695. enable_maintainer_mode
  696. enable_multilib
  697. enable_dependency_tracking
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. enable_libtool_lock
  704. enable_largefile
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CPP
  710. CPPFLAGS
  711. FC
  712. FCFLAGS
  713. LDFLAGS
  714. LIBS'
  715. # Initialize some variables set by options.
  716. ac_init_help=
  717. ac_init_version=false
  718. ac_unrecognized_opts=
  719. ac_unrecognized_sep=
  720. # The variables have the same names as the options, with
  721. # dashes changed to underlines.
  722. cache_file=/dev/null
  723. exec_prefix=NONE
  724. no_create=
  725. no_recursion=
  726. prefix=NONE
  727. program_prefix=NONE
  728. program_suffix=NONE
  729. program_transform_name=s,x,x,
  730. silent=
  731. site=
  732. srcdir=
  733. verbose=
  734. x_includes=NONE
  735. x_libraries=NONE
  736. # Installation directory options.
  737. # These are left unexpanded so users can "make install exec_prefix=/foo"
  738. # and all the variables that are supposed to be based on exec_prefix
  739. # by default will actually change.
  740. # Use braces instead of parens because sh, perl, etc. also accept them.
  741. # (The list follows the same order as the GNU Coding Standards.)
  742. bindir='${exec_prefix}/bin'
  743. sbindir='${exec_prefix}/sbin'
  744. libexecdir='${exec_prefix}/libexec'
  745. datarootdir='${prefix}/share'
  746. datadir='${datarootdir}'
  747. sysconfdir='${prefix}/etc'
  748. sharedstatedir='${prefix}/com'
  749. localstatedir='${prefix}/var'
  750. includedir='${prefix}/include'
  751. oldincludedir='/usr/include'
  752. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  753. infodir='${datarootdir}/info'
  754. htmldir='${docdir}'
  755. dvidir='${docdir}'
  756. pdfdir='${docdir}'
  757. psdir='${docdir}'
  758. libdir='${exec_prefix}/lib'
  759. localedir='${datarootdir}/locale'
  760. mandir='${datarootdir}/man'
  761. ac_prev=
  762. ac_dashdash=
  763. for ac_option
  764. do
  765. # If the previous option needs an argument, assign it.
  766. if test -n "$ac_prev"; then
  767. eval $ac_prev=\$ac_option
  768. ac_prev=
  769. continue
  770. fi
  771. case $ac_option in
  772. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  773. *) ac_optarg=yes ;;
  774. esac
  775. # Accept the important Cygnus configure options, so we can diagnose typos.
  776. case $ac_dashdash$ac_option in
  777. --)
  778. ac_dashdash=yes ;;
  779. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  780. ac_prev=bindir ;;
  781. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  782. bindir=$ac_optarg ;;
  783. -build | --build | --buil | --bui | --bu)
  784. ac_prev=build_alias ;;
  785. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  786. build_alias=$ac_optarg ;;
  787. -cache-file | --cache-file | --cache-fil | --cache-fi \
  788. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  789. ac_prev=cache_file ;;
  790. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  791. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  792. cache_file=$ac_optarg ;;
  793. --config-cache | -C)
  794. cache_file=config.cache ;;
  795. -datadir | --datadir | --datadi | --datad)
  796. ac_prev=datadir ;;
  797. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  798. datadir=$ac_optarg ;;
  799. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  800. | --dataroo | --dataro | --datar)
  801. ac_prev=datarootdir ;;
  802. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  803. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  804. datarootdir=$ac_optarg ;;
  805. -disable-* | --disable-*)
  806. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  807. # Reject names that are not valid shell variable names.
  808. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  809. as_fn_error "invalid feature name: $ac_useropt"
  810. ac_useropt_orig=$ac_useropt
  811. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  812. case $ac_user_opts in
  813. *"
  814. "enable_$ac_useropt"
  815. "*) ;;
  816. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  817. ac_unrecognized_sep=', ';;
  818. esac
  819. eval enable_$ac_useropt=no ;;
  820. -docdir | --docdir | --docdi | --doc | --do)
  821. ac_prev=docdir ;;
  822. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  823. docdir=$ac_optarg ;;
  824. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  825. ac_prev=dvidir ;;
  826. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  827. dvidir=$ac_optarg ;;
  828. -enable-* | --enable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=\$ac_optarg ;;
  843. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  844. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  845. | --exec | --exe | --ex)
  846. ac_prev=exec_prefix ;;
  847. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  848. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  849. | --exec=* | --exe=* | --ex=*)
  850. exec_prefix=$ac_optarg ;;
  851. -gas | --gas | --ga | --g)
  852. # Obsolete; use --with-gas.
  853. with_gas=yes ;;
  854. -help | --help | --hel | --he | -h)
  855. ac_init_help=long ;;
  856. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  857. ac_init_help=recursive ;;
  858. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  859. ac_init_help=short ;;
  860. -host | --host | --hos | --ho)
  861. ac_prev=host_alias ;;
  862. -host=* | --host=* | --hos=* | --ho=*)
  863. host_alias=$ac_optarg ;;
  864. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  865. ac_prev=htmldir ;;
  866. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  867. | --ht=*)
  868. htmldir=$ac_optarg ;;
  869. -includedir | --includedir | --includedi | --included | --include \
  870. | --includ | --inclu | --incl | --inc)
  871. ac_prev=includedir ;;
  872. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  873. | --includ=* | --inclu=* | --incl=* | --inc=*)
  874. includedir=$ac_optarg ;;
  875. -infodir | --infodir | --infodi | --infod | --info | --inf)
  876. ac_prev=infodir ;;
  877. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  878. infodir=$ac_optarg ;;
  879. -libdir | --libdir | --libdi | --libd)
  880. ac_prev=libdir ;;
  881. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  882. libdir=$ac_optarg ;;
  883. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  884. | --libexe | --libex | --libe)
  885. ac_prev=libexecdir ;;
  886. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  887. | --libexe=* | --libex=* | --libe=*)
  888. libexecdir=$ac_optarg ;;
  889. -localedir | --localedir | --localedi | --localed | --locale)
  890. ac_prev=localedir ;;
  891. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  892. localedir=$ac_optarg ;;
  893. -localstatedir | --localstatedir | --localstatedi | --localstated \
  894. | --localstate | --localstat | --localsta | --localst | --locals)
  895. ac_prev=localstatedir ;;
  896. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  897. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  898. localstatedir=$ac_optarg ;;
  899. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  900. ac_prev=mandir ;;
  901. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  902. mandir=$ac_optarg ;;
  903. -nfp | --nfp | --nf)
  904. # Obsolete; use --without-fp.
  905. with_fp=no ;;
  906. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  907. | --no-cr | --no-c | -n)
  908. no_create=yes ;;
  909. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  910. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  911. no_recursion=yes ;;
  912. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  913. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  914. | --oldin | --oldi | --old | --ol | --o)
  915. ac_prev=oldincludedir ;;
  916. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  917. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  918. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  919. oldincludedir=$ac_optarg ;;
  920. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  921. ac_prev=prefix ;;
  922. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  923. prefix=$ac_optarg ;;
  924. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  925. | --program-pre | --program-pr | --program-p)
  926. ac_prev=program_prefix ;;
  927. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  928. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  929. program_prefix=$ac_optarg ;;
  930. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  931. | --program-suf | --program-su | --program-s)
  932. ac_prev=program_suffix ;;
  933. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  934. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  935. program_suffix=$ac_optarg ;;
  936. -program-transform-name | --program-transform-name \
  937. | --program-transform-nam | --program-transform-na \
  938. | --program-transform-n | --program-transform- \
  939. | --program-transform | --program-transfor \
  940. | --program-transfo | --program-transf \
  941. | --program-trans | --program-tran \
  942. | --progr-tra | --program-tr | --program-t)
  943. ac_prev=program_transform_name ;;
  944. -program-transform-name=* | --program-transform-name=* \
  945. | --program-transform-nam=* | --program-transform-na=* \
  946. | --program-transform-n=* | --program-transform-=* \
  947. | --program-transform=* | --program-transfor=* \
  948. | --program-transfo=* | --program-transf=* \
  949. | --program-trans=* | --program-tran=* \
  950. | --progr-tra=* | --program-tr=* | --program-t=*)
  951. program_transform_name=$ac_optarg ;;
  952. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  953. ac_prev=pdfdir ;;
  954. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  955. pdfdir=$ac_optarg ;;
  956. -psdir | --psdir | --psdi | --psd | --ps)
  957. ac_prev=psdir ;;
  958. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  959. psdir=$ac_optarg ;;
  960. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  961. | -silent | --silent | --silen | --sile | --sil)
  962. silent=yes ;;
  963. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  964. ac_prev=sbindir ;;
  965. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  966. | --sbi=* | --sb=*)
  967. sbindir=$ac_optarg ;;
  968. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  969. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  970. | --sharedst | --shareds | --shared | --share | --shar \
  971. | --sha | --sh)
  972. ac_prev=sharedstatedir ;;
  973. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  974. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  975. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  976. | --sha=* | --sh=*)
  977. sharedstatedir=$ac_optarg ;;
  978. -site | --site | --sit)
  979. ac_prev=site ;;
  980. -site=* | --site=* | --sit=*)
  981. site=$ac_optarg ;;
  982. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  983. ac_prev=srcdir ;;
  984. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  985. srcdir=$ac_optarg ;;
  986. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  987. | --syscon | --sysco | --sysc | --sys | --sy)
  988. ac_prev=sysconfdir ;;
  989. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  990. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  991. sysconfdir=$ac_optarg ;;
  992. -target | --target | --targe | --targ | --tar | --ta | --t)
  993. ac_prev=target_alias ;;
  994. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  995. target_alias=$ac_optarg ;;
  996. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  997. verbose=yes ;;
  998. -version | --version | --versio | --versi | --vers | -V)
  999. ac_init_version=: ;;
  1000. -with-* | --with-*)
  1001. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1002. # Reject names that are not valid shell variable names.
  1003. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1004. as_fn_error "invalid package name: $ac_useropt"
  1005. ac_useropt_orig=$ac_useropt
  1006. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007. case $ac_user_opts in
  1008. *"
  1009. "with_$ac_useropt"
  1010. "*) ;;
  1011. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1012. ac_unrecognized_sep=', ';;
  1013. esac
  1014. eval with_$ac_useropt=\$ac_optarg ;;
  1015. -without-* | --without-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=no ;;
  1030. --x)
  1031. # Obsolete; use --with-x.
  1032. with_x=yes ;;
  1033. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1034. | --x-incl | --x-inc | --x-in | --x-i)
  1035. ac_prev=x_includes ;;
  1036. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1037. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1038. x_includes=$ac_optarg ;;
  1039. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1040. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1041. ac_prev=x_libraries ;;
  1042. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1043. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1044. x_libraries=$ac_optarg ;;
  1045. -*) as_fn_error "unrecognized option: \`$ac_option'
  1046. Try \`$0 --help' for more information."
  1047. ;;
  1048. *=*)
  1049. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1050. # Reject names that are not valid shell variable names.
  1051. case $ac_envvar in #(
  1052. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1053. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1054. esac
  1055. eval $ac_envvar=\$ac_optarg
  1056. export $ac_envvar ;;
  1057. *)
  1058. # FIXME: should be removed in autoconf 3.0.
  1059. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1060. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1061. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1062. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1063. ;;
  1064. esac
  1065. done
  1066. if test -n "$ac_prev"; then
  1067. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1068. as_fn_error "missing argument to $ac_option"
  1069. fi
  1070. if test -n "$ac_unrecognized_opts"; then
  1071. case $enable_option_checking in
  1072. no) ;;
  1073. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1074. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1075. esac
  1076. fi
  1077. # Check all directory arguments for consistency.
  1078. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1079. datadir sysconfdir sharedstatedir localstatedir includedir \
  1080. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1081. libdir localedir mandir
  1082. do
  1083. eval ac_val=\$$ac_var
  1084. # Remove trailing slashes.
  1085. case $ac_val in
  1086. */ )
  1087. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1088. eval $ac_var=\$ac_val;;
  1089. esac
  1090. # Be sure to have absolute directory names.
  1091. case $ac_val in
  1092. [\\/$]* | ?:[\\/]* ) continue;;
  1093. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1094. esac
  1095. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1096. done
  1097. # There might be people who depend on the old broken behavior: `$host'
  1098. # used to hold the argument of --host etc.
  1099. # FIXME: To remove some day.
  1100. build=$build_alias
  1101. host=$host_alias
  1102. target=$target_alias
  1103. # FIXME: To remove some day.
  1104. if test "x$host_alias" != x; then
  1105. if test "x$build_alias" = x; then
  1106. cross_compiling=maybe
  1107. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1108. If a cross compiler is detected then cross compile mode will be used." >&2
  1109. elif test "x$build_alias" != "x$host_alias"; then
  1110. cross_compiling=yes
  1111. fi
  1112. fi
  1113. ac_tool_prefix=
  1114. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1115. test "$silent" = yes && exec 6>/dev/null
  1116. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1117. ac_ls_di=`ls -di .` &&
  1118. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1119. as_fn_error "working directory cannot be determined"
  1120. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1121. as_fn_error "pwd does not report name of working directory"
  1122. # Find the source files, if location was not specified.
  1123. if test -z "$srcdir"; then
  1124. ac_srcdir_defaulted=yes
  1125. # Try the directory containing this script, then the parent directory.
  1126. ac_confdir=`$as_dirname -- "$as_myself" ||
  1127. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1128. X"$as_myself" : 'X\(//\)[^/]' \| \
  1129. X"$as_myself" : 'X\(//\)$' \| \
  1130. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1131. $as_echo X"$as_myself" |
  1132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)[^/].*/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\).*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. s/.*/./; q'`
  1149. srcdir=$ac_confdir
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. srcdir=..
  1152. fi
  1153. else
  1154. ac_srcdir_defaulted=no
  1155. fi
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1158. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1159. fi
  1160. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1161. ac_abs_confdir=`(
  1162. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1163. pwd)`
  1164. # When building in place, set srcdir=.
  1165. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1166. srcdir=.
  1167. fi
  1168. # Remove unnecessary trailing slashes from srcdir.
  1169. # Double slashes in file names in object file debugging info
  1170. # mess up M-x gdb in Emacs.
  1171. case $srcdir in
  1172. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1173. esac
  1174. for ac_var in $ac_precious_vars; do
  1175. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1176. eval ac_env_${ac_var}_value=\$${ac_var}
  1177. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1179. done
  1180. #
  1181. # Report the --help message.
  1182. #
  1183. if test "$ac_init_help" = "long"; then
  1184. # Omit some internal or obsolete options to make the list less imposing.
  1185. # This message is too long to be a string in the A/UX 3.1 sh.
  1186. cat <<_ACEOF
  1187. \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
  1188. Usage: $0 [OPTION]... [VAR=VALUE]...
  1189. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1190. VAR=VALUE. See below for descriptions of some of the useful variables.
  1191. Defaults for the options are specified in brackets.
  1192. Configuration:
  1193. -h, --help display this help and exit
  1194. --help=short display options specific to this package
  1195. --help=recursive display the short help of all the included packages
  1196. -V, --version display version information and exit
  1197. -q, --quiet, --silent do not print \`checking...' messages
  1198. --cache-file=FILE cache test results in FILE [disabled]
  1199. -C, --config-cache alias for \`--cache-file=config.cache'
  1200. -n, --no-create do not create output files
  1201. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1202. Installation directories:
  1203. --prefix=PREFIX install architecture-independent files in PREFIX
  1204. [$ac_default_prefix]
  1205. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1206. [PREFIX]
  1207. By default, \`make install' will install all the files in
  1208. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1209. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1210. for instance \`--prefix=\$HOME'.
  1211. For better control, use the options below.
  1212. Fine tuning of the installation directories:
  1213. --bindir=DIR user executables [EPREFIX/bin]
  1214. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1215. --libexecdir=DIR program executables [EPREFIX/libexec]
  1216. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1217. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1218. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1219. --libdir=DIR object code libraries [EPREFIX/lib]
  1220. --includedir=DIR C header files [PREFIX/include]
  1221. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1222. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1223. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1224. --infodir=DIR info documentation [DATAROOTDIR/info]
  1225. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1226. --mandir=DIR man documentation [DATAROOTDIR/man]
  1227. --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
  1228. --htmldir=DIR html documentation [DOCDIR]
  1229. --dvidir=DIR dvi documentation [DOCDIR]
  1230. --pdfdir=DIR pdf documentation [DOCDIR]
  1231. --psdir=DIR ps documentation [DOCDIR]
  1232. _ACEOF
  1233. cat <<\_ACEOF
  1234. Program names:
  1235. --program-prefix=PREFIX prepend PREFIX to installed program names
  1236. --program-suffix=SUFFIX append SUFFIX to installed program names
  1237. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1238. System types:
  1239. --build=BUILD configure for building on BUILD [guessed]
  1240. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1241. --target=TARGET configure for building compilers for TARGET [HOST]
  1242. _ACEOF
  1243. fi
  1244. if test -n "$ac_init_help"; then
  1245. case $ac_init_help in
  1246. short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
  1247. esac
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1254. --enable-intermodule build the library in one step
  1255. --enable-symvers enables symbol versioning of the shared library
  1256. --enable-maintainer-mode enable make rules and dependencies not useful
  1257. (and sometimes confusing) to the casual installer
  1258. --enable-multilib build many library versions (default)
  1259. --disable-dependency-tracking speeds up one-time build
  1260. --enable-dependency-tracking do not reject slow dependency extractors
  1261. --enable-shared[=PKGS] build shared libraries [default=yes]
  1262. --enable-static[=PKGS] build static libraries [default=yes]
  1263. --enable-fast-install[=PKGS]
  1264. optimize for fast installation [default=yes]
  1265. --disable-libtool-lock avoid locking (might break parallel builds)
  1266. --disable-largefile omit support for large files
  1267. Optional Packages:
  1268. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1269. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1270. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1271. --with-pic try to use only PIC/non-PIC objects [default=use
  1272. both]
  1273. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1274. Some influential environment variables:
  1275. CC C compiler command
  1276. CFLAGS C compiler flags
  1277. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1278. nonstandard directory <lib dir>
  1279. LIBS libraries to pass to the linker, e.g. -l<library>
  1280. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1281. you have headers in a nonstandard directory <include dir>
  1282. CPP C preprocessor
  1283. FC Fortran compiler command
  1284. FCFLAGS Fortran compiler flags
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to the package provider.
  1288. GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
  1289. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1290. _ACEOF
  1291. ac_status=$?
  1292. fi
  1293. if test "$ac_init_help" = "recursive"; then
  1294. # If there are subdirs, report their specific --help.
  1295. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1296. test -d "$ac_dir" ||
  1297. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1298. continue
  1299. ac_builddir=.
  1300. case "$ac_dir" in
  1301. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1302. *)
  1303. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1304. # A ".." for each directory in $ac_dir_suffix.
  1305. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1306. case $ac_top_builddir_sub in
  1307. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1308. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1309. esac ;;
  1310. esac
  1311. ac_abs_top_builddir=$ac_pwd
  1312. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1313. # for backward compatibility:
  1314. ac_top_builddir=$ac_top_build_prefix
  1315. case $srcdir in
  1316. .) # We are building in place.
  1317. ac_srcdir=.
  1318. ac_top_srcdir=$ac_top_builddir_sub
  1319. ac_abs_top_srcdir=$ac_pwd ;;
  1320. [\\/]* | ?:[\\/]* ) # Absolute name.
  1321. ac_srcdir=$srcdir$ac_dir_suffix;
  1322. ac_top_srcdir=$srcdir
  1323. ac_abs_top_srcdir=$srcdir ;;
  1324. *) # Relative name.
  1325. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1326. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1327. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1328. esac
  1329. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1330. cd "$ac_dir" || { ac_status=$?; continue; }
  1331. # Check for guested configure.
  1332. if test -f "$ac_srcdir/configure.gnu"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1335. elif test -f "$ac_srcdir/configure"; then
  1336. echo &&
  1337. $SHELL "$ac_srcdir/configure" --help=recursive
  1338. else
  1339. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1340. fi || ac_status=$?
  1341. cd "$ac_pwd" || { ac_status=$?; break; }
  1342. done
  1343. fi
  1344. test -n "$ac_init_help" && exit $ac_status
  1345. if $ac_init_version; then
  1346. cat <<\_ACEOF
  1347. GNU Fortran Runtime Library configure 0.3
  1348. generated by GNU Autoconf 2.64
  1349. Copyright (C) 2009 Free Software Foundation, Inc.
  1350. This configure script is free software; the Free Software Foundation
  1351. gives unlimited permission to copy, distribute and modify it.
  1352. _ACEOF
  1353. exit
  1354. fi
  1355. ## ------------------------ ##
  1356. ## Autoconf initialization. ##
  1357. ## ------------------------ ##
  1358. # ac_fn_c_try_compile LINENO
  1359. # --------------------------
  1360. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1361. ac_fn_c_try_compile ()
  1362. {
  1363. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1364. rm -f conftest.$ac_objext
  1365. if { { ac_try="$ac_compile"
  1366. case "(($ac_try" in
  1367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1368. *) ac_try_echo=$ac_try;;
  1369. esac
  1370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1371. $as_echo "$ac_try_echo"; } >&5
  1372. (eval "$ac_compile") 2>conftest.err
  1373. ac_status=$?
  1374. if test -s conftest.err; then
  1375. grep -v '^ *+' conftest.err >conftest.er1
  1376. cat conftest.er1 >&5
  1377. mv -f conftest.er1 conftest.err
  1378. fi
  1379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1380. test $ac_status = 0; } && {
  1381. test -z "$ac_c_werror_flag" ||
  1382. test ! -s conftest.err
  1383. } && test -s conftest.$ac_objext; then :
  1384. ac_retval=0
  1385. else
  1386. $as_echo "$as_me: failed program was:" >&5
  1387. sed 's/^/| /' conftest.$ac_ext >&5
  1388. ac_retval=1
  1389. fi
  1390. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1391. return $ac_retval
  1392. } # ac_fn_c_try_compile
  1393. # ac_fn_c_try_link LINENO
  1394. # -----------------------
  1395. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1396. ac_fn_c_try_link ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. rm -f conftest.$ac_objext conftest$ac_exeext
  1400. if { { ac_try="$ac_link"
  1401. case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_link") 2>conftest.err
  1408. ac_status=$?
  1409. if test -s conftest.err; then
  1410. grep -v '^ *+' conftest.err >conftest.er1
  1411. cat conftest.er1 >&5
  1412. mv -f conftest.er1 conftest.err
  1413. fi
  1414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1415. test $ac_status = 0; } && {
  1416. test -z "$ac_c_werror_flag" ||
  1417. test ! -s conftest.err
  1418. } && test -s conftest$ac_exeext && {
  1419. test "$cross_compiling" = yes ||
  1420. $as_test_x conftest$ac_exeext
  1421. }; then :
  1422. ac_retval=0
  1423. else
  1424. $as_echo "$as_me: failed program was:" >&5
  1425. sed 's/^/| /' conftest.$ac_ext >&5
  1426. ac_retval=1
  1427. fi
  1428. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1429. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1430. # interfere with the next link command; also delete a directory that is
  1431. # left behind by Apple's compiler. We do this before executing the actions.
  1432. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1433. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1434. return $ac_retval
  1435. } # ac_fn_c_try_link
  1436. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1437. # -------------------------------------------------------
  1438. # Tests whether HEADER exists and can be compiled using the include files in
  1439. # INCLUDES, setting the cache variable VAR accordingly.
  1440. ac_fn_c_check_header_compile ()
  1441. {
  1442. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1444. $as_echo_n "checking for $2... " >&6; }
  1445. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1446. $as_echo_n "(cached) " >&6
  1447. else
  1448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1449. /* end confdefs.h. */
  1450. $4
  1451. #include <$2>
  1452. _ACEOF
  1453. if ac_fn_c_try_compile "$LINENO"; then :
  1454. eval "$3=yes"
  1455. else
  1456. eval "$3=no"
  1457. fi
  1458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1459. fi
  1460. eval ac_res=\$$3
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1462. $as_echo "$ac_res" >&6; }
  1463. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1464. } # ac_fn_c_check_header_compile
  1465. # ac_fn_c_try_cpp LINENO
  1466. # ----------------------
  1467. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_cpp ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } >/dev/null && {
  1487. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. }; then :
  1490. ac_retval=0
  1491. else
  1492. $as_echo "$as_me: failed program was:" >&5
  1493. sed 's/^/| /' conftest.$ac_ext >&5
  1494. ac_retval=1
  1495. fi
  1496. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1497. return $ac_retval
  1498. } # ac_fn_c_try_cpp
  1499. # ac_fn_c_try_run LINENO
  1500. # ----------------------
  1501. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1502. # that executables *can* be run.
  1503. ac_fn_c_try_run ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. if { { ac_try="$ac_link"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_link") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1517. { { case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_try") 2>&5
  1524. ac_status=$?
  1525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1526. test $ac_status = 0; }; }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: program exited with status $ac_status" >&5
  1530. $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532. ac_retval=$ac_status
  1533. fi
  1534. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1535. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1536. return $ac_retval
  1537. } # ac_fn_c_try_run
  1538. # ac_fn_c_check_func LINENO FUNC VAR
  1539. # ----------------------------------
  1540. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1541. ac_fn_c_check_func ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1545. $as_echo_n "checking for $2... " >&6; }
  1546. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1547. $as_echo_n "(cached) " >&6
  1548. else
  1549. if test x$gcc_no_link = xyes; then
  1550. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1551. fi
  1552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1553. /* end confdefs.h. */
  1554. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1555. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1556. #define $2 innocuous_$2
  1557. /* System header to define __stub macros and hopefully few prototypes,
  1558. which can conflict with char $2 (); below.
  1559. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1560. <limits.h> exists even on freestanding compilers. */
  1561. #ifdef __STDC__
  1562. # include <limits.h>
  1563. #else
  1564. # include <assert.h>
  1565. #endif
  1566. #undef $2
  1567. /* Override any GCC internal prototype to avoid an error.
  1568. Use char because int might match the return type of a GCC
  1569. builtin and then its argument prototype would still apply. */
  1570. #ifdef __cplusplus
  1571. extern "C"
  1572. #endif
  1573. char $2 ();
  1574. /* The GNU C library defines this for functions which it implements
  1575. to always fail with ENOSYS. Some functions are actually named
  1576. something starting with __ and the normal name is an alias. */
  1577. #if defined __stub_$2 || defined __stub___$2
  1578. choke me
  1579. #endif
  1580. int
  1581. main ()
  1582. {
  1583. return $2 ();
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_c_try_link "$LINENO"; then :
  1589. eval "$3=yes"
  1590. else
  1591. eval "$3=no"
  1592. fi
  1593. rm -f core conftest.err conftest.$ac_objext \
  1594. conftest$ac_exeext conftest.$ac_ext
  1595. fi
  1596. eval ac_res=\$$3
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. $as_echo "$ac_res" >&6; }
  1599. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1600. } # ac_fn_c_check_func
  1601. # ac_fn_fc_try_compile LINENO
  1602. # ---------------------------
  1603. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1604. ac_fn_fc_try_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. rm -f conftest.$ac_objext
  1608. if { { ac_try="$ac_compile"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. $as_echo "$ac_try_echo"; } >&5
  1615. (eval "$ac_compile") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && {
  1624. test -z "$ac_fc_werror_flag" ||
  1625. test ! -s conftest.err
  1626. } && test -s conftest.$ac_objext; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: failed program was:" >&5
  1630. sed 's/^/| /' conftest.$ac_ext >&5
  1631. ac_retval=1
  1632. fi
  1633. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1634. return $ac_retval
  1635. } # ac_fn_fc_try_compile
  1636. # ac_fn_fc_try_link LINENO
  1637. # ------------------------
  1638. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_fc_try_link ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. rm -f conftest.$ac_objext conftest$ac_exeext
  1643. if { { ac_try="$ac_link"
  1644. case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_link") 2>conftest.err
  1651. ac_status=$?
  1652. if test -s conftest.err; then
  1653. grep -v '^ *+' conftest.err >conftest.er1
  1654. cat conftest.er1 >&5
  1655. mv -f conftest.er1 conftest.err
  1656. fi
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && {
  1659. test -z "$ac_fc_werror_flag" ||
  1660. test ! -s conftest.err
  1661. } && test -s conftest$ac_exeext && {
  1662. test "$cross_compiling" = yes ||
  1663. $as_test_x conftest$ac_exeext
  1664. }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_retval=1
  1670. fi
  1671. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1672. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1673. # interfere with the next link command; also delete a directory that is
  1674. # left behind by Apple's compiler. We do this before executing the actions.
  1675. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1676. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1677. return $ac_retval
  1678. } # ac_fn_fc_try_link
  1679. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1680. # -------------------------------------------
  1681. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1682. # variable VAR accordingly.
  1683. ac_fn_c_check_type ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1689. $as_echo_n "(cached) " >&6
  1690. else
  1691. eval "$3=no"
  1692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1693. /* end confdefs.h. */
  1694. $4
  1695. int
  1696. main ()
  1697. {
  1698. if (sizeof ($2))
  1699. return 0;
  1700. ;
  1701. return 0;
  1702. }
  1703. _ACEOF
  1704. if ac_fn_c_try_compile "$LINENO"; then :
  1705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1706. /* end confdefs.h. */
  1707. $4
  1708. int
  1709. main ()
  1710. {
  1711. if (sizeof (($2)))
  1712. return 0;
  1713. ;
  1714. return 0;
  1715. }
  1716. _ACEOF
  1717. if ac_fn_c_try_compile "$LINENO"; then :
  1718. else
  1719. eval "$3=yes"
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. fi
  1725. eval ac_res=\$$3
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1727. $as_echo "$ac_res" >&6; }
  1728. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1729. } # ac_fn_c_check_type
  1730. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1731. # -------------------------------------------------------
  1732. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1733. # the include files in INCLUDES and setting the cache variable VAR
  1734. # accordingly.
  1735. ac_fn_c_check_header_mongrel ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1740. $as_echo_n "checking for $2... " >&6; }
  1741. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1742. $as_echo_n "(cached) " >&6
  1743. fi
  1744. eval ac_res=\$$3
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1746. $as_echo "$ac_res" >&6; }
  1747. else
  1748. # Is the header compilable?
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1750. $as_echo_n "checking $2 usability... " >&6; }
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. $4
  1754. #include <$2>
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. ac_header_compiler=yes
  1758. else
  1759. ac_header_compiler=no
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1763. $as_echo "$ac_header_compiler" >&6; }
  1764. # Is the header present?
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1766. $as_echo_n "checking $2 presence... " >&6; }
  1767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1768. /* end confdefs.h. */
  1769. #include <$2>
  1770. _ACEOF
  1771. if ac_fn_c_try_cpp "$LINENO"; then :
  1772. ac_header_preproc=yes
  1773. else
  1774. ac_header_preproc=no
  1775. fi
  1776. rm -f conftest.err conftest.$ac_ext
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1778. $as_echo "$ac_header_preproc" >&6; }
  1779. # So? What about this header?
  1780. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1781. yes:no: )
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1783. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1785. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1786. ;;
  1787. no:yes:* )
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1789. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1791. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1793. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1795. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1797. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1798. ;;
  1799. esac
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1801. $as_echo_n "checking for $2... " >&6; }
  1802. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. eval "$3=\$ac_header_compiler"
  1806. fi
  1807. eval ac_res=\$$3
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1809. $as_echo "$ac_res" >&6; }
  1810. fi
  1811. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1812. } # ac_fn_c_check_header_mongrel
  1813. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1814. # --------------------------------------------
  1815. # Tries to find the compile-time value of EXPR in a program that includes
  1816. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1817. # computed
  1818. ac_fn_c_compute_int ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. if test "$cross_compiling" = yes; then
  1822. # Depending upon the size, compute the lo and hi bounds.
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. $4
  1826. int
  1827. main ()
  1828. {
  1829. static int test_array [1 - 2 * !(($2) >= 0)];
  1830. test_array [0] = 0
  1831. ;
  1832. return 0;
  1833. }
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. ac_lo=0 ac_mid=0
  1837. while :; do
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1845. test_array [0] = 0
  1846. ;
  1847. return 0;
  1848. }
  1849. _ACEOF
  1850. if ac_fn_c_try_compile "$LINENO"; then :
  1851. ac_hi=$ac_mid; break
  1852. else
  1853. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1854. if test $ac_lo -le $ac_mid; then
  1855. ac_lo= ac_hi=
  1856. break
  1857. fi
  1858. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1859. fi
  1860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1861. done
  1862. else
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. $4
  1866. int
  1867. main ()
  1868. {
  1869. static int test_array [1 - 2 * !(($2) < 0)];
  1870. test_array [0] = 0
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_c_try_compile "$LINENO"; then :
  1876. ac_hi=-1 ac_mid=-1
  1877. while :; do
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1885. test_array [0] = 0
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_compile "$LINENO"; then :
  1891. ac_lo=$ac_mid; break
  1892. else
  1893. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1894. if test $ac_mid -le $ac_hi; then
  1895. ac_lo= ac_hi=
  1896. break
  1897. fi
  1898. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1901. done
  1902. else
  1903. ac_lo= ac_hi=
  1904. fi
  1905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1906. fi
  1907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1908. # Binary search between lo and hi bounds.
  1909. while test "x$ac_lo" != "x$ac_hi"; do
  1910. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. int
  1915. main ()
  1916. {
  1917. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1918. test_array [0] = 0
  1919. ;
  1920. return 0;
  1921. }
  1922. _ACEOF
  1923. if ac_fn_c_try_compile "$LINENO"; then :
  1924. ac_hi=$ac_mid
  1925. else
  1926. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. done
  1930. case $ac_lo in #((
  1931. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1932. '') ac_retval=1 ;;
  1933. esac
  1934. else
  1935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1936. /* end confdefs.h. */
  1937. $4
  1938. static long int longval () { return $2; }
  1939. static unsigned long int ulongval () { return $2; }
  1940. #include <stdio.h>
  1941. #include <stdlib.h>
  1942. int
  1943. main ()
  1944. {
  1945. FILE *f = fopen ("conftest.val", "w");
  1946. if (! f)
  1947. return 1;
  1948. if (($2) < 0)
  1949. {
  1950. long int i = longval ();
  1951. if (i != ($2))
  1952. return 1;
  1953. fprintf (f, "%ld", i);
  1954. }
  1955. else
  1956. {
  1957. unsigned long int i = ulongval ();
  1958. if (i != ($2))
  1959. return 1;
  1960. fprintf (f, "%lu", i);
  1961. }
  1962. /* Do not output a trailing newline, as this causes \r\n confusion
  1963. on some platforms. */
  1964. return ferror (f) || fclose (f) != 0;
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_c_try_run "$LINENO"; then :
  1970. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1971. else
  1972. ac_retval=1
  1973. fi
  1974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1976. rm -f conftest.val
  1977. fi
  1978. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1979. return $ac_retval
  1980. } # ac_fn_c_compute_int
  1981. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1982. # ----------------------------------------------------
  1983. # Tries to find if the field MEMBER exists in type AGGR, after including
  1984. # INCLUDES, setting cache variable VAR accordingly.
  1985. ac_fn_c_check_member ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1989. $as_echo_n "checking for $2.$3... " >&6; }
  1990. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $5
  1996. int
  1997. main ()
  1998. {
  1999. static $2 ac_aggr;
  2000. if (ac_aggr.$3)
  2001. return 0;
  2002. ;
  2003. return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007. eval "$4=yes"
  2008. else
  2009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2010. /* end confdefs.h. */
  2011. $5
  2012. int
  2013. main ()
  2014. {
  2015. static $2 ac_aggr;
  2016. if (sizeof ac_aggr.$3)
  2017. return 0;
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. eval "$4=yes"
  2024. else
  2025. eval "$4=no"
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2028. fi
  2029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2030. fi
  2031. eval ac_res=\$$4
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2033. $as_echo "$ac_res" >&6; }
  2034. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2035. } # ac_fn_c_check_member
  2036. cat >config.log <<_ACEOF
  2037. This file contains any messages produced by compilers while
  2038. running configure, to aid debugging if configure makes a mistake.
  2039. It was created by GNU Fortran Runtime Library $as_me 0.3, which was
  2040. generated by GNU Autoconf 2.64. Invocation command line was
  2041. $ $0 $@
  2042. _ACEOF
  2043. exec 5>>config.log
  2044. {
  2045. cat <<_ASUNAME
  2046. ## --------- ##
  2047. ## Platform. ##
  2048. ## --------- ##
  2049. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2050. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2051. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2052. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2053. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2054. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2055. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2056. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2057. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2058. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2059. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2060. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2061. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2062. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2063. _ASUNAME
  2064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2065. for as_dir in $PATH
  2066. do
  2067. IFS=$as_save_IFS
  2068. test -z "$as_dir" && as_dir=.
  2069. $as_echo "PATH: $as_dir"
  2070. done
  2071. IFS=$as_save_IFS
  2072. } >&5
  2073. cat >&5 <<_ACEOF
  2074. ## ----------- ##
  2075. ## Core tests. ##
  2076. ## ----------- ##
  2077. _ACEOF
  2078. # Keep a trace of the command line.
  2079. # Strip out --no-create and --no-recursion so they do not pile up.
  2080. # Strip out --silent because we don't want to record it for future runs.
  2081. # Also quote any args containing shell meta-characters.
  2082. # Make two passes to allow for proper duplicate-argument suppression.
  2083. ac_configure_args=
  2084. ac_configure_args0=
  2085. ac_configure_args1=
  2086. ac_must_keep_next=false
  2087. for ac_pass in 1 2
  2088. do
  2089. for ac_arg
  2090. do
  2091. case $ac_arg in
  2092. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2094. | -silent | --silent | --silen | --sile | --sil)
  2095. continue ;;
  2096. *\'*)
  2097. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2098. esac
  2099. case $ac_pass in
  2100. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2101. 2)
  2102. as_fn_append ac_configure_args1 " '$ac_arg'"
  2103. if test $ac_must_keep_next = true; then
  2104. ac_must_keep_next=false # Got value, back to normal.
  2105. else
  2106. case $ac_arg in
  2107. *=* | --config-cache | -C | -disable-* | --disable-* \
  2108. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2109. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2110. | -with-* | --with-* | -without-* | --without-* | --x)
  2111. case "$ac_configure_args0 " in
  2112. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2113. esac
  2114. ;;
  2115. -* ) ac_must_keep_next=true ;;
  2116. esac
  2117. fi
  2118. as_fn_append ac_configure_args " '$ac_arg'"
  2119. ;;
  2120. esac
  2121. done
  2122. done
  2123. { ac_configure_args0=; unset ac_configure_args0;}
  2124. { ac_configure_args1=; unset ac_configure_args1;}
  2125. # When interrupted or exit'd, cleanup temporary files, and complete
  2126. # config.log. We remove comments because anyway the quotes in there
  2127. # would cause problems or look ugly.
  2128. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2129. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2130. trap 'exit_status=$?
  2131. # Save into config.log some information that might help in debugging.
  2132. {
  2133. echo
  2134. cat <<\_ASBOX
  2135. ## ---------------- ##
  2136. ## Cache variables. ##
  2137. ## ---------------- ##
  2138. _ASBOX
  2139. echo
  2140. # The following way of writing the cache mishandles newlines in values,
  2141. (
  2142. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2143. eval ac_val=\$$ac_var
  2144. case $ac_val in #(
  2145. *${as_nl}*)
  2146. case $ac_var in #(
  2147. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2148. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2149. esac
  2150. case $ac_var in #(
  2151. _ | IFS | as_nl) ;; #(
  2152. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2153. *) { eval $ac_var=; unset $ac_var;} ;;
  2154. esac ;;
  2155. esac
  2156. done
  2157. (set) 2>&1 |
  2158. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2159. *${as_nl}ac_space=\ *)
  2160. sed -n \
  2161. "s/'\''/'\''\\\\'\'''\''/g;
  2162. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2163. ;; #(
  2164. *)
  2165. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2166. ;;
  2167. esac |
  2168. sort
  2169. )
  2170. echo
  2171. cat <<\_ASBOX
  2172. ## ----------------- ##
  2173. ## Output variables. ##
  2174. ## ----------------- ##
  2175. _ASBOX
  2176. echo
  2177. for ac_var in $ac_subst_vars
  2178. do
  2179. eval ac_val=\$$ac_var
  2180. case $ac_val in
  2181. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2182. esac
  2183. $as_echo "$ac_var='\''$ac_val'\''"
  2184. done | sort
  2185. echo
  2186. if test -n "$ac_subst_files"; then
  2187. cat <<\_ASBOX
  2188. ## ------------------- ##
  2189. ## File substitutions. ##
  2190. ## ------------------- ##
  2191. _ASBOX
  2192. echo
  2193. for ac_var in $ac_subst_files
  2194. do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in
  2197. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2198. esac
  2199. $as_echo "$ac_var='\''$ac_val'\''"
  2200. done | sort
  2201. echo
  2202. fi
  2203. if test -s confdefs.h; then
  2204. cat <<\_ASBOX
  2205. ## ----------- ##
  2206. ## confdefs.h. ##
  2207. ## ----------- ##
  2208. _ASBOX
  2209. echo
  2210. cat confdefs.h
  2211. echo
  2212. fi
  2213. test "$ac_signal" != 0 &&
  2214. $as_echo "$as_me: caught signal $ac_signal"
  2215. $as_echo "$as_me: exit $exit_status"
  2216. } >&5
  2217. rm -f core *.core core.conftest.* &&
  2218. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2219. exit $exit_status
  2220. ' 0
  2221. for ac_signal in 1 2 13 15; do
  2222. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2223. done
  2224. ac_signal=0
  2225. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2226. rm -f -r conftest* confdefs.h
  2227. $as_echo "/* confdefs.h */" > confdefs.h
  2228. # Predefined preprocessor variables.
  2229. cat >>confdefs.h <<_ACEOF
  2230. #define PACKAGE_NAME "$PACKAGE_NAME"
  2231. _ACEOF
  2232. cat >>confdefs.h <<_ACEOF
  2233. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2234. _ACEOF
  2235. cat >>confdefs.h <<_ACEOF
  2236. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2237. _ACEOF
  2238. cat >>confdefs.h <<_ACEOF
  2239. #define PACKAGE_STRING "$PACKAGE_STRING"
  2240. _ACEOF
  2241. cat >>confdefs.h <<_ACEOF
  2242. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2243. _ACEOF
  2244. cat >>confdefs.h <<_ACEOF
  2245. #define PACKAGE_URL "$PACKAGE_URL"
  2246. _ACEOF
  2247. # Let the site file select an alternate cache file if it wants to.
  2248. # Prefer an explicitly selected file to automatically selected ones.
  2249. ac_site_file1=NONE
  2250. ac_site_file2=NONE
  2251. if test -n "$CONFIG_SITE"; then
  2252. ac_site_file1=$CONFIG_SITE
  2253. elif test "x$prefix" != xNONE; then
  2254. ac_site_file1=$prefix/share/config.site
  2255. ac_site_file2=$prefix/etc/config.site
  2256. else
  2257. ac_site_file1=$ac_default_prefix/share/config.site
  2258. ac_site_file2=$ac_default_prefix/etc/config.site
  2259. fi
  2260. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2261. do
  2262. test "x$ac_site_file" = xNONE && continue
  2263. if test -r "$ac_site_file"; then
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2265. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2266. sed 's/^/| /' "$ac_site_file" >&5
  2267. . "$ac_site_file"
  2268. fi
  2269. done
  2270. if test -r "$cache_file"; then
  2271. # Some versions of bash will fail to source /dev/null (special
  2272. # files actually), so we avoid doing that.
  2273. if test -f "$cache_file"; then
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2275. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2276. case $cache_file in
  2277. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2278. *) . "./$cache_file";;
  2279. esac
  2280. fi
  2281. else
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2283. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2284. >$cache_file
  2285. fi
  2286. # Check that the precious variables saved in the cache have kept the same
  2287. # value.
  2288. ac_cache_corrupted=false
  2289. for ac_var in $ac_precious_vars; do
  2290. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2291. eval ac_new_set=\$ac_env_${ac_var}_set
  2292. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2293. eval ac_new_val=\$ac_env_${ac_var}_value
  2294. case $ac_old_set,$ac_new_set in
  2295. set,)
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2297. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2298. ac_cache_corrupted=: ;;
  2299. ,set)
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2301. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2302. ac_cache_corrupted=: ;;
  2303. ,);;
  2304. *)
  2305. if test "x$ac_old_val" != "x$ac_new_val"; then
  2306. # differences in whitespace do not lead to failure.
  2307. ac_old_val_w=`echo x $ac_old_val`
  2308. ac_new_val_w=`echo x $ac_new_val`
  2309. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2311. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2312. ac_cache_corrupted=:
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2315. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2316. eval $ac_var=\$ac_old_val
  2317. fi
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2319. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2321. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2322. fi;;
  2323. esac
  2324. # Pass precious variables to config.status.
  2325. if test "$ac_new_set" = set; then
  2326. case $ac_new_val in
  2327. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2328. *) ac_arg=$ac_var=$ac_new_val ;;
  2329. esac
  2330. case " $ac_configure_args " in
  2331. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2332. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2333. esac
  2334. fi
  2335. done
  2336. if $ac_cache_corrupted; then
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2338. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2340. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2341. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2342. fi
  2343. ## -------------------- ##
  2344. ## Main body of script. ##
  2345. ## -------------------- ##
  2346. ac_ext=c
  2347. ac_cpp='$CPP $CPPFLAGS'
  2348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2351. ac_config_headers="$ac_config_headers config.h"
  2352. ac_aux_dir=
  2353. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2354. for ac_t in install-sh install.sh shtool; do
  2355. if test -f "$ac_dir/$ac_t"; then
  2356. ac_aux_dir=$ac_dir
  2357. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2358. break 2
  2359. fi
  2360. done
  2361. done
  2362. if test -z "$ac_aux_dir"; then
  2363. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2364. fi
  2365. # These three variables are undocumented and unsupported,
  2366. # and are intended to be withdrawn in a future Autoconf release.
  2367. # They can cause serious problems if a builder's source tree is in a directory
  2368. # whose full name contains unusual characters.
  2369. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2370. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2371. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2372. # Make sure we can run config.sub.
  2373. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2374. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2376. $as_echo_n "checking build system type... " >&6; }
  2377. if test "${ac_cv_build+set}" = set; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. ac_build_alias=$build_alias
  2381. test "x$ac_build_alias" = x &&
  2382. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2383. test "x$ac_build_alias" = x &&
  2384. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2385. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2386. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2389. $as_echo "$ac_cv_build" >&6; }
  2390. case $ac_cv_build in
  2391. *-*-*) ;;
  2392. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2393. esac
  2394. build=$ac_cv_build
  2395. ac_save_IFS=$IFS; IFS='-'
  2396. set x $ac_cv_build
  2397. shift
  2398. build_cpu=$1
  2399. build_vendor=$2
  2400. shift; shift
  2401. # Remember, the first character of IFS is used to create $*,
  2402. # except with old shells:
  2403. build_os=$*
  2404. IFS=$ac_save_IFS
  2405. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2406. case ${build_alias} in
  2407. "") build_noncanonical=${build} ;;
  2408. *) build_noncanonical=${build_alias} ;;
  2409. esac
  2410. case ${host_alias} in
  2411. "") host_noncanonical=${build_noncanonical} ;;
  2412. *) host_noncanonical=${host_alias} ;;
  2413. esac
  2414. case ${target_alias} in
  2415. "") target_noncanonical=${host_noncanonical} ;;
  2416. *) target_noncanonical=${target_alias} ;;
  2417. esac
  2418. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2419. # have matching libraries, they should use host libraries: Makefile.tpl
  2420. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2421. # However, they still use the build modules, because the corresponding
  2422. # host modules (e.g. bison) are only built for the host when bootstrap
  2423. # finishes. So:
  2424. # - build_subdir is where we find build modules, and never changes.
  2425. # - build_libsubdir is where we find build libraries, and can be overridden.
  2426. # Prefix 'build-' so this never conflicts with target_subdir.
  2427. build_subdir="build-${build_noncanonical}"
  2428. # Check whether --with-build-libsubdir was given.
  2429. if test "${with_build_libsubdir+set}" = set; then :
  2430. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2431. else
  2432. build_libsubdir="$build_subdir"
  2433. fi
  2434. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2435. if ( test $srcdir = . && test -d gcc ) \
  2436. || test -d $srcdir/../host-${host_noncanonical}; then
  2437. host_subdir="host-${host_noncanonical}"
  2438. else
  2439. host_subdir=.
  2440. fi
  2441. # No prefix.
  2442. target_subdir=${target_noncanonical}
  2443. # -------
  2444. # Options
  2445. # -------
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2447. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2448. # Check whether --enable-version-specific-runtime-libs was given.
  2449. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2450. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2451. yes) version_specific_libs=yes ;;
  2452. no) version_specific_libs=no ;;
  2453. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2454. esac
  2455. else
  2456. version_specific_libs=no
  2457. fi
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2459. $as_echo "$version_specific_libs" >&6; }
  2460. # Build with intermodule optimisations
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
  2462. $as_echo_n "checking for --enable-intermodule... " >&6; }
  2463. # Check whether --enable-intermodule was given.
  2464. if test "${enable_intermodule+set}" = set; then :
  2465. enableval=$enable_intermodule; case "$enable_intermodule" in
  2466. yes) onestep="-onestep";;
  2467. *) onestep="";;
  2468. esac
  2469. else
  2470. onestep=""
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
  2473. $as_echo "$enable_intermodule" >&6; }
  2474. if test x$onestep = x-onestep; then
  2475. onestep_TRUE=
  2476. onestep_FALSE='#'
  2477. else
  2478. onestep_TRUE='#'
  2479. onestep_FALSE=
  2480. fi
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-symvers" >&5
  2482. $as_echo_n "checking for --enable-symvers... " >&6; }
  2483. # Check whether --enable-symvers was given.
  2484. if test "${enable_symvers+set}" = set; then :
  2485. enableval=$enable_symvers; case "$enableval" in
  2486. yes) enable_symvers=yes ;;
  2487. no) enable_symvers=no ;;
  2488. *) as_fn_error "Unknown argument to enable/disable symbol versioning" "$LINENO" 5;;
  2489. esac
  2490. else
  2491. enable_symvers=""
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_symvers" >&5
  2494. $as_echo "$enable_symvers" >&6; }
  2495. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2496. #
  2497. # You will slowly go insane if you do not grok the following fact: when
  2498. # building this library, the top-level /target/ becomes the library's /host/.
  2499. #
  2500. # configure then causes --target to default to --host, exactly like any
  2501. # other package using autoconf. Therefore, 'target' and 'host' will
  2502. # always be the same. This makes sense both for native and cross compilers
  2503. # just think about it for a little while. :-)
  2504. #
  2505. # Also, if this library is being configured as part of a cross compiler, the
  2506. # top-level configure script will pass the "real" host as $with_cross_host.
  2507. #
  2508. # Do not delete or change the following two lines. For why, see
  2509. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2511. $as_echo_n "checking host system type... " >&6; }
  2512. if test "${ac_cv_host+set}" = set; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test "x$host_alias" = x; then
  2516. ac_cv_host=$ac_cv_build
  2517. else
  2518. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2519. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2523. $as_echo "$ac_cv_host" >&6; }
  2524. case $ac_cv_host in
  2525. *-*-*) ;;
  2526. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2527. esac
  2528. host=$ac_cv_host
  2529. ac_save_IFS=$IFS; IFS='-'
  2530. set x $ac_cv_host
  2531. shift
  2532. host_cpu=$1
  2533. host_vendor=$2
  2534. shift; shift
  2535. # Remember, the first character of IFS is used to create $*,
  2536. # except with old shells:
  2537. host_os=$*
  2538. IFS=$ac_save_IFS
  2539. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2541. $as_echo_n "checking target system type... " >&6; }
  2542. if test "${ac_cv_target+set}" = set; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test "x$target_alias" = x; then
  2546. ac_cv_target=$ac_cv_host
  2547. else
  2548. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2549. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2550. fi
  2551. fi
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2553. $as_echo "$ac_cv_target" >&6; }
  2554. case $ac_cv_target in
  2555. *-*-*) ;;
  2556. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2557. esac
  2558. target=$ac_cv_target
  2559. ac_save_IFS=$IFS; IFS='-'
  2560. set x $ac_cv_target
  2561. shift
  2562. target_cpu=$1
  2563. target_vendor=$2
  2564. shift; shift
  2565. # Remember, the first character of IFS is used to create $*,
  2566. # except with old shells:
  2567. target_os=$*
  2568. IFS=$ac_save_IFS
  2569. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2570. # The aliases save the names the user supplied, while $host etc.
  2571. # will get canonicalized.
  2572. test -n "$target_alias" &&
  2573. test "$program_prefix$program_suffix$program_transform_name" = \
  2574. NONENONEs,x,x, &&
  2575. program_prefix=${target_alias}-
  2576. target_alias=${target_alias-$host_alias}
  2577. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2578. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2579. # 1.9.6: minimum required version
  2580. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2581. # of other PACKAGE_* variables will, however, and there's nothing
  2582. # we can do about that; they come from AC_INIT).
  2583. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2584. # file in the top srcdir, etc, etc), so stop complaining.
  2585. # -Wall: turns on all automake warnings...
  2586. # -Wno-portability: ...except this one, since GNU make is required.
  2587. am__api_version='1.11'
  2588. # Find a good install program. We prefer a C program (faster),
  2589. # so one script is as good as another. But avoid the broken or
  2590. # incompatible versions:
  2591. # SysV /etc/install, /usr/sbin/install
  2592. # SunOS /usr/etc/install
  2593. # IRIX /sbin/install
  2594. # AIX /bin/install
  2595. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2596. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2597. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2598. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2599. # OS/2's system install, which has a completely different semantic
  2600. # ./install, which can be erroneously created by make from ./install.sh.
  2601. # Reject install programs that cannot install multiple files.
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2603. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2604. if test -z "$INSTALL"; then
  2605. if test "${ac_cv_path_install+set}" = set; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. test -z "$as_dir" && as_dir=.
  2613. # Account for people who put trailing slashes in PATH elements.
  2614. case $as_dir/ in #((
  2615. ./ | .// | /[cC]/* | \
  2616. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2617. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2618. /usr/ucb/* ) ;;
  2619. *)
  2620. # OSF1 and SCO ODT 3.0 have their own names for install.
  2621. # Don't use installbsd from OSF since it installs stuff as root
  2622. # by default.
  2623. for ac_prog in ginstall scoinst install; do
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2626. if test $ac_prog = install &&
  2627. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2628. # AIX install. It has an incompatible calling convention.
  2629. :
  2630. elif test $ac_prog = install &&
  2631. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2632. # program-specific install script used by HP pwplus--don't use.
  2633. :
  2634. else
  2635. rm -rf conftest.one conftest.two conftest.dir
  2636. echo one > conftest.one
  2637. echo two > conftest.two
  2638. mkdir conftest.dir
  2639. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2640. test -s conftest.one && test -s conftest.two &&
  2641. test -s conftest.dir/conftest.one &&
  2642. test -s conftest.dir/conftest.two
  2643. then
  2644. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2645. break 3
  2646. fi
  2647. fi
  2648. fi
  2649. done
  2650. done
  2651. ;;
  2652. esac
  2653. done
  2654. IFS=$as_save_IFS
  2655. rm -rf conftest.one conftest.two conftest.dir
  2656. fi
  2657. if test "${ac_cv_path_install+set}" = set; then
  2658. INSTALL=$ac_cv_path_install
  2659. else
  2660. # As a last resort, use the slow shell script. Don't cache a
  2661. # value for INSTALL within a source directory, because that will
  2662. # break other packages using the cache if that directory is
  2663. # removed, or if the value is a relative name.
  2664. INSTALL=$ac_install_sh
  2665. fi
  2666. fi
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2668. $as_echo "$INSTALL" >&6; }
  2669. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2670. # It thinks the first close brace ends the variable substitution.
  2671. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2672. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2673. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2675. $as_echo_n "checking whether build environment is sane... " >&6; }
  2676. # Just in case
  2677. sleep 1
  2678. echo timestamp > conftest.file
  2679. # Reject unsafe characters in $srcdir or the absolute working directory
  2680. # name. Accept space and tab only in the latter.
  2681. am_lf='
  2682. '
  2683. case `pwd` in
  2684. *[\\\"\#\$\&\'\`$am_lf]*)
  2685. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2686. esac
  2687. case $srcdir in
  2688. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2689. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2690. esac
  2691. # Do `set' in a subshell so we don't clobber the current shell's
  2692. # arguments. Must try -L first in case configure is actually a
  2693. # symlink; some systems play weird games with the mod time of symlinks
  2694. # (eg FreeBSD returns the mod time of the symlink's containing
  2695. # directory).
  2696. if (
  2697. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2698. if test "$*" = "X"; then
  2699. # -L didn't work.
  2700. set X `ls -t "$srcdir/configure" conftest.file`
  2701. fi
  2702. rm -f conftest.file
  2703. if test "$*" != "X $srcdir/configure conftest.file" \
  2704. && test "$*" != "X conftest.file $srcdir/configure"; then
  2705. # If neither matched, then we have a broken ls. This can happen
  2706. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2707. # broken ls alias from the environment. This has actually
  2708. # happened. Such a system could not be considered "sane".
  2709. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2710. alias in your environment" "$LINENO" 5
  2711. fi
  2712. test "$2" = conftest.file
  2713. )
  2714. then
  2715. # Ok.
  2716. :
  2717. else
  2718. as_fn_error "newly created file is older than distributed files!
  2719. Check your system clock" "$LINENO" 5
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2722. $as_echo "yes" >&6; }
  2723. test "$program_prefix" != NONE &&
  2724. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2725. # Use a double $ so make ignores it.
  2726. test "$program_suffix" != NONE &&
  2727. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2728. # Double any \ or $.
  2729. # By default was `s,x,x', remove it if useless.
  2730. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2731. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2732. # expand $ac_aux_dir to an absolute path
  2733. am_aux_dir=`cd $ac_aux_dir && pwd`
  2734. if test x"${MISSING+set}" != xset; then
  2735. case $am_aux_dir in
  2736. *\ * | *\ *)
  2737. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2738. *)
  2739. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2740. esac
  2741. fi
  2742. # Use eval to expand $SHELL
  2743. if eval "$MISSING --run true"; then
  2744. am_missing_run="$MISSING --run "
  2745. else
  2746. am_missing_run=
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2748. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2749. fi
  2750. if test x"${install_sh}" != xset; then
  2751. case $am_aux_dir in
  2752. *\ * | *\ *)
  2753. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2754. *)
  2755. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2756. esac
  2757. fi
  2758. # Installed binaries are usually stripped using `strip' when the user
  2759. # run `make install-strip'. However `strip' might not be the right
  2760. # tool to use in cross-compilation environments, therefore Automake
  2761. # will honor the `STRIP' environment variable to overrule this program.
  2762. if test "$cross_compiling" != no; then
  2763. if test -n "$ac_tool_prefix"; then
  2764. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2765. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2767. $as_echo_n "checking for $ac_word... " >&6; }
  2768. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2769. $as_echo_n "(cached) " >&6
  2770. else
  2771. if test -n "$STRIP"; then
  2772. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2773. else
  2774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2775. for as_dir in $PATH
  2776. do
  2777. IFS=$as_save_IFS
  2778. test -z "$as_dir" && as_dir=.
  2779. for ac_exec_ext in '' $ac_executable_extensions; do
  2780. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2781. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2783. break 2
  2784. fi
  2785. done
  2786. done
  2787. IFS=$as_save_IFS
  2788. fi
  2789. fi
  2790. STRIP=$ac_cv_prog_STRIP
  2791. if test -n "$STRIP"; then
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2793. $as_echo "$STRIP" >&6; }
  2794. else
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2796. $as_echo "no" >&6; }
  2797. fi
  2798. fi
  2799. if test -z "$ac_cv_prog_STRIP"; then
  2800. ac_ct_STRIP=$STRIP
  2801. # Extract the first word of "strip", so it can be a program name with args.
  2802. set dummy strip; ac_word=$2
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2804. $as_echo_n "checking for $ac_word... " >&6; }
  2805. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. if test -n "$ac_ct_STRIP"; then
  2809. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2810. else
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2818. ac_cv_prog_ac_ct_STRIP="strip"
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2820. break 2
  2821. fi
  2822. done
  2823. done
  2824. IFS=$as_save_IFS
  2825. fi
  2826. fi
  2827. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2828. if test -n "$ac_ct_STRIP"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2830. $as_echo "$ac_ct_STRIP" >&6; }
  2831. else
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2833. $as_echo "no" >&6; }
  2834. fi
  2835. if test "x$ac_ct_STRIP" = x; then
  2836. STRIP=":"
  2837. else
  2838. case $cross_compiling:$ac_tool_warned in
  2839. yes:)
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2842. ac_tool_warned=yes ;;
  2843. esac
  2844. STRIP=$ac_ct_STRIP
  2845. fi
  2846. else
  2847. STRIP="$ac_cv_prog_STRIP"
  2848. fi
  2849. fi
  2850. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2852. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2853. if test -z "$MKDIR_P"; then
  2854. if test "${ac_cv_path_mkdir+set}" = set; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_prog in mkdir gmkdir; do
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2865. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2866. 'mkdir (GNU coreutils) '* | \
  2867. 'mkdir (coreutils) '* | \
  2868. 'mkdir (fileutils) '4.1*)
  2869. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2870. break 3;;
  2871. esac
  2872. done
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. if test "${ac_cv_path_mkdir+set}" = set; then
  2878. MKDIR_P="$ac_cv_path_mkdir -p"
  2879. else
  2880. # As a last resort, use the slow shell script. Don't cache a
  2881. # value for MKDIR_P within a source directory, because that will
  2882. # break other packages using the cache if that directory is
  2883. # removed, or if the value is a relative name.
  2884. test -d ./--version && rmdir ./--version
  2885. MKDIR_P="$ac_install_sh -d"
  2886. fi
  2887. fi
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2889. $as_echo "$MKDIR_P" >&6; }
  2890. mkdir_p="$MKDIR_P"
  2891. case $mkdir_p in
  2892. [\\/$]* | ?:[\\/]*) ;;
  2893. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2894. esac
  2895. for ac_prog in gawk mawk nawk awk
  2896. do
  2897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2898. set dummy $ac_prog; ac_word=$2
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2900. $as_echo_n "checking for $ac_word... " >&6; }
  2901. if test "${ac_cv_prog_AWK+set}" = set; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. if test -n "$AWK"; then
  2905. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2914. ac_cv_prog_AWK="$ac_prog"
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. IFS=$as_save_IFS
  2921. fi
  2922. fi
  2923. AWK=$ac_cv_prog_AWK
  2924. if test -n "$AWK"; then
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2926. $as_echo "$AWK" >&6; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. fi
  2931. test -n "$AWK" && break
  2932. done
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2934. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2935. set x ${MAKE-make}
  2936. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2937. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. cat >conftest.make <<\_ACEOF
  2941. SHELL = /bin/sh
  2942. all:
  2943. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2944. _ACEOF
  2945. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2946. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2947. *@@@%%%=?*=@@@%%%*)
  2948. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2949. *)
  2950. eval ac_cv_prog_make_${ac_make}_set=no;;
  2951. esac
  2952. rm -f conftest.make
  2953. fi
  2954. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2956. $as_echo "yes" >&6; }
  2957. SET_MAKE=
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. SET_MAKE="MAKE=${MAKE-make}"
  2962. fi
  2963. rm -rf .tst 2>/dev/null
  2964. mkdir .tst 2>/dev/null
  2965. if test -d .tst; then
  2966. am__leading_dot=.
  2967. else
  2968. am__leading_dot=_
  2969. fi
  2970. rmdir .tst 2>/dev/null
  2971. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2972. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2973. # is not polluted with repeated "-I."
  2974. am__isrc=' -I$(srcdir)'
  2975. # test to see if srcdir already configured
  2976. if test -f $srcdir/config.status; then
  2977. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2978. fi
  2979. fi
  2980. # test whether we have cygpath
  2981. if test -z "$CYGPATH_W"; then
  2982. if (cygpath --version) >/dev/null 2>/dev/null; then
  2983. CYGPATH_W='cygpath -w'
  2984. else
  2985. CYGPATH_W=echo
  2986. fi
  2987. fi
  2988. # Define the identity of the package.
  2989. PACKAGE='libgfortran'
  2990. VERSION='0.3'
  2991. # Some tools Automake needs.
  2992. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2993. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2994. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2995. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2996. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2997. # We need awk for the "check" target. The system "awk" is bad on
  2998. # some platforms.
  2999. # Always define AMTAR for backward compatibility.
  3000. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3001. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3003. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3004. # Check whether --enable-maintainer-mode was given.
  3005. if test "${enable_maintainer_mode+set}" = set; then :
  3006. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3007. else
  3008. USE_MAINTAINER_MODE=no
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3011. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3012. if test $USE_MAINTAINER_MODE = yes; then
  3013. MAINTAINER_MODE_TRUE=
  3014. MAINTAINER_MODE_FALSE='#'
  3015. else
  3016. MAINTAINER_MODE_TRUE='#'
  3017. MAINTAINER_MODE_FALSE=
  3018. fi
  3019. MAINT=$MAINTAINER_MODE_TRUE
  3020. # Default to --enable-multilib
  3021. # Check whether --enable-multilib was given.
  3022. if test "${enable_multilib+set}" = set; then :
  3023. enableval=$enable_multilib; case "$enableval" in
  3024. yes) multilib=yes ;;
  3025. no) multilib=no ;;
  3026. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3027. esac
  3028. else
  3029. multilib=yes
  3030. fi
  3031. # We may get other options which we leave undocumented:
  3032. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3033. # See config-ml.in if you want the gory details.
  3034. if test "$srcdir" = "."; then
  3035. if test "$with_target_subdir" != "."; then
  3036. multi_basedir="$srcdir/$with_multisrctop../.."
  3037. else
  3038. multi_basedir="$srcdir/$with_multisrctop.."
  3039. fi
  3040. else
  3041. multi_basedir="$srcdir/.."
  3042. fi
  3043. # Even if the default multilib is not a cross compilation,
  3044. # it may be that some of the other multilibs are.
  3045. if test $cross_compiling = no && test $multilib = yes \
  3046. && test "x${with_multisubdir}" != x ; then
  3047. cross_compiling=maybe
  3048. fi
  3049. ac_config_commands="$ac_config_commands default-1"
  3050. # Handy for debugging:
  3051. #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
  3052. # Are we being configured with some form of cross compiler?
  3053. # NB: We don't actually need to know this just now, but when, say, a test
  3054. # suite is included, we'll have to know.
  3055. if test "$build" != "$host"; then
  3056. LIBGFOR_IS_NATIVE=false
  3057. else
  3058. LIBGFOR_IS_NATIVE=true
  3059. fi
  3060. # Calculate toolexeclibdir
  3061. # Also toolexecdir, though it's only used in toolexeclibdir
  3062. case ${version_specific_libs} in
  3063. yes)
  3064. # Need the gcc compiler version to know where to install libraries
  3065. # and header files if --enable-version-specific-runtime-libs option
  3066. # is selected.
  3067. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3068. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3069. ;;
  3070. no)
  3071. if test -n "$with_cross_host" &&
  3072. test x"$with_cross_host" != x"no"; then
  3073. # Install a library built with a cross compiler in tooldir, not libdir.
  3074. toolexecdir='$(exec_prefix)/$(target_alias)'
  3075. toolexeclibdir='$(toolexecdir)/lib'
  3076. else
  3077. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3078. toolexeclibdir='$(libdir)'
  3079. fi
  3080. multi_os_directory=`$CC -print-multi-os-directory`
  3081. case $multi_os_directory in
  3082. .) ;; # Avoid trailing /.
  3083. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3084. esac
  3085. ;;
  3086. esac
  3087. # Check the compiler.
  3088. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3089. # We must force CC to /not/ be precious variables; otherwise
  3090. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3091. # As a side effect, we have to subst CFLAGS ourselves.
  3092. ac_ext=c
  3093. ac_cpp='$CPP $CPPFLAGS'
  3094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3097. if test -n "$ac_tool_prefix"; then
  3098. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3099. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3101. $as_echo_n "checking for $ac_word... " >&6; }
  3102. if test "${ac_cv_prog_CC+set}" = set; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. if test -n "$CC"; then
  3106. ac_cv_prog_CC="$CC" # Let the user override the test.
  3107. else
  3108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3109. for as_dir in $PATH
  3110. do
  3111. IFS=$as_save_IFS
  3112. test -z "$as_dir" && as_dir=.
  3113. for ac_exec_ext in '' $ac_executable_extensions; do
  3114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3115. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3117. break 2
  3118. fi
  3119. done
  3120. done
  3121. IFS=$as_save_IFS
  3122. fi
  3123. fi
  3124. CC=$ac_cv_prog_CC
  3125. if test -n "$CC"; then
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3127. $as_echo "$CC" >&6; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3130. $as_echo "no" >&6; }
  3131. fi
  3132. fi
  3133. if test -z "$ac_cv_prog_CC"; then
  3134. ac_ct_CC=$CC
  3135. # Extract the first word of "gcc", so it can be a program name with args.
  3136. set dummy gcc; ac_word=$2
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3138. $as_echo_n "checking for $ac_word... " >&6; }
  3139. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. if test -n "$ac_ct_CC"; then
  3143. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3152. ac_cv_prog_ac_ct_CC="gcc"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. fi
  3160. fi
  3161. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3162. if test -n "$ac_ct_CC"; then
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3164. $as_echo "$ac_ct_CC" >&6; }
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. fi
  3169. if test "x$ac_ct_CC" = x; then
  3170. CC=""
  3171. else
  3172. case $cross_compiling:$ac_tool_warned in
  3173. yes:)
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3176. ac_tool_warned=yes ;;
  3177. esac
  3178. CC=$ac_ct_CC
  3179. fi
  3180. else
  3181. CC="$ac_cv_prog_CC"
  3182. fi
  3183. if test -z "$CC"; then
  3184. if test -n "$ac_tool_prefix"; then
  3185. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3186. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3188. $as_echo_n "checking for $ac_word... " >&6; }
  3189. if test "${ac_cv_prog_CC+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. if test -n "$CC"; then
  3193. ac_cv_prog_CC="$CC" # Let the user override the test.
  3194. else
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3202. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3204. break 2
  3205. fi
  3206. done
  3207. done
  3208. IFS=$as_save_IFS
  3209. fi
  3210. fi
  3211. CC=$ac_cv_prog_CC
  3212. if test -n "$CC"; then
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3214. $as_echo "$CC" >&6; }
  3215. else
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3217. $as_echo "no" >&6; }
  3218. fi
  3219. fi
  3220. fi
  3221. if test -z "$CC"; then
  3222. # Extract the first word of "cc", so it can be a program name with args.
  3223. set dummy cc; ac_word=$2
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3225. $as_echo_n "checking for $ac_word... " >&6; }
  3226. if test "${ac_cv_prog_CC+set}" = set; then :
  3227. $as_echo_n "(cached) " >&6
  3228. else
  3229. if test -n "$CC"; then
  3230. ac_cv_prog_CC="$CC" # Let the user override the test.
  3231. else
  3232. ac_prog_rejected=no
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3241. ac_prog_rejected=yes
  3242. continue
  3243. fi
  3244. ac_cv_prog_CC="cc"
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. if test $ac_prog_rejected = yes; then
  3252. # We found a bogon in the path, so make sure we never use it.
  3253. set dummy $ac_cv_prog_CC
  3254. shift
  3255. if test $# != 0; then
  3256. # We chose a different compiler from the bogus one.
  3257. # However, it has the same basename, so the bogon will be chosen
  3258. # first if we set CC to just the basename; use the full file name.
  3259. shift
  3260. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3261. fi
  3262. fi
  3263. fi
  3264. fi
  3265. CC=$ac_cv_prog_CC
  3266. if test -n "$CC"; then
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3268. $as_echo "$CC" >&6; }
  3269. else
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3271. $as_echo "no" >&6; }
  3272. fi
  3273. fi
  3274. if test -z "$CC"; then
  3275. if test -n "$ac_tool_prefix"; then
  3276. for ac_prog in cl.exe
  3277. do
  3278. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3279. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3281. $as_echo_n "checking for $ac_word... " >&6; }
  3282. if test "${ac_cv_prog_CC+set}" = set; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. if test -n "$CC"; then
  3286. ac_cv_prog_CC="$CC" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. test -z "$as_dir" && as_dir=.
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3295. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3297. break 2
  3298. fi
  3299. done
  3300. done
  3301. IFS=$as_save_IFS
  3302. fi
  3303. fi
  3304. CC=$ac_cv_prog_CC
  3305. if test -n "$CC"; then
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3307. $as_echo "$CC" >&6; }
  3308. else
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3310. $as_echo "no" >&6; }
  3311. fi
  3312. test -n "$CC" && break
  3313. done
  3314. fi
  3315. if test -z "$CC"; then
  3316. ac_ct_CC=$CC
  3317. for ac_prog in cl.exe
  3318. do
  3319. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3320. set dummy $ac_prog; ac_word=$2
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3322. $as_echo_n "checking for $ac_word... " >&6; }
  3323. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. if test -n "$ac_ct_CC"; then
  3327. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3328. else
  3329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3330. for as_dir in $PATH
  3331. do
  3332. IFS=$as_save_IFS
  3333. test -z "$as_dir" && as_dir=.
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3336. ac_cv_prog_ac_ct_CC="$ac_prog"
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3338. break 2
  3339. fi
  3340. done
  3341. done
  3342. IFS=$as_save_IFS
  3343. fi
  3344. fi
  3345. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3346. if test -n "$ac_ct_CC"; then
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3348. $as_echo "$ac_ct_CC" >&6; }
  3349. else
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3351. $as_echo "no" >&6; }
  3352. fi
  3353. test -n "$ac_ct_CC" && break
  3354. done
  3355. if test "x$ac_ct_CC" = x; then
  3356. CC=""
  3357. else
  3358. case $cross_compiling:$ac_tool_warned in
  3359. yes:)
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3362. ac_tool_warned=yes ;;
  3363. esac
  3364. CC=$ac_ct_CC
  3365. fi
  3366. fi
  3367. fi
  3368. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3370. as_fn_error "no acceptable C compiler found in \$PATH
  3371. See \`config.log' for more details." "$LINENO" 5; }
  3372. # Provide some information about the compiler.
  3373. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3374. set X $ac_compile
  3375. ac_compiler=$2
  3376. for ac_option in --version -v -V -qversion; do
  3377. { { ac_try="$ac_compiler $ac_option >&5"
  3378. case "(($ac_try" in
  3379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3380. *) ac_try_echo=$ac_try;;
  3381. esac
  3382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3383. $as_echo "$ac_try_echo"; } >&5
  3384. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3385. ac_status=$?
  3386. if test -s conftest.err; then
  3387. sed '10a\
  3388. ... rest of stderr output deleted ...
  3389. 10q' conftest.err >conftest.er1
  3390. cat conftest.er1 >&5
  3391. rm -f conftest.er1 conftest.err
  3392. fi
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3394. test $ac_status = 0; }
  3395. done
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. int
  3399. main ()
  3400. {
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. # FIXME: Cleanup?
  3406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3407. (eval $ac_link) 2>&5
  3408. ac_status=$?
  3409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3410. test $ac_status = 0; }; then :
  3411. gcc_no_link=no
  3412. else
  3413. gcc_no_link=yes
  3414. fi
  3415. if test x$gcc_no_link = xyes; then
  3416. # Setting cross_compile will disable run tests; it will
  3417. # also disable AC_CHECK_FILE but that's generally
  3418. # correct if we can't link.
  3419. cross_compiling=yes
  3420. EXEEXT=
  3421. else
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h. */
  3424. int
  3425. main ()
  3426. {
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. ac_clean_files_save=$ac_clean_files
  3432. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3433. # Try to create an executable without -o first, disregard a.out.
  3434. # It will help us diagnose broken compilers, and finding out an intuition
  3435. # of exeext.
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3437. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3438. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3439. # The possible output files:
  3440. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3441. ac_rmfiles=
  3442. for ac_file in $ac_files
  3443. do
  3444. case $ac_file in
  3445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3446. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3447. esac
  3448. done
  3449. rm -f $ac_rmfiles
  3450. if { { ac_try="$ac_link_default"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3456. $as_echo "$ac_try_echo"; } >&5
  3457. (eval "$ac_link_default") 2>&5
  3458. ac_status=$?
  3459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3460. test $ac_status = 0; }; then :
  3461. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3462. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3463. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3464. # so that the user can short-circuit this test for compilers unknown to
  3465. # Autoconf.
  3466. for ac_file in $ac_files ''
  3467. do
  3468. test -f "$ac_file" || continue
  3469. case $ac_file in
  3470. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3471. ;;
  3472. [ab].out )
  3473. # We found the default executable, but exeext='' is most
  3474. # certainly right.
  3475. break;;
  3476. *.* )
  3477. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3478. then :; else
  3479. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3480. fi
  3481. # We set ac_cv_exeext here because the later test for it is not
  3482. # safe: cross compilers may not add the suffix if given an `-o'
  3483. # argument, so we may need to know it at that point already.
  3484. # Even if this section looks crufty: it has the advantage of
  3485. # actually working.
  3486. break;;
  3487. * )
  3488. break;;
  3489. esac
  3490. done
  3491. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3492. else
  3493. ac_file=''
  3494. fi
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3496. $as_echo "$ac_file" >&6; }
  3497. if test -z "$ac_file"; then :
  3498. $as_echo "$as_me: failed program was:" >&5
  3499. sed 's/^/| /' conftest.$ac_ext >&5
  3500. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. { as_fn_set_status 77
  3503. as_fn_error "C compiler cannot create executables
  3504. See \`config.log' for more details." "$LINENO" 5; }; }
  3505. fi
  3506. ac_exeext=$ac_cv_exeext
  3507. # Check that the compiler produces executables we can run. If not, either
  3508. # the compiler is broken, or we cross compile.
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3510. $as_echo_n "checking whether the C compiler works... " >&6; }
  3511. # If not cross compiling, check that we can run a simple program.
  3512. if test "$cross_compiling" != yes; then
  3513. if { ac_try='./$ac_file'
  3514. { { case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3519. $as_echo "$ac_try_echo"; } >&5
  3520. (eval "$ac_try") 2>&5
  3521. ac_status=$?
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3523. test $ac_status = 0; }; }; then
  3524. cross_compiling=no
  3525. else
  3526. if test "$cross_compiling" = maybe; then
  3527. cross_compiling=yes
  3528. else
  3529. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3531. as_fn_error "cannot run C compiled programs.
  3532. If you meant to cross compile, use \`--host'.
  3533. See \`config.log' for more details." "$LINENO" 5; }
  3534. fi
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3538. $as_echo "yes" >&6; }
  3539. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3540. ac_clean_files=$ac_clean_files_save
  3541. # Check that the compiler produces executables we can run. If not, either
  3542. # the compiler is broken, or we cross compile.
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3544. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3546. $as_echo "$cross_compiling" >&6; }
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3548. $as_echo_n "checking for suffix of executables... " >&6; }
  3549. if { { ac_try="$ac_link"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3555. $as_echo "$ac_try_echo"; } >&5
  3556. (eval "$ac_link") 2>&5
  3557. ac_status=$?
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3559. test $ac_status = 0; }; then :
  3560. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3561. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3562. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3563. # `rm'.
  3564. for ac_file in conftest.exe conftest conftest.*; do
  3565. test -f "$ac_file" || continue
  3566. case $ac_file in
  3567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3568. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3569. break;;
  3570. * ) break;;
  3571. esac
  3572. done
  3573. else
  3574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3576. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3577. See \`config.log' for more details." "$LINENO" 5; }
  3578. fi
  3579. rm -f conftest$ac_cv_exeext
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3581. $as_echo "$ac_cv_exeext" >&6; }
  3582. rm -f conftest.$ac_ext
  3583. EXEEXT=$ac_cv_exeext
  3584. ac_exeext=$EXEEXT
  3585. fi
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3587. $as_echo_n "checking for suffix of object files... " >&6; }
  3588. if test "${ac_cv_objext+set}" = set; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main ()
  3595. {
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. rm -f conftest.o conftest.obj
  3601. if { { ac_try="$ac_compile"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_compile") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; then :
  3612. for ac_file in conftest.o conftest.obj conftest.*; do
  3613. test -f "$ac_file" || continue;
  3614. case $ac_file in
  3615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3617. break;;
  3618. esac
  3619. done
  3620. else
  3621. $as_echo "$as_me: failed program was:" >&5
  3622. sed 's/^/| /' conftest.$ac_ext >&5
  3623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. as_fn_error "cannot compute suffix of object files: cannot compile
  3626. See \`config.log' for more details." "$LINENO" 5; }
  3627. fi
  3628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3631. $as_echo "$ac_cv_objext" >&6; }
  3632. OBJEXT=$ac_cv_objext
  3633. ac_objext=$OBJEXT
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3635. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3636. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. #ifndef __GNUC__
  3645. choke me
  3646. #endif
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_c_try_compile "$LINENO"; then :
  3652. ac_compiler_gnu=yes
  3653. else
  3654. ac_compiler_gnu=no
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3657. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3660. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3661. if test $ac_compiler_gnu = yes; then
  3662. GCC=yes
  3663. else
  3664. GCC=
  3665. fi
  3666. ac_test_CFLAGS=${CFLAGS+set}
  3667. ac_save_CFLAGS=$CFLAGS
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3669. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3670. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. ac_save_c_werror_flag=$ac_c_werror_flag
  3674. ac_c_werror_flag=yes
  3675. ac_cv_prog_cc_g=no
  3676. CFLAGS="-g"
  3677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3678. /* end confdefs.h. */
  3679. int
  3680. main ()
  3681. {
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. if ac_fn_c_try_compile "$LINENO"; then :
  3687. ac_cv_prog_cc_g=yes
  3688. else
  3689. CFLAGS=""
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. int
  3693. main ()
  3694. {
  3695. ;
  3696. return 0;
  3697. }
  3698. _ACEOF
  3699. if ac_fn_c_try_compile "$LINENO"; then :
  3700. else
  3701. ac_c_werror_flag=$ac_save_c_werror_flag
  3702. CFLAGS="-g"
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_c_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cc_g=yes
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. fi
  3719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3720. ac_c_werror_flag=$ac_save_c_werror_flag
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3723. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3724. if test "$ac_test_CFLAGS" = set; then
  3725. CFLAGS=$ac_save_CFLAGS
  3726. elif test $ac_cv_prog_cc_g = yes; then
  3727. if test "$GCC" = yes; then
  3728. CFLAGS="-g -O2"
  3729. else
  3730. CFLAGS="-g"
  3731. fi
  3732. else
  3733. if test "$GCC" = yes; then
  3734. CFLAGS="-O2"
  3735. else
  3736. CFLAGS=
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3740. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3741. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. ac_cv_prog_cc_c89=no
  3745. ac_save_CC=$CC
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. #include <stdarg.h>
  3749. #include <stdio.h>
  3750. #include <sys/types.h>
  3751. #include <sys/stat.h>
  3752. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3753. struct buf { int x; };
  3754. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3755. static char *e (p, i)
  3756. char **p;
  3757. int i;
  3758. {
  3759. return p[i];
  3760. }
  3761. static char *f (char * (*g) (char **, int), char **p, ...)
  3762. {
  3763. char *s;
  3764. va_list v;
  3765. va_start (v,p);
  3766. s = g (p, va_arg (v,int));
  3767. va_end (v);
  3768. return s;
  3769. }
  3770. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3771. function prototypes and stuff, but not '\xHH' hex character constants.
  3772. These don't provoke an error unfortunately, instead are silently treated
  3773. as 'x'. The following induces an error, until -std is added to get
  3774. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3775. array size at least. It's necessary to write '\x00'==0 to get something
  3776. that's true only with -std. */
  3777. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3778. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3779. inside strings and character constants. */
  3780. #define FOO(x) 'x'
  3781. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3782. int test (int i, double x);
  3783. struct s1 {int (*f) (int a);};
  3784. struct s2 {int (*f) (double a);};
  3785. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3786. int argc;
  3787. char **argv;
  3788. int
  3789. main ()
  3790. {
  3791. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3792. ;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3797. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3798. do
  3799. CC="$ac_save_CC $ac_arg"
  3800. if ac_fn_c_try_compile "$LINENO"; then :
  3801. ac_cv_prog_cc_c89=$ac_arg
  3802. fi
  3803. rm -f core conftest.err conftest.$ac_objext
  3804. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3805. done
  3806. rm -f conftest.$ac_ext
  3807. CC=$ac_save_CC
  3808. fi
  3809. # AC_CACHE_VAL
  3810. case "x$ac_cv_prog_cc_c89" in
  3811. x)
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3813. $as_echo "none needed" >&6; } ;;
  3814. xno)
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3816. $as_echo "unsupported" >&6; } ;;
  3817. *)
  3818. CC="$CC $ac_cv_prog_cc_c89"
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3820. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3821. esac
  3822. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3823. fi
  3824. ac_ext=c
  3825. ac_cpp='$CPP $CPPFLAGS'
  3826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3829. DEPDIR="${am__leading_dot}deps"
  3830. ac_config_commands="$ac_config_commands depfiles"
  3831. am_make=${MAKE-make}
  3832. cat > confinc << 'END'
  3833. am__doit:
  3834. @echo this is the am__doit target
  3835. .PHONY: am__doit
  3836. END
  3837. # If we don't find an include directive, just comment out the code.
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3839. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3840. am__include="#"
  3841. am__quote=
  3842. _am_result=none
  3843. # First try GNU make style include.
  3844. echo "include confinc" > confmf
  3845. # Ignore all kinds of additional output from `make'.
  3846. case `$am_make -s -f confmf 2> /dev/null` in #(
  3847. *the\ am__doit\ target*)
  3848. am__include=include
  3849. am__quote=
  3850. _am_result=GNU
  3851. ;;
  3852. esac
  3853. # Now try BSD make style include.
  3854. if test "$am__include" = "#"; then
  3855. echo '.include "confinc"' > confmf
  3856. case `$am_make -s -f confmf 2> /dev/null` in #(
  3857. *the\ am__doit\ target*)
  3858. am__include=.include
  3859. am__quote="\""
  3860. _am_result=BSD
  3861. ;;
  3862. esac
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3865. $as_echo "$_am_result" >&6; }
  3866. rm -f confinc confmf
  3867. # Check whether --enable-dependency-tracking was given.
  3868. if test "${enable_dependency_tracking+set}" = set; then :
  3869. enableval=$enable_dependency_tracking;
  3870. fi
  3871. if test "x$enable_dependency_tracking" != xno; then
  3872. am_depcomp="$ac_aux_dir/depcomp"
  3873. AMDEPBACKSLASH='\'
  3874. fi
  3875. if test "x$enable_dependency_tracking" != xno; then
  3876. AMDEP_TRUE=
  3877. AMDEP_FALSE='#'
  3878. else
  3879. AMDEP_TRUE='#'
  3880. AMDEP_FALSE=
  3881. fi
  3882. depcc="$CC" am_compiler_list=
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3884. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3885. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3886. $as_echo_n "(cached) " >&6
  3887. else
  3888. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3889. # We make a subdir and do the tests there. Otherwise we can end up
  3890. # making bogus files that we don't know about and never remove. For
  3891. # instance it was reported that on HP-UX the gcc test will end up
  3892. # making a dummy file named `D' -- because `-MD' means `put the output
  3893. # in D'.
  3894. mkdir conftest.dir
  3895. # Copy depcomp to subdir because otherwise we won't find it if we're
  3896. # using a relative directory.
  3897. cp "$am_depcomp" conftest.dir
  3898. cd conftest.dir
  3899. # We will build objects and dependencies in a subdirectory because
  3900. # it helps to detect inapplicable dependency modes. For instance
  3901. # both Tru64's cc and ICC support -MD to output dependencies as a
  3902. # side effect of compilation, but ICC will put the dependencies in
  3903. # the current directory while Tru64 will put them in the object
  3904. # directory.
  3905. mkdir sub
  3906. am_cv_CC_dependencies_compiler_type=none
  3907. if test "$am_compiler_list" = ""; then
  3908. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3909. fi
  3910. am__universal=false
  3911. case " $depcc " in #(
  3912. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3913. esac
  3914. for depmode in $am_compiler_list; do
  3915. # Setup a source with many dependencies, because some compilers
  3916. # like to wrap large dependency lists on column 80 (with \), and
  3917. # we should not choose a depcomp mode which is confused by this.
  3918. #
  3919. # We need to recreate these files for each test, as the compiler may
  3920. # overwrite some of them when testing with obscure command lines.
  3921. # This happens at least with the AIX C compiler.
  3922. : > sub/conftest.c
  3923. for i in 1 2 3 4 5 6; do
  3924. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3925. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3926. # Solaris 8's {/usr,}/bin/sh.
  3927. touch sub/conftst$i.h
  3928. done
  3929. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3930. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3931. # mode. It turns out that the SunPro C++ compiler does not properly
  3932. # handle `-M -o', and we need to detect this. Also, some Intel
  3933. # versions had trouble with output in subdirs
  3934. am__obj=sub/conftest.${OBJEXT-o}
  3935. am__minus_obj="-o $am__obj"
  3936. case $depmode in
  3937. gcc)
  3938. # This depmode causes a compiler race in universal mode.
  3939. test "$am__universal" = false || continue
  3940. ;;
  3941. nosideeffect)
  3942. # after this tag, mechanisms are not by side-effect, so they'll
  3943. # only be used when explicitly requested
  3944. if test "x$enable_dependency_tracking" = xyes; then
  3945. continue
  3946. else
  3947. break
  3948. fi
  3949. ;;
  3950. msvisualcpp | msvcmsys)
  3951. # This compiler won't grok `-c -o', but also, the minuso test has
  3952. # not run yet. These depmodes are late enough in the game, and
  3953. # so weak that their functioning should not be impacted.
  3954. am__obj=conftest.${OBJEXT-o}
  3955. am__minus_obj=
  3956. ;;
  3957. none) break ;;
  3958. esac
  3959. if depmode=$depmode \
  3960. source=sub/conftest.c object=$am__obj \
  3961. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3962. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3963. >/dev/null 2>conftest.err &&
  3964. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3965. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3966. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3967. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3968. # icc doesn't choke on unknown options, it will just issue warnings
  3969. # or remarks (even with -Werror). So we grep stderr for any message
  3970. # that says an option was ignored or not supported.
  3971. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3972. # icc: Command line warning: ignoring option '-M'; no argument required
  3973. # The diagnosis changed in icc 8.0:
  3974. # icc: Command line remark: option '-MP' not supported
  3975. if (grep 'ignoring option' conftest.err ||
  3976. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3977. am_cv_CC_dependencies_compiler_type=$depmode
  3978. break
  3979. fi
  3980. fi
  3981. done
  3982. cd ..
  3983. rm -rf conftest.dir
  3984. else
  3985. am_cv_CC_dependencies_compiler_type=none
  3986. fi
  3987. fi
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3989. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3990. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3991. if
  3992. test "x$enable_dependency_tracking" != xno \
  3993. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3994. am__fastdepCC_TRUE=
  3995. am__fastdepCC_FALSE='#'
  3996. else
  3997. am__fastdepCC_TRUE='#'
  3998. am__fastdepCC_FALSE=
  3999. fi
  4000. # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
  4001. if test "x$GCC" = "xyes"; then
  4002. AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
  4003. ## We like to use C99 routines when available. This makes sure that
  4004. ## __STDC_VERSION__ is set such that libc includes make them available.
  4005. AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
  4006. ## Compile the following tests with the same system header contents
  4007. ## that we'll encounter when compiling our own source files.
  4008. CFLAGS="-std=gnu99 $CFLAGS"
  4009. fi
  4010. # Check for symbol versioning (copied from libssp).
  4011. if test "x$enable_symvers" == "xno"; then
  4012. gfortran_use_symver=no
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  4015. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  4016. cat > conftest.map <<EOF
  4017. FOO_1.0 {
  4018. global: *foo*; bar; local: *;
  4019. };
  4020. EOF
  4021. save_LDFLAGS="$LDFLAGS"
  4022. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  4023. if test x$gcc_no_link = xyes; then
  4024. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4025. fi
  4026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4027. /* end confdefs.h. */
  4028. int foo;
  4029. int
  4030. main ()
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_link "$LINENO"; then :
  4037. gfortran_use_symver=yes
  4038. else
  4039. gfortran_use_symver=no
  4040. fi
  4041. rm -f core conftest.err conftest.$ac_objext \
  4042. conftest$ac_exeext conftest.$ac_ext
  4043. LDFLAGS="$save_LDFLAGS"
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
  4046. $as_echo "$gfortran_use_symver" >&6; }
  4047. if test "x$gfortran_use_symver" = xyes; then
  4048. LIBGFOR_USE_SYMVER_TRUE=
  4049. LIBGFOR_USE_SYMVER_FALSE='#'
  4050. else
  4051. LIBGFOR_USE_SYMVER_TRUE='#'
  4052. LIBGFOR_USE_SYMVER_FALSE=
  4053. fi
  4054. # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
  4055. # similarly to how libstdc++ does it
  4056. ac_test_CFLAGS="${CFLAGS+set}"
  4057. ac_save_CFLAGS="$CFLAGS"
  4058. # Check for -ffunction-sections -fdata-sections
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
  4060. $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
  4061. CFLAGS='-Werror -ffunction-sections -fdata-sections'
  4062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4063. /* end confdefs.h. */
  4064. int
  4065. main ()
  4066. {
  4067. int foo;
  4068. ;
  4069. return 0;
  4070. }
  4071. _ACEOF
  4072. if ac_fn_c_try_compile "$LINENO"; then :
  4073. ac_fdsections=yes
  4074. else
  4075. ac_fdsections=no
  4076. fi
  4077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4078. if test "$ac_test_CFLAGS" = set; then
  4079. CFLAGS="$ac_save_CFLAGS"
  4080. else
  4081. # this is the suspicious part
  4082. CFLAGS=""
  4083. fi
  4084. if test x"$ac_fdsections" = x"yes"; then
  4085. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  4086. fi
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  4088. $as_echo "$ac_fdsections" >&6; }
  4089. # Find other programs we need.
  4090. if test -n "$ac_tool_prefix"; then
  4091. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4092. set dummy ${ac_tool_prefix}as; ac_word=$2
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4094. $as_echo_n "checking for $ac_word... " >&6; }
  4095. if test "${ac_cv_prog_AS+set}" = set; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. if test -n "$AS"; then
  4099. ac_cv_prog_AS="$AS" # Let the user override the test.
  4100. else
  4101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4102. for as_dir in $PATH
  4103. do
  4104. IFS=$as_save_IFS
  4105. test -z "$as_dir" && as_dir=.
  4106. for ac_exec_ext in '' $ac_executable_extensions; do
  4107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4108. ac_cv_prog_AS="${ac_tool_prefix}as"
  4109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4110. break 2
  4111. fi
  4112. done
  4113. done
  4114. IFS=$as_save_IFS
  4115. fi
  4116. fi
  4117. AS=$ac_cv_prog_AS
  4118. if test -n "$AS"; then
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4120. $as_echo "$AS" >&6; }
  4121. else
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4123. $as_echo "no" >&6; }
  4124. fi
  4125. fi
  4126. if test -z "$ac_cv_prog_AS"; then
  4127. ac_ct_AS=$AS
  4128. # Extract the first word of "as", so it can be a program name with args.
  4129. set dummy as; ac_word=$2
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4131. $as_echo_n "checking for $ac_word... " >&6; }
  4132. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. if test -n "$ac_ct_AS"; then
  4136. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4137. else
  4138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4139. for as_dir in $PATH
  4140. do
  4141. IFS=$as_save_IFS
  4142. test -z "$as_dir" && as_dir=.
  4143. for ac_exec_ext in '' $ac_executable_extensions; do
  4144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4145. ac_cv_prog_ac_ct_AS="as"
  4146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147. break 2
  4148. fi
  4149. done
  4150. done
  4151. IFS=$as_save_IFS
  4152. fi
  4153. fi
  4154. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4155. if test -n "$ac_ct_AS"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4157. $as_echo "$ac_ct_AS" >&6; }
  4158. else
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4160. $as_echo "no" >&6; }
  4161. fi
  4162. if test "x$ac_ct_AS" = x; then
  4163. AS=""
  4164. else
  4165. case $cross_compiling:$ac_tool_warned in
  4166. yes:)
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4168. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4169. ac_tool_warned=yes ;;
  4170. esac
  4171. AS=$ac_ct_AS
  4172. fi
  4173. else
  4174. AS="$ac_cv_prog_AS"
  4175. fi
  4176. if test -n "$ac_tool_prefix"; then
  4177. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4178. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4180. $as_echo_n "checking for $ac_word... " >&6; }
  4181. if test "${ac_cv_prog_AR+set}" = set; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. if test -n "$AR"; then
  4185. ac_cv_prog_AR="$AR" # Let the user override the test.
  4186. else
  4187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4188. for as_dir in $PATH
  4189. do
  4190. IFS=$as_save_IFS
  4191. test -z "$as_dir" && as_dir=.
  4192. for ac_exec_ext in '' $ac_executable_extensions; do
  4193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4194. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4196. break 2
  4197. fi
  4198. done
  4199. done
  4200. IFS=$as_save_IFS
  4201. fi
  4202. fi
  4203. AR=$ac_cv_prog_AR
  4204. if test -n "$AR"; then
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4206. $as_echo "$AR" >&6; }
  4207. else
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4209. $as_echo "no" >&6; }
  4210. fi
  4211. fi
  4212. if test -z "$ac_cv_prog_AR"; then
  4213. ac_ct_AR=$AR
  4214. # Extract the first word of "ar", so it can be a program name with args.
  4215. set dummy ar; ac_word=$2
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4217. $as_echo_n "checking for $ac_word... " >&6; }
  4218. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. if test -n "$ac_ct_AR"; then
  4222. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4223. else
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_exec_ext in '' $ac_executable_extensions; do
  4230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4231. ac_cv_prog_ac_ct_AR="ar"
  4232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4233. break 2
  4234. fi
  4235. done
  4236. done
  4237. IFS=$as_save_IFS
  4238. fi
  4239. fi
  4240. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4241. if test -n "$ac_ct_AR"; then
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4243. $as_echo "$ac_ct_AR" >&6; }
  4244. else
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4246. $as_echo "no" >&6; }
  4247. fi
  4248. if test "x$ac_ct_AR" = x; then
  4249. AR=""
  4250. else
  4251. case $cross_compiling:$ac_tool_warned in
  4252. yes:)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4255. ac_tool_warned=yes ;;
  4256. esac
  4257. AR=$ac_ct_AR
  4258. fi
  4259. else
  4260. AR="$ac_cv_prog_AR"
  4261. fi
  4262. if test -n "$ac_tool_prefix"; then
  4263. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4264. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4266. $as_echo_n "checking for $ac_word... " >&6; }
  4267. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$RANLIB"; then
  4271. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4272. else
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. fi
  4288. fi
  4289. RANLIB=$ac_cv_prog_RANLIB
  4290. if test -n "$RANLIB"; then
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4292. $as_echo "$RANLIB" >&6; }
  4293. else
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4295. $as_echo "no" >&6; }
  4296. fi
  4297. fi
  4298. if test -z "$ac_cv_prog_RANLIB"; then
  4299. ac_ct_RANLIB=$RANLIB
  4300. # Extract the first word of "ranlib", so it can be a program name with args.
  4301. set dummy ranlib; ac_word=$2
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4303. $as_echo_n "checking for $ac_word... " >&6; }
  4304. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4305. $as_echo_n "(cached) " >&6
  4306. else
  4307. if test -n "$ac_ct_RANLIB"; then
  4308. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4309. else
  4310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4311. for as_dir in $PATH
  4312. do
  4313. IFS=$as_save_IFS
  4314. test -z "$as_dir" && as_dir=.
  4315. for ac_exec_ext in '' $ac_executable_extensions; do
  4316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4317. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4319. break 2
  4320. fi
  4321. done
  4322. done
  4323. IFS=$as_save_IFS
  4324. fi
  4325. fi
  4326. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4327. if test -n "$ac_ct_RANLIB"; then
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4329. $as_echo "$ac_ct_RANLIB" >&6; }
  4330. else
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4332. $as_echo "no" >&6; }
  4333. fi
  4334. if test "x$ac_ct_RANLIB" = x; then
  4335. RANLIB="ranlib-not-found-in-path-error"
  4336. else
  4337. case $cross_compiling:$ac_tool_warned in
  4338. yes:)
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4341. ac_tool_warned=yes ;;
  4342. esac
  4343. RANLIB=$ac_ct_RANLIB
  4344. fi
  4345. else
  4346. RANLIB="$ac_cv_prog_RANLIB"
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4349. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4350. set x ${MAKE-make}
  4351. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4352. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. cat >conftest.make <<\_ACEOF
  4356. SHELL = /bin/sh
  4357. all:
  4358. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4359. _ACEOF
  4360. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4361. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4362. *@@@%%%=?*=@@@%%%*)
  4363. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4364. *)
  4365. eval ac_cv_prog_make_${ac_make}_set=no;;
  4366. esac
  4367. rm -f conftest.make
  4368. fi
  4369. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4371. $as_echo "yes" >&6; }
  4372. SET_MAKE=
  4373. else
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4375. $as_echo "no" >&6; }
  4376. SET_MAKE="MAKE=${MAKE-make}"
  4377. fi
  4378. # Configure libtool
  4379. #AC_MSG_NOTICE([====== Starting libtool configuration])
  4380. enable_dlopen=yes
  4381. case `pwd` in
  4382. *\ * | *\ *)
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4384. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4385. esac
  4386. macro_version='2.2.7a'
  4387. macro_revision='1.3134'
  4388. ltmain="$ac_aux_dir/ltmain.sh"
  4389. # Backslashify metacharacters that are still active within
  4390. # double-quoted strings.
  4391. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4392. # Same as above, but do not quote variable references.
  4393. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4394. # Sed substitution to delay expansion of an escaped shell variable in a
  4395. # double_quote_subst'ed string.
  4396. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4397. # Sed substitution to delay expansion of an escaped single quote.
  4398. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4399. # Sed substitution to avoid accidental globbing in evaled expressions
  4400. no_glob_subst='s/\*/\\\*/g'
  4401. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4402. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4403. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4405. $as_echo_n "checking how to print strings... " >&6; }
  4406. # Test print first, because it will be a builtin if present.
  4407. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4408. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4409. ECHO='print -r --'
  4410. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4411. ECHO='printf %s\n'
  4412. else
  4413. # Use this function as a fallback that always works.
  4414. func_fallback_echo ()
  4415. {
  4416. eval 'cat <<_LTECHO_EOF
  4417. $1
  4418. _LTECHO_EOF'
  4419. }
  4420. ECHO='func_fallback_echo'
  4421. fi
  4422. # func_echo_all arg...
  4423. # Invoke $ECHO with all args, space-separated.
  4424. func_echo_all ()
  4425. {
  4426. $ECHO ""
  4427. }
  4428. case "$ECHO" in
  4429. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4430. $as_echo "printf" >&6; } ;;
  4431. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4432. $as_echo "print -r" >&6; } ;;
  4433. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4434. $as_echo "cat" >&6; } ;;
  4435. esac
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4437. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4438. if test "${ac_cv_path_SED+set}" = set; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4442. for ac_i in 1 2 3 4 5 6 7; do
  4443. ac_script="$ac_script$as_nl$ac_script"
  4444. done
  4445. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4446. { ac_script=; unset ac_script;}
  4447. if test -z "$SED"; then
  4448. ac_path_SED_found=false
  4449. # Loop through the user's path and test for each of PROGNAME-LIST
  4450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4451. for as_dir in $PATH
  4452. do
  4453. IFS=$as_save_IFS
  4454. test -z "$as_dir" && as_dir=.
  4455. for ac_prog in sed gsed; do
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4458. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4459. # Check for GNU ac_path_SED and select it if it is found.
  4460. # Check for GNU $ac_path_SED
  4461. case `"$ac_path_SED" --version 2>&1` in
  4462. *GNU*)
  4463. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4464. *)
  4465. ac_count=0
  4466. $as_echo_n 0123456789 >"conftest.in"
  4467. while :
  4468. do
  4469. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4470. mv "conftest.tmp" "conftest.in"
  4471. cp "conftest.in" "conftest.nl"
  4472. $as_echo '' >> "conftest.nl"
  4473. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4474. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4475. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4476. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4477. # Best one so far, save it but keep looking for a better one
  4478. ac_cv_path_SED="$ac_path_SED"
  4479. ac_path_SED_max=$ac_count
  4480. fi
  4481. # 10*(2^10) chars as input seems more than enough
  4482. test $ac_count -gt 10 && break
  4483. done
  4484. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4485. esac
  4486. $ac_path_SED_found && break 3
  4487. done
  4488. done
  4489. done
  4490. IFS=$as_save_IFS
  4491. if test -z "$ac_cv_path_SED"; then
  4492. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4493. fi
  4494. else
  4495. ac_cv_path_SED=$SED
  4496. fi
  4497. fi
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4499. $as_echo "$ac_cv_path_SED" >&6; }
  4500. SED="$ac_cv_path_SED"
  4501. rm -f conftest.sed
  4502. test -z "$SED" && SED=sed
  4503. Xsed="$SED -e 1s/^X//"
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4505. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4506. if test "${ac_cv_path_GREP+set}" = set; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. if test -z "$GREP"; then
  4510. ac_path_GREP_found=false
  4511. # Loop through the user's path and test for each of PROGNAME-LIST
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_prog in grep ggrep; do
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4520. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4521. # Check for GNU ac_path_GREP and select it if it is found.
  4522. # Check for GNU $ac_path_GREP
  4523. case `"$ac_path_GREP" --version 2>&1` in
  4524. *GNU*)
  4525. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4526. *)
  4527. ac_count=0
  4528. $as_echo_n 0123456789 >"conftest.in"
  4529. while :
  4530. do
  4531. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4532. mv "conftest.tmp" "conftest.in"
  4533. cp "conftest.in" "conftest.nl"
  4534. $as_echo 'GREP' >> "conftest.nl"
  4535. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4536. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4537. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4538. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4539. # Best one so far, save it but keep looking for a better one
  4540. ac_cv_path_GREP="$ac_path_GREP"
  4541. ac_path_GREP_max=$ac_count
  4542. fi
  4543. # 10*(2^10) chars as input seems more than enough
  4544. test $ac_count -gt 10 && break
  4545. done
  4546. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4547. esac
  4548. $ac_path_GREP_found && break 3
  4549. done
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. if test -z "$ac_cv_path_GREP"; then
  4554. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4555. fi
  4556. else
  4557. ac_cv_path_GREP=$GREP
  4558. fi
  4559. fi
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4561. $as_echo "$ac_cv_path_GREP" >&6; }
  4562. GREP="$ac_cv_path_GREP"
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4564. $as_echo_n "checking for egrep... " >&6; }
  4565. if test "${ac_cv_path_EGREP+set}" = set; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4569. then ac_cv_path_EGREP="$GREP -E"
  4570. else
  4571. if test -z "$EGREP"; then
  4572. ac_path_EGREP_found=false
  4573. # Loop through the user's path and test for each of PROGNAME-LIST
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_prog in egrep; do
  4580. for ac_exec_ext in '' $ac_executable_extensions; do
  4581. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4582. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4583. # Check for GNU ac_path_EGREP and select it if it is found.
  4584. # Check for GNU $ac_path_EGREP
  4585. case `"$ac_path_EGREP" --version 2>&1` in
  4586. *GNU*)
  4587. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4588. *)
  4589. ac_count=0
  4590. $as_echo_n 0123456789 >"conftest.in"
  4591. while :
  4592. do
  4593. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4594. mv "conftest.tmp" "conftest.in"
  4595. cp "conftest.in" "conftest.nl"
  4596. $as_echo 'EGREP' >> "conftest.nl"
  4597. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4598. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4599. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4600. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4601. # Best one so far, save it but keep looking for a better one
  4602. ac_cv_path_EGREP="$ac_path_EGREP"
  4603. ac_path_EGREP_max=$ac_count
  4604. fi
  4605. # 10*(2^10) chars as input seems more than enough
  4606. test $ac_count -gt 10 && break
  4607. done
  4608. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4609. esac
  4610. $ac_path_EGREP_found && break 3
  4611. done
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. if test -z "$ac_cv_path_EGREP"; then
  4616. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4617. fi
  4618. else
  4619. ac_cv_path_EGREP=$EGREP
  4620. fi
  4621. fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4624. $as_echo "$ac_cv_path_EGREP" >&6; }
  4625. EGREP="$ac_cv_path_EGREP"
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4627. $as_echo_n "checking for fgrep... " >&6; }
  4628. if test "${ac_cv_path_FGREP+set}" = set; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4632. then ac_cv_path_FGREP="$GREP -F"
  4633. else
  4634. if test -z "$FGREP"; then
  4635. ac_path_FGREP_found=false
  4636. # Loop through the user's path and test for each of PROGNAME-LIST
  4637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4639. do
  4640. IFS=$as_save_IFS
  4641. test -z "$as_dir" && as_dir=.
  4642. for ac_prog in fgrep; do
  4643. for ac_exec_ext in '' $ac_executable_extensions; do
  4644. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4645. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4646. # Check for GNU ac_path_FGREP and select it if it is found.
  4647. # Check for GNU $ac_path_FGREP
  4648. case `"$ac_path_FGREP" --version 2>&1` in
  4649. *GNU*)
  4650. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4651. *)
  4652. ac_count=0
  4653. $as_echo_n 0123456789 >"conftest.in"
  4654. while :
  4655. do
  4656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4657. mv "conftest.tmp" "conftest.in"
  4658. cp "conftest.in" "conftest.nl"
  4659. $as_echo 'FGREP' >> "conftest.nl"
  4660. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4663. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4664. # Best one so far, save it but keep looking for a better one
  4665. ac_cv_path_FGREP="$ac_path_FGREP"
  4666. ac_path_FGREP_max=$ac_count
  4667. fi
  4668. # 10*(2^10) chars as input seems more than enough
  4669. test $ac_count -gt 10 && break
  4670. done
  4671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4672. esac
  4673. $ac_path_FGREP_found && break 3
  4674. done
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. if test -z "$ac_cv_path_FGREP"; then
  4679. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4680. fi
  4681. else
  4682. ac_cv_path_FGREP=$FGREP
  4683. fi
  4684. fi
  4685. fi
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4687. $as_echo "$ac_cv_path_FGREP" >&6; }
  4688. FGREP="$ac_cv_path_FGREP"
  4689. test -z "$GREP" && GREP=grep
  4690. # Check whether --with-gnu-ld was given.
  4691. if test "${with_gnu_ld+set}" = set; then :
  4692. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4693. else
  4694. with_gnu_ld=no
  4695. fi
  4696. ac_prog=ld
  4697. if test "$GCC" = yes; then
  4698. # Check if gcc -print-prog-name=ld gives a path.
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4700. $as_echo_n "checking for ld used by $CC... " >&6; }
  4701. case $host in
  4702. *-*-mingw*)
  4703. # gcc leaves a trailing carriage return which upsets mingw
  4704. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4705. *)
  4706. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4707. esac
  4708. case $ac_prog in
  4709. # Accept absolute paths.
  4710. [\\/]* | ?:[\\/]*)
  4711. re_direlt='/[^/][^/]*/\.\./'
  4712. # Canonicalize the pathname of ld
  4713. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4714. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4715. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4716. done
  4717. test -z "$LD" && LD="$ac_prog"
  4718. ;;
  4719. "")
  4720. # If it fails, then pretend we aren't using GCC.
  4721. ac_prog=ld
  4722. ;;
  4723. *)
  4724. # If it is relative, then search for the first ld in PATH.
  4725. with_gnu_ld=unknown
  4726. ;;
  4727. esac
  4728. elif test "$with_gnu_ld" = yes; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4730. $as_echo_n "checking for GNU ld... " >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4733. $as_echo_n "checking for non-GNU ld... " >&6; }
  4734. fi
  4735. if test "${lt_cv_path_LD+set}" = set; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. if test -z "$LD"; then
  4739. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4740. for ac_dir in $PATH; do
  4741. IFS="$lt_save_ifs"
  4742. test -z "$ac_dir" && ac_dir=.
  4743. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4744. lt_cv_path_LD="$ac_dir/$ac_prog"
  4745. # Check to see if the program is GNU ld. I'd rather use --version,
  4746. # but apparently some variants of GNU ld only accept -v.
  4747. # Break only if it was the GNU/non-GNU ld that we prefer.
  4748. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4749. *GNU* | *'with BFD'*)
  4750. test "$with_gnu_ld" != no && break
  4751. ;;
  4752. *)
  4753. test "$with_gnu_ld" != yes && break
  4754. ;;
  4755. esac
  4756. fi
  4757. done
  4758. IFS="$lt_save_ifs"
  4759. else
  4760. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4761. fi
  4762. fi
  4763. LD="$lt_cv_path_LD"
  4764. if test -n "$LD"; then
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4766. $as_echo "$LD" >&6; }
  4767. else
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4769. $as_echo "no" >&6; }
  4770. fi
  4771. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4773. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4774. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4778. case `$LD -v 2>&1 </dev/null` in
  4779. *GNU* | *'with BFD'*)
  4780. lt_cv_prog_gnu_ld=yes
  4781. ;;
  4782. *)
  4783. lt_cv_prog_gnu_ld=no
  4784. ;;
  4785. esac
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4788. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4789. with_gnu_ld=$lt_cv_prog_gnu_ld
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4791. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4792. if test "${lt_cv_path_NM+set}" = set; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$NM"; then
  4796. # Let the user override the test.
  4797. lt_cv_path_NM="$NM"
  4798. else
  4799. lt_nm_to_check="${ac_tool_prefix}nm"
  4800. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4801. lt_nm_to_check="$lt_nm_to_check nm"
  4802. fi
  4803. for lt_tmp_nm in $lt_nm_to_check; do
  4804. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4805. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4806. IFS="$lt_save_ifs"
  4807. test -z "$ac_dir" && ac_dir=.
  4808. tmp_nm="$ac_dir/$lt_tmp_nm"
  4809. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4810. # Check to see if the nm accepts a BSD-compat flag.
  4811. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4812. # nm: unknown option "B" ignored
  4813. # Tru64's nm complains that /dev/null is an invalid object file
  4814. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4815. */dev/null* | *'Invalid file or object type'*)
  4816. lt_cv_path_NM="$tmp_nm -B"
  4817. break
  4818. ;;
  4819. *)
  4820. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4821. */dev/null*)
  4822. lt_cv_path_NM="$tmp_nm -p"
  4823. break
  4824. ;;
  4825. *)
  4826. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4827. continue # so that we can try to find one that supports BSD flags
  4828. ;;
  4829. esac
  4830. ;;
  4831. esac
  4832. fi
  4833. done
  4834. IFS="$lt_save_ifs"
  4835. done
  4836. : ${lt_cv_path_NM=no}
  4837. fi
  4838. fi
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4840. $as_echo "$lt_cv_path_NM" >&6; }
  4841. if test "$lt_cv_path_NM" != "no"; then
  4842. NM="$lt_cv_path_NM"
  4843. else
  4844. # Didn't find any BSD compatible name lister, look for dumpbin.
  4845. if test -n "$DUMPBIN"; then :
  4846. # Let the user override the test.
  4847. else
  4848. if test -n "$ac_tool_prefix"; then
  4849. for ac_prog in dumpbin "link -dump"
  4850. do
  4851. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4852. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4854. $as_echo_n "checking for $ac_word... " >&6; }
  4855. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. if test -n "$DUMPBIN"; then
  4859. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4860. else
  4861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4862. for as_dir in $PATH
  4863. do
  4864. IFS=$as_save_IFS
  4865. test -z "$as_dir" && as_dir=.
  4866. for ac_exec_ext in '' $ac_executable_extensions; do
  4867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4868. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4870. break 2
  4871. fi
  4872. done
  4873. done
  4874. IFS=$as_save_IFS
  4875. fi
  4876. fi
  4877. DUMPBIN=$ac_cv_prog_DUMPBIN
  4878. if test -n "$DUMPBIN"; then
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4880. $as_echo "$DUMPBIN" >&6; }
  4881. else
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4883. $as_echo "no" >&6; }
  4884. fi
  4885. test -n "$DUMPBIN" && break
  4886. done
  4887. fi
  4888. if test -z "$DUMPBIN"; then
  4889. ac_ct_DUMPBIN=$DUMPBIN
  4890. for ac_prog in dumpbin "link -dump"
  4891. do
  4892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4893. set dummy $ac_prog; ac_word=$2
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4895. $as_echo_n "checking for $ac_word... " >&6; }
  4896. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. if test -n "$ac_ct_DUMPBIN"; then
  4900. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4901. else
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH
  4904. do
  4905. IFS=$as_save_IFS
  4906. test -z "$as_dir" && as_dir=.
  4907. for ac_exec_ext in '' $ac_executable_extensions; do
  4908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4909. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4911. break 2
  4912. fi
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. fi
  4917. fi
  4918. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4919. if test -n "$ac_ct_DUMPBIN"; then
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4921. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; }
  4925. fi
  4926. test -n "$ac_ct_DUMPBIN" && break
  4927. done
  4928. if test "x$ac_ct_DUMPBIN" = x; then
  4929. DUMPBIN=":"
  4930. else
  4931. case $cross_compiling:$ac_tool_warned in
  4932. yes:)
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4935. ac_tool_warned=yes ;;
  4936. esac
  4937. DUMPBIN=$ac_ct_DUMPBIN
  4938. fi
  4939. fi
  4940. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4941. *COFF*)
  4942. DUMPBIN="$DUMPBIN -symbols"
  4943. ;;
  4944. *)
  4945. DUMPBIN=:
  4946. ;;
  4947. esac
  4948. fi
  4949. if test "$DUMPBIN" != ":"; then
  4950. NM="$DUMPBIN"
  4951. fi
  4952. fi
  4953. test -z "$NM" && NM=nm
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4955. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4956. if test "${lt_cv_nm_interface+set}" = set; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. lt_cv_nm_interface="BSD nm"
  4960. echo "int some_variable = 0;" > conftest.$ac_ext
  4961. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4962. (eval "$ac_compile" 2>conftest.err)
  4963. cat conftest.err >&5
  4964. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4965. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4966. cat conftest.err >&5
  4967. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4968. cat conftest.out >&5
  4969. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4970. lt_cv_nm_interface="MS dumpbin"
  4971. fi
  4972. rm -f conftest*
  4973. fi
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4975. $as_echo "$lt_cv_nm_interface" >&6; }
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4977. $as_echo_n "checking whether ln -s works... " >&6; }
  4978. LN_S=$as_ln_s
  4979. if test "$LN_S" = "ln -s"; then
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4981. $as_echo "yes" >&6; }
  4982. else
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4984. $as_echo "no, using $LN_S" >&6; }
  4985. fi
  4986. # find the maximum length of command line arguments
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4988. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4989. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. i=0
  4993. teststring="ABCD"
  4994. case $build_os in
  4995. msdosdjgpp*)
  4996. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4997. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4998. # during glob expansion). Even if it were fixed, the result of this
  4999. # check would be larger than it should be.
  5000. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5001. ;;
  5002. gnu*)
  5003. # Under GNU Hurd, this test is not required because there is
  5004. # no limit to the length of command line arguments.
  5005. # Libtool will interpret -1 as no limit whatsoever
  5006. lt_cv_sys_max_cmd_len=-1;
  5007. ;;
  5008. cygwin* | mingw* | cegcc*)
  5009. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5010. # about 5 minutes as the teststring grows exponentially.
  5011. # Worse, since 9x/ME are not pre-emptively multitasking,
  5012. # you end up with a "frozen" computer, even though with patience
  5013. # the test eventually succeeds (with a max line length of 256k).
  5014. # Instead, let's just punt: use the minimum linelength reported by
  5015. # all of the supported platforms: 8192 (on NT/2K/XP).
  5016. lt_cv_sys_max_cmd_len=8192;
  5017. ;;
  5018. mint*)
  5019. # On MiNT this can take a long time and run out of memory.
  5020. lt_cv_sys_max_cmd_len=8192;
  5021. ;;
  5022. amigaos*)
  5023. # On AmigaOS with pdksh, this test takes hours, literally.
  5024. # So we just punt and use a minimum line length of 8192.
  5025. lt_cv_sys_max_cmd_len=8192;
  5026. ;;
  5027. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5028. # This has been around since 386BSD, at least. Likely further.
  5029. if test -x /sbin/sysctl; then
  5030. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5031. elif test -x /usr/sbin/sysctl; then
  5032. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5033. else
  5034. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5035. fi
  5036. # And add a safety zone
  5037. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5038. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5039. ;;
  5040. interix*)
  5041. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5042. lt_cv_sys_max_cmd_len=196608
  5043. ;;
  5044. osf*)
  5045. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5046. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5047. # nice to cause kernel panics so lets avoid the loop below.
  5048. # First set a reasonable default.
  5049. lt_cv_sys_max_cmd_len=16384
  5050. #
  5051. if test -x /sbin/sysconfig; then
  5052. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5053. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5054. esac
  5055. fi
  5056. ;;
  5057. sco3.2v5*)
  5058. lt_cv_sys_max_cmd_len=102400
  5059. ;;
  5060. sysv5* | sco5v6* | sysv4.2uw2*)
  5061. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5062. if test -n "$kargmax"; then
  5063. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5064. else
  5065. lt_cv_sys_max_cmd_len=32768
  5066. fi
  5067. ;;
  5068. *)
  5069. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5070. if test -n "$lt_cv_sys_max_cmd_len"; then
  5071. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5072. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5073. else
  5074. # Make teststring a little bigger before we do anything with it.
  5075. # a 1K string should be a reasonable start.
  5076. for i in 1 2 3 4 5 6 7 8 ; do
  5077. teststring=$teststring$teststring
  5078. done
  5079. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5080. # If test is not a shell built-in, we'll probably end up computing a
  5081. # maximum length that is only half of the actual maximum length, but
  5082. # we can't tell.
  5083. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5084. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5085. test $i != 17 # 1/2 MB should be enough
  5086. do
  5087. i=`expr $i + 1`
  5088. teststring=$teststring$teststring
  5089. done
  5090. # Only check the string length outside the loop.
  5091. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5092. teststring=
  5093. # Add a significant safety factor because C++ compilers can tack on
  5094. # massive amounts of additional arguments before passing them to the
  5095. # linker. It appears as though 1/2 is a usable value.
  5096. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5097. fi
  5098. ;;
  5099. esac
  5100. fi
  5101. if test -n $lt_cv_sys_max_cmd_len ; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5103. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5106. $as_echo "none" >&6; }
  5107. fi
  5108. max_cmd_len=$lt_cv_sys_max_cmd_len
  5109. : ${CP="cp -f"}
  5110. : ${MV="mv -f"}
  5111. : ${RM="rm -f"}
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5113. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5114. # Try some XSI features
  5115. xsi_shell=no
  5116. ( _lt_dummy="a/b/c"
  5117. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5118. = c,a/b,, \
  5119. && eval 'test $(( 1 + 1 )) -eq 2 \
  5120. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5121. && xsi_shell=yes
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5123. $as_echo "$xsi_shell" >&6; }
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5125. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5126. lt_shell_append=no
  5127. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5128. >/dev/null 2>&1 \
  5129. && lt_shell_append=yes
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5131. $as_echo "$lt_shell_append" >&6; }
  5132. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5133. lt_unset=unset
  5134. else
  5135. lt_unset=false
  5136. fi
  5137. # test EBCDIC or ASCII
  5138. case `echo X|tr X '\101'` in
  5139. A) # ASCII based system
  5140. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5141. lt_SP2NL='tr \040 \012'
  5142. lt_NL2SP='tr \015\012 \040\040'
  5143. ;;
  5144. *) # EBCDIC based system
  5145. lt_SP2NL='tr \100 \n'
  5146. lt_NL2SP='tr \r\n \100\100'
  5147. ;;
  5148. esac
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5150. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5151. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. lt_cv_ld_reload_flag='-r'
  5155. fi
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5157. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5158. reload_flag=$lt_cv_ld_reload_flag
  5159. case $reload_flag in
  5160. "" | " "*) ;;
  5161. *) reload_flag=" $reload_flag" ;;
  5162. esac
  5163. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5164. case $host_os in
  5165. darwin*)
  5166. if test "$GCC" = yes; then
  5167. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5168. else
  5169. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5170. fi
  5171. ;;
  5172. esac
  5173. if test -n "$ac_tool_prefix"; then
  5174. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5175. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5177. $as_echo_n "checking for $ac_word... " >&6; }
  5178. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. if test -n "$OBJDUMP"; then
  5182. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5183. else
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5191. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. fi
  5199. fi
  5200. OBJDUMP=$ac_cv_prog_OBJDUMP
  5201. if test -n "$OBJDUMP"; then
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5203. $as_echo "$OBJDUMP" >&6; }
  5204. else
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5206. $as_echo "no" >&6; }
  5207. fi
  5208. fi
  5209. if test -z "$ac_cv_prog_OBJDUMP"; then
  5210. ac_ct_OBJDUMP=$OBJDUMP
  5211. # Extract the first word of "objdump", so it can be a program name with args.
  5212. set dummy objdump; ac_word=$2
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5214. $as_echo_n "checking for $ac_word... " >&6; }
  5215. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. if test -n "$ac_ct_OBJDUMP"; then
  5219. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5220. else
  5221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5222. for as_dir in $PATH
  5223. do
  5224. IFS=$as_save_IFS
  5225. test -z "$as_dir" && as_dir=.
  5226. for ac_exec_ext in '' $ac_executable_extensions; do
  5227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5228. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5230. break 2
  5231. fi
  5232. done
  5233. done
  5234. IFS=$as_save_IFS
  5235. fi
  5236. fi
  5237. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5238. if test -n "$ac_ct_OBJDUMP"; then
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5240. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5241. else
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5243. $as_echo "no" >&6; }
  5244. fi
  5245. if test "x$ac_ct_OBJDUMP" = x; then
  5246. OBJDUMP="false"
  5247. else
  5248. case $cross_compiling:$ac_tool_warned in
  5249. yes:)
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5252. ac_tool_warned=yes ;;
  5253. esac
  5254. OBJDUMP=$ac_ct_OBJDUMP
  5255. fi
  5256. else
  5257. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5258. fi
  5259. test -z "$OBJDUMP" && OBJDUMP=objdump
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5261. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5262. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5266. lt_cv_file_magic_test_file=
  5267. lt_cv_deplibs_check_method='unknown'
  5268. # Need to set the preceding variable on all platforms that support
  5269. # interlibrary dependencies.
  5270. # 'none' -- dependencies not supported.
  5271. # `unknown' -- same as none, but documents that we really don't know.
  5272. # 'pass_all' -- all dependencies passed with no checks.
  5273. # 'test_compile' -- check by making test program.
  5274. # 'file_magic [[regex]]' -- check by looking for files in library path
  5275. # which responds to the $file_magic_cmd with a given extended regex.
  5276. # If you have `file' or equivalent on your system and you're not sure
  5277. # whether `pass_all' will *always* work, you probably want this one.
  5278. case $host_os in
  5279. aix[4-9]*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. beos*)
  5283. lt_cv_deplibs_check_method=pass_all
  5284. ;;
  5285. bsdi[45]*)
  5286. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5287. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5288. lt_cv_file_magic_test_file=/shlib/libc.so
  5289. ;;
  5290. cygwin*)
  5291. # func_win32_libid is a shell function defined in ltmain.sh
  5292. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5293. lt_cv_file_magic_cmd='func_win32_libid'
  5294. ;;
  5295. mingw* | pw32*)
  5296. # Base MSYS/MinGW do not provide the 'file' command needed by
  5297. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5298. # unless we find 'file', for example because we are cross-compiling.
  5299. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5300. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5301. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5302. lt_cv_file_magic_cmd='func_win32_libid'
  5303. else
  5304. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5305. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5306. fi
  5307. ;;
  5308. cegcc*)
  5309. # use the weaker test based on 'objdump'. See mingw*.
  5310. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5311. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5312. ;;
  5313. darwin* | rhapsody*)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. freebsd* | dragonfly*)
  5317. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5318. case $host_cpu in
  5319. i*86 )
  5320. # Not sure whether the presence of OpenBSD here was a mistake.
  5321. # Let's accept both of them until this is cleared up.
  5322. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5323. lt_cv_file_magic_cmd=/usr/bin/file
  5324. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5325. ;;
  5326. esac
  5327. else
  5328. lt_cv_deplibs_check_method=pass_all
  5329. fi
  5330. ;;
  5331. gnu*)
  5332. lt_cv_deplibs_check_method=pass_all
  5333. ;;
  5334. haiku*)
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. hpux10.20* | hpux11*)
  5338. lt_cv_file_magic_cmd=/usr/bin/file
  5339. case $host_cpu in
  5340. ia64*)
  5341. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5342. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5343. ;;
  5344. hppa*64*)
  5345. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5346. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5347. ;;
  5348. *)
  5349. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5350. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5351. ;;
  5352. esac
  5353. ;;
  5354. interix[3-9]*)
  5355. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5356. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5357. ;;
  5358. irix5* | irix6* | nonstopux*)
  5359. case $LD in
  5360. *-32|*"-32 ") libmagic=32-bit;;
  5361. *-n32|*"-n32 ") libmagic=N32;;
  5362. *-64|*"-64 ") libmagic=64-bit;;
  5363. *) libmagic=never-match;;
  5364. esac
  5365. lt_cv_deplibs_check_method=pass_all
  5366. ;;
  5367. # This must be Linux ELF.
  5368. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5369. lt_cv_deplibs_check_method=pass_all
  5370. ;;
  5371. netbsd*)
  5372. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5373. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5374. else
  5375. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5376. fi
  5377. ;;
  5378. newos6*)
  5379. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5380. lt_cv_file_magic_cmd=/usr/bin/file
  5381. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5382. ;;
  5383. *nto* | *qnx*)
  5384. lt_cv_deplibs_check_method=pass_all
  5385. ;;
  5386. openbsd*)
  5387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5388. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5389. else
  5390. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5391. fi
  5392. ;;
  5393. osf3* | osf4* | osf5*)
  5394. lt_cv_deplibs_check_method=pass_all
  5395. ;;
  5396. rdos*)
  5397. lt_cv_deplibs_check_method=pass_all
  5398. ;;
  5399. solaris*)
  5400. lt_cv_deplibs_check_method=pass_all
  5401. ;;
  5402. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5403. lt_cv_deplibs_check_method=pass_all
  5404. ;;
  5405. sysv4 | sysv4.3*)
  5406. case $host_vendor in
  5407. motorola)
  5408. 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]'
  5409. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5410. ;;
  5411. ncr)
  5412. lt_cv_deplibs_check_method=pass_all
  5413. ;;
  5414. sequent)
  5415. lt_cv_file_magic_cmd='/bin/file'
  5416. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5417. ;;
  5418. sni)
  5419. lt_cv_file_magic_cmd='/bin/file'
  5420. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5421. lt_cv_file_magic_test_file=/lib/libc.so
  5422. ;;
  5423. siemens)
  5424. lt_cv_deplibs_check_method=pass_all
  5425. ;;
  5426. pc)
  5427. lt_cv_deplibs_check_method=pass_all
  5428. ;;
  5429. esac
  5430. ;;
  5431. tpf*)
  5432. lt_cv_deplibs_check_method=pass_all
  5433. ;;
  5434. esac
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5437. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5438. file_magic_cmd=$lt_cv_file_magic_cmd
  5439. deplibs_check_method=$lt_cv_deplibs_check_method
  5440. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5441. if test -n "$ac_tool_prefix"; then
  5442. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5443. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if test "${ac_cv_prog_AR+set}" = set; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$AR"; then
  5450. ac_cv_prog_AR="$AR" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. AR=$ac_cv_prog_AR
  5469. if test -n "$AR"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5471. $as_echo "$AR" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. fi
  5477. if test -z "$ac_cv_prog_AR"; then
  5478. ac_ct_AR=$AR
  5479. # Extract the first word of "ar", so it can be a program name with args.
  5480. set dummy ar; ac_word=$2
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5482. $as_echo_n "checking for $ac_word... " >&6; }
  5483. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -n "$ac_ct_AR"; then
  5487. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5488. else
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5496. ac_cv_prog_ac_ct_AR="ar"
  5497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. fi
  5504. fi
  5505. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5506. if test -n "$ac_ct_AR"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5508. $as_echo "$ac_ct_AR" >&6; }
  5509. else
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. $as_echo "no" >&6; }
  5512. fi
  5513. if test "x$ac_ct_AR" = x; then
  5514. AR="false"
  5515. else
  5516. case $cross_compiling:$ac_tool_warned in
  5517. yes:)
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5520. ac_tool_warned=yes ;;
  5521. esac
  5522. AR=$ac_ct_AR
  5523. fi
  5524. else
  5525. AR="$ac_cv_prog_AR"
  5526. fi
  5527. test -z "$AR" && AR=ar
  5528. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5529. if test -n "$ac_tool_prefix"; then
  5530. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5531. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5533. $as_echo_n "checking for $ac_word... " >&6; }
  5534. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. if test -n "$STRIP"; then
  5538. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5539. else
  5540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5541. for as_dir in $PATH
  5542. do
  5543. IFS=$as_save_IFS
  5544. test -z "$as_dir" && as_dir=.
  5545. for ac_exec_ext in '' $ac_executable_extensions; do
  5546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5547. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5549. break 2
  5550. fi
  5551. done
  5552. done
  5553. IFS=$as_save_IFS
  5554. fi
  5555. fi
  5556. STRIP=$ac_cv_prog_STRIP
  5557. if test -n "$STRIP"; then
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5559. $as_echo "$STRIP" >&6; }
  5560. else
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5562. $as_echo "no" >&6; }
  5563. fi
  5564. fi
  5565. if test -z "$ac_cv_prog_STRIP"; then
  5566. ac_ct_STRIP=$STRIP
  5567. # Extract the first word of "strip", so it can be a program name with args.
  5568. set dummy strip; ac_word=$2
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5570. $as_echo_n "checking for $ac_word... " >&6; }
  5571. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. if test -n "$ac_ct_STRIP"; then
  5575. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5576. else
  5577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5578. for as_dir in $PATH
  5579. do
  5580. IFS=$as_save_IFS
  5581. test -z "$as_dir" && as_dir=.
  5582. for ac_exec_ext in '' $ac_executable_extensions; do
  5583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5584. ac_cv_prog_ac_ct_STRIP="strip"
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5586. break 2
  5587. fi
  5588. done
  5589. done
  5590. IFS=$as_save_IFS
  5591. fi
  5592. fi
  5593. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5594. if test -n "$ac_ct_STRIP"; then
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5596. $as_echo "$ac_ct_STRIP" >&6; }
  5597. else
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5599. $as_echo "no" >&6; }
  5600. fi
  5601. if test "x$ac_ct_STRIP" = x; then
  5602. STRIP=":"
  5603. else
  5604. case $cross_compiling:$ac_tool_warned in
  5605. yes:)
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5608. ac_tool_warned=yes ;;
  5609. esac
  5610. STRIP=$ac_ct_STRIP
  5611. fi
  5612. else
  5613. STRIP="$ac_cv_prog_STRIP"
  5614. fi
  5615. test -z "$STRIP" && STRIP=:
  5616. if test -n "$ac_tool_prefix"; then
  5617. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5618. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$RANLIB"; then
  5625. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5634. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. RANLIB=$ac_cv_prog_RANLIB
  5644. if test -n "$RANLIB"; then
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5646. $as_echo "$RANLIB" >&6; }
  5647. else
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. fi
  5652. if test -z "$ac_cv_prog_RANLIB"; then
  5653. ac_ct_RANLIB=$RANLIB
  5654. # Extract the first word of "ranlib", so it can be a program name with args.
  5655. set dummy ranlib; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$ac_ct_RANLIB"; then
  5662. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5671. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5681. if test -n "$ac_ct_RANLIB"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5683. $as_echo "$ac_ct_RANLIB" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. if test "x$ac_ct_RANLIB" = x; then
  5689. RANLIB=":"
  5690. else
  5691. case $cross_compiling:$ac_tool_warned in
  5692. yes:)
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5695. ac_tool_warned=yes ;;
  5696. esac
  5697. RANLIB=$ac_ct_RANLIB
  5698. fi
  5699. else
  5700. RANLIB="$ac_cv_prog_RANLIB"
  5701. fi
  5702. test -z "$RANLIB" && RANLIB=:
  5703. # Determine commands to create old-style static archives.
  5704. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5705. old_postinstall_cmds='chmod 644 $oldlib'
  5706. old_postuninstall_cmds=
  5707. if test -n "$RANLIB"; then
  5708. case $host_os in
  5709. openbsd*)
  5710. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5711. ;;
  5712. *)
  5713. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5714. ;;
  5715. esac
  5716. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5717. fi
  5718. case $host_os in
  5719. darwin*)
  5720. lock_old_archive_extraction=yes ;;
  5721. *)
  5722. lock_old_archive_extraction=no ;;
  5723. esac
  5724. # If no C compiler was specified, use CC.
  5725. LTCC=${LTCC-"$CC"}
  5726. # If no C compiler flags were specified, use CFLAGS.
  5727. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5728. # Allow CC to be a program name with arguments.
  5729. compiler=$CC
  5730. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5732. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5733. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5734. $as_echo_n "(cached) " >&6
  5735. else
  5736. # These are sane defaults that work on at least a few old systems.
  5737. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5738. # Character class describing NM global symbol codes.
  5739. symcode='[BCDEGRST]'
  5740. # Regexp to match symbols that can be accessed directly from C.
  5741. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5742. # Define system-specific variables.
  5743. case $host_os in
  5744. aix*)
  5745. symcode='[BCDT]'
  5746. ;;
  5747. cygwin* | mingw* | pw32* | cegcc*)
  5748. symcode='[ABCDGISTW]'
  5749. ;;
  5750. hpux*)
  5751. if test "$host_cpu" = ia64; then
  5752. symcode='[ABCDEGRST]'
  5753. fi
  5754. ;;
  5755. irix* | nonstopux*)
  5756. symcode='[BCDEGRST]'
  5757. ;;
  5758. osf*)
  5759. symcode='[BCDEGQRST]'
  5760. ;;
  5761. solaris*)
  5762. symcode='[BDRT]'
  5763. ;;
  5764. sco3.2v5*)
  5765. symcode='[DT]'
  5766. ;;
  5767. sysv4.2uw2*)
  5768. symcode='[DT]'
  5769. ;;
  5770. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5771. symcode='[ABDT]'
  5772. ;;
  5773. sysv4)
  5774. symcode='[DFNSTU]'
  5775. ;;
  5776. esac
  5777. # If we're using GNU nm, then use its standard symbol codes.
  5778. case `$NM -V 2>&1` in
  5779. *GNU* | *'with BFD'*)
  5780. symcode='[ABCDGIRSTW]' ;;
  5781. esac
  5782. # Transform an extracted symbol line into a proper C declaration.
  5783. # Some systems (esp. on ia64) link data and code symbols differently,
  5784. # so use this general approach.
  5785. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5786. # Transform an extracted symbol line into symbol name and symbol address
  5787. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5788. 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'"
  5789. # Handle CRLF in mingw tool chain
  5790. opt_cr=
  5791. case $build_os in
  5792. mingw*)
  5793. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5794. ;;
  5795. esac
  5796. # Try without a prefix underscore, then with it.
  5797. for ac_symprfx in "" "_"; do
  5798. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5799. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5800. # Write the raw and C identifiers.
  5801. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5802. # Fake it for dumpbin and say T for any non-static function
  5803. # and D for any global variable.
  5804. # Also find C++ and __fastcall symbols from MSVC++,
  5805. # which start with @ or ?.
  5806. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5807. " {last_section=section; section=\$ 3};"\
  5808. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5809. " \$ 0!~/External *\|/{next};"\
  5810. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5811. " {if(hide[section]) next};"\
  5812. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5813. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5814. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5815. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5816. " ' prfx=^$ac_symprfx"
  5817. else
  5818. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5819. fi
  5820. # Check to see that the pipe works correctly.
  5821. pipe_works=no
  5822. rm -f conftest*
  5823. cat > conftest.$ac_ext <<_LT_EOF
  5824. #ifdef __cplusplus
  5825. extern "C" {
  5826. #endif
  5827. char nm_test_var;
  5828. void nm_test_func(void);
  5829. void nm_test_func(void){}
  5830. #ifdef __cplusplus
  5831. }
  5832. #endif
  5833. int main(){nm_test_var='a';nm_test_func();return(0);}
  5834. _LT_EOF
  5835. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5836. (eval $ac_compile) 2>&5
  5837. ac_status=$?
  5838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5839. test $ac_status = 0; }; then
  5840. # Now try to grab the symbols.
  5841. nlist=conftest.nm
  5842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5843. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5844. ac_status=$?
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5846. test $ac_status = 0; } && test -s "$nlist"; then
  5847. # Try sorting and uniquifying the output.
  5848. if sort "$nlist" | uniq > "$nlist"T; then
  5849. mv -f "$nlist"T "$nlist"
  5850. else
  5851. rm -f "$nlist"T
  5852. fi
  5853. # Make sure that we snagged all the symbols we need.
  5854. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5855. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5856. cat <<_LT_EOF > conftest.$ac_ext
  5857. #ifdef __cplusplus
  5858. extern "C" {
  5859. #endif
  5860. _LT_EOF
  5861. # Now generate the symbol file.
  5862. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5863. cat <<_LT_EOF >> conftest.$ac_ext
  5864. /* The mapping between symbol names and symbols. */
  5865. const struct {
  5866. const char *name;
  5867. void *address;
  5868. }
  5869. lt__PROGRAM__LTX_preloaded_symbols[] =
  5870. {
  5871. { "@PROGRAM@", (void *) 0 },
  5872. _LT_EOF
  5873. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5874. cat <<\_LT_EOF >> conftest.$ac_ext
  5875. {0, (void *) 0}
  5876. };
  5877. /* This works around a problem in FreeBSD linker */
  5878. #ifdef FREEBSD_WORKAROUND
  5879. static const void *lt_preloaded_setup() {
  5880. return lt__PROGRAM__LTX_preloaded_symbols;
  5881. }
  5882. #endif
  5883. #ifdef __cplusplus
  5884. }
  5885. #endif
  5886. _LT_EOF
  5887. # Now try linking the two files.
  5888. mv conftest.$ac_objext conftstm.$ac_objext
  5889. lt_save_LIBS="$LIBS"
  5890. lt_save_CFLAGS="$CFLAGS"
  5891. LIBS="conftstm.$ac_objext"
  5892. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5893. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5894. (eval $ac_link) 2>&5
  5895. ac_status=$?
  5896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5897. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5898. pipe_works=yes
  5899. fi
  5900. LIBS="$lt_save_LIBS"
  5901. CFLAGS="$lt_save_CFLAGS"
  5902. else
  5903. echo "cannot find nm_test_func in $nlist" >&5
  5904. fi
  5905. else
  5906. echo "cannot find nm_test_var in $nlist" >&5
  5907. fi
  5908. else
  5909. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5910. fi
  5911. else
  5912. echo "$progname: failed program was:" >&5
  5913. cat conftest.$ac_ext >&5
  5914. fi
  5915. rm -rf conftest* conftst*
  5916. # Do not use the global_symbol_pipe unless it works.
  5917. if test "$pipe_works" = yes; then
  5918. break
  5919. else
  5920. lt_cv_sys_global_symbol_pipe=
  5921. fi
  5922. done
  5923. fi
  5924. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5925. lt_cv_sys_global_symbol_to_cdecl=
  5926. fi
  5927. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5929. $as_echo "failed" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5932. $as_echo "ok" >&6; }
  5933. fi
  5934. # Check whether --enable-libtool-lock was given.
  5935. if test "${enable_libtool_lock+set}" = set; then :
  5936. enableval=$enable_libtool_lock;
  5937. fi
  5938. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5939. # Some flags need to be propagated to the compiler or linker for good
  5940. # libtool support.
  5941. case $host in
  5942. ia64-*-hpux*)
  5943. # Find out which ABI we are using.
  5944. echo 'int i;' > conftest.$ac_ext
  5945. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5946. (eval $ac_compile) 2>&5
  5947. ac_status=$?
  5948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5949. test $ac_status = 0; }; then
  5950. case `/usr/bin/file conftest.$ac_objext` in
  5951. *ELF-32*)
  5952. HPUX_IA64_MODE="32"
  5953. ;;
  5954. *ELF-64*)
  5955. HPUX_IA64_MODE="64"
  5956. ;;
  5957. esac
  5958. fi
  5959. rm -rf conftest*
  5960. ;;
  5961. *-*-irix6*)
  5962. # Find out which ABI we are using.
  5963. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5968. test $ac_status = 0; }; then
  5969. if test "$lt_cv_prog_gnu_ld" = yes; then
  5970. case `/usr/bin/file conftest.$ac_objext` in
  5971. *32-bit*)
  5972. LD="${LD-ld} -melf32bsmip"
  5973. ;;
  5974. *N32*)
  5975. LD="${LD-ld} -melf32bmipn32"
  5976. ;;
  5977. *64-bit*)
  5978. LD="${LD-ld} -melf64bmip"
  5979. ;;
  5980. esac
  5981. else
  5982. case `/usr/bin/file conftest.$ac_objext` in
  5983. *32-bit*)
  5984. LD="${LD-ld} -32"
  5985. ;;
  5986. *N32*)
  5987. LD="${LD-ld} -n32"
  5988. ;;
  5989. *64-bit*)
  5990. LD="${LD-ld} -64"
  5991. ;;
  5992. esac
  5993. fi
  5994. fi
  5995. rm -rf conftest*
  5996. ;;
  5997. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5998. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5999. # Find out which ABI we are using.
  6000. echo 'int i;' > conftest.$ac_ext
  6001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6002. (eval $ac_compile) 2>&5
  6003. ac_status=$?
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6005. test $ac_status = 0; }; then
  6006. case `/usr/bin/file conftest.o` in
  6007. *32-bit*)
  6008. case $host in
  6009. x86_64-*kfreebsd*-gnu)
  6010. LD="${LD-ld} -m elf_i386_fbsd"
  6011. ;;
  6012. x86_64-*linux*)
  6013. LD="${LD-ld} -m elf_i386"
  6014. ;;
  6015. ppc64-*linux*|powerpc64-*linux*)
  6016. LD="${LD-ld} -m elf32ppclinux"
  6017. ;;
  6018. s390x-*linux*)
  6019. LD="${LD-ld} -m elf_s390"
  6020. ;;
  6021. sparc64-*linux*)
  6022. LD="${LD-ld} -m elf32_sparc"
  6023. ;;
  6024. esac
  6025. ;;
  6026. *64-bit*)
  6027. case $host in
  6028. x86_64-*kfreebsd*-gnu)
  6029. LD="${LD-ld} -m elf_x86_64_fbsd"
  6030. ;;
  6031. x86_64-*linux*)
  6032. LD="${LD-ld} -m elf_x86_64"
  6033. ;;
  6034. ppc*-*linux*|powerpc*-*linux*)
  6035. LD="${LD-ld} -m elf64ppc"
  6036. ;;
  6037. s390*-*linux*|s390*-*tpf*)
  6038. LD="${LD-ld} -m elf64_s390"
  6039. ;;
  6040. sparc*-*linux*)
  6041. LD="${LD-ld} -m elf64_sparc"
  6042. ;;
  6043. esac
  6044. ;;
  6045. esac
  6046. fi
  6047. rm -rf conftest*
  6048. ;;
  6049. *-*-sco3.2v5*)
  6050. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6051. SAVE_CFLAGS="$CFLAGS"
  6052. CFLAGS="$CFLAGS -belf"
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6054. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6055. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. ac_ext=c
  6059. ac_cpp='$CPP $CPPFLAGS'
  6060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6063. if test x$gcc_no_link = xyes; then
  6064. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6065. fi
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. lt_cv_cc_needs_belf=yes
  6077. else
  6078. lt_cv_cc_needs_belf=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. ac_ext=c
  6083. ac_cpp='$CPP $CPPFLAGS'
  6084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6089. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6090. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6091. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6092. CFLAGS="$SAVE_CFLAGS"
  6093. fi
  6094. ;;
  6095. sparc*-*solaris*)
  6096. # Find out which ABI we are using.
  6097. echo 'int i;' > conftest.$ac_ext
  6098. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6099. (eval $ac_compile) 2>&5
  6100. ac_status=$?
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6102. test $ac_status = 0; }; then
  6103. case `/usr/bin/file conftest.o` in
  6104. *64-bit*)
  6105. case $lt_cv_prog_gnu_ld in
  6106. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6107. *)
  6108. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6109. LD="${LD-ld} -64"
  6110. fi
  6111. ;;
  6112. esac
  6113. ;;
  6114. esac
  6115. fi
  6116. rm -rf conftest*
  6117. ;;
  6118. esac
  6119. need_locks="$enable_libtool_lock"
  6120. case $host_os in
  6121. rhapsody* | darwin*)
  6122. if test -n "$ac_tool_prefix"; then
  6123. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6124. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6126. $as_echo_n "checking for $ac_word... " >&6; }
  6127. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. if test -n "$DSYMUTIL"; then
  6131. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6132. else
  6133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6134. for as_dir in $PATH
  6135. do
  6136. IFS=$as_save_IFS
  6137. test -z "$as_dir" && as_dir=.
  6138. for ac_exec_ext in '' $ac_executable_extensions; do
  6139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6140. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6142. break 2
  6143. fi
  6144. done
  6145. done
  6146. IFS=$as_save_IFS
  6147. fi
  6148. fi
  6149. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6150. if test -n "$DSYMUTIL"; then
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6152. $as_echo "$DSYMUTIL" >&6; }
  6153. else
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6155. $as_echo "no" >&6; }
  6156. fi
  6157. fi
  6158. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6159. ac_ct_DSYMUTIL=$DSYMUTIL
  6160. # Extract the first word of "dsymutil", so it can be a program name with args.
  6161. set dummy dsymutil; ac_word=$2
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6163. $as_echo_n "checking for $ac_word... " >&6; }
  6164. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. if test -n "$ac_ct_DSYMUTIL"; then
  6168. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6169. else
  6170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6171. for as_dir in $PATH
  6172. do
  6173. IFS=$as_save_IFS
  6174. test -z "$as_dir" && as_dir=.
  6175. for ac_exec_ext in '' $ac_executable_extensions; do
  6176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6177. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6179. break 2
  6180. fi
  6181. done
  6182. done
  6183. IFS=$as_save_IFS
  6184. fi
  6185. fi
  6186. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6187. if test -n "$ac_ct_DSYMUTIL"; then
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6189. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6190. else
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6192. $as_echo "no" >&6; }
  6193. fi
  6194. if test "x$ac_ct_DSYMUTIL" = x; then
  6195. DSYMUTIL=":"
  6196. else
  6197. case $cross_compiling:$ac_tool_warned in
  6198. yes:)
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6201. ac_tool_warned=yes ;;
  6202. esac
  6203. DSYMUTIL=$ac_ct_DSYMUTIL
  6204. fi
  6205. else
  6206. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$NMEDIT"; then
  6217. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6226. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. NMEDIT=$ac_cv_prog_NMEDIT
  6236. if test -n "$NMEDIT"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6238. $as_echo "$NMEDIT" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_NMEDIT"; then
  6245. ac_ct_NMEDIT=$NMEDIT
  6246. # Extract the first word of "nmedit", so it can be a program name with args.
  6247. set dummy nmedit; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_NMEDIT"; then
  6254. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6273. if test -n "$ac_ct_NMEDIT"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6275. $as_echo "$ac_ct_NMEDIT" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_NMEDIT" = x; then
  6281. NMEDIT=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. NMEDIT=$ac_ct_NMEDIT
  6290. fi
  6291. else
  6292. NMEDIT="$ac_cv_prog_NMEDIT"
  6293. fi
  6294. if test -n "$ac_tool_prefix"; then
  6295. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6296. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$LIPO"; then
  6303. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6312. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. LIPO=$ac_cv_prog_LIPO
  6322. if test -n "$LIPO"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6324. $as_echo "$LIPO" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. fi
  6330. if test -z "$ac_cv_prog_LIPO"; then
  6331. ac_ct_LIPO=$LIPO
  6332. # Extract the first word of "lipo", so it can be a program name with args.
  6333. set dummy lipo; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. if test -n "$ac_ct_LIPO"; then
  6340. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6341. else
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_exec_ext in '' $ac_executable_extensions; do
  6348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6349. ac_cv_prog_ac_ct_LIPO="lipo"
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6351. break 2
  6352. fi
  6353. done
  6354. done
  6355. IFS=$as_save_IFS
  6356. fi
  6357. fi
  6358. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6359. if test -n "$ac_ct_LIPO"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6361. $as_echo "$ac_ct_LIPO" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. if test "x$ac_ct_LIPO" = x; then
  6367. LIPO=":"
  6368. else
  6369. case $cross_compiling:$ac_tool_warned in
  6370. yes:)
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6373. ac_tool_warned=yes ;;
  6374. esac
  6375. LIPO=$ac_ct_LIPO
  6376. fi
  6377. else
  6378. LIPO="$ac_cv_prog_LIPO"
  6379. fi
  6380. if test -n "$ac_tool_prefix"; then
  6381. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6382. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$OTOOL"; then
  6389. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6398. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. OTOOL=$ac_cv_prog_OTOOL
  6408. if test -n "$OTOOL"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6410. $as_echo "$OTOOL" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. fi
  6416. if test -z "$ac_cv_prog_OTOOL"; then
  6417. ac_ct_OTOOL=$OTOOL
  6418. # Extract the first word of "otool", so it can be a program name with args.
  6419. set dummy otool; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$ac_ct_OTOOL"; then
  6426. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6435. ac_cv_prog_ac_ct_OTOOL="otool"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6445. if test -n "$ac_ct_OTOOL"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6447. $as_echo "$ac_ct_OTOOL" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. if test "x$ac_ct_OTOOL" = x; then
  6453. OTOOL=":"
  6454. else
  6455. case $cross_compiling:$ac_tool_warned in
  6456. yes:)
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6459. ac_tool_warned=yes ;;
  6460. esac
  6461. OTOOL=$ac_ct_OTOOL
  6462. fi
  6463. else
  6464. OTOOL="$ac_cv_prog_OTOOL"
  6465. fi
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$OTOOL64"; then
  6475. ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
  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. OTOOL64=$ac_cv_prog_OTOOL64
  6494. if test -n "$OTOOL64"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6496. $as_echo "$OTOOL64" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_OTOOL64"; then
  6503. ac_ct_OTOOL64=$OTOOL64
  6504. # Extract the first word of "otool64", so it can be a program name with args.
  6505. set dummy otool64; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_OTOOL64"; then
  6512. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6521. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6531. if test -n "$ac_ct_OTOOL64"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6533. $as_echo "$ac_ct_OTOOL64" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_OTOOL64" = x; then
  6539. OTOOL64=":"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. OTOOL64=$ac_ct_OTOOL64
  6548. fi
  6549. else
  6550. OTOOL64="$ac_cv_prog_OTOOL64"
  6551. fi
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6553. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6554. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6555. $as_echo_n "(cached) " >&6
  6556. else
  6557. lt_cv_apple_cc_single_mod=no
  6558. if test -z "${LT_MULTI_MODULE}"; then
  6559. # By default we will add the -single_module flag. You can override
  6560. # by either setting the environment variable LT_MULTI_MODULE
  6561. # non-empty at configure time, or by adding -multi_module to the
  6562. # link flags.
  6563. rm -rf libconftest.dylib*
  6564. echo "int foo(void){return 1;}" > conftest.c
  6565. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6566. -dynamiclib -Wl,-single_module conftest.c" >&5
  6567. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6568. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6569. _lt_result=$?
  6570. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6571. lt_cv_apple_cc_single_mod=yes
  6572. else
  6573. cat conftest.err >&5
  6574. fi
  6575. rm -rf libconftest.dylib*
  6576. rm -f conftest.*
  6577. fi
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6580. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6582. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6583. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. lt_cv_ld_exported_symbols_list=no
  6587. save_LDFLAGS=$LDFLAGS
  6588. echo "_main" > conftest.sym
  6589. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6590. if test x$gcc_no_link = xyes; then
  6591. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6592. fi
  6593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6594. /* end confdefs.h. */
  6595. int
  6596. main ()
  6597. {
  6598. ;
  6599. return 0;
  6600. }
  6601. _ACEOF
  6602. if ac_fn_c_try_link "$LINENO"; then :
  6603. lt_cv_ld_exported_symbols_list=yes
  6604. else
  6605. lt_cv_ld_exported_symbols_list=no
  6606. fi
  6607. rm -f core conftest.err conftest.$ac_objext \
  6608. conftest$ac_exeext conftest.$ac_ext
  6609. LDFLAGS="$save_LDFLAGS"
  6610. fi
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6612. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6614. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6615. if test "${lt_cv_ld_force_load+set}" = set; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. lt_cv_ld_force_load=no
  6619. cat > conftest.c << _LT_EOF
  6620. int forced_loaded() { return 2;}
  6621. _LT_EOF
  6622. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6623. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6624. echo "$AR cru libconftest.a conftest.o" >&5
  6625. $AR cru libconftest.a conftest.o 2>&5
  6626. cat > conftest.c << _LT_EOF
  6627. int main() { return 0;}
  6628. _LT_EOF
  6629. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6630. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6631. _lt_result=$?
  6632. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6633. lt_cv_ld_force_load=yes
  6634. else
  6635. cat conftest.err >&5
  6636. fi
  6637. rm -f conftest.err libconftest.a conftest conftest.c
  6638. rm -rf conftest.dSYM
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6641. $as_echo "$lt_cv_ld_force_load" >&6; }
  6642. case $host_os in
  6643. rhapsody* | darwin1.[012])
  6644. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6645. darwin1.*)
  6646. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6647. darwin*) # darwin 5.x on
  6648. # if running on 10.5 or later, the deployment target defaults
  6649. # to the OS version, if on x86, and 10.4, the deployment
  6650. # target defaults to 10.4. Don't you love it?
  6651. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6652. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6653. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6654. 10.[012]*)
  6655. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6656. 10.*)
  6657. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6658. esac
  6659. ;;
  6660. esac
  6661. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6662. _lt_dar_single_mod='$single_module'
  6663. fi
  6664. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6665. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6666. else
  6667. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6668. fi
  6669. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6670. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6671. else
  6672. _lt_dsymutil=
  6673. fi
  6674. ;;
  6675. esac
  6676. ac_ext=c
  6677. ac_cpp='$CPP $CPPFLAGS'
  6678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6682. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6683. # On Suns, sometimes $CPP names a directory.
  6684. if test -n "$CPP" && test -d "$CPP"; then
  6685. CPP=
  6686. fi
  6687. if test -z "$CPP"; then
  6688. if test "${ac_cv_prog_CPP+set}" = set; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. # Double quotes because CPP needs to be expanded
  6692. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6693. do
  6694. ac_preproc_ok=false
  6695. for ac_c_preproc_warn_flag in '' yes
  6696. do
  6697. # Use a header file that comes with gcc, so configuring glibc
  6698. # with a fresh cross-compiler works.
  6699. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6700. # <limits.h> exists even on freestanding compilers.
  6701. # On the NeXT, cc -E runs the code through the compiler's parser,
  6702. # not just through cpp. "Syntax error" is here to catch this case.
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. #ifdef __STDC__
  6706. # include <limits.h>
  6707. #else
  6708. # include <assert.h>
  6709. #endif
  6710. Syntax error
  6711. _ACEOF
  6712. if ac_fn_c_try_cpp "$LINENO"; then :
  6713. else
  6714. # Broken: fails on valid input.
  6715. continue
  6716. fi
  6717. rm -f conftest.err conftest.$ac_ext
  6718. # OK, works on sane cases. Now check whether nonexistent headers
  6719. # can be detected and how.
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. #include <ac_nonexistent.h>
  6723. _ACEOF
  6724. if ac_fn_c_try_cpp "$LINENO"; then :
  6725. # Broken: success on invalid input.
  6726. continue
  6727. else
  6728. # Passes both tests.
  6729. ac_preproc_ok=:
  6730. break
  6731. fi
  6732. rm -f conftest.err conftest.$ac_ext
  6733. done
  6734. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6735. rm -f conftest.err conftest.$ac_ext
  6736. if $ac_preproc_ok; then :
  6737. break
  6738. fi
  6739. done
  6740. ac_cv_prog_CPP=$CPP
  6741. fi
  6742. CPP=$ac_cv_prog_CPP
  6743. else
  6744. ac_cv_prog_CPP=$CPP
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6747. $as_echo "$CPP" >&6; }
  6748. ac_preproc_ok=false
  6749. for ac_c_preproc_warn_flag in '' yes
  6750. do
  6751. # Use a header file that comes with gcc, so configuring glibc
  6752. # with a fresh cross-compiler works.
  6753. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6754. # <limits.h> exists even on freestanding compilers.
  6755. # On the NeXT, cc -E runs the code through the compiler's parser,
  6756. # not just through cpp. "Syntax error" is here to catch this case.
  6757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6758. /* end confdefs.h. */
  6759. #ifdef __STDC__
  6760. # include <limits.h>
  6761. #else
  6762. # include <assert.h>
  6763. #endif
  6764. Syntax error
  6765. _ACEOF
  6766. if ac_fn_c_try_cpp "$LINENO"; then :
  6767. else
  6768. # Broken: fails on valid input.
  6769. continue
  6770. fi
  6771. rm -f conftest.err conftest.$ac_ext
  6772. # OK, works on sane cases. Now check whether nonexistent headers
  6773. # can be detected and how.
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. #include <ac_nonexistent.h>
  6777. _ACEOF
  6778. if ac_fn_c_try_cpp "$LINENO"; then :
  6779. # Broken: success on invalid input.
  6780. continue
  6781. else
  6782. # Passes both tests.
  6783. ac_preproc_ok=:
  6784. break
  6785. fi
  6786. rm -f conftest.err conftest.$ac_ext
  6787. done
  6788. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6789. rm -f conftest.err conftest.$ac_ext
  6790. if $ac_preproc_ok; then :
  6791. else
  6792. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6794. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6795. See \`config.log' for more details." "$LINENO" 5; }
  6796. fi
  6797. ac_ext=c
  6798. ac_cpp='$CPP $CPPFLAGS'
  6799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6803. $as_echo_n "checking for ANSI C header files... " >&6; }
  6804. if test "${ac_cv_header_stdc+set}" = set; then :
  6805. $as_echo_n "(cached) " >&6
  6806. else
  6807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h. */
  6809. #include <stdlib.h>
  6810. #include <stdarg.h>
  6811. #include <string.h>
  6812. #include <float.h>
  6813. int
  6814. main ()
  6815. {
  6816. ;
  6817. return 0;
  6818. }
  6819. _ACEOF
  6820. if ac_fn_c_try_compile "$LINENO"; then :
  6821. ac_cv_header_stdc=yes
  6822. else
  6823. ac_cv_header_stdc=no
  6824. fi
  6825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6826. if test $ac_cv_header_stdc = yes; then
  6827. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. #include <string.h>
  6831. _ACEOF
  6832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6833. $EGREP "memchr" >/dev/null 2>&1; then :
  6834. else
  6835. ac_cv_header_stdc=no
  6836. fi
  6837. rm -f conftest*
  6838. fi
  6839. if test $ac_cv_header_stdc = yes; then
  6840. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. #include <stdlib.h>
  6844. _ACEOF
  6845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6846. $EGREP "free" >/dev/null 2>&1; then :
  6847. else
  6848. ac_cv_header_stdc=no
  6849. fi
  6850. rm -f conftest*
  6851. fi
  6852. if test $ac_cv_header_stdc = yes; then
  6853. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6854. if test "$cross_compiling" = yes; then :
  6855. :
  6856. else
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. #include <ctype.h>
  6860. #include <stdlib.h>
  6861. #if ((' ' & 0x0FF) == 0x020)
  6862. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6863. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6864. #else
  6865. # define ISLOWER(c) \
  6866. (('a' <= (c) && (c) <= 'i') \
  6867. || ('j' <= (c) && (c) <= 'r') \
  6868. || ('s' <= (c) && (c) <= 'z'))
  6869. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6870. #endif
  6871. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6872. int
  6873. main ()
  6874. {
  6875. int i;
  6876. for (i = 0; i < 256; i++)
  6877. if (XOR (islower (i), ISLOWER (i))
  6878. || toupper (i) != TOUPPER (i))
  6879. return 2;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_run "$LINENO"; then :
  6884. else
  6885. ac_cv_header_stdc=no
  6886. fi
  6887. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6888. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6889. fi
  6890. fi
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6893. $as_echo "$ac_cv_header_stdc" >&6; }
  6894. if test $ac_cv_header_stdc = yes; then
  6895. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6896. fi
  6897. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6898. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6899. inttypes.h stdint.h unistd.h
  6900. do :
  6901. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6902. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6903. "
  6904. eval as_val=\$$as_ac_Header
  6905. if test "x$as_val" = x""yes; then :
  6906. cat >>confdefs.h <<_ACEOF
  6907. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6908. _ACEOF
  6909. fi
  6910. done
  6911. for ac_header in dlfcn.h
  6912. do :
  6913. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6914. "
  6915. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6916. cat >>confdefs.h <<_ACEOF
  6917. #define HAVE_DLFCN_H 1
  6918. _ACEOF
  6919. fi
  6920. done
  6921. # Set options
  6922. enable_win32_dll=no
  6923. # Check whether --enable-shared was given.
  6924. if test "${enable_shared+set}" = set; then :
  6925. enableval=$enable_shared; p=${PACKAGE-default}
  6926. case $enableval in
  6927. yes) enable_shared=yes ;;
  6928. no) enable_shared=no ;;
  6929. *)
  6930. enable_shared=no
  6931. # Look at the argument we got. We use all the common list separators.
  6932. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6933. for pkg in $enableval; do
  6934. IFS="$lt_save_ifs"
  6935. if test "X$pkg" = "X$p"; then
  6936. enable_shared=yes
  6937. fi
  6938. done
  6939. IFS="$lt_save_ifs"
  6940. ;;
  6941. esac
  6942. else
  6943. enable_shared=yes
  6944. fi
  6945. # Check whether --enable-static was given.
  6946. if test "${enable_static+set}" = set; then :
  6947. enableval=$enable_static; p=${PACKAGE-default}
  6948. case $enableval in
  6949. yes) enable_static=yes ;;
  6950. no) enable_static=no ;;
  6951. *)
  6952. enable_static=no
  6953. # Look at the argument we got. We use all the common list separators.
  6954. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6955. for pkg in $enableval; do
  6956. IFS="$lt_save_ifs"
  6957. if test "X$pkg" = "X$p"; then
  6958. enable_static=yes
  6959. fi
  6960. done
  6961. IFS="$lt_save_ifs"
  6962. ;;
  6963. esac
  6964. else
  6965. enable_static=yes
  6966. fi
  6967. # Check whether --with-pic was given.
  6968. if test "${with_pic+set}" = set; then :
  6969. withval=$with_pic; pic_mode="$withval"
  6970. else
  6971. pic_mode=default
  6972. fi
  6973. test -z "$pic_mode" && pic_mode=default
  6974. # Check whether --enable-fast-install was given.
  6975. if test "${enable_fast_install+set}" = set; then :
  6976. enableval=$enable_fast_install; p=${PACKAGE-default}
  6977. case $enableval in
  6978. yes) enable_fast_install=yes ;;
  6979. no) enable_fast_install=no ;;
  6980. *)
  6981. enable_fast_install=no
  6982. # Look at the argument we got. We use all the common list separators.
  6983. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6984. for pkg in $enableval; do
  6985. IFS="$lt_save_ifs"
  6986. if test "X$pkg" = "X$p"; then
  6987. enable_fast_install=yes
  6988. fi
  6989. done
  6990. IFS="$lt_save_ifs"
  6991. ;;
  6992. esac
  6993. else
  6994. enable_fast_install=yes
  6995. fi
  6996. # This can be used to rebuild libtool when needed
  6997. LIBTOOL_DEPS="$ltmain"
  6998. # Always use our own libtool.
  6999. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7000. test -z "$LN_S" && LN_S="ln -s"
  7001. if test -n "${ZSH_VERSION+set}" ; then
  7002. setopt NO_GLOB_SUBST
  7003. fi
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7005. $as_echo_n "checking for objdir... " >&6; }
  7006. if test "${lt_cv_objdir+set}" = set; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. rm -f .libs 2>/dev/null
  7010. mkdir .libs 2>/dev/null
  7011. if test -d .libs; then
  7012. lt_cv_objdir=.libs
  7013. else
  7014. # MS-DOS does not allow filenames that begin with a dot.
  7015. lt_cv_objdir=_libs
  7016. fi
  7017. rmdir .libs 2>/dev/null
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7020. $as_echo "$lt_cv_objdir" >&6; }
  7021. objdir=$lt_cv_objdir
  7022. cat >>confdefs.h <<_ACEOF
  7023. #define LT_OBJDIR "$lt_cv_objdir/"
  7024. _ACEOF
  7025. case $host_os in
  7026. aix3*)
  7027. # AIX sometimes has problems with the GCC collect2 program. For some
  7028. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7029. # vanish in a puff of smoke.
  7030. if test "X${COLLECT_NAMES+set}" != Xset; then
  7031. COLLECT_NAMES=
  7032. export COLLECT_NAMES
  7033. fi
  7034. ;;
  7035. esac
  7036. # Global variables:
  7037. ofile=libtool
  7038. can_build_shared=yes
  7039. # All known linkers require a `.a' archive for static linking (except MSVC,
  7040. # which needs '.lib').
  7041. libext=a
  7042. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7043. old_CC="$CC"
  7044. old_CFLAGS="$CFLAGS"
  7045. # Set sane defaults for various variables
  7046. test -z "$CC" && CC=cc
  7047. test -z "$LTCC" && LTCC=$CC
  7048. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7049. test -z "$LD" && LD=ld
  7050. test -z "$ac_objext" && ac_objext=o
  7051. for cc_temp in $compiler""; do
  7052. case $cc_temp in
  7053. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7054. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7055. \-*) ;;
  7056. *) break;;
  7057. esac
  7058. done
  7059. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7076. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS="$lt_save_ifs"
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f $ac_dir/${ac_tool_prefix}file; then
  7082. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS="$lt_save_ifs"
  7109. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7134. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS="$lt_save_ifs"
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f $ac_dir/file; then
  7140. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS="$lt_save_ifs"
  7167. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC="$CC"
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test "$GCC" = yes; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7281. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7282. if test "$GCC" = yes; then
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_static='-static'
  7285. case $host_os in
  7286. aix*)
  7287. # All AIX code is PIC.
  7288. if test "$host_cpu" = ia64; then
  7289. # AIX 5 now supports IA64 processor
  7290. lt_prog_compiler_static='-Bstatic'
  7291. fi
  7292. ;;
  7293. amigaos*)
  7294. case $host_cpu in
  7295. powerpc)
  7296. # see comment about AmigaOS4 .so support
  7297. lt_prog_compiler_pic='-fPIC'
  7298. ;;
  7299. m68k)
  7300. # FIXME: we need at least 68020 code to build shared libraries, but
  7301. # adding the `-m68020' flag to GCC prevents building anything better,
  7302. # like `-m68040'.
  7303. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7304. ;;
  7305. esac
  7306. ;;
  7307. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7308. # PIC is the default for these OSes.
  7309. ;;
  7310. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7311. # This hack is so that the source file can tell whether it is being
  7312. # built for inclusion in a dll (and should export symbols for example).
  7313. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7314. # (--disable-auto-import) libraries
  7315. lt_prog_compiler_pic='-DDLL_EXPORT'
  7316. ;;
  7317. darwin* | rhapsody*)
  7318. # PIC is the default on this platform
  7319. # Common symbols not allowed in MH_DYLIB files
  7320. lt_prog_compiler_pic='-fno-common'
  7321. ;;
  7322. haiku*)
  7323. # PIC is the default for Haiku.
  7324. # The "-static" flag exists, but is broken.
  7325. lt_prog_compiler_static=
  7326. ;;
  7327. hpux*)
  7328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7330. # sets the default TLS model and affects inlining.
  7331. case $host_cpu in
  7332. hppa*64*)
  7333. # +Z the default
  7334. ;;
  7335. *)
  7336. lt_prog_compiler_pic='-fPIC'
  7337. ;;
  7338. esac
  7339. ;;
  7340. interix[3-9]*)
  7341. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7342. # Instead, we relocate shared libraries at runtime.
  7343. ;;
  7344. msdosdjgpp*)
  7345. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7346. # on systems that don't support them.
  7347. lt_prog_compiler_can_build_shared=no
  7348. enable_shared=no
  7349. ;;
  7350. *nto* | *qnx*)
  7351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7352. # it will coredump.
  7353. lt_prog_compiler_pic='-fPIC -shared'
  7354. ;;
  7355. sysv4*MP*)
  7356. if test -d /usr/nec; then
  7357. lt_prog_compiler_pic=-Kconform_pic
  7358. fi
  7359. ;;
  7360. *)
  7361. lt_prog_compiler_pic='-fPIC'
  7362. ;;
  7363. esac
  7364. case $cc_basename in
  7365. nvcc*) # Cuda Compiler Driver 2.2
  7366. lt_prog_compiler_wl='-Xlinker '
  7367. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7368. ;;
  7369. esac
  7370. else
  7371. # PORTME Check for flag to pass linker flags through the system compiler.
  7372. case $host_os in
  7373. aix*)
  7374. lt_prog_compiler_wl='-Wl,'
  7375. if test "$host_cpu" = ia64; then
  7376. # AIX 5 now supports IA64 processor
  7377. lt_prog_compiler_static='-Bstatic'
  7378. else
  7379. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7380. fi
  7381. ;;
  7382. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7383. # This hack is so that the source file can tell whether it is being
  7384. # built for inclusion in a dll (and should export symbols for example).
  7385. lt_prog_compiler_pic='-DDLL_EXPORT'
  7386. ;;
  7387. hpux9* | hpux10* | hpux11*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7390. # not for PA HP-UX.
  7391. case $host_cpu in
  7392. hppa*64*|ia64*)
  7393. # +Z the default
  7394. ;;
  7395. *)
  7396. lt_prog_compiler_pic='+Z'
  7397. ;;
  7398. esac
  7399. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7400. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7401. ;;
  7402. irix5* | irix6* | nonstopux*)
  7403. lt_prog_compiler_wl='-Wl,'
  7404. # PIC (with -KPIC) is the default.
  7405. lt_prog_compiler_static='-non_shared'
  7406. ;;
  7407. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7408. case $cc_basename in
  7409. # old Intel for x86_64 which still supported -KPIC.
  7410. ecc*)
  7411. lt_prog_compiler_wl='-Wl,'
  7412. lt_prog_compiler_pic='-KPIC'
  7413. lt_prog_compiler_static='-static'
  7414. ;;
  7415. # icc used to be incompatible with GCC.
  7416. # ICC 10 doesn't accept -KPIC any more.
  7417. icc* | ifort*)
  7418. lt_prog_compiler_wl='-Wl,'
  7419. lt_prog_compiler_pic='-fPIC'
  7420. lt_prog_compiler_static='-static'
  7421. ;;
  7422. # Lahey Fortran 8.1.
  7423. lf95*)
  7424. lt_prog_compiler_wl='-Wl,'
  7425. lt_prog_compiler_pic='--shared'
  7426. lt_prog_compiler_static='--static'
  7427. ;;
  7428. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7429. # Portland Group compilers (*not* the Pentium gcc compiler,
  7430. # which looks to be a dead project)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. lt_prog_compiler_pic='-fpic'
  7433. lt_prog_compiler_static='-Bstatic'
  7434. ;;
  7435. ccc*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. # All Alpha code is PIC.
  7438. lt_prog_compiler_static='-non_shared'
  7439. ;;
  7440. xl* | bgxl* | bgf* | mpixl*)
  7441. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-qpic'
  7444. lt_prog_compiler_static='-qstaticlink'
  7445. ;;
  7446. *)
  7447. case `$CC -V 2>&1 | sed 5q` in
  7448. *Sun\ F* | *Sun*Fortran*)
  7449. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7450. lt_prog_compiler_pic='-KPIC'
  7451. lt_prog_compiler_static='-Bstatic'
  7452. lt_prog_compiler_wl=''
  7453. ;;
  7454. *Sun\ C*)
  7455. # Sun C 5.9
  7456. lt_prog_compiler_pic='-KPIC'
  7457. lt_prog_compiler_static='-Bstatic'
  7458. lt_prog_compiler_wl='-Wl,'
  7459. ;;
  7460. esac
  7461. ;;
  7462. esac
  7463. ;;
  7464. newsos6)
  7465. lt_prog_compiler_pic='-KPIC'
  7466. lt_prog_compiler_static='-Bstatic'
  7467. ;;
  7468. *nto* | *qnx*)
  7469. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7470. # it will coredump.
  7471. lt_prog_compiler_pic='-fPIC -shared'
  7472. ;;
  7473. osf3* | osf4* | osf5*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. # All OSF/1 code is PIC.
  7476. lt_prog_compiler_static='-non_shared'
  7477. ;;
  7478. rdos*)
  7479. lt_prog_compiler_static='-non_shared'
  7480. ;;
  7481. solaris*)
  7482. lt_prog_compiler_pic='-KPIC'
  7483. lt_prog_compiler_static='-Bstatic'
  7484. case $cc_basename in
  7485. f77* | f90* | f95*)
  7486. lt_prog_compiler_wl='-Qoption ld ';;
  7487. *)
  7488. lt_prog_compiler_wl='-Wl,';;
  7489. esac
  7490. ;;
  7491. sunos4*)
  7492. lt_prog_compiler_wl='-Qoption ld '
  7493. lt_prog_compiler_pic='-PIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. ;;
  7496. sysv4 | sysv4.2uw2* | sysv4.3*)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_pic='-KPIC'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. ;;
  7501. sysv4*MP*)
  7502. if test -d /usr/nec ;then
  7503. lt_prog_compiler_pic='-Kconform_pic'
  7504. lt_prog_compiler_static='-Bstatic'
  7505. fi
  7506. ;;
  7507. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7508. lt_prog_compiler_wl='-Wl,'
  7509. lt_prog_compiler_pic='-KPIC'
  7510. lt_prog_compiler_static='-Bstatic'
  7511. ;;
  7512. unicos*)
  7513. lt_prog_compiler_wl='-Wl,'
  7514. lt_prog_compiler_can_build_shared=no
  7515. ;;
  7516. uts4*)
  7517. lt_prog_compiler_pic='-pic'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. ;;
  7520. *)
  7521. lt_prog_compiler_can_build_shared=no
  7522. ;;
  7523. esac
  7524. fi
  7525. case $host_os in
  7526. # For platforms which do not support PIC, -DPIC is meaningless:
  7527. *djgpp*)
  7528. lt_prog_compiler_pic=
  7529. ;;
  7530. *)
  7531. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7532. ;;
  7533. esac
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7535. $as_echo "$lt_prog_compiler_pic" >&6; }
  7536. #
  7537. # Check to make sure the PIC flag actually works.
  7538. #
  7539. if test -n "$lt_prog_compiler_pic"; then
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7541. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7542. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7543. $as_echo_n "(cached) " >&6
  7544. else
  7545. lt_cv_prog_compiler_pic_works=no
  7546. ac_outfile=conftest.$ac_objext
  7547. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7548. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7549. # Insert the option either (1) after the last *FLAGS variable, or
  7550. # (2) before a word containing "conftest.", or (3) at the end.
  7551. # Note that $ac_compile itself does not contain backslashes and begins
  7552. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7553. # The option is referenced via a variable to avoid confusing sed.
  7554. lt_compile=`echo "$ac_compile" | $SED \
  7555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7557. -e 's:$: $lt_compiler_flag:'`
  7558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7559. (eval "$lt_compile" 2>conftest.err)
  7560. ac_status=$?
  7561. cat conftest.err >&5
  7562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7563. if (exit $ac_status) && test -s "$ac_outfile"; then
  7564. # The compiler can only warn and ignore the option if not recognized
  7565. # So say no if there are warnings other than the usual output.
  7566. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7567. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7568. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7569. lt_cv_prog_compiler_pic_works=yes
  7570. fi
  7571. fi
  7572. $RM conftest*
  7573. fi
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7575. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7576. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7577. case $lt_prog_compiler_pic in
  7578. "" | " "*) ;;
  7579. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7580. esac
  7581. else
  7582. lt_prog_compiler_pic=
  7583. lt_prog_compiler_can_build_shared=no
  7584. fi
  7585. fi
  7586. #
  7587. # Check to make sure the static flag actually works.
  7588. #
  7589. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7591. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7592. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7593. $as_echo_n "(cached) " >&6
  7594. else
  7595. lt_cv_prog_compiler_static_works=no
  7596. save_LDFLAGS="$LDFLAGS"
  7597. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7598. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7599. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7600. # The linker can only warn and ignore the option if not recognized
  7601. # So say no if there are warnings
  7602. if test -s conftest.err; then
  7603. # Append any errors to the config.log.
  7604. cat conftest.err 1>&5
  7605. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7606. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7607. if diff conftest.exp conftest.er2 >/dev/null; then
  7608. lt_cv_prog_compiler_static_works=yes
  7609. fi
  7610. else
  7611. lt_cv_prog_compiler_static_works=yes
  7612. fi
  7613. fi
  7614. $RM -r conftest*
  7615. LDFLAGS="$save_LDFLAGS"
  7616. fi
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7618. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7619. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7620. :
  7621. else
  7622. lt_prog_compiler_static=
  7623. fi
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7625. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7626. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7627. $as_echo_n "(cached) " >&6
  7628. else
  7629. lt_cv_prog_compiler_c_o=no
  7630. $RM -r conftest 2>/dev/null
  7631. mkdir conftest
  7632. cd conftest
  7633. mkdir out
  7634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7635. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7636. # Insert the option either (1) after the last *FLAGS variable, or
  7637. # (2) before a word containing "conftest.", or (3) at the end.
  7638. # Note that $ac_compile itself does not contain backslashes and begins
  7639. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7640. lt_compile=`echo "$ac_compile" | $SED \
  7641. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7642. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7643. -e 's:$: $lt_compiler_flag:'`
  7644. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7645. (eval "$lt_compile" 2>out/conftest.err)
  7646. ac_status=$?
  7647. cat out/conftest.err >&5
  7648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7649. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7650. then
  7651. # The compiler can only warn and ignore the option if not recognized
  7652. # So say no if there are warnings
  7653. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7654. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7655. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7656. lt_cv_prog_compiler_c_o=yes
  7657. fi
  7658. fi
  7659. chmod u+w . 2>&5
  7660. $RM conftest*
  7661. # SGI C++ compiler will create directory out/ii_files/ for
  7662. # template instantiation
  7663. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7664. $RM out/* && rmdir out
  7665. cd ..
  7666. $RM -r conftest
  7667. $RM conftest*
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7670. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7672. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7673. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7674. $as_echo_n "(cached) " >&6
  7675. else
  7676. lt_cv_prog_compiler_c_o=no
  7677. $RM -r conftest 2>/dev/null
  7678. mkdir conftest
  7679. cd conftest
  7680. mkdir out
  7681. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7682. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7683. # Insert the option either (1) after the last *FLAGS variable, or
  7684. # (2) before a word containing "conftest.", or (3) at the end.
  7685. # Note that $ac_compile itself does not contain backslashes and begins
  7686. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7687. lt_compile=`echo "$ac_compile" | $SED \
  7688. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7690. -e 's:$: $lt_compiler_flag:'`
  7691. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7692. (eval "$lt_compile" 2>out/conftest.err)
  7693. ac_status=$?
  7694. cat out/conftest.err >&5
  7695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7696. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7697. then
  7698. # The compiler can only warn and ignore the option if not recognized
  7699. # So say no if there are warnings
  7700. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7701. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7702. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7703. lt_cv_prog_compiler_c_o=yes
  7704. fi
  7705. fi
  7706. chmod u+w . 2>&5
  7707. $RM conftest*
  7708. # SGI C++ compiler will create directory out/ii_files/ for
  7709. # template instantiation
  7710. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7711. $RM out/* && rmdir out
  7712. cd ..
  7713. $RM -r conftest
  7714. $RM conftest*
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7717. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7718. hard_links="nottested"
  7719. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7720. # do not overwrite the value of need_locks provided by the user
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7722. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7723. hard_links=yes
  7724. $RM conftest*
  7725. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7726. touch conftest.a
  7727. ln conftest.a conftest.b 2>&5 || hard_links=no
  7728. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7730. $as_echo "$hard_links" >&6; }
  7731. if test "$hard_links" = no; then
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7733. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7734. need_locks=warn
  7735. fi
  7736. else
  7737. need_locks=no
  7738. fi
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7740. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7741. runpath_var=
  7742. allow_undefined_flag=
  7743. always_export_symbols=no
  7744. archive_cmds=
  7745. archive_expsym_cmds=
  7746. compiler_needs_object=no
  7747. enable_shared_with_static_runtimes=no
  7748. export_dynamic_flag_spec=
  7749. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7750. hardcode_automatic=no
  7751. hardcode_direct=no
  7752. hardcode_direct_absolute=no
  7753. hardcode_libdir_flag_spec=
  7754. hardcode_libdir_flag_spec_ld=
  7755. hardcode_libdir_separator=
  7756. hardcode_minus_L=no
  7757. hardcode_shlibpath_var=unsupported
  7758. inherit_rpath=no
  7759. link_all_deplibs=unknown
  7760. module_cmds=
  7761. module_expsym_cmds=
  7762. old_archive_from_new_cmds=
  7763. old_archive_from_expsyms_cmds=
  7764. thread_safe_flag_spec=
  7765. whole_archive_flag_spec=
  7766. # include_expsyms should be a list of space-separated symbols to be *always*
  7767. # included in the symbol list
  7768. include_expsyms=
  7769. # exclude_expsyms can be an extended regexp of symbols to exclude
  7770. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7771. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7772. # as well as any symbol that contains `d'.
  7773. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7774. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7775. # platforms (ab)use it in PIC code, but their linkers get confused if
  7776. # the symbol is explicitly referenced. Since portable code cannot
  7777. # rely on this symbol name, it's probably fine to never include it in
  7778. # preloaded symbol tables.
  7779. # Exclude shared library initialization/finalization symbols.
  7780. extract_expsyms_cmds=
  7781. case $host_os in
  7782. cygwin* | mingw* | pw32* | cegcc*)
  7783. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7784. # When not using gcc, we currently assume that we are using
  7785. # Microsoft Visual C++.
  7786. if test "$GCC" != yes; then
  7787. with_gnu_ld=no
  7788. fi
  7789. ;;
  7790. interix*)
  7791. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7792. with_gnu_ld=yes
  7793. ;;
  7794. openbsd*)
  7795. with_gnu_ld=no
  7796. ;;
  7797. esac
  7798. ld_shlibs=yes
  7799. # On some targets, GNU ld is compatible enough with the native linker
  7800. # that we're better off using the native interface for both.
  7801. lt_use_gnu_ld_interface=no
  7802. if test "$with_gnu_ld" = yes; then
  7803. case $host_os in
  7804. aix*)
  7805. # The AIX port of GNU ld has always aspired to compatibility
  7806. # with the native linker. However, as the warning in the GNU ld
  7807. # block says, versions before 2.19.5* couldn't really create working
  7808. # shared libraries, regardless of the interface used.
  7809. case `$LD -v 2>&1` in
  7810. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7811. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7812. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7813. *)
  7814. lt_use_gnu_ld_interface=yes
  7815. ;;
  7816. esac
  7817. ;;
  7818. *)
  7819. lt_use_gnu_ld_interface=yes
  7820. ;;
  7821. esac
  7822. fi
  7823. if test "$lt_use_gnu_ld_interface" = yes; then
  7824. # If archive_cmds runs LD, not CC, wlarc should be empty
  7825. wlarc='${wl}'
  7826. # Set some defaults for GNU ld with shared library support. These
  7827. # are reset later if shared libraries are not supported. Putting them
  7828. # here allows them to be overridden if necessary.
  7829. runpath_var=LD_RUN_PATH
  7830. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7831. export_dynamic_flag_spec='${wl}--export-dynamic'
  7832. # ancient GNU ld didn't support --whole-archive et. al.
  7833. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7834. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7835. else
  7836. whole_archive_flag_spec=
  7837. fi
  7838. supports_anon_versioning=no
  7839. case `$LD -v 2>&1` in
  7840. *GNU\ gold*) supports_anon_versioning=yes ;;
  7841. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7842. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7843. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7844. *\ 2.11.*) ;; # other 2.11 versions
  7845. *) supports_anon_versioning=yes ;;
  7846. esac
  7847. # See if GNU ld supports shared libraries.
  7848. case $host_os in
  7849. aix[3-9]*)
  7850. # On AIX/PPC, the GNU linker is very broken
  7851. if test "$host_cpu" != ia64; then
  7852. ld_shlibs=no
  7853. cat <<_LT_EOF 1>&2
  7854. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7855. *** to be unable to reliably create shared libraries on AIX.
  7856. *** Therefore, libtool is disabling shared libraries support. If you
  7857. *** really care for shared libraries, you may want to install binutils
  7858. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7859. *** You will then need to restart the configuration process.
  7860. _LT_EOF
  7861. fi
  7862. ;;
  7863. amigaos*)
  7864. case $host_cpu in
  7865. powerpc)
  7866. # see comment about AmigaOS4 .so support
  7867. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7868. archive_expsym_cmds=''
  7869. ;;
  7870. m68k)
  7871. 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)'
  7872. hardcode_libdir_flag_spec='-L$libdir'
  7873. hardcode_minus_L=yes
  7874. ;;
  7875. esac
  7876. ;;
  7877. beos*)
  7878. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7879. allow_undefined_flag=unsupported
  7880. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7881. # support --undefined. This deserves some investigation. FIXME
  7882. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7883. else
  7884. ld_shlibs=no
  7885. fi
  7886. ;;
  7887. cygwin* | mingw* | pw32* | cegcc*)
  7888. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7889. # as there is no search path for DLLs.
  7890. hardcode_libdir_flag_spec='-L$libdir'
  7891. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7892. allow_undefined_flag=unsupported
  7893. always_export_symbols=no
  7894. enable_shared_with_static_runtimes=yes
  7895. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7896. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7897. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7898. # If the export-symbols file already is a .def file (1st line
  7899. # is EXPORTS), use it as is; otherwise, prepend...
  7900. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7901. cp $export_symbols $output_objdir/$soname.def;
  7902. else
  7903. echo EXPORTS > $output_objdir/$soname.def;
  7904. cat $export_symbols >> $output_objdir/$soname.def;
  7905. fi~
  7906. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7907. else
  7908. ld_shlibs=no
  7909. fi
  7910. ;;
  7911. haiku*)
  7912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7913. link_all_deplibs=yes
  7914. ;;
  7915. interix[3-9]*)
  7916. hardcode_direct=no
  7917. hardcode_shlibpath_var=no
  7918. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7919. export_dynamic_flag_spec='${wl}-E'
  7920. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7921. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7922. # default) and relocated if they conflict, which is a slow very memory
  7923. # consuming and fragmenting process. To avoid this, we pick a random,
  7924. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7925. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7926. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7927. 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'
  7928. ;;
  7929. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7930. tmp_diet=no
  7931. if test "$host_os" = linux-dietlibc; then
  7932. case $cc_basename in
  7933. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7934. esac
  7935. fi
  7936. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7937. && test "$tmp_diet" = no
  7938. then
  7939. tmp_addflag=
  7940. tmp_sharedflag='-shared'
  7941. case $cc_basename,$host_cpu in
  7942. pgcc*) # Portland Group C compiler
  7943. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7944. tmp_addflag=' $pic_flag'
  7945. ;;
  7946. pgf77* | pgf90* | pgf95* | pgfortran*)
  7947. # Portland Group f77 and f90 compilers
  7948. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7949. tmp_addflag=' $pic_flag -Mnomain' ;;
  7950. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7951. tmp_addflag=' -i_dynamic' ;;
  7952. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7953. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7954. ifc* | ifort*) # Intel Fortran compiler
  7955. tmp_addflag=' -nofor_main' ;;
  7956. lf95*) # Lahey Fortran 8.1
  7957. whole_archive_flag_spec=
  7958. tmp_sharedflag='--shared' ;;
  7959. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7960. tmp_sharedflag='-qmkshrobj'
  7961. tmp_addflag= ;;
  7962. nvcc*) # Cuda Compiler Driver 2.2
  7963. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7964. compiler_needs_object=yes
  7965. ;;
  7966. esac
  7967. case `$CC -V 2>&1 | sed 5q` in
  7968. *Sun\ C*) # Sun C 5.9
  7969. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7970. compiler_needs_object=yes
  7971. tmp_sharedflag='-G' ;;
  7972. *Sun\ F*) # Sun Fortran 8.3
  7973. tmp_sharedflag='-G' ;;
  7974. esac
  7975. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. if test "x$supports_anon_versioning" = xyes; then
  7977. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7978. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7979. echo "local: *; };" >> $output_objdir/$libname.ver~
  7980. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7981. fi
  7982. case $cc_basename in
  7983. xlf* | bgf* | bgxlf* | mpixlf*)
  7984. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7985. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7986. hardcode_libdir_flag_spec=
  7987. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7988. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7989. if test "x$supports_anon_versioning" = xyes; then
  7990. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7991. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7992. echo "local: *; };" >> $output_objdir/$libname.ver~
  7993. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7994. fi
  7995. ;;
  7996. esac
  7997. else
  7998. ld_shlibs=no
  7999. fi
  8000. ;;
  8001. netbsd*)
  8002. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8003. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8004. wlarc=
  8005. else
  8006. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8007. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8008. fi
  8009. ;;
  8010. solaris*)
  8011. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8012. ld_shlibs=no
  8013. cat <<_LT_EOF 1>&2
  8014. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8015. *** create shared libraries on Solaris systems. Therefore, libtool
  8016. *** is disabling shared libraries support. We urge you to upgrade GNU
  8017. *** binutils to release 2.9.1 or newer. Another option is to modify
  8018. *** your PATH or compiler configuration so that the native linker is
  8019. *** used, and then restart.
  8020. _LT_EOF
  8021. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8022. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8023. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8024. else
  8025. ld_shlibs=no
  8026. fi
  8027. ;;
  8028. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8029. case `$LD -v 2>&1` in
  8030. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8031. ld_shlibs=no
  8032. cat <<_LT_EOF 1>&2
  8033. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8034. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8035. *** is disabling shared libraries support. We urge you to upgrade GNU
  8036. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8037. *** your PATH or compiler configuration so that the native linker is
  8038. *** used, and then restart.
  8039. _LT_EOF
  8040. ;;
  8041. *)
  8042. # For security reasons, it is highly recommended that you always
  8043. # use absolute paths for naming shared libraries, and exclude the
  8044. # DT_RUNPATH tag from executables and libraries. But doing so
  8045. # requires that you compile everything twice, which is a pain.
  8046. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8047. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8048. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8049. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8050. else
  8051. ld_shlibs=no
  8052. fi
  8053. ;;
  8054. esac
  8055. ;;
  8056. sunos4*)
  8057. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8058. wlarc=
  8059. hardcode_direct=yes
  8060. hardcode_shlibpath_var=no
  8061. ;;
  8062. *)
  8063. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8064. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8065. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8066. else
  8067. ld_shlibs=no
  8068. fi
  8069. ;;
  8070. esac
  8071. if test "$ld_shlibs" = no; then
  8072. runpath_var=
  8073. hardcode_libdir_flag_spec=
  8074. export_dynamic_flag_spec=
  8075. whole_archive_flag_spec=
  8076. fi
  8077. else
  8078. # PORTME fill in a description of your system's linker (not GNU ld)
  8079. case $host_os in
  8080. aix3*)
  8081. allow_undefined_flag=unsupported
  8082. always_export_symbols=yes
  8083. 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'
  8084. # Note: this linker hardcodes the directories in LIBPATH if there
  8085. # are no directories specified by -L.
  8086. hardcode_minus_L=yes
  8087. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8088. # Neither direct hardcoding nor static linking is supported with a
  8089. # broken collect2.
  8090. hardcode_direct=unsupported
  8091. fi
  8092. ;;
  8093. aix[4-9]*)
  8094. if test "$host_cpu" = ia64; then
  8095. # On IA64, the linker does run time linking by default, so we don't
  8096. # have to do anything special.
  8097. aix_use_runtimelinking=no
  8098. exp_sym_flag='-Bexport'
  8099. no_entry_flag=""
  8100. else
  8101. # If we're using GNU nm, then we don't want the "-C" option.
  8102. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8103. # Also, AIX nm treats weak defined symbols like other global
  8104. # defined symbols, whereas GNU nm marks them as "W".
  8105. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8106. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8107. else
  8108. 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'
  8109. fi
  8110. aix_use_runtimelinking=no
  8111. # Test if we are trying to use run time linking or normal
  8112. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8113. # need to do runtime linking.
  8114. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8115. for ld_flag in $LDFLAGS; do
  8116. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8117. aix_use_runtimelinking=yes
  8118. break
  8119. fi
  8120. done
  8121. ;;
  8122. esac
  8123. exp_sym_flag='-bexport'
  8124. no_entry_flag='-bnoentry'
  8125. fi
  8126. # When large executables or shared objects are built, AIX ld can
  8127. # have problems creating the table of contents. If linking a library
  8128. # or program results in "error TOC overflow" add -mminimal-toc to
  8129. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8130. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8131. archive_cmds=''
  8132. hardcode_direct=yes
  8133. hardcode_direct_absolute=yes
  8134. hardcode_libdir_separator=':'
  8135. link_all_deplibs=yes
  8136. file_list_spec='${wl}-f,'
  8137. if test "$GCC" = yes; then
  8138. case $host_os in aix4.[012]|aix4.[012].*)
  8139. # We only want to do this on AIX 4.2 and lower, the check
  8140. # below for broken collect2 doesn't work under 4.3+
  8141. collect2name=`${CC} -print-prog-name=collect2`
  8142. if test -f "$collect2name" &&
  8143. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8144. then
  8145. # We have reworked collect2
  8146. :
  8147. else
  8148. # We have old collect2
  8149. hardcode_direct=unsupported
  8150. # It fails to find uninstalled libraries when the uninstalled
  8151. # path is not listed in the libpath. Setting hardcode_minus_L
  8152. # to unsupported forces relinking
  8153. hardcode_minus_L=yes
  8154. hardcode_libdir_flag_spec='-L$libdir'
  8155. hardcode_libdir_separator=
  8156. fi
  8157. ;;
  8158. esac
  8159. shared_flag='-shared'
  8160. if test "$aix_use_runtimelinking" = yes; then
  8161. shared_flag="$shared_flag "'${wl}-G'
  8162. fi
  8163. else
  8164. # not using gcc
  8165. if test "$host_cpu" = ia64; then
  8166. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8167. # chokes on -Wl,-G. The following line is correct:
  8168. shared_flag='-G'
  8169. else
  8170. if test "$aix_use_runtimelinking" = yes; then
  8171. shared_flag='${wl}-G'
  8172. else
  8173. shared_flag='${wl}-bM:SRE'
  8174. fi
  8175. fi
  8176. fi
  8177. export_dynamic_flag_spec='${wl}-bexpall'
  8178. # It seems that -bexpall does not export symbols beginning with
  8179. # underscore (_), so it is better to generate a list of symbols to export.
  8180. always_export_symbols=yes
  8181. if test "$aix_use_runtimelinking" = yes; then
  8182. # Warning - without using the other runtime loading flags (-brtl),
  8183. # -berok will link without error, but may produce a broken library.
  8184. allow_undefined_flag='-berok'
  8185. # Determine the default libpath from the value encoded in an
  8186. # empty executable.
  8187. if test x$gcc_no_link = xyes; then
  8188. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8189. fi
  8190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8191. /* end confdefs.h. */
  8192. int
  8193. main ()
  8194. {
  8195. ;
  8196. return 0;
  8197. }
  8198. _ACEOF
  8199. if ac_fn_c_try_link "$LINENO"; then :
  8200. lt_aix_libpath_sed='
  8201. /Import File Strings/,/^$/ {
  8202. /^0/ {
  8203. s/^0 *\(.*\)$/\1/
  8204. p
  8205. }
  8206. }'
  8207. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8208. # Check for a 64-bit object if we didn't find anything.
  8209. if test -z "$aix_libpath"; then
  8210. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8211. fi
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext \
  8214. conftest$ac_exeext conftest.$ac_ext
  8215. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8216. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8217. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8218. else
  8219. if test "$host_cpu" = ia64; then
  8220. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8221. allow_undefined_flag="-z nodefs"
  8222. 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"
  8223. else
  8224. # Determine the default libpath from the value encoded in an
  8225. # empty executable.
  8226. if test x$gcc_no_link = xyes; then
  8227. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8228. fi
  8229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8230. /* end confdefs.h. */
  8231. int
  8232. main ()
  8233. {
  8234. ;
  8235. return 0;
  8236. }
  8237. _ACEOF
  8238. if ac_fn_c_try_link "$LINENO"; then :
  8239. lt_aix_libpath_sed='
  8240. /Import File Strings/,/^$/ {
  8241. /^0/ {
  8242. s/^0 *\(.*\)$/\1/
  8243. p
  8244. }
  8245. }'
  8246. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8247. # Check for a 64-bit object if we didn't find anything.
  8248. if test -z "$aix_libpath"; then
  8249. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8250. fi
  8251. fi
  8252. rm -f core conftest.err conftest.$ac_objext \
  8253. conftest$ac_exeext conftest.$ac_ext
  8254. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8255. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8256. # Warning - without using the other run time loading flags,
  8257. # -berok will link without error, but may produce a broken library.
  8258. no_undefined_flag=' ${wl}-bernotok'
  8259. allow_undefined_flag=' ${wl}-berok'
  8260. if test "$with_gnu_ld" = yes; then
  8261. # We only use this code for GNU lds that support --whole-archive.
  8262. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8263. else
  8264. # Exported symbols can be pulled into shared objects from archives
  8265. whole_archive_flag_spec='$convenience'
  8266. fi
  8267. archive_cmds_need_lc=yes
  8268. # This is similar to how AIX traditionally builds its shared libraries.
  8269. 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'
  8270. fi
  8271. fi
  8272. ;;
  8273. amigaos*)
  8274. case $host_cpu in
  8275. powerpc)
  8276. # see comment about AmigaOS4 .so support
  8277. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8278. archive_expsym_cmds=''
  8279. ;;
  8280. m68k)
  8281. 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)'
  8282. hardcode_libdir_flag_spec='-L$libdir'
  8283. hardcode_minus_L=yes
  8284. ;;
  8285. esac
  8286. ;;
  8287. bsdi[45]*)
  8288. export_dynamic_flag_spec=-rdynamic
  8289. ;;
  8290. cygwin* | mingw* | pw32* | cegcc*)
  8291. # When not using gcc, we currently assume that we are using
  8292. # Microsoft Visual C++.
  8293. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8294. # no search path for DLLs.
  8295. hardcode_libdir_flag_spec=' '
  8296. allow_undefined_flag=unsupported
  8297. # Tell ltmain to make .lib files, not .a files.
  8298. libext=lib
  8299. # Tell ltmain to make .dll files, not .so files.
  8300. shrext_cmds=".dll"
  8301. # FIXME: Setting linknames here is a bad hack.
  8302. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8303. # The linker will automatically build a .lib file if we build a DLL.
  8304. old_archive_from_new_cmds='true'
  8305. # FIXME: Should let the user specify the lib program.
  8306. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8307. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8308. enable_shared_with_static_runtimes=yes
  8309. ;;
  8310. darwin* | rhapsody*)
  8311. archive_cmds_need_lc=no
  8312. hardcode_direct=no
  8313. hardcode_automatic=yes
  8314. hardcode_shlibpath_var=unsupported
  8315. if test "$lt_cv_ld_force_load" = "yes"; then
  8316. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8317. else
  8318. whole_archive_flag_spec=''
  8319. fi
  8320. link_all_deplibs=yes
  8321. allow_undefined_flag="$_lt_dar_allow_undefined"
  8322. case $cc_basename in
  8323. ifort*) _lt_dar_can_shared=yes ;;
  8324. *) _lt_dar_can_shared=$GCC ;;
  8325. esac
  8326. if test "$_lt_dar_can_shared" = "yes"; then
  8327. output_verbose_link_cmd=func_echo_all
  8328. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8329. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8330. 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}"
  8331. 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}"
  8332. else
  8333. ld_shlibs=no
  8334. fi
  8335. ;;
  8336. dgux*)
  8337. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8338. hardcode_libdir_flag_spec='-L$libdir'
  8339. hardcode_shlibpath_var=no
  8340. ;;
  8341. freebsd1*)
  8342. ld_shlibs=no
  8343. ;;
  8344. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8345. # support. Future versions do this automatically, but an explicit c++rt0.o
  8346. # does not break anything, and helps significantly (at the cost of a little
  8347. # extra space).
  8348. freebsd2.2*)
  8349. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8350. hardcode_libdir_flag_spec='-R$libdir'
  8351. hardcode_direct=yes
  8352. hardcode_shlibpath_var=no
  8353. ;;
  8354. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8355. freebsd2*)
  8356. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8357. hardcode_direct=yes
  8358. hardcode_minus_L=yes
  8359. hardcode_shlibpath_var=no
  8360. ;;
  8361. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8362. freebsd* | dragonfly*)
  8363. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8364. hardcode_libdir_flag_spec='-R$libdir'
  8365. hardcode_direct=yes
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. hpux9*)
  8369. if test "$GCC" = yes; then
  8370. 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'
  8371. else
  8372. 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'
  8373. fi
  8374. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8375. hardcode_libdir_separator=:
  8376. hardcode_direct=yes
  8377. # hardcode_minus_L: Not really in the search PATH,
  8378. # but as the default location of the library.
  8379. hardcode_minus_L=yes
  8380. export_dynamic_flag_spec='${wl}-E'
  8381. ;;
  8382. hpux10*)
  8383. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8384. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8385. else
  8386. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8387. fi
  8388. if test "$with_gnu_ld" = no; then
  8389. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8390. hardcode_libdir_flag_spec_ld='+b $libdir'
  8391. hardcode_libdir_separator=:
  8392. hardcode_direct=yes
  8393. hardcode_direct_absolute=yes
  8394. export_dynamic_flag_spec='${wl}-E'
  8395. # hardcode_minus_L: Not really in the search PATH,
  8396. # but as the default location of the library.
  8397. hardcode_minus_L=yes
  8398. fi
  8399. ;;
  8400. hpux11*)
  8401. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8402. case $host_cpu in
  8403. hppa*64*)
  8404. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. ;;
  8406. ia64*)
  8407. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8408. ;;
  8409. *)
  8410. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8411. ;;
  8412. esac
  8413. else
  8414. case $host_cpu in
  8415. hppa*64*)
  8416. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8417. ;;
  8418. ia64*)
  8419. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8420. ;;
  8421. *)
  8422. # Older versions of the 11.00 compiler do not understand -b yet
  8423. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8425. $as_echo_n "checking if $CC understands -b... " >&6; }
  8426. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8427. $as_echo_n "(cached) " >&6
  8428. else
  8429. lt_cv_prog_compiler__b=no
  8430. save_LDFLAGS="$LDFLAGS"
  8431. LDFLAGS="$LDFLAGS -b"
  8432. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8433. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8434. # The linker can only warn and ignore the option if not recognized
  8435. # So say no if there are warnings
  8436. if test -s conftest.err; then
  8437. # Append any errors to the config.log.
  8438. cat conftest.err 1>&5
  8439. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8440. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8441. if diff conftest.exp conftest.er2 >/dev/null; then
  8442. lt_cv_prog_compiler__b=yes
  8443. fi
  8444. else
  8445. lt_cv_prog_compiler__b=yes
  8446. fi
  8447. fi
  8448. $RM -r conftest*
  8449. LDFLAGS="$save_LDFLAGS"
  8450. fi
  8451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8452. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8453. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8454. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8455. else
  8456. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8457. fi
  8458. ;;
  8459. esac
  8460. fi
  8461. if test "$with_gnu_ld" = no; then
  8462. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8463. hardcode_libdir_separator=:
  8464. case $host_cpu in
  8465. hppa*64*|ia64*)
  8466. hardcode_direct=no
  8467. hardcode_shlibpath_var=no
  8468. ;;
  8469. *)
  8470. hardcode_direct=yes
  8471. hardcode_direct_absolute=yes
  8472. export_dynamic_flag_spec='${wl}-E'
  8473. # hardcode_minus_L: Not really in the search PATH,
  8474. # but as the default location of the library.
  8475. hardcode_minus_L=yes
  8476. ;;
  8477. esac
  8478. fi
  8479. ;;
  8480. irix5* | irix6* | nonstopux*)
  8481. if test "$GCC" = yes; then
  8482. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8483. # Try to use the -exported_symbol ld option, if it does not
  8484. # work, assume that -exports_file does not work either and
  8485. # implicitly export all symbols.
  8486. save_LDFLAGS="$LDFLAGS"
  8487. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8488. if test x$gcc_no_link = xyes; then
  8489. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8490. fi
  8491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8492. /* end confdefs.h. */
  8493. int foo(void) {}
  8494. _ACEOF
  8495. if ac_fn_c_try_link "$LINENO"; then :
  8496. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8497. fi
  8498. rm -f core conftest.err conftest.$ac_objext \
  8499. conftest$ac_exeext conftest.$ac_ext
  8500. LDFLAGS="$save_LDFLAGS"
  8501. else
  8502. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8503. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8504. fi
  8505. archive_cmds_need_lc='no'
  8506. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8507. hardcode_libdir_separator=:
  8508. inherit_rpath=yes
  8509. link_all_deplibs=yes
  8510. ;;
  8511. netbsd*)
  8512. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8513. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8514. else
  8515. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8516. fi
  8517. hardcode_libdir_flag_spec='-R$libdir'
  8518. hardcode_direct=yes
  8519. hardcode_shlibpath_var=no
  8520. ;;
  8521. newsos6)
  8522. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. hardcode_direct=yes
  8524. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8525. hardcode_libdir_separator=:
  8526. hardcode_shlibpath_var=no
  8527. ;;
  8528. *nto* | *qnx*)
  8529. ;;
  8530. openbsd*)
  8531. if test -f /usr/libexec/ld.so; then
  8532. hardcode_direct=yes
  8533. hardcode_shlibpath_var=no
  8534. hardcode_direct_absolute=yes
  8535. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8536. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8538. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8539. export_dynamic_flag_spec='${wl}-E'
  8540. else
  8541. case $host_os in
  8542. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8543. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_libdir_flag_spec='-R$libdir'
  8545. ;;
  8546. *)
  8547. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8548. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8549. ;;
  8550. esac
  8551. fi
  8552. else
  8553. ld_shlibs=no
  8554. fi
  8555. ;;
  8556. os2*)
  8557. hardcode_libdir_flag_spec='-L$libdir'
  8558. hardcode_minus_L=yes
  8559. allow_undefined_flag=unsupported
  8560. 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'
  8561. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8562. ;;
  8563. osf3*)
  8564. if test "$GCC" = yes; then
  8565. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8566. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8567. else
  8568. allow_undefined_flag=' -expect_unresolved \*'
  8569. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8570. fi
  8571. archive_cmds_need_lc='no'
  8572. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8573. hardcode_libdir_separator=:
  8574. ;;
  8575. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8576. if test "$GCC" = yes; then
  8577. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8578. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8579. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8580. else
  8581. allow_undefined_flag=' -expect_unresolved \*'
  8582. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8583. 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~
  8584. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8585. # Both c and cxx compiler support -rpath directly
  8586. hardcode_libdir_flag_spec='-rpath $libdir'
  8587. fi
  8588. archive_cmds_need_lc='no'
  8589. hardcode_libdir_separator=:
  8590. ;;
  8591. solaris*)
  8592. no_undefined_flag=' -z defs'
  8593. if test "$GCC" = yes; then
  8594. wlarc='${wl}'
  8595. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8596. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8597. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8598. else
  8599. case `$CC -V 2>&1` in
  8600. *"Compilers 5.0"*)
  8601. wlarc=''
  8602. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8604. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8605. ;;
  8606. *)
  8607. wlarc='${wl}'
  8608. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8609. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8610. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8611. ;;
  8612. esac
  8613. fi
  8614. hardcode_libdir_flag_spec='-R$libdir'
  8615. hardcode_shlibpath_var=no
  8616. case $host_os in
  8617. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8618. *)
  8619. # The compiler driver will combine and reorder linker options,
  8620. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8621. # but is careful enough not to reorder.
  8622. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8623. if test "$GCC" = yes; then
  8624. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8625. else
  8626. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8627. fi
  8628. ;;
  8629. esac
  8630. link_all_deplibs=yes
  8631. ;;
  8632. sunos4*)
  8633. if test "x$host_vendor" = xsequent; then
  8634. # Use $CC to link under sequent, because it throws in some extra .o
  8635. # files that make .init and .fini sections work.
  8636. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8637. else
  8638. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8639. fi
  8640. hardcode_libdir_flag_spec='-L$libdir'
  8641. hardcode_direct=yes
  8642. hardcode_minus_L=yes
  8643. hardcode_shlibpath_var=no
  8644. ;;
  8645. sysv4)
  8646. case $host_vendor in
  8647. sni)
  8648. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8649. hardcode_direct=yes # is this really true???
  8650. ;;
  8651. siemens)
  8652. ## LD is ld it makes a PLAMLIB
  8653. ## CC just makes a GrossModule.
  8654. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8655. reload_cmds='$CC -r -o $output$reload_objs'
  8656. hardcode_direct=no
  8657. ;;
  8658. motorola)
  8659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8660. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8661. ;;
  8662. esac
  8663. runpath_var='LD_RUN_PATH'
  8664. hardcode_shlibpath_var=no
  8665. ;;
  8666. sysv4.3*)
  8667. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8668. hardcode_shlibpath_var=no
  8669. export_dynamic_flag_spec='-Bexport'
  8670. ;;
  8671. sysv4*MP*)
  8672. if test -d /usr/nec; then
  8673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8674. hardcode_shlibpath_var=no
  8675. runpath_var=LD_RUN_PATH
  8676. hardcode_runpath_var=yes
  8677. ld_shlibs=yes
  8678. fi
  8679. ;;
  8680. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8681. no_undefined_flag='${wl}-z,text'
  8682. archive_cmds_need_lc=no
  8683. hardcode_shlibpath_var=no
  8684. runpath_var='LD_RUN_PATH'
  8685. if test "$GCC" = yes; then
  8686. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8687. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8688. else
  8689. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8690. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8691. fi
  8692. ;;
  8693. sysv5* | sco3.2v5* | sco5v6*)
  8694. # Note: We can NOT use -z defs as we might desire, because we do not
  8695. # link with -lc, and that would cause any symbols used from libc to
  8696. # always be unresolved, which means just about no library would
  8697. # ever link correctly. If we're not using GNU ld we use -z text
  8698. # though, which does catch some bad symbols but isn't as heavy-handed
  8699. # as -z defs.
  8700. no_undefined_flag='${wl}-z,text'
  8701. allow_undefined_flag='${wl}-z,nodefs'
  8702. archive_cmds_need_lc=no
  8703. hardcode_shlibpath_var=no
  8704. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8705. hardcode_libdir_separator=':'
  8706. link_all_deplibs=yes
  8707. export_dynamic_flag_spec='${wl}-Bexport'
  8708. runpath_var='LD_RUN_PATH'
  8709. if test "$GCC" = yes; then
  8710. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8711. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8712. else
  8713. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8714. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. fi
  8716. ;;
  8717. uts4*)
  8718. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8719. hardcode_libdir_flag_spec='-L$libdir'
  8720. hardcode_shlibpath_var=no
  8721. ;;
  8722. *)
  8723. ld_shlibs=no
  8724. ;;
  8725. esac
  8726. if test x$host_vendor = xsni; then
  8727. case $host in
  8728. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8729. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8730. ;;
  8731. esac
  8732. fi
  8733. fi
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8735. $as_echo "$ld_shlibs" >&6; }
  8736. test "$ld_shlibs" = no && can_build_shared=no
  8737. with_gnu_ld=$with_gnu_ld
  8738. #
  8739. # Do we need to explicitly link libc?
  8740. #
  8741. case "x$archive_cmds_need_lc" in
  8742. x|xyes)
  8743. # Assume -lc should be added
  8744. archive_cmds_need_lc=yes
  8745. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8746. case $archive_cmds in
  8747. *'~'*)
  8748. # FIXME: we may have to deal with multi-command sequences.
  8749. ;;
  8750. '$CC '*)
  8751. # Test whether the compiler implicitly links with -lc since on some
  8752. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8753. # to ld, don't add -lc before -lgcc.
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8755. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8756. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8757. $as_echo_n "(cached) " >&6
  8758. else
  8759. $RM conftest*
  8760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8762. (eval $ac_compile) 2>&5
  8763. ac_status=$?
  8764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8765. test $ac_status = 0; } 2>conftest.err; then
  8766. soname=conftest
  8767. lib=conftest
  8768. libobjs=conftest.$ac_objext
  8769. deplibs=
  8770. wl=$lt_prog_compiler_wl
  8771. pic_flag=$lt_prog_compiler_pic
  8772. compiler_flags=-v
  8773. linker_flags=-v
  8774. verstring=
  8775. output_objdir=.
  8776. libname=conftest
  8777. lt_save_allow_undefined_flag=$allow_undefined_flag
  8778. allow_undefined_flag=
  8779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8780. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8781. ac_status=$?
  8782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8783. test $ac_status = 0; }
  8784. then
  8785. lt_cv_archive_cmds_need_lc=no
  8786. else
  8787. lt_cv_archive_cmds_need_lc=yes
  8788. fi
  8789. allow_undefined_flag=$lt_save_allow_undefined_flag
  8790. else
  8791. cat conftest.err 1>&5
  8792. fi
  8793. $RM conftest*
  8794. fi
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8796. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8797. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8798. ;;
  8799. esac
  8800. fi
  8801. ;;
  8802. esac
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8804. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8805. if test "$GCC" = yes; then
  8806. case $host_os in
  8807. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8808. *) lt_awk_arg="/^libraries:/" ;;
  8809. esac
  8810. case $host_os in
  8811. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8812. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8813. esac
  8814. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8815. case $lt_search_path_spec in
  8816. *\;*)
  8817. # if the path contains ";" then we assume it to be the separator
  8818. # otherwise default to the standard path separator (i.e. ":") - it is
  8819. # assumed that no part of a normal pathname contains ";" but that should
  8820. # okay in the real world where ";" in dirpaths is itself problematic.
  8821. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8822. ;;
  8823. *)
  8824. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8825. ;;
  8826. esac
  8827. # Ok, now we have the path, separated by spaces, we can step through it
  8828. # and add multilib dir if necessary.
  8829. lt_tmp_lt_search_path_spec=
  8830. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8831. for lt_sys_path in $lt_search_path_spec; do
  8832. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8833. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8834. else
  8835. test -d "$lt_sys_path" && \
  8836. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8837. fi
  8838. done
  8839. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8840. BEGIN {RS=" "; FS="/|\n";} {
  8841. lt_foo="";
  8842. lt_count=0;
  8843. for (lt_i = NF; lt_i > 0; lt_i--) {
  8844. if ($lt_i != "" && $lt_i != ".") {
  8845. if ($lt_i == "..") {
  8846. lt_count++;
  8847. } else {
  8848. if (lt_count == 0) {
  8849. lt_foo="/" $lt_i lt_foo;
  8850. } else {
  8851. lt_count--;
  8852. }
  8853. }
  8854. }
  8855. }
  8856. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8857. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8858. }'`
  8859. # AWK program above erroneously prepends '/' to C:/dos/paths
  8860. # for these hosts.
  8861. case $host_os in
  8862. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8863. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8864. esac
  8865. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8866. else
  8867. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8868. fi
  8869. library_names_spec=
  8870. libname_spec='lib$name'
  8871. soname_spec=
  8872. shrext_cmds=".so"
  8873. postinstall_cmds=
  8874. postuninstall_cmds=
  8875. finish_cmds=
  8876. finish_eval=
  8877. shlibpath_var=
  8878. shlibpath_overrides_runpath=unknown
  8879. version_type=none
  8880. dynamic_linker="$host_os ld.so"
  8881. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8882. need_lib_prefix=unknown
  8883. hardcode_into_libs=no
  8884. # when you set need_version to no, make sure it does not cause -set_version
  8885. # flags to be left without arguments
  8886. need_version=unknown
  8887. case $host_os in
  8888. aix3*)
  8889. version_type=linux
  8890. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8891. shlibpath_var=LIBPATH
  8892. # AIX 3 has no versioning support, so we append a major version to the name.
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. ;;
  8895. aix[4-9]*)
  8896. version_type=linux
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. hardcode_into_libs=yes
  8900. if test "$host_cpu" = ia64; then
  8901. # AIX 5 supports IA64
  8902. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8903. shlibpath_var=LD_LIBRARY_PATH
  8904. else
  8905. # With GCC up to 2.95.x, collect2 would create an import file
  8906. # for dependence libraries. The import file would start with
  8907. # the line `#! .'. This would cause the generated library to
  8908. # depend on `.', always an invalid library. This was fixed in
  8909. # development snapshots of GCC prior to 3.0.
  8910. case $host_os in
  8911. aix4 | aix4.[01] | aix4.[01].*)
  8912. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8913. echo ' yes '
  8914. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8915. :
  8916. else
  8917. can_build_shared=no
  8918. fi
  8919. ;;
  8920. esac
  8921. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8922. # soname into executable. Probably we can add versioning support to
  8923. # collect2, so additional links can be useful in future.
  8924. if test "$aix_use_runtimelinking" = yes; then
  8925. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8926. # instead of lib<name>.a to let people know that these are not
  8927. # typical AIX shared libraries.
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. else
  8930. # We preserve .a as extension for shared libraries through AIX4.2
  8931. # and later when we are not doing run time linking.
  8932. library_names_spec='${libname}${release}.a $libname.a'
  8933. soname_spec='${libname}${release}${shared_ext}$major'
  8934. fi
  8935. shlibpath_var=LIBPATH
  8936. fi
  8937. ;;
  8938. amigaos*)
  8939. case $host_cpu in
  8940. powerpc)
  8941. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8942. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8944. ;;
  8945. m68k)
  8946. library_names_spec='$libname.ixlibrary $libname.a'
  8947. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8948. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8949. ;;
  8950. esac
  8951. ;;
  8952. beos*)
  8953. library_names_spec='${libname}${shared_ext}'
  8954. dynamic_linker="$host_os ld.so"
  8955. shlibpath_var=LIBRARY_PATH
  8956. ;;
  8957. bsdi[45]*)
  8958. version_type=linux
  8959. need_version=no
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8963. shlibpath_var=LD_LIBRARY_PATH
  8964. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8965. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8966. # the default ld.so.conf also contains /usr/contrib/lib and
  8967. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8968. # libtool to hard-code these into programs
  8969. ;;
  8970. cygwin* | mingw* | pw32* | cegcc*)
  8971. version_type=windows
  8972. shrext_cmds=".dll"
  8973. need_version=no
  8974. need_lib_prefix=no
  8975. case $GCC,$host_os in
  8976. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8977. library_names_spec='$libname.dll.a'
  8978. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8979. postinstall_cmds='base_file=`basename \${file}`~
  8980. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8981. dldir=$destdir/`dirname \$dlpath`~
  8982. test -d \$dldir || mkdir -p \$dldir~
  8983. $install_prog $dir/$dlname \$dldir/$dlname~
  8984. chmod a+x \$dldir/$dlname~
  8985. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8986. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8987. fi'
  8988. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8989. dlpath=$dir/\$dldll~
  8990. $RM \$dlpath'
  8991. shlibpath_overrides_runpath=yes
  8992. case $host_os in
  8993. cygwin*)
  8994. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8995. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8996. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8997. ;;
  8998. mingw* | cegcc*)
  8999. # MinGW DLLs use traditional 'lib' prefix
  9000. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9001. ;;
  9002. pw32*)
  9003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9004. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9005. ;;
  9006. esac
  9007. ;;
  9008. *)
  9009. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9010. ;;
  9011. esac
  9012. dynamic_linker='Win32 ld.exe'
  9013. # FIXME: first we should search . and the directory the executable is in
  9014. shlibpath_var=PATH
  9015. ;;
  9016. darwin* | rhapsody*)
  9017. dynamic_linker="$host_os dyld"
  9018. version_type=darwin
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9022. soname_spec='${libname}${release}${major}$shared_ext'
  9023. shlibpath_overrides_runpath=yes
  9024. shlibpath_var=DYLD_LIBRARY_PATH
  9025. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9026. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9027. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9028. ;;
  9029. dgux*)
  9030. version_type=linux
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9034. soname_spec='${libname}${release}${shared_ext}$major'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. ;;
  9037. freebsd1*)
  9038. dynamic_linker=no
  9039. ;;
  9040. freebsd* | dragonfly*)
  9041. # DragonFly does not have aout. When/if they implement a new
  9042. # versioning mechanism, adjust this.
  9043. if test -x /usr/bin/objformat; then
  9044. objformat=`/usr/bin/objformat`
  9045. else
  9046. case $host_os in
  9047. freebsd[123]*) objformat=aout ;;
  9048. *) objformat=elf ;;
  9049. esac
  9050. fi
  9051. version_type=freebsd-$objformat
  9052. case $version_type in
  9053. freebsd-elf*)
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9055. need_version=no
  9056. need_lib_prefix=no
  9057. ;;
  9058. freebsd-*)
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9060. need_version=yes
  9061. ;;
  9062. esac
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. case $host_os in
  9065. freebsd2*)
  9066. shlibpath_overrides_runpath=yes
  9067. ;;
  9068. freebsd3.[01]* | freebsdelf3.[01]*)
  9069. shlibpath_overrides_runpath=yes
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9073. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. *) # from 4.6 on, and DragonFly
  9078. shlibpath_overrides_runpath=yes
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. esac
  9082. ;;
  9083. gnu*)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. hardcode_into_libs=yes
  9091. ;;
  9092. haiku*)
  9093. version_type=linux
  9094. need_lib_prefix=no
  9095. need_version=no
  9096. dynamic_linker="$host_os runtime_loader"
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. shlibpath_var=LIBRARY_PATH
  9100. shlibpath_overrides_runpath=yes
  9101. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9102. hardcode_into_libs=yes
  9103. ;;
  9104. hpux9* | hpux10* | hpux11*)
  9105. # Give a soname corresponding to the major version so that dld.sl refuses to
  9106. # link against other versions.
  9107. version_type=sunos
  9108. need_lib_prefix=no
  9109. need_version=no
  9110. case $host_cpu in
  9111. ia64*)
  9112. shrext_cmds='.so'
  9113. hardcode_into_libs=yes
  9114. dynamic_linker="$host_os dld.so"
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. if test "X$HPUX_IA64_MODE" = X32; then
  9120. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9121. else
  9122. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9123. fi
  9124. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9125. ;;
  9126. hppa*64*)
  9127. shrext_cmds='.sl'
  9128. hardcode_into_libs=yes
  9129. dynamic_linker="$host_os dld.sl"
  9130. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9131. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9133. soname_spec='${libname}${release}${shared_ext}$major'
  9134. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9135. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9136. ;;
  9137. *)
  9138. shrext_cmds='.sl'
  9139. dynamic_linker="$host_os dld.sl"
  9140. shlibpath_var=SHLIB_PATH
  9141. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. ;;
  9145. esac
  9146. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9147. postinstall_cmds='chmod 555 $lib'
  9148. # or fails outright, so override atomically:
  9149. install_override_mode=555
  9150. ;;
  9151. interix[3-9]*)
  9152. version_type=linux
  9153. need_lib_prefix=no
  9154. need_version=no
  9155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9156. soname_spec='${libname}${release}${shared_ext}$major'
  9157. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. shlibpath_overrides_runpath=no
  9160. hardcode_into_libs=yes
  9161. ;;
  9162. irix5* | irix6* | nonstopux*)
  9163. case $host_os in
  9164. nonstopux*) version_type=nonstopux ;;
  9165. *)
  9166. if test "$lt_cv_prog_gnu_ld" = yes; then
  9167. version_type=linux
  9168. else
  9169. version_type=irix
  9170. fi ;;
  9171. esac
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9176. case $host_os in
  9177. irix5* | nonstopux*)
  9178. libsuff= shlibsuff=
  9179. ;;
  9180. *)
  9181. case $LD in # libtool.m4 will add one of these switches to LD
  9182. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9183. libsuff= shlibsuff= libmagic=32-bit;;
  9184. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9185. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9186. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9187. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9188. *) libsuff= shlibsuff= libmagic=never-match;;
  9189. esac
  9190. ;;
  9191. esac
  9192. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9193. shlibpath_overrides_runpath=no
  9194. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9195. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9196. hardcode_into_libs=yes
  9197. ;;
  9198. # No shared lib support for Linux oldld, aout, or coff.
  9199. linux*oldld* | linux*aout* | linux*coff*)
  9200. dynamic_linker=no
  9201. ;;
  9202. # This must be Linux ELF.
  9203. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9204. version_type=linux
  9205. need_lib_prefix=no
  9206. need_version=no
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9208. soname_spec='${libname}${release}${shared_ext}$major'
  9209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. shlibpath_overrides_runpath=no
  9212. # Some binutils ld are patched to set DT_RUNPATH
  9213. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9214. $as_echo_n "(cached) " >&6
  9215. else
  9216. lt_cv_shlibpath_overrides_runpath=no
  9217. save_LDFLAGS=$LDFLAGS
  9218. save_libdir=$libdir
  9219. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9220. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9221. if test x$gcc_no_link = xyes; then
  9222. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9223. fi
  9224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9225. /* end confdefs.h. */
  9226. int
  9227. main ()
  9228. {
  9229. ;
  9230. return 0;
  9231. }
  9232. _ACEOF
  9233. if ac_fn_c_try_link "$LINENO"; then :
  9234. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9235. lt_cv_shlibpath_overrides_runpath=yes
  9236. fi
  9237. fi
  9238. rm -f core conftest.err conftest.$ac_objext \
  9239. conftest$ac_exeext conftest.$ac_ext
  9240. LDFLAGS=$save_LDFLAGS
  9241. libdir=$save_libdir
  9242. fi
  9243. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9244. # This implies no fast_install, which is unacceptable.
  9245. # Some rework will be needed to allow for fast_install
  9246. # before this can be enabled.
  9247. hardcode_into_libs=yes
  9248. # Append ld.so.conf contents to the search path
  9249. if test -f /etc/ld.so.conf; then
  9250. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9251. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9252. fi
  9253. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9254. # powerpc, because MkLinux only supported shared libraries with the
  9255. # GNU dynamic linker. Since this was broken with cross compilers,
  9256. # most powerpc-linux boxes support dynamic linking these days and
  9257. # people can always --disable-shared, the test was removed, and we
  9258. # assume the GNU/Linux dynamic linker is in use.
  9259. dynamic_linker='GNU/Linux ld.so'
  9260. ;;
  9261. netbsd*)
  9262. version_type=sunos
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9267. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9268. dynamic_linker='NetBSD (a.out) ld.so'
  9269. else
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. dynamic_linker='NetBSD ld.elf_so'
  9273. fi
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=yes
  9276. hardcode_into_libs=yes
  9277. ;;
  9278. newsos6)
  9279. version_type=linux
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=yes
  9283. ;;
  9284. *nto* | *qnx*)
  9285. version_type=qnx
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. shlibpath_overrides_runpath=no
  9292. hardcode_into_libs=yes
  9293. dynamic_linker='ldqnx.so'
  9294. ;;
  9295. openbsd*)
  9296. version_type=sunos
  9297. sys_lib_dlsearch_path_spec="/usr/lib"
  9298. need_lib_prefix=no
  9299. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9300. case $host_os in
  9301. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9302. *) need_version=no ;;
  9303. esac
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9305. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9306. shlibpath_var=LD_LIBRARY_PATH
  9307. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9308. case $host_os in
  9309. openbsd2.[89] | openbsd2.[89].*)
  9310. shlibpath_overrides_runpath=no
  9311. ;;
  9312. *)
  9313. shlibpath_overrides_runpath=yes
  9314. ;;
  9315. esac
  9316. else
  9317. shlibpath_overrides_runpath=yes
  9318. fi
  9319. ;;
  9320. os2*)
  9321. libname_spec='$name'
  9322. shrext_cmds=".dll"
  9323. need_lib_prefix=no
  9324. library_names_spec='$libname${shared_ext} $libname.a'
  9325. dynamic_linker='OS/2 ld.exe'
  9326. shlibpath_var=LIBPATH
  9327. ;;
  9328. osf3* | osf4* | osf5*)
  9329. version_type=osf
  9330. need_lib_prefix=no
  9331. need_version=no
  9332. soname_spec='${libname}${release}${shared_ext}$major'
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9336. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9337. ;;
  9338. rdos*)
  9339. dynamic_linker=no
  9340. ;;
  9341. solaris*)
  9342. version_type=linux
  9343. need_lib_prefix=no
  9344. need_version=no
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. shlibpath_overrides_runpath=yes
  9349. hardcode_into_libs=yes
  9350. # ldd complains unless libraries are executable
  9351. postinstall_cmds='chmod +x $lib'
  9352. ;;
  9353. sunos4*)
  9354. version_type=sunos
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9356. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. shlibpath_overrides_runpath=yes
  9359. if test "$with_gnu_ld" = yes; then
  9360. need_lib_prefix=no
  9361. fi
  9362. need_version=yes
  9363. ;;
  9364. sysv4 | sysv4.3*)
  9365. version_type=linux
  9366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9367. soname_spec='${libname}${release}${shared_ext}$major'
  9368. shlibpath_var=LD_LIBRARY_PATH
  9369. case $host_vendor in
  9370. sni)
  9371. shlibpath_overrides_runpath=no
  9372. need_lib_prefix=no
  9373. runpath_var=LD_RUN_PATH
  9374. ;;
  9375. siemens)
  9376. need_lib_prefix=no
  9377. ;;
  9378. motorola)
  9379. need_lib_prefix=no
  9380. need_version=no
  9381. shlibpath_overrides_runpath=no
  9382. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9383. ;;
  9384. esac
  9385. ;;
  9386. sysv4*MP*)
  9387. if test -d /usr/nec ;then
  9388. version_type=linux
  9389. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9390. soname_spec='$libname${shared_ext}.$major'
  9391. shlibpath_var=LD_LIBRARY_PATH
  9392. fi
  9393. ;;
  9394. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9395. version_type=freebsd-elf
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. shlibpath_overrides_runpath=yes
  9402. hardcode_into_libs=yes
  9403. if test "$with_gnu_ld" = yes; then
  9404. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9405. else
  9406. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9407. case $host_os in
  9408. sco3.2v5*)
  9409. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9410. ;;
  9411. esac
  9412. fi
  9413. sys_lib_dlsearch_path_spec='/usr/lib'
  9414. ;;
  9415. tpf*)
  9416. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9417. version_type=linux
  9418. need_lib_prefix=no
  9419. need_version=no
  9420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9421. shlibpath_var=LD_LIBRARY_PATH
  9422. shlibpath_overrides_runpath=no
  9423. hardcode_into_libs=yes
  9424. ;;
  9425. uts4*)
  9426. version_type=linux
  9427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9428. soname_spec='${libname}${release}${shared_ext}$major'
  9429. shlibpath_var=LD_LIBRARY_PATH
  9430. ;;
  9431. *)
  9432. dynamic_linker=no
  9433. ;;
  9434. esac
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9436. $as_echo "$dynamic_linker" >&6; }
  9437. test "$dynamic_linker" = no && can_build_shared=no
  9438. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9439. if test "$GCC" = yes; then
  9440. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9441. fi
  9442. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9443. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9444. fi
  9445. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9446. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9449. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9450. hardcode_action=
  9451. if test -n "$hardcode_libdir_flag_spec" ||
  9452. test -n "$runpath_var" ||
  9453. test "X$hardcode_automatic" = "Xyes" ; then
  9454. # We can hardcode non-existent directories.
  9455. if test "$hardcode_direct" != no &&
  9456. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9457. # have to relink, otherwise we might link with an installed library
  9458. # when we should be linking with a yet-to-be-installed one
  9459. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9460. test "$hardcode_minus_L" != no; then
  9461. # Linking always hardcodes the temporary library directory.
  9462. hardcode_action=relink
  9463. else
  9464. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9465. hardcode_action=immediate
  9466. fi
  9467. else
  9468. # We cannot hardcode anything, or else we can only hardcode existing
  9469. # directories.
  9470. hardcode_action=unsupported
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9473. $as_echo "$hardcode_action" >&6; }
  9474. if test "$hardcode_action" = relink ||
  9475. test "$inherit_rpath" = yes; then
  9476. # Fast installation is not supported
  9477. enable_fast_install=no
  9478. elif test "$shlibpath_overrides_runpath" = yes ||
  9479. test "$enable_shared" = no; then
  9480. # Fast installation is not necessary
  9481. enable_fast_install=needless
  9482. fi
  9483. if test "x$enable_dlopen" != xyes; then
  9484. enable_dlopen=unknown
  9485. enable_dlopen_self=unknown
  9486. enable_dlopen_self_static=unknown
  9487. else
  9488. lt_cv_dlopen=no
  9489. lt_cv_dlopen_libs=
  9490. case $host_os in
  9491. beos*)
  9492. lt_cv_dlopen="load_add_on"
  9493. lt_cv_dlopen_libs=
  9494. lt_cv_dlopen_self=yes
  9495. ;;
  9496. mingw* | pw32* | cegcc*)
  9497. lt_cv_dlopen="LoadLibrary"
  9498. lt_cv_dlopen_libs=
  9499. ;;
  9500. cygwin*)
  9501. lt_cv_dlopen="dlopen"
  9502. lt_cv_dlopen_libs=
  9503. ;;
  9504. darwin*)
  9505. # if libdl is installed we need to link against it
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9507. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9508. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldl $LIBS"
  9513. if test x$gcc_no_link = xyes; then
  9514. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9515. fi
  9516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9517. /* end confdefs.h. */
  9518. /* Override any GCC internal prototype to avoid an error.
  9519. Use char because int might match the return type of a GCC
  9520. builtin and then its argument prototype would still apply. */
  9521. #ifdef __cplusplus
  9522. extern "C"
  9523. #endif
  9524. char dlopen ();
  9525. int
  9526. main ()
  9527. {
  9528. return dlopen ();
  9529. ;
  9530. return 0;
  9531. }
  9532. _ACEOF
  9533. if ac_fn_c_try_link "$LINENO"; then :
  9534. ac_cv_lib_dl_dlopen=yes
  9535. else
  9536. ac_cv_lib_dl_dlopen=no
  9537. fi
  9538. rm -f core conftest.err conftest.$ac_objext \
  9539. conftest$ac_exeext conftest.$ac_ext
  9540. LIBS=$ac_check_lib_save_LIBS
  9541. fi
  9542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9543. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9544. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9545. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9546. else
  9547. lt_cv_dlopen="dyld"
  9548. lt_cv_dlopen_libs=
  9549. lt_cv_dlopen_self=yes
  9550. fi
  9551. ;;
  9552. *)
  9553. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9554. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9555. lt_cv_dlopen="shl_load"
  9556. else
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9558. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9559. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9560. $as_echo_n "(cached) " >&6
  9561. else
  9562. ac_check_lib_save_LIBS=$LIBS
  9563. LIBS="-ldld $LIBS"
  9564. if test x$gcc_no_link = xyes; then
  9565. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9566. fi
  9567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9568. /* end confdefs.h. */
  9569. /* Override any GCC internal prototype to avoid an error.
  9570. Use char because int might match the return type of a GCC
  9571. builtin and then its argument prototype would still apply. */
  9572. #ifdef __cplusplus
  9573. extern "C"
  9574. #endif
  9575. char shl_load ();
  9576. int
  9577. main ()
  9578. {
  9579. return shl_load ();
  9580. ;
  9581. return 0;
  9582. }
  9583. _ACEOF
  9584. if ac_fn_c_try_link "$LINENO"; then :
  9585. ac_cv_lib_dld_shl_load=yes
  9586. else
  9587. ac_cv_lib_dld_shl_load=no
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. LIBS=$ac_check_lib_save_LIBS
  9592. fi
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9594. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9595. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9596. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9597. else
  9598. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9599. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9600. lt_cv_dlopen="dlopen"
  9601. else
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9603. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9604. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9605. $as_echo_n "(cached) " >&6
  9606. else
  9607. ac_check_lib_save_LIBS=$LIBS
  9608. LIBS="-ldl $LIBS"
  9609. if test x$gcc_no_link = xyes; then
  9610. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9611. fi
  9612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9613. /* end confdefs.h. */
  9614. /* Override any GCC internal prototype to avoid an error.
  9615. Use char because int might match the return type of a GCC
  9616. builtin and then its argument prototype would still apply. */
  9617. #ifdef __cplusplus
  9618. extern "C"
  9619. #endif
  9620. char dlopen ();
  9621. int
  9622. main ()
  9623. {
  9624. return dlopen ();
  9625. ;
  9626. return 0;
  9627. }
  9628. _ACEOF
  9629. if ac_fn_c_try_link "$LINENO"; then :
  9630. ac_cv_lib_dl_dlopen=yes
  9631. else
  9632. ac_cv_lib_dl_dlopen=no
  9633. fi
  9634. rm -f core conftest.err conftest.$ac_objext \
  9635. conftest$ac_exeext conftest.$ac_ext
  9636. LIBS=$ac_check_lib_save_LIBS
  9637. fi
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9639. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9640. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9641. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9642. else
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9644. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9645. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9646. $as_echo_n "(cached) " >&6
  9647. else
  9648. ac_check_lib_save_LIBS=$LIBS
  9649. LIBS="-lsvld $LIBS"
  9650. if test x$gcc_no_link = xyes; then
  9651. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9652. fi
  9653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9654. /* end confdefs.h. */
  9655. /* Override any GCC internal prototype to avoid an error.
  9656. Use char because int might match the return type of a GCC
  9657. builtin and then its argument prototype would still apply. */
  9658. #ifdef __cplusplus
  9659. extern "C"
  9660. #endif
  9661. char dlopen ();
  9662. int
  9663. main ()
  9664. {
  9665. return dlopen ();
  9666. ;
  9667. return 0;
  9668. }
  9669. _ACEOF
  9670. if ac_fn_c_try_link "$LINENO"; then :
  9671. ac_cv_lib_svld_dlopen=yes
  9672. else
  9673. ac_cv_lib_svld_dlopen=no
  9674. fi
  9675. rm -f core conftest.err conftest.$ac_objext \
  9676. conftest$ac_exeext conftest.$ac_ext
  9677. LIBS=$ac_check_lib_save_LIBS
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9680. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9681. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9682. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9683. else
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9685. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9686. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9687. $as_echo_n "(cached) " >&6
  9688. else
  9689. ac_check_lib_save_LIBS=$LIBS
  9690. LIBS="-ldld $LIBS"
  9691. if test x$gcc_no_link = xyes; then
  9692. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9693. fi
  9694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9695. /* end confdefs.h. */
  9696. /* Override any GCC internal prototype to avoid an error.
  9697. Use char because int might match the return type of a GCC
  9698. builtin and then its argument prototype would still apply. */
  9699. #ifdef __cplusplus
  9700. extern "C"
  9701. #endif
  9702. char dld_link ();
  9703. int
  9704. main ()
  9705. {
  9706. return dld_link ();
  9707. ;
  9708. return 0;
  9709. }
  9710. _ACEOF
  9711. if ac_fn_c_try_link "$LINENO"; then :
  9712. ac_cv_lib_dld_dld_link=yes
  9713. else
  9714. ac_cv_lib_dld_dld_link=no
  9715. fi
  9716. rm -f core conftest.err conftest.$ac_objext \
  9717. conftest$ac_exeext conftest.$ac_ext
  9718. LIBS=$ac_check_lib_save_LIBS
  9719. fi
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9721. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9722. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9723. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9724. fi
  9725. fi
  9726. fi
  9727. fi
  9728. fi
  9729. fi
  9730. ;;
  9731. esac
  9732. if test "x$lt_cv_dlopen" != xno; then
  9733. enable_dlopen=yes
  9734. else
  9735. enable_dlopen=no
  9736. fi
  9737. case $lt_cv_dlopen in
  9738. dlopen)
  9739. save_CPPFLAGS="$CPPFLAGS"
  9740. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9741. save_LDFLAGS="$LDFLAGS"
  9742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9743. save_LIBS="$LIBS"
  9744. LIBS="$lt_cv_dlopen_libs $LIBS"
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9746. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9747. if test "${lt_cv_dlopen_self+set}" = set; then :
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. if test "$cross_compiling" = yes; then :
  9751. lt_cv_dlopen_self=cross
  9752. else
  9753. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9754. lt_status=$lt_dlunknown
  9755. cat > conftest.$ac_ext <<_LT_EOF
  9756. #line 11331 "configure"
  9757. #include "confdefs.h"
  9758. #if HAVE_DLFCN_H
  9759. #include <dlfcn.h>
  9760. #endif
  9761. #include <stdio.h>
  9762. #ifdef RTLD_GLOBAL
  9763. # define LT_DLGLOBAL RTLD_GLOBAL
  9764. #else
  9765. # ifdef DL_GLOBAL
  9766. # define LT_DLGLOBAL DL_GLOBAL
  9767. # else
  9768. # define LT_DLGLOBAL 0
  9769. # endif
  9770. #endif
  9771. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9772. find out it does not work in some platform. */
  9773. #ifndef LT_DLLAZY_OR_NOW
  9774. # ifdef RTLD_LAZY
  9775. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9776. # else
  9777. # ifdef DL_LAZY
  9778. # define LT_DLLAZY_OR_NOW DL_LAZY
  9779. # else
  9780. # ifdef RTLD_NOW
  9781. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9782. # else
  9783. # ifdef DL_NOW
  9784. # define LT_DLLAZY_OR_NOW DL_NOW
  9785. # else
  9786. # define LT_DLLAZY_OR_NOW 0
  9787. # endif
  9788. # endif
  9789. # endif
  9790. # endif
  9791. #endif
  9792. /* When -fvisbility=hidden is used, assume the code has been annotated
  9793. correspondingly for the symbols needed. */
  9794. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9795. void fnord () __attribute__((visibility("default")));
  9796. #endif
  9797. void fnord () { int i=42; }
  9798. int main ()
  9799. {
  9800. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9801. int status = $lt_dlunknown;
  9802. if (self)
  9803. {
  9804. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9805. else
  9806. {
  9807. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9808. else puts (dlerror ());
  9809. }
  9810. /* dlclose (self); */
  9811. }
  9812. else
  9813. puts (dlerror ());
  9814. return status;
  9815. }
  9816. _LT_EOF
  9817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9818. (eval $ac_link) 2>&5
  9819. ac_status=$?
  9820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9821. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9822. (./conftest; exit; ) >&5 2>/dev/null
  9823. lt_status=$?
  9824. case x$lt_status in
  9825. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9826. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9827. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9828. esac
  9829. else :
  9830. # compilation failed
  9831. lt_cv_dlopen_self=no
  9832. fi
  9833. fi
  9834. rm -fr conftest*
  9835. fi
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9837. $as_echo "$lt_cv_dlopen_self" >&6; }
  9838. if test "x$lt_cv_dlopen_self" = xyes; then
  9839. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9841. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9842. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9843. $as_echo_n "(cached) " >&6
  9844. else
  9845. if test "$cross_compiling" = yes; then :
  9846. lt_cv_dlopen_self_static=cross
  9847. else
  9848. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9849. lt_status=$lt_dlunknown
  9850. cat > conftest.$ac_ext <<_LT_EOF
  9851. #line 11437 "configure"
  9852. #include "confdefs.h"
  9853. #if HAVE_DLFCN_H
  9854. #include <dlfcn.h>
  9855. #endif
  9856. #include <stdio.h>
  9857. #ifdef RTLD_GLOBAL
  9858. # define LT_DLGLOBAL RTLD_GLOBAL
  9859. #else
  9860. # ifdef DL_GLOBAL
  9861. # define LT_DLGLOBAL DL_GLOBAL
  9862. # else
  9863. # define LT_DLGLOBAL 0
  9864. # endif
  9865. #endif
  9866. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9867. find out it does not work in some platform. */
  9868. #ifndef LT_DLLAZY_OR_NOW
  9869. # ifdef RTLD_LAZY
  9870. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9871. # else
  9872. # ifdef DL_LAZY
  9873. # define LT_DLLAZY_OR_NOW DL_LAZY
  9874. # else
  9875. # ifdef RTLD_NOW
  9876. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9877. # else
  9878. # ifdef DL_NOW
  9879. # define LT_DLLAZY_OR_NOW DL_NOW
  9880. # else
  9881. # define LT_DLLAZY_OR_NOW 0
  9882. # endif
  9883. # endif
  9884. # endif
  9885. # endif
  9886. #endif
  9887. /* When -fvisbility=hidden is used, assume the code has been annotated
  9888. correspondingly for the symbols needed. */
  9889. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9890. void fnord () __attribute__((visibility("default")));
  9891. #endif
  9892. void fnord () { int i=42; }
  9893. int main ()
  9894. {
  9895. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9896. int status = $lt_dlunknown;
  9897. if (self)
  9898. {
  9899. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9900. else
  9901. {
  9902. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9903. else puts (dlerror ());
  9904. }
  9905. /* dlclose (self); */
  9906. }
  9907. else
  9908. puts (dlerror ());
  9909. return status;
  9910. }
  9911. _LT_EOF
  9912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9913. (eval $ac_link) 2>&5
  9914. ac_status=$?
  9915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9916. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9917. (./conftest; exit; ) >&5 2>/dev/null
  9918. lt_status=$?
  9919. case x$lt_status in
  9920. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9921. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9922. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9923. esac
  9924. else :
  9925. # compilation failed
  9926. lt_cv_dlopen_self_static=no
  9927. fi
  9928. fi
  9929. rm -fr conftest*
  9930. fi
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9932. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9933. fi
  9934. CPPFLAGS="$save_CPPFLAGS"
  9935. LDFLAGS="$save_LDFLAGS"
  9936. LIBS="$save_LIBS"
  9937. ;;
  9938. esac
  9939. case $lt_cv_dlopen_self in
  9940. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9941. *) enable_dlopen_self=unknown ;;
  9942. esac
  9943. case $lt_cv_dlopen_self_static in
  9944. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9945. *) enable_dlopen_self_static=unknown ;;
  9946. esac
  9947. fi
  9948. striplib=
  9949. old_striplib=
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9951. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9952. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9953. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9954. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9956. $as_echo "yes" >&6; }
  9957. else
  9958. # FIXME - insert some real tests, host_os isn't really good enough
  9959. case $host_os in
  9960. darwin*)
  9961. if test -n "$STRIP" ; then
  9962. striplib="$STRIP -x"
  9963. old_striplib="$STRIP -S"
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9965. $as_echo "yes" >&6; }
  9966. else
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9968. $as_echo "no" >&6; }
  9969. fi
  9970. ;;
  9971. *)
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9973. $as_echo "no" >&6; }
  9974. ;;
  9975. esac
  9976. fi
  9977. # Report which library types will actually be built
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9979. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9981. $as_echo "$can_build_shared" >&6; }
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9983. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9984. test "$can_build_shared" = "no" && enable_shared=no
  9985. # On AIX, shared libraries and static libraries use the same namespace, and
  9986. # are all built from PIC.
  9987. case $host_os in
  9988. aix3*)
  9989. test "$enable_shared" = yes && enable_static=no
  9990. if test -n "$RANLIB"; then
  9991. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9992. postinstall_cmds='$RANLIB $lib'
  9993. fi
  9994. ;;
  9995. aix[4-9]*)
  9996. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9997. test "$enable_shared" = yes && enable_static=no
  9998. fi
  9999. ;;
  10000. esac
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10002. $as_echo "$enable_shared" >&6; }
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10004. $as_echo_n "checking whether to build static libraries... " >&6; }
  10005. # Make sure either enable_shared or enable_static is yes.
  10006. test "$enable_shared" = yes || enable_static=yes
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10008. $as_echo "$enable_static" >&6; }
  10009. fi
  10010. ac_ext=c
  10011. ac_cpp='$CPP $CPPFLAGS'
  10012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10015. CC="$lt_save_CC"
  10016. ac_config_commands="$ac_config_commands libtool"
  10017. # Only expand once:
  10018. #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
  10019. # We need gfortran to compile parts of the library
  10020. #AC_PROG_FC(gfortran)
  10021. FC="$GFORTRAN"
  10022. ac_ext=${ac_fc_srcext-f}
  10023. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10024. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10025. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10026. if test -n "$ac_tool_prefix"; then
  10027. for ac_prog in gfortran
  10028. do
  10029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10032. $as_echo_n "checking for $ac_word... " >&6; }
  10033. if test "${ac_cv_prog_FC+set}" = set; then :
  10034. $as_echo_n "(cached) " >&6
  10035. else
  10036. if test -n "$FC"; then
  10037. ac_cv_prog_FC="$FC" # Let the user override the test.
  10038. else
  10039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10040. for as_dir in $PATH
  10041. do
  10042. IFS=$as_save_IFS
  10043. test -z "$as_dir" && as_dir=.
  10044. for ac_exec_ext in '' $ac_executable_extensions; do
  10045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10046. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  10047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10048. break 2
  10049. fi
  10050. done
  10051. done
  10052. IFS=$as_save_IFS
  10053. fi
  10054. fi
  10055. FC=$ac_cv_prog_FC
  10056. if test -n "$FC"; then
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
  10058. $as_echo "$FC" >&6; }
  10059. else
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10061. $as_echo "no" >&6; }
  10062. fi
  10063. test -n "$FC" && break
  10064. done
  10065. fi
  10066. if test -z "$FC"; then
  10067. ac_ct_FC=$FC
  10068. for ac_prog in gfortran
  10069. do
  10070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10071. set dummy $ac_prog; ac_word=$2
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10073. $as_echo_n "checking for $ac_word... " >&6; }
  10074. if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. if test -n "$ac_ct_FC"; then
  10078. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  10079. else
  10080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10081. for as_dir in $PATH
  10082. do
  10083. IFS=$as_save_IFS
  10084. test -z "$as_dir" && as_dir=.
  10085. for ac_exec_ext in '' $ac_executable_extensions; do
  10086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10087. ac_cv_prog_ac_ct_FC="$ac_prog"
  10088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10089. break 2
  10090. fi
  10091. done
  10092. done
  10093. IFS=$as_save_IFS
  10094. fi
  10095. fi
  10096. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  10097. if test -n "$ac_ct_FC"; then
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
  10099. $as_echo "$ac_ct_FC" >&6; }
  10100. else
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10102. $as_echo "no" >&6; }
  10103. fi
  10104. test -n "$ac_ct_FC" && break
  10105. done
  10106. if test "x$ac_ct_FC" = x; then
  10107. FC=""
  10108. else
  10109. case $cross_compiling:$ac_tool_warned in
  10110. yes:)
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10113. ac_tool_warned=yes ;;
  10114. esac
  10115. FC=$ac_ct_FC
  10116. fi
  10117. fi
  10118. # Provide some information about the compiler.
  10119. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
  10120. set X $ac_compile
  10121. ac_compiler=$2
  10122. for ac_option in --version -v -V -qversion; do
  10123. { { ac_try="$ac_compiler $ac_option >&5"
  10124. case "(($ac_try" in
  10125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10126. *) ac_try_echo=$ac_try;;
  10127. esac
  10128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10129. $as_echo "$ac_try_echo"; } >&5
  10130. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10131. ac_status=$?
  10132. if test -s conftest.err; then
  10133. sed '10a\
  10134. ... rest of stderr output deleted ...
  10135. 10q' conftest.err >conftest.er1
  10136. cat conftest.er1 >&5
  10137. rm -f conftest.er1 conftest.err
  10138. fi
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10140. test $ac_status = 0; }
  10141. done
  10142. rm -f a.out
  10143. # If we don't use `.F' as extension, the preprocessor is not run on the
  10144. # input file. (Note that this only needs to work for GNU compilers.)
  10145. ac_save_ext=$ac_ext
  10146. ac_ext=F
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
  10148. $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
  10149. if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  10150. $as_echo_n "(cached) " >&6
  10151. else
  10152. cat > conftest.$ac_ext <<_ACEOF
  10153. program main
  10154. #ifndef __GNUC__
  10155. choke me
  10156. #endif
  10157. end
  10158. _ACEOF
  10159. if ac_fn_fc_try_compile "$LINENO"; then :
  10160. ac_compiler_gnu=yes
  10161. else
  10162. ac_compiler_gnu=no
  10163. fi
  10164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10165. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  10166. fi
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
  10168. $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
  10169. ac_ext=$ac_save_ext
  10170. ac_test_FCFLAGS=${FCFLAGS+set}
  10171. ac_save_FCFLAGS=$FCFLAGS
  10172. FCFLAGS=
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
  10174. $as_echo_n "checking whether $FC accepts -g... " >&6; }
  10175. if test "${ac_cv_prog_fc_g+set}" = set; then :
  10176. $as_echo_n "(cached) " >&6
  10177. else
  10178. FCFLAGS=-g
  10179. cat > conftest.$ac_ext <<_ACEOF
  10180. program main
  10181. end
  10182. _ACEOF
  10183. if ac_fn_fc_try_compile "$LINENO"; then :
  10184. ac_cv_prog_fc_g=yes
  10185. else
  10186. ac_cv_prog_fc_g=no
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10189. fi
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
  10191. $as_echo "$ac_cv_prog_fc_g" >&6; }
  10192. if test "$ac_test_FCFLAGS" = set; then
  10193. FCFLAGS=$ac_save_FCFLAGS
  10194. elif test $ac_cv_prog_fc_g = yes; then
  10195. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10196. FCFLAGS="-g -O2"
  10197. else
  10198. FCFLAGS="-g"
  10199. fi
  10200. else
  10201. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10202. FCFLAGS="-O2"
  10203. else
  10204. FCFLAGS=
  10205. fi
  10206. fi
  10207. ac_ext=c
  10208. ac_cpp='$CPP $CPPFLAGS'
  10209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10212. ac_ext=${ac_fc_srcext-f}
  10213. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10214. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10215. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10216. if test -z "$FC" || test "X$FC" = "Xno"; then
  10217. _lt_disable_FC=yes
  10218. fi
  10219. archive_cmds_need_lc_FC=no
  10220. allow_undefined_flag_FC=
  10221. always_export_symbols_FC=no
  10222. archive_expsym_cmds_FC=
  10223. export_dynamic_flag_spec_FC=
  10224. hardcode_direct_FC=no
  10225. hardcode_direct_absolute_FC=no
  10226. hardcode_libdir_flag_spec_FC=
  10227. hardcode_libdir_flag_spec_ld_FC=
  10228. hardcode_libdir_separator_FC=
  10229. hardcode_minus_L_FC=no
  10230. hardcode_automatic_FC=no
  10231. inherit_rpath_FC=no
  10232. module_cmds_FC=
  10233. module_expsym_cmds_FC=
  10234. link_all_deplibs_FC=unknown
  10235. old_archive_cmds_FC=$old_archive_cmds
  10236. reload_flag_FC=$reload_flag
  10237. reload_cmds_FC=$reload_cmds
  10238. no_undefined_flag_FC=
  10239. whole_archive_flag_spec_FC=
  10240. enable_shared_with_static_runtimes_FC=no
  10241. # Source file extension for fc test sources.
  10242. ac_ext=${ac_fc_srcext-f}
  10243. # Object file extension for compiled fc test sources.
  10244. objext=o
  10245. objext_FC=$objext
  10246. # No sense in running all these tests if we already determined that
  10247. # the FC compiler isn't working. Some variables (like enable_shared)
  10248. # are currently assumed to apply to all compilers on this platform,
  10249. # and will be corrupted by setting them based on a non-working compiler.
  10250. if test "$_lt_disable_FC" != yes; then
  10251. # Code to be used in simple compile tests
  10252. lt_simple_compile_test_code="\
  10253. subroutine t
  10254. return
  10255. end
  10256. "
  10257. # Code to be used in simple link tests
  10258. lt_simple_link_test_code="\
  10259. program t
  10260. end
  10261. "
  10262. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10263. # If no C compiler was specified, use CC.
  10264. LTCC=${LTCC-"$CC"}
  10265. # If no C compiler flags were specified, use CFLAGS.
  10266. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10267. # Allow CC to be a program name with arguments.
  10268. compiler=$CC
  10269. # save warnings/boilerplate of simple test code
  10270. ac_outfile=conftest.$ac_objext
  10271. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10272. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10273. _lt_compiler_boilerplate=`cat conftest.err`
  10274. $RM conftest*
  10275. ac_outfile=conftest.$ac_objext
  10276. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10277. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10278. _lt_linker_boilerplate=`cat conftest.err`
  10279. $RM -r conftest*
  10280. # Allow CC to be a program name with arguments.
  10281. lt_save_CC="$CC"
  10282. lt_save_GCC=$GCC
  10283. CC=${FC-"f95"}
  10284. compiler=$CC
  10285. GCC=$ac_cv_fc_compiler_gnu
  10286. compiler_FC=$CC
  10287. for cc_temp in $compiler""; do
  10288. case $cc_temp in
  10289. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10290. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10291. \-*) ;;
  10292. *) break;;
  10293. esac
  10294. done
  10295. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10296. if test -n "$compiler"; then
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10298. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10300. $as_echo "$can_build_shared" >&6; }
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10302. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10303. test "$can_build_shared" = "no" && enable_shared=no
  10304. # On AIX, shared libraries and static libraries use the same namespace, and
  10305. # are all built from PIC.
  10306. case $host_os in
  10307. aix3*)
  10308. test "$enable_shared" = yes && enable_static=no
  10309. if test -n "$RANLIB"; then
  10310. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10311. postinstall_cmds='$RANLIB $lib'
  10312. fi
  10313. ;;
  10314. aix[4-9]*)
  10315. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10316. test "$enable_shared" = yes && enable_static=no
  10317. fi
  10318. ;;
  10319. esac
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10321. $as_echo "$enable_shared" >&6; }
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10323. $as_echo_n "checking whether to build static libraries... " >&6; }
  10324. # Make sure either enable_shared or enable_static is yes.
  10325. test "$enable_shared" = yes || enable_static=yes
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10327. $as_echo "$enable_static" >&6; }
  10328. GCC_FC="$ac_cv_fc_compiler_gnu"
  10329. LD_FC="$LD"
  10330. ## CAVEAT EMPTOR:
  10331. ## There is no encapsulation within the following macros, do not change
  10332. ## the running order or otherwise move them around unless you know exactly
  10333. ## what you are doing...
  10334. # Dependencies to place before and after the object being linked:
  10335. predep_objects_FC=
  10336. postdep_objects_FC=
  10337. predeps_FC=
  10338. postdeps_FC=
  10339. compiler_lib_search_path_FC=
  10340. cat > conftest.$ac_ext <<_LT_EOF
  10341. subroutine foo
  10342. implicit none
  10343. integer a
  10344. a=0
  10345. return
  10346. end
  10347. _LT_EOF
  10348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10349. (eval $ac_compile) 2>&5
  10350. ac_status=$?
  10351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10352. test $ac_status = 0; }; then
  10353. # Parse the compiler output and extract the necessary
  10354. # objects, libraries and library flags.
  10355. # Sentinel used to keep track of whether or not we are before
  10356. # the conftest object file.
  10357. pre_test_object_deps_done=no
  10358. for p in `eval "$output_verbose_link_cmd"`; do
  10359. case $p in
  10360. -L* | -R* | -l*)
  10361. # Some compilers place space between "-{L,R}" and the path.
  10362. # Remove the space.
  10363. if test $p = "-L" ||
  10364. test $p = "-R"; then
  10365. prev=$p
  10366. continue
  10367. else
  10368. prev=
  10369. fi
  10370. if test "$pre_test_object_deps_done" = no; then
  10371. case $p in
  10372. -L* | -R*)
  10373. # Internal compiler library paths should come after those
  10374. # provided the user. The postdeps already come after the
  10375. # user supplied libs so there is no need to process them.
  10376. if test -z "$compiler_lib_search_path_FC"; then
  10377. compiler_lib_search_path_FC="${prev}${p}"
  10378. else
  10379. compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
  10380. fi
  10381. ;;
  10382. # The "-l" case would never come before the object being
  10383. # linked, so don't bother handling this case.
  10384. esac
  10385. else
  10386. if test -z "$postdeps_FC"; then
  10387. postdeps_FC="${prev}${p}"
  10388. else
  10389. postdeps_FC="${postdeps_FC} ${prev}${p}"
  10390. fi
  10391. fi
  10392. ;;
  10393. *.$objext)
  10394. # This assumes that the test object file only shows up
  10395. # once in the compiler output.
  10396. if test "$p" = "conftest.$objext"; then
  10397. pre_test_object_deps_done=yes
  10398. continue
  10399. fi
  10400. if test "$pre_test_object_deps_done" = no; then
  10401. if test -z "$predep_objects_FC"; then
  10402. predep_objects_FC="$p"
  10403. else
  10404. predep_objects_FC="$predep_objects_FC $p"
  10405. fi
  10406. else
  10407. if test -z "$postdep_objects_FC"; then
  10408. postdep_objects_FC="$p"
  10409. else
  10410. postdep_objects_FC="$postdep_objects_FC $p"
  10411. fi
  10412. fi
  10413. ;;
  10414. *) ;; # Ignore the rest.
  10415. esac
  10416. done
  10417. # Clean up.
  10418. rm -f a.out a.exe
  10419. else
  10420. echo "libtool.m4: error: problem compiling FC test program"
  10421. fi
  10422. $RM -f confest.$objext
  10423. # PORTME: override above test on systems where it is broken
  10424. case " $postdeps_FC " in
  10425. *" -lc "*) archive_cmds_need_lc_FC=no ;;
  10426. esac
  10427. compiler_lib_search_dirs_FC=
  10428. if test -n "${compiler_lib_search_path_FC}"; then
  10429. compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10430. fi
  10431. lt_prog_compiler_wl_FC=
  10432. lt_prog_compiler_pic_FC=
  10433. lt_prog_compiler_static_FC=
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10435. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10436. if test "$GCC" = yes; then
  10437. lt_prog_compiler_wl_FC='-Wl,'
  10438. lt_prog_compiler_static_FC='-static'
  10439. case $host_os in
  10440. aix*)
  10441. # All AIX code is PIC.
  10442. if test "$host_cpu" = ia64; then
  10443. # AIX 5 now supports IA64 processor
  10444. lt_prog_compiler_static_FC='-Bstatic'
  10445. fi
  10446. ;;
  10447. amigaos*)
  10448. case $host_cpu in
  10449. powerpc)
  10450. # see comment about AmigaOS4 .so support
  10451. lt_prog_compiler_pic_FC='-fPIC'
  10452. ;;
  10453. m68k)
  10454. # FIXME: we need at least 68020 code to build shared libraries, but
  10455. # adding the `-m68020' flag to GCC prevents building anything better,
  10456. # like `-m68040'.
  10457. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
  10458. ;;
  10459. esac
  10460. ;;
  10461. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10462. # PIC is the default for these OSes.
  10463. ;;
  10464. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10465. # This hack is so that the source file can tell whether it is being
  10466. # built for inclusion in a dll (and should export symbols for example).
  10467. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10468. # (--disable-auto-import) libraries
  10469. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10470. ;;
  10471. darwin* | rhapsody*)
  10472. # PIC is the default on this platform
  10473. # Common symbols not allowed in MH_DYLIB files
  10474. lt_prog_compiler_pic_FC='-fno-common'
  10475. ;;
  10476. haiku*)
  10477. # PIC is the default for Haiku.
  10478. # The "-static" flag exists, but is broken.
  10479. lt_prog_compiler_static_FC=
  10480. ;;
  10481. hpux*)
  10482. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10483. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10484. # sets the default TLS model and affects inlining.
  10485. case $host_cpu in
  10486. hppa*64*)
  10487. # +Z the default
  10488. ;;
  10489. *)
  10490. lt_prog_compiler_pic_FC='-fPIC'
  10491. ;;
  10492. esac
  10493. ;;
  10494. interix[3-9]*)
  10495. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10496. # Instead, we relocate shared libraries at runtime.
  10497. ;;
  10498. msdosdjgpp*)
  10499. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10500. # on systems that don't support them.
  10501. lt_prog_compiler_can_build_shared_FC=no
  10502. enable_shared=no
  10503. ;;
  10504. *nto* | *qnx*)
  10505. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10506. # it will coredump.
  10507. lt_prog_compiler_pic_FC='-fPIC -shared'
  10508. ;;
  10509. sysv4*MP*)
  10510. if test -d /usr/nec; then
  10511. lt_prog_compiler_pic_FC=-Kconform_pic
  10512. fi
  10513. ;;
  10514. *)
  10515. lt_prog_compiler_pic_FC='-fPIC'
  10516. ;;
  10517. esac
  10518. case $cc_basename in
  10519. nvcc*) # Cuda Compiler Driver 2.2
  10520. lt_prog_compiler_wl_FC='-Xlinker '
  10521. lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
  10522. ;;
  10523. esac
  10524. else
  10525. # PORTME Check for flag to pass linker flags through the system compiler.
  10526. case $host_os in
  10527. aix*)
  10528. lt_prog_compiler_wl_FC='-Wl,'
  10529. if test "$host_cpu" = ia64; then
  10530. # AIX 5 now supports IA64 processor
  10531. lt_prog_compiler_static_FC='-Bstatic'
  10532. else
  10533. lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
  10534. fi
  10535. ;;
  10536. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10537. # This hack is so that the source file can tell whether it is being
  10538. # built for inclusion in a dll (and should export symbols for example).
  10539. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10540. ;;
  10541. hpux9* | hpux10* | hpux11*)
  10542. lt_prog_compiler_wl_FC='-Wl,'
  10543. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10544. # not for PA HP-UX.
  10545. case $host_cpu in
  10546. hppa*64*|ia64*)
  10547. # +Z the default
  10548. ;;
  10549. *)
  10550. lt_prog_compiler_pic_FC='+Z'
  10551. ;;
  10552. esac
  10553. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10554. lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
  10555. ;;
  10556. irix5* | irix6* | nonstopux*)
  10557. lt_prog_compiler_wl_FC='-Wl,'
  10558. # PIC (with -KPIC) is the default.
  10559. lt_prog_compiler_static_FC='-non_shared'
  10560. ;;
  10561. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10562. case $cc_basename in
  10563. # old Intel for x86_64 which still supported -KPIC.
  10564. ecc*)
  10565. lt_prog_compiler_wl_FC='-Wl,'
  10566. lt_prog_compiler_pic_FC='-KPIC'
  10567. lt_prog_compiler_static_FC='-static'
  10568. ;;
  10569. # icc used to be incompatible with GCC.
  10570. # ICC 10 doesn't accept -KPIC any more.
  10571. icc* | ifort*)
  10572. lt_prog_compiler_wl_FC='-Wl,'
  10573. lt_prog_compiler_pic_FC='-fPIC'
  10574. lt_prog_compiler_static_FC='-static'
  10575. ;;
  10576. # Lahey Fortran 8.1.
  10577. lf95*)
  10578. lt_prog_compiler_wl_FC='-Wl,'
  10579. lt_prog_compiler_pic_FC='--shared'
  10580. lt_prog_compiler_static_FC='--static'
  10581. ;;
  10582. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10583. # Portland Group compilers (*not* the Pentium gcc compiler,
  10584. # which looks to be a dead project)
  10585. lt_prog_compiler_wl_FC='-Wl,'
  10586. lt_prog_compiler_pic_FC='-fpic'
  10587. lt_prog_compiler_static_FC='-Bstatic'
  10588. ;;
  10589. ccc*)
  10590. lt_prog_compiler_wl_FC='-Wl,'
  10591. # All Alpha code is PIC.
  10592. lt_prog_compiler_static_FC='-non_shared'
  10593. ;;
  10594. xl* | bgxl* | bgf* | mpixl*)
  10595. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10596. lt_prog_compiler_wl_FC='-Wl,'
  10597. lt_prog_compiler_pic_FC='-qpic'
  10598. lt_prog_compiler_static_FC='-qstaticlink'
  10599. ;;
  10600. *)
  10601. case `$CC -V 2>&1 | sed 5q` in
  10602. *Sun\ F* | *Sun*Fortran*)
  10603. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10604. lt_prog_compiler_pic_FC='-KPIC'
  10605. lt_prog_compiler_static_FC='-Bstatic'
  10606. lt_prog_compiler_wl_FC=''
  10607. ;;
  10608. *Sun\ C*)
  10609. # Sun C 5.9
  10610. lt_prog_compiler_pic_FC='-KPIC'
  10611. lt_prog_compiler_static_FC='-Bstatic'
  10612. lt_prog_compiler_wl_FC='-Wl,'
  10613. ;;
  10614. esac
  10615. ;;
  10616. esac
  10617. ;;
  10618. newsos6)
  10619. lt_prog_compiler_pic_FC='-KPIC'
  10620. lt_prog_compiler_static_FC='-Bstatic'
  10621. ;;
  10622. *nto* | *qnx*)
  10623. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10624. # it will coredump.
  10625. lt_prog_compiler_pic_FC='-fPIC -shared'
  10626. ;;
  10627. osf3* | osf4* | osf5*)
  10628. lt_prog_compiler_wl_FC='-Wl,'
  10629. # All OSF/1 code is PIC.
  10630. lt_prog_compiler_static_FC='-non_shared'
  10631. ;;
  10632. rdos*)
  10633. lt_prog_compiler_static_FC='-non_shared'
  10634. ;;
  10635. solaris*)
  10636. lt_prog_compiler_pic_FC='-KPIC'
  10637. lt_prog_compiler_static_FC='-Bstatic'
  10638. case $cc_basename in
  10639. f77* | f90* | f95*)
  10640. lt_prog_compiler_wl_FC='-Qoption ld ';;
  10641. *)
  10642. lt_prog_compiler_wl_FC='-Wl,';;
  10643. esac
  10644. ;;
  10645. sunos4*)
  10646. lt_prog_compiler_wl_FC='-Qoption ld '
  10647. lt_prog_compiler_pic_FC='-PIC'
  10648. lt_prog_compiler_static_FC='-Bstatic'
  10649. ;;
  10650. sysv4 | sysv4.2uw2* | sysv4.3*)
  10651. lt_prog_compiler_wl_FC='-Wl,'
  10652. lt_prog_compiler_pic_FC='-KPIC'
  10653. lt_prog_compiler_static_FC='-Bstatic'
  10654. ;;
  10655. sysv4*MP*)
  10656. if test -d /usr/nec ;then
  10657. lt_prog_compiler_pic_FC='-Kconform_pic'
  10658. lt_prog_compiler_static_FC='-Bstatic'
  10659. fi
  10660. ;;
  10661. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10662. lt_prog_compiler_wl_FC='-Wl,'
  10663. lt_prog_compiler_pic_FC='-KPIC'
  10664. lt_prog_compiler_static_FC='-Bstatic'
  10665. ;;
  10666. unicos*)
  10667. lt_prog_compiler_wl_FC='-Wl,'
  10668. lt_prog_compiler_can_build_shared_FC=no
  10669. ;;
  10670. uts4*)
  10671. lt_prog_compiler_pic_FC='-pic'
  10672. lt_prog_compiler_static_FC='-Bstatic'
  10673. ;;
  10674. *)
  10675. lt_prog_compiler_can_build_shared_FC=no
  10676. ;;
  10677. esac
  10678. fi
  10679. case $host_os in
  10680. # For platforms which do not support PIC, -DPIC is meaningless:
  10681. *djgpp*)
  10682. lt_prog_compiler_pic_FC=
  10683. ;;
  10684. *)
  10685. lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
  10686. ;;
  10687. esac
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
  10689. $as_echo "$lt_prog_compiler_pic_FC" >&6; }
  10690. #
  10691. # Check to make sure the PIC flag actually works.
  10692. #
  10693. if test -n "$lt_prog_compiler_pic_FC"; then
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
  10695. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
  10696. if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. lt_cv_prog_compiler_pic_works_FC=no
  10700. ac_outfile=conftest.$ac_objext
  10701. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10702. lt_compiler_flag="$lt_prog_compiler_pic_FC"
  10703. # Insert the option either (1) after the last *FLAGS variable, or
  10704. # (2) before a word containing "conftest.", or (3) at the end.
  10705. # Note that $ac_compile itself does not contain backslashes and begins
  10706. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10707. # The option is referenced via a variable to avoid confusing sed.
  10708. lt_compile=`echo "$ac_compile" | $SED \
  10709. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10711. -e 's:$: $lt_compiler_flag:'`
  10712. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10713. (eval "$lt_compile" 2>conftest.err)
  10714. ac_status=$?
  10715. cat conftest.err >&5
  10716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10717. if (exit $ac_status) && test -s "$ac_outfile"; then
  10718. # The compiler can only warn and ignore the option if not recognized
  10719. # So say no if there are warnings other than the usual output.
  10720. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10721. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10722. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10723. lt_cv_prog_compiler_pic_works_FC=yes
  10724. fi
  10725. fi
  10726. $RM conftest*
  10727. fi
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
  10729. $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
  10730. if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
  10731. case $lt_prog_compiler_pic_FC in
  10732. "" | " "*) ;;
  10733. *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
  10734. esac
  10735. else
  10736. lt_prog_compiler_pic_FC=
  10737. lt_prog_compiler_can_build_shared_FC=no
  10738. fi
  10739. fi
  10740. #
  10741. # Check to make sure the static flag actually works.
  10742. #
  10743. wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10745. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10746. if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
  10747. $as_echo_n "(cached) " >&6
  10748. else
  10749. lt_cv_prog_compiler_static_works_FC=no
  10750. save_LDFLAGS="$LDFLAGS"
  10751. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10752. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10753. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10754. # The linker can only warn and ignore the option if not recognized
  10755. # So say no if there are warnings
  10756. if test -s conftest.err; then
  10757. # Append any errors to the config.log.
  10758. cat conftest.err 1>&5
  10759. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10761. if diff conftest.exp conftest.er2 >/dev/null; then
  10762. lt_cv_prog_compiler_static_works_FC=yes
  10763. fi
  10764. else
  10765. lt_cv_prog_compiler_static_works_FC=yes
  10766. fi
  10767. fi
  10768. $RM -r conftest*
  10769. LDFLAGS="$save_LDFLAGS"
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
  10772. $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
  10773. if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
  10774. :
  10775. else
  10776. lt_prog_compiler_static_FC=
  10777. fi
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10779. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10780. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10781. $as_echo_n "(cached) " >&6
  10782. else
  10783. lt_cv_prog_compiler_c_o_FC=no
  10784. $RM -r conftest 2>/dev/null
  10785. mkdir conftest
  10786. cd conftest
  10787. mkdir out
  10788. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10789. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10790. # Insert the option either (1) after the last *FLAGS variable, or
  10791. # (2) before a word containing "conftest.", or (3) at the end.
  10792. # Note that $ac_compile itself does not contain backslashes and begins
  10793. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10794. lt_compile=`echo "$ac_compile" | $SED \
  10795. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10796. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10797. -e 's:$: $lt_compiler_flag:'`
  10798. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10799. (eval "$lt_compile" 2>out/conftest.err)
  10800. ac_status=$?
  10801. cat out/conftest.err >&5
  10802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10803. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10804. then
  10805. # The compiler can only warn and ignore the option if not recognized
  10806. # So say no if there are warnings
  10807. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10808. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10809. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10810. lt_cv_prog_compiler_c_o_FC=yes
  10811. fi
  10812. fi
  10813. chmod u+w . 2>&5
  10814. $RM conftest*
  10815. # SGI C++ compiler will create directory out/ii_files/ for
  10816. # template instantiation
  10817. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10818. $RM out/* && rmdir out
  10819. cd ..
  10820. $RM -r conftest
  10821. $RM conftest*
  10822. fi
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10824. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10826. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10827. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10828. $as_echo_n "(cached) " >&6
  10829. else
  10830. lt_cv_prog_compiler_c_o_FC=no
  10831. $RM -r conftest 2>/dev/null
  10832. mkdir conftest
  10833. cd conftest
  10834. mkdir out
  10835. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10836. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10837. # Insert the option either (1) after the last *FLAGS variable, or
  10838. # (2) before a word containing "conftest.", or (3) at the end.
  10839. # Note that $ac_compile itself does not contain backslashes and begins
  10840. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10841. lt_compile=`echo "$ac_compile" | $SED \
  10842. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10844. -e 's:$: $lt_compiler_flag:'`
  10845. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10846. (eval "$lt_compile" 2>out/conftest.err)
  10847. ac_status=$?
  10848. cat out/conftest.err >&5
  10849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10850. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10851. then
  10852. # The compiler can only warn and ignore the option if not recognized
  10853. # So say no if there are warnings
  10854. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10855. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10856. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10857. lt_cv_prog_compiler_c_o_FC=yes
  10858. fi
  10859. fi
  10860. chmod u+w . 2>&5
  10861. $RM conftest*
  10862. # SGI C++ compiler will create directory out/ii_files/ for
  10863. # template instantiation
  10864. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10865. $RM out/* && rmdir out
  10866. cd ..
  10867. $RM -r conftest
  10868. $RM conftest*
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10871. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10872. hard_links="nottested"
  10873. if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
  10874. # do not overwrite the value of need_locks provided by the user
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10876. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10877. hard_links=yes
  10878. $RM conftest*
  10879. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10880. touch conftest.a
  10881. ln conftest.a conftest.b 2>&5 || hard_links=no
  10882. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10884. $as_echo "$hard_links" >&6; }
  10885. if test "$hard_links" = no; then
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10887. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10888. need_locks=warn
  10889. fi
  10890. else
  10891. need_locks=no
  10892. fi
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10894. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10895. runpath_var=
  10896. allow_undefined_flag_FC=
  10897. always_export_symbols_FC=no
  10898. archive_cmds_FC=
  10899. archive_expsym_cmds_FC=
  10900. compiler_needs_object_FC=no
  10901. enable_shared_with_static_runtimes_FC=no
  10902. export_dynamic_flag_spec_FC=
  10903. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10904. hardcode_automatic_FC=no
  10905. hardcode_direct_FC=no
  10906. hardcode_direct_absolute_FC=no
  10907. hardcode_libdir_flag_spec_FC=
  10908. hardcode_libdir_flag_spec_ld_FC=
  10909. hardcode_libdir_separator_FC=
  10910. hardcode_minus_L_FC=no
  10911. hardcode_shlibpath_var_FC=unsupported
  10912. inherit_rpath_FC=no
  10913. link_all_deplibs_FC=unknown
  10914. module_cmds_FC=
  10915. module_expsym_cmds_FC=
  10916. old_archive_from_new_cmds_FC=
  10917. old_archive_from_expsyms_cmds_FC=
  10918. thread_safe_flag_spec_FC=
  10919. whole_archive_flag_spec_FC=
  10920. # include_expsyms should be a list of space-separated symbols to be *always*
  10921. # included in the symbol list
  10922. include_expsyms_FC=
  10923. # exclude_expsyms can be an extended regexp of symbols to exclude
  10924. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10925. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10926. # as well as any symbol that contains `d'.
  10927. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10928. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10929. # platforms (ab)use it in PIC code, but their linkers get confused if
  10930. # the symbol is explicitly referenced. Since portable code cannot
  10931. # rely on this symbol name, it's probably fine to never include it in
  10932. # preloaded symbol tables.
  10933. # Exclude shared library initialization/finalization symbols.
  10934. extract_expsyms_cmds=
  10935. case $host_os in
  10936. cygwin* | mingw* | pw32* | cegcc*)
  10937. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10938. # When not using gcc, we currently assume that we are using
  10939. # Microsoft Visual C++.
  10940. if test "$GCC" != yes; then
  10941. with_gnu_ld=no
  10942. fi
  10943. ;;
  10944. interix*)
  10945. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10946. with_gnu_ld=yes
  10947. ;;
  10948. openbsd*)
  10949. with_gnu_ld=no
  10950. ;;
  10951. esac
  10952. ld_shlibs_FC=yes
  10953. # On some targets, GNU ld is compatible enough with the native linker
  10954. # that we're better off using the native interface for both.
  10955. lt_use_gnu_ld_interface=no
  10956. if test "$with_gnu_ld" = yes; then
  10957. case $host_os in
  10958. aix*)
  10959. # The AIX port of GNU ld has always aspired to compatibility
  10960. # with the native linker. However, as the warning in the GNU ld
  10961. # block says, versions before 2.19.5* couldn't really create working
  10962. # shared libraries, regardless of the interface used.
  10963. case `$LD -v 2>&1` in
  10964. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10965. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10966. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10967. *)
  10968. lt_use_gnu_ld_interface=yes
  10969. ;;
  10970. esac
  10971. ;;
  10972. *)
  10973. lt_use_gnu_ld_interface=yes
  10974. ;;
  10975. esac
  10976. fi
  10977. if test "$lt_use_gnu_ld_interface" = yes; then
  10978. # If archive_cmds runs LD, not CC, wlarc should be empty
  10979. wlarc='${wl}'
  10980. # Set some defaults for GNU ld with shared library support. These
  10981. # are reset later if shared libraries are not supported. Putting them
  10982. # here allows them to be overridden if necessary.
  10983. runpath_var=LD_RUN_PATH
  10984. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  10985. export_dynamic_flag_spec_FC='${wl}--export-dynamic'
  10986. # ancient GNU ld didn't support --whole-archive et. al.
  10987. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10988. whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10989. else
  10990. whole_archive_flag_spec_FC=
  10991. fi
  10992. supports_anon_versioning=no
  10993. case `$LD -v 2>&1` in
  10994. *GNU\ gold*) supports_anon_versioning=yes ;;
  10995. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10996. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10997. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10998. *\ 2.11.*) ;; # other 2.11 versions
  10999. *) supports_anon_versioning=yes ;;
  11000. esac
  11001. # See if GNU ld supports shared libraries.
  11002. case $host_os in
  11003. aix[3-9]*)
  11004. # On AIX/PPC, the GNU linker is very broken
  11005. if test "$host_cpu" != ia64; then
  11006. ld_shlibs_FC=no
  11007. cat <<_LT_EOF 1>&2
  11008. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11009. *** to be unable to reliably create shared libraries on AIX.
  11010. *** Therefore, libtool is disabling shared libraries support. If you
  11011. *** really care for shared libraries, you may want to install binutils
  11012. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11013. *** You will then need to restart the configuration process.
  11014. _LT_EOF
  11015. fi
  11016. ;;
  11017. amigaos*)
  11018. case $host_cpu in
  11019. powerpc)
  11020. # see comment about AmigaOS4 .so support
  11021. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11022. archive_expsym_cmds_FC=''
  11023. ;;
  11024. m68k)
  11025. archive_cmds_FC='$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)'
  11026. hardcode_libdir_flag_spec_FC='-L$libdir'
  11027. hardcode_minus_L_FC=yes
  11028. ;;
  11029. esac
  11030. ;;
  11031. beos*)
  11032. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11033. allow_undefined_flag_FC=unsupported
  11034. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11035. # support --undefined. This deserves some investigation. FIXME
  11036. archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11037. else
  11038. ld_shlibs_FC=no
  11039. fi
  11040. ;;
  11041. cygwin* | mingw* | pw32* | cegcc*)
  11042. # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
  11043. # as there is no search path for DLLs.
  11044. hardcode_libdir_flag_spec_FC='-L$libdir'
  11045. export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
  11046. allow_undefined_flag_FC=unsupported
  11047. always_export_symbols_FC=no
  11048. enable_shared_with_static_runtimes_FC=yes
  11049. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11050. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11051. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11052. # If the export-symbols file already is a .def file (1st line
  11053. # is EXPORTS), use it as is; otherwise, prepend...
  11054. archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11055. cp $export_symbols $output_objdir/$soname.def;
  11056. else
  11057. echo EXPORTS > $output_objdir/$soname.def;
  11058. cat $export_symbols >> $output_objdir/$soname.def;
  11059. fi~
  11060. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11061. else
  11062. ld_shlibs_FC=no
  11063. fi
  11064. ;;
  11065. haiku*)
  11066. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11067. link_all_deplibs_FC=yes
  11068. ;;
  11069. interix[3-9]*)
  11070. hardcode_direct_FC=no
  11071. hardcode_shlibpath_var_FC=no
  11072. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11073. export_dynamic_flag_spec_FC='${wl}-E'
  11074. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11075. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11076. # default) and relocated if they conflict, which is a slow very memory
  11077. # consuming and fragmenting process. To avoid this, we pick a random,
  11078. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11079. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11080. archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11081. archive_expsym_cmds_FC='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'
  11082. ;;
  11083. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11084. tmp_diet=no
  11085. if test "$host_os" = linux-dietlibc; then
  11086. case $cc_basename in
  11087. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11088. esac
  11089. fi
  11090. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11091. && test "$tmp_diet" = no
  11092. then
  11093. tmp_addflag=
  11094. tmp_sharedflag='-shared'
  11095. case $cc_basename,$host_cpu in
  11096. pgcc*) # Portland Group C compiler
  11097. whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11098. tmp_addflag=' $pic_flag'
  11099. ;;
  11100. pgf77* | pgf90* | pgf95* | pgfortran*)
  11101. # Portland Group f77 and f90 compilers
  11102. whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11103. tmp_addflag=' $pic_flag -Mnomain' ;;
  11104. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11105. tmp_addflag=' -i_dynamic' ;;
  11106. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11107. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11108. ifc* | ifort*) # Intel Fortran compiler
  11109. tmp_addflag=' -nofor_main' ;;
  11110. lf95*) # Lahey Fortran 8.1
  11111. whole_archive_flag_spec_FC=
  11112. tmp_sharedflag='--shared' ;;
  11113. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11114. tmp_sharedflag='-qmkshrobj'
  11115. tmp_addflag= ;;
  11116. nvcc*) # Cuda Compiler Driver 2.2
  11117. whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11118. compiler_needs_object_FC=yes
  11119. ;;
  11120. esac
  11121. case `$CC -V 2>&1 | sed 5q` in
  11122. *Sun\ C*) # Sun C 5.9
  11123. whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11124. compiler_needs_object_FC=yes
  11125. tmp_sharedflag='-G' ;;
  11126. *Sun\ F*) # Sun Fortran 8.3
  11127. tmp_sharedflag='-G' ;;
  11128. esac
  11129. archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11130. if test "x$supports_anon_versioning" = xyes; then
  11131. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11132. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11133. echo "local: *; };" >> $output_objdir/$libname.ver~
  11134. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11135. fi
  11136. case $cc_basename in
  11137. xlf* | bgf* | bgxlf* | mpixlf*)
  11138. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11139. whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
  11140. hardcode_libdir_flag_spec_FC=
  11141. hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
  11142. archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11143. if test "x$supports_anon_versioning" = xyes; then
  11144. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11146. echo "local: *; };" >> $output_objdir/$libname.ver~
  11147. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11148. fi
  11149. ;;
  11150. esac
  11151. else
  11152. ld_shlibs_FC=no
  11153. fi
  11154. ;;
  11155. netbsd*)
  11156. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11157. archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11158. wlarc=
  11159. else
  11160. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11161. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11162. fi
  11163. ;;
  11164. solaris*)
  11165. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11166. ld_shlibs_FC=no
  11167. cat <<_LT_EOF 1>&2
  11168. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11169. *** create shared libraries on Solaris systems. Therefore, libtool
  11170. *** is disabling shared libraries support. We urge you to upgrade GNU
  11171. *** binutils to release 2.9.1 or newer. Another option is to modify
  11172. *** your PATH or compiler configuration so that the native linker is
  11173. *** used, and then restart.
  11174. _LT_EOF
  11175. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11176. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11177. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11178. else
  11179. ld_shlibs_FC=no
  11180. fi
  11181. ;;
  11182. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11183. case `$LD -v 2>&1` in
  11184. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11185. ld_shlibs_FC=no
  11186. cat <<_LT_EOF 1>&2
  11187. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11188. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11189. *** is disabling shared libraries support. We urge you to upgrade GNU
  11190. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11191. *** your PATH or compiler configuration so that the native linker is
  11192. *** used, and then restart.
  11193. _LT_EOF
  11194. ;;
  11195. *)
  11196. # For security reasons, it is highly recommended that you always
  11197. # use absolute paths for naming shared libraries, and exclude the
  11198. # DT_RUNPATH tag from executables and libraries. But doing so
  11199. # requires that you compile everything twice, which is a pain.
  11200. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11201. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11202. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11203. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11204. else
  11205. ld_shlibs_FC=no
  11206. fi
  11207. ;;
  11208. esac
  11209. ;;
  11210. sunos4*)
  11211. archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11212. wlarc=
  11213. hardcode_direct_FC=yes
  11214. hardcode_shlibpath_var_FC=no
  11215. ;;
  11216. *)
  11217. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11218. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11219. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11220. else
  11221. ld_shlibs_FC=no
  11222. fi
  11223. ;;
  11224. esac
  11225. if test "$ld_shlibs_FC" = no; then
  11226. runpath_var=
  11227. hardcode_libdir_flag_spec_FC=
  11228. export_dynamic_flag_spec_FC=
  11229. whole_archive_flag_spec_FC=
  11230. fi
  11231. else
  11232. # PORTME fill in a description of your system's linker (not GNU ld)
  11233. case $host_os in
  11234. aix3*)
  11235. allow_undefined_flag_FC=unsupported
  11236. always_export_symbols_FC=yes
  11237. archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11238. # Note: this linker hardcodes the directories in LIBPATH if there
  11239. # are no directories specified by -L.
  11240. hardcode_minus_L_FC=yes
  11241. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11242. # Neither direct hardcoding nor static linking is supported with a
  11243. # broken collect2.
  11244. hardcode_direct_FC=unsupported
  11245. fi
  11246. ;;
  11247. aix[4-9]*)
  11248. if test "$host_cpu" = ia64; then
  11249. # On IA64, the linker does run time linking by default, so we don't
  11250. # have to do anything special.
  11251. aix_use_runtimelinking=no
  11252. exp_sym_flag='-Bexport'
  11253. no_entry_flag=""
  11254. else
  11255. # If we're using GNU nm, then we don't want the "-C" option.
  11256. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11257. # Also, AIX nm treats weak defined symbols like other global
  11258. # defined symbols, whereas GNU nm marks them as "W".
  11259. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11260. export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11261. else
  11262. export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11263. fi
  11264. aix_use_runtimelinking=no
  11265. # Test if we are trying to use run time linking or normal
  11266. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11267. # need to do runtime linking.
  11268. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11269. for ld_flag in $LDFLAGS; do
  11270. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11271. aix_use_runtimelinking=yes
  11272. break
  11273. fi
  11274. done
  11275. ;;
  11276. esac
  11277. exp_sym_flag='-bexport'
  11278. no_entry_flag='-bnoentry'
  11279. fi
  11280. # When large executables or shared objects are built, AIX ld can
  11281. # have problems creating the table of contents. If linking a library
  11282. # or program results in "error TOC overflow" add -mminimal-toc to
  11283. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11284. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11285. archive_cmds_FC=''
  11286. hardcode_direct_FC=yes
  11287. hardcode_direct_absolute_FC=yes
  11288. hardcode_libdir_separator_FC=':'
  11289. link_all_deplibs_FC=yes
  11290. file_list_spec_FC='${wl}-f,'
  11291. if test "$GCC" = yes; then
  11292. case $host_os in aix4.[012]|aix4.[012].*)
  11293. # We only want to do this on AIX 4.2 and lower, the check
  11294. # below for broken collect2 doesn't work under 4.3+
  11295. collect2name=`${CC} -print-prog-name=collect2`
  11296. if test -f "$collect2name" &&
  11297. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11298. then
  11299. # We have reworked collect2
  11300. :
  11301. else
  11302. # We have old collect2
  11303. hardcode_direct_FC=unsupported
  11304. # It fails to find uninstalled libraries when the uninstalled
  11305. # path is not listed in the libpath. Setting hardcode_minus_L
  11306. # to unsupported forces relinking
  11307. hardcode_minus_L_FC=yes
  11308. hardcode_libdir_flag_spec_FC='-L$libdir'
  11309. hardcode_libdir_separator_FC=
  11310. fi
  11311. ;;
  11312. esac
  11313. shared_flag='-shared'
  11314. if test "$aix_use_runtimelinking" = yes; then
  11315. shared_flag="$shared_flag "'${wl}-G'
  11316. fi
  11317. else
  11318. # not using gcc
  11319. if test "$host_cpu" = ia64; then
  11320. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11321. # chokes on -Wl,-G. The following line is correct:
  11322. shared_flag='-G'
  11323. else
  11324. if test "$aix_use_runtimelinking" = yes; then
  11325. shared_flag='${wl}-G'
  11326. else
  11327. shared_flag='${wl}-bM:SRE'
  11328. fi
  11329. fi
  11330. fi
  11331. export_dynamic_flag_spec_FC='${wl}-bexpall'
  11332. # It seems that -bexpall does not export symbols beginning with
  11333. # underscore (_), so it is better to generate a list of symbols to export.
  11334. always_export_symbols_FC=yes
  11335. if test "$aix_use_runtimelinking" = yes; then
  11336. # Warning - without using the other runtime loading flags (-brtl),
  11337. # -berok will link without error, but may produce a broken library.
  11338. allow_undefined_flag_FC='-berok'
  11339. # Determine the default libpath from the value encoded in an
  11340. # empty executable.
  11341. if test x$gcc_no_link = xyes; then
  11342. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11343. fi
  11344. cat > conftest.$ac_ext <<_ACEOF
  11345. program main
  11346. end
  11347. _ACEOF
  11348. if ac_fn_fc_try_link "$LINENO"; then :
  11349. lt_aix_libpath_sed='
  11350. /Import File Strings/,/^$/ {
  11351. /^0/ {
  11352. s/^0 *\(.*\)$/\1/
  11353. p
  11354. }
  11355. }'
  11356. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11357. # Check for a 64-bit object if we didn't find anything.
  11358. if test -z "$aix_libpath"; then
  11359. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11360. fi
  11361. fi
  11362. rm -f core conftest.err conftest.$ac_objext \
  11363. conftest$ac_exeext conftest.$ac_ext
  11364. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11365. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11366. archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11367. else
  11368. if test "$host_cpu" = ia64; then
  11369. hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
  11370. allow_undefined_flag_FC="-z nodefs"
  11371. archive_expsym_cmds_FC="\$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"
  11372. else
  11373. # Determine the default libpath from the value encoded in an
  11374. # empty executable.
  11375. if test x$gcc_no_link = xyes; then
  11376. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11377. fi
  11378. cat > conftest.$ac_ext <<_ACEOF
  11379. program main
  11380. end
  11381. _ACEOF
  11382. if ac_fn_fc_try_link "$LINENO"; then :
  11383. lt_aix_libpath_sed='
  11384. /Import File Strings/,/^$/ {
  11385. /^0/ {
  11386. s/^0 *\(.*\)$/\1/
  11387. p
  11388. }
  11389. }'
  11390. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11391. # Check for a 64-bit object if we didn't find anything.
  11392. if test -z "$aix_libpath"; then
  11393. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11394. fi
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext \
  11397. conftest$ac_exeext conftest.$ac_ext
  11398. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11399. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11400. # Warning - without using the other run time loading flags,
  11401. # -berok will link without error, but may produce a broken library.
  11402. no_undefined_flag_FC=' ${wl}-bernotok'
  11403. allow_undefined_flag_FC=' ${wl}-berok'
  11404. if test "$with_gnu_ld" = yes; then
  11405. # We only use this code for GNU lds that support --whole-archive.
  11406. whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11407. else
  11408. # Exported symbols can be pulled into shared objects from archives
  11409. whole_archive_flag_spec_FC='$convenience'
  11410. fi
  11411. archive_cmds_need_lc_FC=yes
  11412. # This is similar to how AIX traditionally builds its shared libraries.
  11413. archive_expsym_cmds_FC="\$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'
  11414. fi
  11415. fi
  11416. ;;
  11417. amigaos*)
  11418. case $host_cpu in
  11419. powerpc)
  11420. # see comment about AmigaOS4 .so support
  11421. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11422. archive_expsym_cmds_FC=''
  11423. ;;
  11424. m68k)
  11425. archive_cmds_FC='$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)'
  11426. hardcode_libdir_flag_spec_FC='-L$libdir'
  11427. hardcode_minus_L_FC=yes
  11428. ;;
  11429. esac
  11430. ;;
  11431. bsdi[45]*)
  11432. export_dynamic_flag_spec_FC=-rdynamic
  11433. ;;
  11434. cygwin* | mingw* | pw32* | cegcc*)
  11435. # When not using gcc, we currently assume that we are using
  11436. # Microsoft Visual C++.
  11437. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11438. # no search path for DLLs.
  11439. hardcode_libdir_flag_spec_FC=' '
  11440. allow_undefined_flag_FC=unsupported
  11441. # Tell ltmain to make .lib files, not .a files.
  11442. libext=lib
  11443. # Tell ltmain to make .dll files, not .so files.
  11444. shrext_cmds=".dll"
  11445. # FIXME: Setting linknames here is a bad hack.
  11446. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11447. # The linker will automatically build a .lib file if we build a DLL.
  11448. old_archive_from_new_cmds_FC='true'
  11449. # FIXME: Should let the user specify the lib program.
  11450. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11451. fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
  11452. enable_shared_with_static_runtimes_FC=yes
  11453. ;;
  11454. darwin* | rhapsody*)
  11455. archive_cmds_need_lc_FC=no
  11456. hardcode_direct_FC=no
  11457. hardcode_automatic_FC=yes
  11458. hardcode_shlibpath_var_FC=unsupported
  11459. if test "$lt_cv_ld_force_load" = "yes"; then
  11460. whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11461. else
  11462. whole_archive_flag_spec_FC=''
  11463. fi
  11464. link_all_deplibs_FC=yes
  11465. allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  11466. case $cc_basename in
  11467. ifort*) _lt_dar_can_shared=yes ;;
  11468. *) _lt_dar_can_shared=$GCC ;;
  11469. esac
  11470. if test "$_lt_dar_can_shared" = "yes"; then
  11471. output_verbose_link_cmd=func_echo_all
  11472. archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11473. module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11474. archive_expsym_cmds_FC="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}"
  11475. module_expsym_cmds_FC="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}"
  11476. else
  11477. ld_shlibs_FC=no
  11478. fi
  11479. ;;
  11480. dgux*)
  11481. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11482. hardcode_libdir_flag_spec_FC='-L$libdir'
  11483. hardcode_shlibpath_var_FC=no
  11484. ;;
  11485. freebsd1*)
  11486. ld_shlibs_FC=no
  11487. ;;
  11488. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11489. # support. Future versions do this automatically, but an explicit c++rt0.o
  11490. # does not break anything, and helps significantly (at the cost of a little
  11491. # extra space).
  11492. freebsd2.2*)
  11493. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11494. hardcode_libdir_flag_spec_FC='-R$libdir'
  11495. hardcode_direct_FC=yes
  11496. hardcode_shlibpath_var_FC=no
  11497. ;;
  11498. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11499. freebsd2*)
  11500. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11501. hardcode_direct_FC=yes
  11502. hardcode_minus_L_FC=yes
  11503. hardcode_shlibpath_var_FC=no
  11504. ;;
  11505. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11506. freebsd* | dragonfly*)
  11507. archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11508. hardcode_libdir_flag_spec_FC='-R$libdir'
  11509. hardcode_direct_FC=yes
  11510. hardcode_shlibpath_var_FC=no
  11511. ;;
  11512. hpux9*)
  11513. if test "$GCC" = yes; then
  11514. archive_cmds_FC='$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'
  11515. else
  11516. archive_cmds_FC='$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'
  11517. fi
  11518. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11519. hardcode_libdir_separator_FC=:
  11520. hardcode_direct_FC=yes
  11521. # hardcode_minus_L: Not really in the search PATH,
  11522. # but as the default location of the library.
  11523. hardcode_minus_L_FC=yes
  11524. export_dynamic_flag_spec_FC='${wl}-E'
  11525. ;;
  11526. hpux10*)
  11527. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11528. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11529. else
  11530. archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11531. fi
  11532. if test "$with_gnu_ld" = no; then
  11533. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11534. hardcode_libdir_flag_spec_ld_FC='+b $libdir'
  11535. hardcode_libdir_separator_FC=:
  11536. hardcode_direct_FC=yes
  11537. hardcode_direct_absolute_FC=yes
  11538. export_dynamic_flag_spec_FC='${wl}-E'
  11539. # hardcode_minus_L: Not really in the search PATH,
  11540. # but as the default location of the library.
  11541. hardcode_minus_L_FC=yes
  11542. fi
  11543. ;;
  11544. hpux11*)
  11545. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11546. case $host_cpu in
  11547. hppa*64*)
  11548. archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11549. ;;
  11550. ia64*)
  11551. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11552. ;;
  11553. *)
  11554. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11555. ;;
  11556. esac
  11557. else
  11558. case $host_cpu in
  11559. hppa*64*)
  11560. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11561. ;;
  11562. ia64*)
  11563. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11564. ;;
  11565. *)
  11566. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11567. ;;
  11568. esac
  11569. fi
  11570. if test "$with_gnu_ld" = no; then
  11571. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11572. hardcode_libdir_separator_FC=:
  11573. case $host_cpu in
  11574. hppa*64*|ia64*)
  11575. hardcode_direct_FC=no
  11576. hardcode_shlibpath_var_FC=no
  11577. ;;
  11578. *)
  11579. hardcode_direct_FC=yes
  11580. hardcode_direct_absolute_FC=yes
  11581. export_dynamic_flag_spec_FC='${wl}-E'
  11582. # hardcode_minus_L: Not really in the search PATH,
  11583. # but as the default location of the library.
  11584. hardcode_minus_L_FC=yes
  11585. ;;
  11586. esac
  11587. fi
  11588. ;;
  11589. irix5* | irix6* | nonstopux*)
  11590. if test "$GCC" = yes; then
  11591. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11592. # Try to use the -exported_symbol ld option, if it does not
  11593. # work, assume that -exports_file does not work either and
  11594. # implicitly export all symbols.
  11595. save_LDFLAGS="$LDFLAGS"
  11596. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11597. if test x$gcc_no_link = xyes; then
  11598. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11599. fi
  11600. cat > conftest.$ac_ext <<_ACEOF
  11601. int foo(void) {}
  11602. _ACEOF
  11603. if ac_fn_fc_try_link "$LINENO"; then :
  11604. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  11605. fi
  11606. rm -f core conftest.err conftest.$ac_objext \
  11607. conftest$ac_exeext conftest.$ac_ext
  11608. LDFLAGS="$save_LDFLAGS"
  11609. else
  11610. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11611. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  11612. fi
  11613. archive_cmds_need_lc_FC='no'
  11614. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11615. hardcode_libdir_separator_FC=:
  11616. inherit_rpath_FC=yes
  11617. link_all_deplibs_FC=yes
  11618. ;;
  11619. netbsd*)
  11620. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11621. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11622. else
  11623. archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11624. fi
  11625. hardcode_libdir_flag_spec_FC='-R$libdir'
  11626. hardcode_direct_FC=yes
  11627. hardcode_shlibpath_var_FC=no
  11628. ;;
  11629. newsos6)
  11630. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11631. hardcode_direct_FC=yes
  11632. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11633. hardcode_libdir_separator_FC=:
  11634. hardcode_shlibpath_var_FC=no
  11635. ;;
  11636. *nto* | *qnx*)
  11637. ;;
  11638. openbsd*)
  11639. if test -f /usr/libexec/ld.so; then
  11640. hardcode_direct_FC=yes
  11641. hardcode_shlibpath_var_FC=no
  11642. hardcode_direct_absolute_FC=yes
  11643. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11644. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11645. archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11646. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11647. export_dynamic_flag_spec_FC='${wl}-E'
  11648. else
  11649. case $host_os in
  11650. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11651. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11652. hardcode_libdir_flag_spec_FC='-R$libdir'
  11653. ;;
  11654. *)
  11655. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11656. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11657. ;;
  11658. esac
  11659. fi
  11660. else
  11661. ld_shlibs_FC=no
  11662. fi
  11663. ;;
  11664. os2*)
  11665. hardcode_libdir_flag_spec_FC='-L$libdir'
  11666. hardcode_minus_L_FC=yes
  11667. allow_undefined_flag_FC=unsupported
  11668. archive_cmds_FC='$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'
  11669. old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11670. ;;
  11671. osf3*)
  11672. if test "$GCC" = yes; then
  11673. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11674. archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11675. else
  11676. allow_undefined_flag_FC=' -expect_unresolved \*'
  11677. archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11678. fi
  11679. archive_cmds_need_lc_FC='no'
  11680. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11681. hardcode_libdir_separator_FC=:
  11682. ;;
  11683. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11684. if test "$GCC" = yes; then
  11685. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11686. archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11687. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11688. else
  11689. allow_undefined_flag_FC=' -expect_unresolved \*'
  11690. archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11691. archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11692. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  11693. # Both c and cxx compiler support -rpath directly
  11694. hardcode_libdir_flag_spec_FC='-rpath $libdir'
  11695. fi
  11696. archive_cmds_need_lc_FC='no'
  11697. hardcode_libdir_separator_FC=:
  11698. ;;
  11699. solaris*)
  11700. no_undefined_flag_FC=' -z defs'
  11701. if test "$GCC" = yes; then
  11702. wlarc='${wl}'
  11703. archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11704. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11705. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11706. else
  11707. case `$CC -V 2>&1` in
  11708. *"Compilers 5.0"*)
  11709. wlarc=''
  11710. archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11711. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11712. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11713. ;;
  11714. *)
  11715. wlarc='${wl}'
  11716. archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11717. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11718. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11719. ;;
  11720. esac
  11721. fi
  11722. hardcode_libdir_flag_spec_FC='-R$libdir'
  11723. hardcode_shlibpath_var_FC=no
  11724. case $host_os in
  11725. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11726. *)
  11727. # The compiler driver will combine and reorder linker options,
  11728. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11729. # but is careful enough not to reorder.
  11730. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11731. if test "$GCC" = yes; then
  11732. whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11733. else
  11734. whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
  11735. fi
  11736. ;;
  11737. esac
  11738. link_all_deplibs_FC=yes
  11739. ;;
  11740. sunos4*)
  11741. if test "x$host_vendor" = xsequent; then
  11742. # Use $CC to link under sequent, because it throws in some extra .o
  11743. # files that make .init and .fini sections work.
  11744. archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11745. else
  11746. archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11747. fi
  11748. hardcode_libdir_flag_spec_FC='-L$libdir'
  11749. hardcode_direct_FC=yes
  11750. hardcode_minus_L_FC=yes
  11751. hardcode_shlibpath_var_FC=no
  11752. ;;
  11753. sysv4)
  11754. case $host_vendor in
  11755. sni)
  11756. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11757. hardcode_direct_FC=yes # is this really true???
  11758. ;;
  11759. siemens)
  11760. ## LD is ld it makes a PLAMLIB
  11761. ## CC just makes a GrossModule.
  11762. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11763. reload_cmds_FC='$CC -r -o $output$reload_objs'
  11764. hardcode_direct_FC=no
  11765. ;;
  11766. motorola)
  11767. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11768. hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
  11769. ;;
  11770. esac
  11771. runpath_var='LD_RUN_PATH'
  11772. hardcode_shlibpath_var_FC=no
  11773. ;;
  11774. sysv4.3*)
  11775. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11776. hardcode_shlibpath_var_FC=no
  11777. export_dynamic_flag_spec_FC='-Bexport'
  11778. ;;
  11779. sysv4*MP*)
  11780. if test -d /usr/nec; then
  11781. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11782. hardcode_shlibpath_var_FC=no
  11783. runpath_var=LD_RUN_PATH
  11784. hardcode_runpath_var=yes
  11785. ld_shlibs_FC=yes
  11786. fi
  11787. ;;
  11788. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11789. no_undefined_flag_FC='${wl}-z,text'
  11790. archive_cmds_need_lc_FC=no
  11791. hardcode_shlibpath_var_FC=no
  11792. runpath_var='LD_RUN_PATH'
  11793. if test "$GCC" = yes; then
  11794. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11795. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. else
  11797. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. fi
  11800. ;;
  11801. sysv5* | sco3.2v5* | sco5v6*)
  11802. # Note: We can NOT use -z defs as we might desire, because we do not
  11803. # link with -lc, and that would cause any symbols used from libc to
  11804. # always be unresolved, which means just about no library would
  11805. # ever link correctly. If we're not using GNU ld we use -z text
  11806. # though, which does catch some bad symbols but isn't as heavy-handed
  11807. # as -z defs.
  11808. no_undefined_flag_FC='${wl}-z,text'
  11809. allow_undefined_flag_FC='${wl}-z,nodefs'
  11810. archive_cmds_need_lc_FC=no
  11811. hardcode_shlibpath_var_FC=no
  11812. hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
  11813. hardcode_libdir_separator_FC=':'
  11814. link_all_deplibs_FC=yes
  11815. export_dynamic_flag_spec_FC='${wl}-Bexport'
  11816. runpath_var='LD_RUN_PATH'
  11817. if test "$GCC" = yes; then
  11818. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. else
  11821. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11822. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11823. fi
  11824. ;;
  11825. uts4*)
  11826. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11827. hardcode_libdir_flag_spec_FC='-L$libdir'
  11828. hardcode_shlibpath_var_FC=no
  11829. ;;
  11830. *)
  11831. ld_shlibs_FC=no
  11832. ;;
  11833. esac
  11834. if test x$host_vendor = xsni; then
  11835. case $host in
  11836. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11837. export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
  11838. ;;
  11839. esac
  11840. fi
  11841. fi
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
  11843. $as_echo "$ld_shlibs_FC" >&6; }
  11844. test "$ld_shlibs_FC" = no && can_build_shared=no
  11845. with_gnu_ld_FC=$with_gnu_ld
  11846. #
  11847. # Do we need to explicitly link libc?
  11848. #
  11849. case "x$archive_cmds_need_lc_FC" in
  11850. x|xyes)
  11851. # Assume -lc should be added
  11852. archive_cmds_need_lc_FC=yes
  11853. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11854. case $archive_cmds_FC in
  11855. *'~'*)
  11856. # FIXME: we may have to deal with multi-command sequences.
  11857. ;;
  11858. '$CC '*)
  11859. # Test whether the compiler implicitly links with -lc since on some
  11860. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11861. # to ld, don't add -lc before -lgcc.
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11863. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11864. if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
  11865. $as_echo_n "(cached) " >&6
  11866. else
  11867. $RM conftest*
  11868. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11869. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11870. (eval $ac_compile) 2>&5
  11871. ac_status=$?
  11872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11873. test $ac_status = 0; } 2>conftest.err; then
  11874. soname=conftest
  11875. lib=conftest
  11876. libobjs=conftest.$ac_objext
  11877. deplibs=
  11878. wl=$lt_prog_compiler_wl_FC
  11879. pic_flag=$lt_prog_compiler_pic_FC
  11880. compiler_flags=-v
  11881. linker_flags=-v
  11882. verstring=
  11883. output_objdir=.
  11884. libname=conftest
  11885. lt_save_allow_undefined_flag=$allow_undefined_flag_FC
  11886. allow_undefined_flag_FC=
  11887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11888. (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11889. ac_status=$?
  11890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11891. test $ac_status = 0; }
  11892. then
  11893. lt_cv_archive_cmds_need_lc_FC=no
  11894. else
  11895. lt_cv_archive_cmds_need_lc_FC=yes
  11896. fi
  11897. allow_undefined_flag_FC=$lt_save_allow_undefined_flag
  11898. else
  11899. cat conftest.err 1>&5
  11900. fi
  11901. $RM conftest*
  11902. fi
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
  11904. $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
  11905. archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
  11906. ;;
  11907. esac
  11908. fi
  11909. ;;
  11910. esac
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11912. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11913. library_names_spec=
  11914. libname_spec='lib$name'
  11915. soname_spec=
  11916. shrext_cmds=".so"
  11917. postinstall_cmds=
  11918. postuninstall_cmds=
  11919. finish_cmds=
  11920. finish_eval=
  11921. shlibpath_var=
  11922. shlibpath_overrides_runpath=unknown
  11923. version_type=none
  11924. dynamic_linker="$host_os ld.so"
  11925. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11926. need_lib_prefix=unknown
  11927. hardcode_into_libs=no
  11928. # when you set need_version to no, make sure it does not cause -set_version
  11929. # flags to be left without arguments
  11930. need_version=unknown
  11931. case $host_os in
  11932. aix3*)
  11933. version_type=linux
  11934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11935. shlibpath_var=LIBPATH
  11936. # AIX 3 has no versioning support, so we append a major version to the name.
  11937. soname_spec='${libname}${release}${shared_ext}$major'
  11938. ;;
  11939. aix[4-9]*)
  11940. version_type=linux
  11941. need_lib_prefix=no
  11942. need_version=no
  11943. hardcode_into_libs=yes
  11944. if test "$host_cpu" = ia64; then
  11945. # AIX 5 supports IA64
  11946. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11947. shlibpath_var=LD_LIBRARY_PATH
  11948. else
  11949. # With GCC up to 2.95.x, collect2 would create an import file
  11950. # for dependence libraries. The import file would start with
  11951. # the line `#! .'. This would cause the generated library to
  11952. # depend on `.', always an invalid library. This was fixed in
  11953. # development snapshots of GCC prior to 3.0.
  11954. case $host_os in
  11955. aix4 | aix4.[01] | aix4.[01].*)
  11956. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11957. echo ' yes '
  11958. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11959. :
  11960. else
  11961. can_build_shared=no
  11962. fi
  11963. ;;
  11964. esac
  11965. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11966. # soname into executable. Probably we can add versioning support to
  11967. # collect2, so additional links can be useful in future.
  11968. if test "$aix_use_runtimelinking" = yes; then
  11969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11970. # instead of lib<name>.a to let people know that these are not
  11971. # typical AIX shared libraries.
  11972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11973. else
  11974. # We preserve .a as extension for shared libraries through AIX4.2
  11975. # and later when we are not doing run time linking.
  11976. library_names_spec='${libname}${release}.a $libname.a'
  11977. soname_spec='${libname}${release}${shared_ext}$major'
  11978. fi
  11979. shlibpath_var=LIBPATH
  11980. fi
  11981. ;;
  11982. amigaos*)
  11983. case $host_cpu in
  11984. powerpc)
  11985. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11986. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11988. ;;
  11989. m68k)
  11990. library_names_spec='$libname.ixlibrary $libname.a'
  11991. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11992. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11993. ;;
  11994. esac
  11995. ;;
  11996. beos*)
  11997. library_names_spec='${libname}${shared_ext}'
  11998. dynamic_linker="$host_os ld.so"
  11999. shlibpath_var=LIBRARY_PATH
  12000. ;;
  12001. bsdi[45]*)
  12002. version_type=linux
  12003. need_version=no
  12004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12005. soname_spec='${libname}${release}${shared_ext}$major'
  12006. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12007. shlibpath_var=LD_LIBRARY_PATH
  12008. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12009. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12010. # the default ld.so.conf also contains /usr/contrib/lib and
  12011. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12012. # libtool to hard-code these into programs
  12013. ;;
  12014. cygwin* | mingw* | pw32* | cegcc*)
  12015. version_type=windows
  12016. shrext_cmds=".dll"
  12017. need_version=no
  12018. need_lib_prefix=no
  12019. case $GCC,$host_os in
  12020. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12021. library_names_spec='$libname.dll.a'
  12022. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12023. postinstall_cmds='base_file=`basename \${file}`~
  12024. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12025. dldir=$destdir/`dirname \$dlpath`~
  12026. test -d \$dldir || mkdir -p \$dldir~
  12027. $install_prog $dir/$dlname \$dldir/$dlname~
  12028. chmod a+x \$dldir/$dlname~
  12029. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12030. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12031. fi'
  12032. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12033. dlpath=$dir/\$dldll~
  12034. $RM \$dlpath'
  12035. shlibpath_overrides_runpath=yes
  12036. case $host_os in
  12037. cygwin*)
  12038. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12039. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12040. ;;
  12041. mingw* | cegcc*)
  12042. # MinGW DLLs use traditional 'lib' prefix
  12043. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12044. ;;
  12045. pw32*)
  12046. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12047. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12048. ;;
  12049. esac
  12050. ;;
  12051. *)
  12052. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12053. ;;
  12054. esac
  12055. dynamic_linker='Win32 ld.exe'
  12056. # FIXME: first we should search . and the directory the executable is in
  12057. shlibpath_var=PATH
  12058. ;;
  12059. darwin* | rhapsody*)
  12060. dynamic_linker="$host_os dyld"
  12061. version_type=darwin
  12062. need_lib_prefix=no
  12063. need_version=no
  12064. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12065. soname_spec='${libname}${release}${major}$shared_ext'
  12066. shlibpath_overrides_runpath=yes
  12067. shlibpath_var=DYLD_LIBRARY_PATH
  12068. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12069. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12070. ;;
  12071. dgux*)
  12072. version_type=linux
  12073. need_lib_prefix=no
  12074. need_version=no
  12075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12076. soname_spec='${libname}${release}${shared_ext}$major'
  12077. shlibpath_var=LD_LIBRARY_PATH
  12078. ;;
  12079. freebsd1*)
  12080. dynamic_linker=no
  12081. ;;
  12082. freebsd* | dragonfly*)
  12083. # DragonFly does not have aout. When/if they implement a new
  12084. # versioning mechanism, adjust this.
  12085. if test -x /usr/bin/objformat; then
  12086. objformat=`/usr/bin/objformat`
  12087. else
  12088. case $host_os in
  12089. freebsd[123]*) objformat=aout ;;
  12090. *) objformat=elf ;;
  12091. esac
  12092. fi
  12093. version_type=freebsd-$objformat
  12094. case $version_type in
  12095. freebsd-elf*)
  12096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12097. need_version=no
  12098. need_lib_prefix=no
  12099. ;;
  12100. freebsd-*)
  12101. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12102. need_version=yes
  12103. ;;
  12104. esac
  12105. shlibpath_var=LD_LIBRARY_PATH
  12106. case $host_os in
  12107. freebsd2*)
  12108. shlibpath_overrides_runpath=yes
  12109. ;;
  12110. freebsd3.[01]* | freebsdelf3.[01]*)
  12111. shlibpath_overrides_runpath=yes
  12112. hardcode_into_libs=yes
  12113. ;;
  12114. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12115. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12116. shlibpath_overrides_runpath=no
  12117. hardcode_into_libs=yes
  12118. ;;
  12119. *) # from 4.6 on, and DragonFly
  12120. shlibpath_overrides_runpath=yes
  12121. hardcode_into_libs=yes
  12122. ;;
  12123. esac
  12124. ;;
  12125. gnu*)
  12126. version_type=linux
  12127. need_lib_prefix=no
  12128. need_version=no
  12129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12130. soname_spec='${libname}${release}${shared_ext}$major'
  12131. shlibpath_var=LD_LIBRARY_PATH
  12132. hardcode_into_libs=yes
  12133. ;;
  12134. haiku*)
  12135. version_type=linux
  12136. need_lib_prefix=no
  12137. need_version=no
  12138. dynamic_linker="$host_os runtime_loader"
  12139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12140. soname_spec='${libname}${release}${shared_ext}$major'
  12141. shlibpath_var=LIBRARY_PATH
  12142. shlibpath_overrides_runpath=yes
  12143. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12144. hardcode_into_libs=yes
  12145. ;;
  12146. hpux9* | hpux10* | hpux11*)
  12147. # Give a soname corresponding to the major version so that dld.sl refuses to
  12148. # link against other versions.
  12149. version_type=sunos
  12150. need_lib_prefix=no
  12151. need_version=no
  12152. case $host_cpu in
  12153. ia64*)
  12154. shrext_cmds='.so'
  12155. hardcode_into_libs=yes
  12156. dynamic_linker="$host_os dld.so"
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. if test "X$HPUX_IA64_MODE" = X32; then
  12162. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12163. else
  12164. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12165. fi
  12166. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12167. ;;
  12168. hppa*64*)
  12169. shrext_cmds='.sl'
  12170. hardcode_into_libs=yes
  12171. dynamic_linker="$host_os dld.sl"
  12172. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12175. soname_spec='${libname}${release}${shared_ext}$major'
  12176. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12177. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12178. ;;
  12179. *)
  12180. shrext_cmds='.sl'
  12181. dynamic_linker="$host_os dld.sl"
  12182. shlibpath_var=SHLIB_PATH
  12183. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12185. soname_spec='${libname}${release}${shared_ext}$major'
  12186. ;;
  12187. esac
  12188. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12189. postinstall_cmds='chmod 555 $lib'
  12190. # or fails outright, so override atomically:
  12191. install_override_mode=555
  12192. ;;
  12193. interix[3-9]*)
  12194. version_type=linux
  12195. need_lib_prefix=no
  12196. need_version=no
  12197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12198. soname_spec='${libname}${release}${shared_ext}$major'
  12199. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12200. shlibpath_var=LD_LIBRARY_PATH
  12201. shlibpath_overrides_runpath=no
  12202. hardcode_into_libs=yes
  12203. ;;
  12204. irix5* | irix6* | nonstopux*)
  12205. case $host_os in
  12206. nonstopux*) version_type=nonstopux ;;
  12207. *)
  12208. if test "$lt_cv_prog_gnu_ld" = yes; then
  12209. version_type=linux
  12210. else
  12211. version_type=irix
  12212. fi ;;
  12213. esac
  12214. need_lib_prefix=no
  12215. need_version=no
  12216. soname_spec='${libname}${release}${shared_ext}$major'
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12218. case $host_os in
  12219. irix5* | nonstopux*)
  12220. libsuff= shlibsuff=
  12221. ;;
  12222. *)
  12223. case $LD in # libtool.m4 will add one of these switches to LD
  12224. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12225. libsuff= shlibsuff= libmagic=32-bit;;
  12226. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12227. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12228. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12229. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12230. *) libsuff= shlibsuff= libmagic=never-match;;
  12231. esac
  12232. ;;
  12233. esac
  12234. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12235. shlibpath_overrides_runpath=no
  12236. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12237. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12238. hardcode_into_libs=yes
  12239. ;;
  12240. # No shared lib support for Linux oldld, aout, or coff.
  12241. linux*oldld* | linux*aout* | linux*coff*)
  12242. dynamic_linker=no
  12243. ;;
  12244. # This must be Linux ELF.
  12245. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12246. version_type=linux
  12247. need_lib_prefix=no
  12248. need_version=no
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12250. soname_spec='${libname}${release}${shared_ext}$major'
  12251. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12252. shlibpath_var=LD_LIBRARY_PATH
  12253. shlibpath_overrides_runpath=no
  12254. # Some binutils ld are patched to set DT_RUNPATH
  12255. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12256. $as_echo_n "(cached) " >&6
  12257. else
  12258. lt_cv_shlibpath_overrides_runpath=no
  12259. save_LDFLAGS=$LDFLAGS
  12260. save_libdir=$libdir
  12261. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
  12262. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  12263. if test x$gcc_no_link = xyes; then
  12264. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12265. fi
  12266. cat > conftest.$ac_ext <<_ACEOF
  12267. program main
  12268. end
  12269. _ACEOF
  12270. if ac_fn_fc_try_link "$LINENO"; then :
  12271. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12272. lt_cv_shlibpath_overrides_runpath=yes
  12273. fi
  12274. fi
  12275. rm -f core conftest.err conftest.$ac_objext \
  12276. conftest$ac_exeext conftest.$ac_ext
  12277. LDFLAGS=$save_LDFLAGS
  12278. libdir=$save_libdir
  12279. fi
  12280. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12281. # This implies no fast_install, which is unacceptable.
  12282. # Some rework will be needed to allow for fast_install
  12283. # before this can be enabled.
  12284. hardcode_into_libs=yes
  12285. # Append ld.so.conf contents to the search path
  12286. if test -f /etc/ld.so.conf; then
  12287. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12288. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12289. fi
  12290. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12291. # powerpc, because MkLinux only supported shared libraries with the
  12292. # GNU dynamic linker. Since this was broken with cross compilers,
  12293. # most powerpc-linux boxes support dynamic linking these days and
  12294. # people can always --disable-shared, the test was removed, and we
  12295. # assume the GNU/Linux dynamic linker is in use.
  12296. dynamic_linker='GNU/Linux ld.so'
  12297. ;;
  12298. netbsd*)
  12299. version_type=sunos
  12300. need_lib_prefix=no
  12301. need_version=no
  12302. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12304. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12305. dynamic_linker='NetBSD (a.out) ld.so'
  12306. else
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. dynamic_linker='NetBSD ld.elf_so'
  12310. fi
  12311. shlibpath_var=LD_LIBRARY_PATH
  12312. shlibpath_overrides_runpath=yes
  12313. hardcode_into_libs=yes
  12314. ;;
  12315. newsos6)
  12316. version_type=linux
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. shlibpath_overrides_runpath=yes
  12320. ;;
  12321. *nto* | *qnx*)
  12322. version_type=qnx
  12323. need_lib_prefix=no
  12324. need_version=no
  12325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12326. soname_spec='${libname}${release}${shared_ext}$major'
  12327. shlibpath_var=LD_LIBRARY_PATH
  12328. shlibpath_overrides_runpath=no
  12329. hardcode_into_libs=yes
  12330. dynamic_linker='ldqnx.so'
  12331. ;;
  12332. openbsd*)
  12333. version_type=sunos
  12334. sys_lib_dlsearch_path_spec="/usr/lib"
  12335. need_lib_prefix=no
  12336. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12337. case $host_os in
  12338. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12339. *) need_version=no ;;
  12340. esac
  12341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12343. shlibpath_var=LD_LIBRARY_PATH
  12344. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12345. case $host_os in
  12346. openbsd2.[89] | openbsd2.[89].*)
  12347. shlibpath_overrides_runpath=no
  12348. ;;
  12349. *)
  12350. shlibpath_overrides_runpath=yes
  12351. ;;
  12352. esac
  12353. else
  12354. shlibpath_overrides_runpath=yes
  12355. fi
  12356. ;;
  12357. os2*)
  12358. libname_spec='$name'
  12359. shrext_cmds=".dll"
  12360. need_lib_prefix=no
  12361. library_names_spec='$libname${shared_ext} $libname.a'
  12362. dynamic_linker='OS/2 ld.exe'
  12363. shlibpath_var=LIBPATH
  12364. ;;
  12365. osf3* | osf4* | osf5*)
  12366. version_type=osf
  12367. need_lib_prefix=no
  12368. need_version=no
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12373. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12374. ;;
  12375. rdos*)
  12376. dynamic_linker=no
  12377. ;;
  12378. solaris*)
  12379. version_type=linux
  12380. need_lib_prefix=no
  12381. need_version=no
  12382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12383. soname_spec='${libname}${release}${shared_ext}$major'
  12384. shlibpath_var=LD_LIBRARY_PATH
  12385. shlibpath_overrides_runpath=yes
  12386. hardcode_into_libs=yes
  12387. # ldd complains unless libraries are executable
  12388. postinstall_cmds='chmod +x $lib'
  12389. ;;
  12390. sunos4*)
  12391. version_type=sunos
  12392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12393. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12394. shlibpath_var=LD_LIBRARY_PATH
  12395. shlibpath_overrides_runpath=yes
  12396. if test "$with_gnu_ld" = yes; then
  12397. need_lib_prefix=no
  12398. fi
  12399. need_version=yes
  12400. ;;
  12401. sysv4 | sysv4.3*)
  12402. version_type=linux
  12403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12404. soname_spec='${libname}${release}${shared_ext}$major'
  12405. shlibpath_var=LD_LIBRARY_PATH
  12406. case $host_vendor in
  12407. sni)
  12408. shlibpath_overrides_runpath=no
  12409. need_lib_prefix=no
  12410. runpath_var=LD_RUN_PATH
  12411. ;;
  12412. siemens)
  12413. need_lib_prefix=no
  12414. ;;
  12415. motorola)
  12416. need_lib_prefix=no
  12417. need_version=no
  12418. shlibpath_overrides_runpath=no
  12419. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12420. ;;
  12421. esac
  12422. ;;
  12423. sysv4*MP*)
  12424. if test -d /usr/nec ;then
  12425. version_type=linux
  12426. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12427. soname_spec='$libname${shared_ext}.$major'
  12428. shlibpath_var=LD_LIBRARY_PATH
  12429. fi
  12430. ;;
  12431. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12432. version_type=freebsd-elf
  12433. need_lib_prefix=no
  12434. need_version=no
  12435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12436. soname_spec='${libname}${release}${shared_ext}$major'
  12437. shlibpath_var=LD_LIBRARY_PATH
  12438. shlibpath_overrides_runpath=yes
  12439. hardcode_into_libs=yes
  12440. if test "$with_gnu_ld" = yes; then
  12441. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12442. else
  12443. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12444. case $host_os in
  12445. sco3.2v5*)
  12446. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12447. ;;
  12448. esac
  12449. fi
  12450. sys_lib_dlsearch_path_spec='/usr/lib'
  12451. ;;
  12452. tpf*)
  12453. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12454. version_type=linux
  12455. need_lib_prefix=no
  12456. need_version=no
  12457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12458. shlibpath_var=LD_LIBRARY_PATH
  12459. shlibpath_overrides_runpath=no
  12460. hardcode_into_libs=yes
  12461. ;;
  12462. uts4*)
  12463. version_type=linux
  12464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12465. soname_spec='${libname}${release}${shared_ext}$major'
  12466. shlibpath_var=LD_LIBRARY_PATH
  12467. ;;
  12468. *)
  12469. dynamic_linker=no
  12470. ;;
  12471. esac
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12473. $as_echo "$dynamic_linker" >&6; }
  12474. test "$dynamic_linker" = no && can_build_shared=no
  12475. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12476. if test "$GCC" = yes; then
  12477. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12478. fi
  12479. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12480. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12481. fi
  12482. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12483. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12484. fi
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12486. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12487. hardcode_action_FC=
  12488. if test -n "$hardcode_libdir_flag_spec_FC" ||
  12489. test -n "$runpath_var_FC" ||
  12490. test "X$hardcode_automatic_FC" = "Xyes" ; then
  12491. # We can hardcode non-existent directories.
  12492. if test "$hardcode_direct_FC" != no &&
  12493. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12494. # have to relink, otherwise we might link with an installed library
  12495. # when we should be linking with a yet-to-be-installed one
  12496. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
  12497. test "$hardcode_minus_L_FC" != no; then
  12498. # Linking always hardcodes the temporary library directory.
  12499. hardcode_action_FC=relink
  12500. else
  12501. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12502. hardcode_action_FC=immediate
  12503. fi
  12504. else
  12505. # We cannot hardcode anything, or else we can only hardcode existing
  12506. # directories.
  12507. hardcode_action_FC=unsupported
  12508. fi
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
  12510. $as_echo "$hardcode_action_FC" >&6; }
  12511. if test "$hardcode_action_FC" = relink ||
  12512. test "$inherit_rpath_FC" = yes; then
  12513. # Fast installation is not supported
  12514. enable_fast_install=no
  12515. elif test "$shlibpath_overrides_runpath" = yes ||
  12516. test "$enable_shared" = no; then
  12517. # Fast installation is not necessary
  12518. enable_fast_install=needless
  12519. fi
  12520. fi # test -n "$compiler"
  12521. GCC=$lt_save_GCC
  12522. CC="$lt_save_CC"
  12523. fi # test "$_lt_disable_FC" != yes
  12524. ac_ext=c
  12525. ac_cpp='$CPP $CPPFLAGS'
  12526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12529. # extra LD Flags which are required for targets
  12530. case "${host}" in
  12531. *-darwin*)
  12532. # Darwin needs -single_module when linking libgfortran
  12533. extra_ldflags_libgfortran=-Wl,-single_module
  12534. ;;
  12535. esac
  12536. # We need a working compiler at that point, otherwise give a clear
  12537. # error message and bail out.
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
  12539. $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
  12540. ac_ext=${ac_fc_srcext-f}
  12541. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  12542. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  12543. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  12544. cat > conftest.$ac_ext <<_ACEOF
  12545. program foo
  12546. real, parameter :: bar = sin (12.34 / 2.5)
  12547. end program foo
  12548. _ACEOF
  12549. if ac_fn_fc_try_compile "$LINENO"; then :
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12551. $as_echo "yes" >&6; }
  12552. else
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12554. $as_echo "no" >&6; }
  12555. as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
  12556. fi
  12557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12558. ac_ext=c
  12559. ac_cpp='$CPP $CPPFLAGS'
  12560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12563. # Check whether --enable-largefile was given.
  12564. if test "${enable_largefile+set}" = set; then :
  12565. enableval=$enable_largefile;
  12566. fi
  12567. if test "$enable_largefile" != no; then
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12569. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12570. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  12571. $as_echo_n "(cached) " >&6
  12572. else
  12573. ac_cv_sys_largefile_CC=no
  12574. if test "$GCC" != yes; then
  12575. ac_save_CC=$CC
  12576. while :; do
  12577. # IRIX 6.2 and later do not support large files by default,
  12578. # so use the C compiler's -n32 option if that helps.
  12579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. /* end confdefs.h. */
  12581. #include <sys/types.h>
  12582. /* Check that off_t can represent 2**63 - 1 correctly.
  12583. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12584. since some C++ compilers masquerading as C compilers
  12585. incorrectly reject 9223372036854775807. */
  12586. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12587. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12588. && LARGE_OFF_T % 2147483647 == 1)
  12589. ? 1 : -1];
  12590. int
  12591. main ()
  12592. {
  12593. ;
  12594. return 0;
  12595. }
  12596. _ACEOF
  12597. if ac_fn_c_try_compile "$LINENO"; then :
  12598. break
  12599. fi
  12600. rm -f core conftest.err conftest.$ac_objext
  12601. CC="$CC -n32"
  12602. if ac_fn_c_try_compile "$LINENO"; then :
  12603. ac_cv_sys_largefile_CC=' -n32'; break
  12604. fi
  12605. rm -f core conftest.err conftest.$ac_objext
  12606. break
  12607. done
  12608. CC=$ac_save_CC
  12609. rm -f conftest.$ac_ext
  12610. fi
  12611. fi
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12613. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12614. if test "$ac_cv_sys_largefile_CC" != no; then
  12615. CC=$CC$ac_cv_sys_largefile_CC
  12616. fi
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12618. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12619. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. while :; do
  12623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12624. /* end confdefs.h. */
  12625. #include <sys/types.h>
  12626. /* Check that off_t can represent 2**63 - 1 correctly.
  12627. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12628. since some C++ compilers masquerading as C compilers
  12629. incorrectly reject 9223372036854775807. */
  12630. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12631. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12632. && LARGE_OFF_T % 2147483647 == 1)
  12633. ? 1 : -1];
  12634. int
  12635. main ()
  12636. {
  12637. ;
  12638. return 0;
  12639. }
  12640. _ACEOF
  12641. if ac_fn_c_try_compile "$LINENO"; then :
  12642. ac_cv_sys_file_offset_bits=no; break
  12643. fi
  12644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12646. /* end confdefs.h. */
  12647. #define _FILE_OFFSET_BITS 64
  12648. #include <sys/types.h>
  12649. /* Check that off_t can represent 2**63 - 1 correctly.
  12650. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12651. since some C++ compilers masquerading as C compilers
  12652. incorrectly reject 9223372036854775807. */
  12653. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12654. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12655. && LARGE_OFF_T % 2147483647 == 1)
  12656. ? 1 : -1];
  12657. int
  12658. main ()
  12659. {
  12660. ;
  12661. return 0;
  12662. }
  12663. _ACEOF
  12664. if ac_fn_c_try_compile "$LINENO"; then :
  12665. ac_cv_sys_file_offset_bits=64; break
  12666. fi
  12667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12668. ac_cv_sys_file_offset_bits=unknown
  12669. break
  12670. done
  12671. fi
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12673. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12674. case $ac_cv_sys_file_offset_bits in #(
  12675. no | unknown) ;;
  12676. *)
  12677. cat >>confdefs.h <<_ACEOF
  12678. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12679. _ACEOF
  12680. ;;
  12681. esac
  12682. rm -rf conftest*
  12683. if test $ac_cv_sys_file_offset_bits = unknown; then
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12685. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12686. if test "${ac_cv_sys_large_files+set}" = set; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. while :; do
  12690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12691. /* end confdefs.h. */
  12692. #include <sys/types.h>
  12693. /* Check that off_t can represent 2**63 - 1 correctly.
  12694. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12695. since some C++ compilers masquerading as C compilers
  12696. incorrectly reject 9223372036854775807. */
  12697. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12698. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12699. && LARGE_OFF_T % 2147483647 == 1)
  12700. ? 1 : -1];
  12701. int
  12702. main ()
  12703. {
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. if ac_fn_c_try_compile "$LINENO"; then :
  12709. ac_cv_sys_large_files=no; break
  12710. fi
  12711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #define _LARGE_FILES 1
  12715. #include <sys/types.h>
  12716. /* Check that off_t can represent 2**63 - 1 correctly.
  12717. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12718. since some C++ compilers masquerading as C compilers
  12719. incorrectly reject 9223372036854775807. */
  12720. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12721. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12722. && LARGE_OFF_T % 2147483647 == 1)
  12723. ? 1 : -1];
  12724. int
  12725. main ()
  12726. {
  12727. ;
  12728. return 0;
  12729. }
  12730. _ACEOF
  12731. if ac_fn_c_try_compile "$LINENO"; then :
  12732. ac_cv_sys_large_files=1; break
  12733. fi
  12734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12735. ac_cv_sys_large_files=unknown
  12736. break
  12737. done
  12738. fi
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12740. $as_echo "$ac_cv_sys_large_files" >&6; }
  12741. case $ac_cv_sys_large_files in #(
  12742. no | unknown) ;;
  12743. *)
  12744. cat >>confdefs.h <<_ACEOF
  12745. #define _LARGE_FILES $ac_cv_sys_large_files
  12746. _ACEOF
  12747. ;;
  12748. esac
  12749. rm -rf conftest*
  12750. fi
  12751. fi
  12752. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12753. if test "x$ac_cv_type_off_t" = x""yes; then :
  12754. else
  12755. cat >>confdefs.h <<_ACEOF
  12756. #define off_t long int
  12757. _ACEOF
  12758. fi
  12759. # check header files
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12761. $as_echo_n "checking for ANSI C header files... " >&6; }
  12762. if test "${ac_cv_header_stdc+set}" = set; then :
  12763. $as_echo_n "(cached) " >&6
  12764. else
  12765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12766. /* end confdefs.h. */
  12767. #include <stdlib.h>
  12768. #include <stdarg.h>
  12769. #include <string.h>
  12770. #include <float.h>
  12771. int
  12772. main ()
  12773. {
  12774. ;
  12775. return 0;
  12776. }
  12777. _ACEOF
  12778. if ac_fn_c_try_compile "$LINENO"; then :
  12779. ac_cv_header_stdc=yes
  12780. else
  12781. ac_cv_header_stdc=no
  12782. fi
  12783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12784. if test $ac_cv_header_stdc = yes; then
  12785. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12787. /* end confdefs.h. */
  12788. #include <string.h>
  12789. _ACEOF
  12790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12791. $EGREP "memchr" >/dev/null 2>&1; then :
  12792. else
  12793. ac_cv_header_stdc=no
  12794. fi
  12795. rm -f conftest*
  12796. fi
  12797. if test $ac_cv_header_stdc = yes; then
  12798. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12800. /* end confdefs.h. */
  12801. #include <stdlib.h>
  12802. _ACEOF
  12803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12804. $EGREP "free" >/dev/null 2>&1; then :
  12805. else
  12806. ac_cv_header_stdc=no
  12807. fi
  12808. rm -f conftest*
  12809. fi
  12810. if test $ac_cv_header_stdc = yes; then
  12811. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12812. if test "$cross_compiling" = yes; then :
  12813. :
  12814. else
  12815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12816. /* end confdefs.h. */
  12817. #include <ctype.h>
  12818. #include <stdlib.h>
  12819. #if ((' ' & 0x0FF) == 0x020)
  12820. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12821. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12822. #else
  12823. # define ISLOWER(c) \
  12824. (('a' <= (c) && (c) <= 'i') \
  12825. || ('j' <= (c) && (c) <= 'r') \
  12826. || ('s' <= (c) && (c) <= 'z'))
  12827. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12828. #endif
  12829. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12830. int
  12831. main ()
  12832. {
  12833. int i;
  12834. for (i = 0; i < 256; i++)
  12835. if (XOR (islower (i), ISLOWER (i))
  12836. || toupper (i) != TOUPPER (i))
  12837. return 2;
  12838. return 0;
  12839. }
  12840. _ACEOF
  12841. if ac_fn_c_try_run "$LINENO"; then :
  12842. else
  12843. ac_cv_header_stdc=no
  12844. fi
  12845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12847. fi
  12848. fi
  12849. fi
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12851. $as_echo "$ac_cv_header_stdc" >&6; }
  12852. if test $ac_cv_header_stdc = yes; then
  12853. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12854. fi
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12856. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12857. if test "${ac_cv_header_time+set}" = set; then :
  12858. $as_echo_n "(cached) " >&6
  12859. else
  12860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12861. /* end confdefs.h. */
  12862. #include <sys/types.h>
  12863. #include <sys/time.h>
  12864. #include <time.h>
  12865. int
  12866. main ()
  12867. {
  12868. if ((struct tm *) 0)
  12869. return 0;
  12870. ;
  12871. return 0;
  12872. }
  12873. _ACEOF
  12874. if ac_fn_c_try_compile "$LINENO"; then :
  12875. ac_cv_header_time=yes
  12876. else
  12877. ac_cv_header_time=no
  12878. fi
  12879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12880. fi
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12882. $as_echo "$ac_cv_header_time" >&6; }
  12883. if test $ac_cv_header_time = yes; then
  12884. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12885. fi
  12886. for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
  12887. do :
  12888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12889. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12890. eval as_val=\$$as_ac_Header
  12891. if test "x$as_val" = x""yes; then :
  12892. cat >>confdefs.h <<_ACEOF
  12893. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12894. _ACEOF
  12895. fi
  12896. done
  12897. for ac_header in time.h sys/time.h sys/times.h sys/resource.h
  12898. do :
  12899. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12900. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12901. eval as_val=\$$as_ac_Header
  12902. if test "x$as_val" = x""yes; then :
  12903. cat >>confdefs.h <<_ACEOF
  12904. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12905. _ACEOF
  12906. fi
  12907. done
  12908. for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
  12909. do :
  12910. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12911. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12912. eval as_val=\$$as_ac_Header
  12913. if test "x$as_val" = x""yes; then :
  12914. cat >>confdefs.h <<_ACEOF
  12915. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12916. _ACEOF
  12917. fi
  12918. done
  12919. for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
  12920. do :
  12921. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12922. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12923. eval as_val=\$$as_ac_Header
  12924. if test "x$as_val" = x""yes; then :
  12925. cat >>confdefs.h <<_ACEOF
  12926. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12927. _ACEOF
  12928. fi
  12929. done
  12930. ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
  12931. if test "x$ac_cv_header_complex_h" = x""yes; then :
  12932. $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
  12933. fi
  12934. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  12935. acx_cv_header_stdint=stddef.h
  12936. acx_cv_header_stdint_kind="(already complete)"
  12937. for i in stdint.h $inttype_headers; do
  12938. unset ac_cv_type_uintptr_t
  12939. unset ac_cv_type_uintmax_t
  12940. unset ac_cv_type_int_least32_t
  12941. unset ac_cv_type_int_fast32_t
  12942. unset ac_cv_type_uint64_t
  12943. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  12944. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  12945. #include <$i>
  12946. "
  12947. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  12948. acx_cv_header_stdint=$i
  12949. else
  12950. continue
  12951. fi
  12952. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  12953. #include <$i>
  12954. "
  12955. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  12956. else
  12957. acx_cv_header_stdint_kind="(mostly complete)"
  12958. fi
  12959. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  12960. #include <$i>
  12961. "
  12962. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  12963. else
  12964. acx_cv_header_stdint_kind="(mostly complete)"
  12965. fi
  12966. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  12967. #include <$i>
  12968. "
  12969. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  12970. else
  12971. acx_cv_header_stdint_kind="(mostly complete)"
  12972. fi
  12973. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12974. #include <$i>
  12975. "
  12976. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  12977. else
  12978. acx_cv_header_stdint_kind="(lacks uint64_t)"
  12979. fi
  12980. break
  12981. done
  12982. if test "$acx_cv_header_stdint" = stddef.h; then
  12983. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  12984. for i in stdint.h $inttype_headers; do
  12985. unset ac_cv_type_uintptr_t
  12986. unset ac_cv_type_uint32_t
  12987. unset ac_cv_type_uint64_t
  12988. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  12989. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  12990. #include <$i>
  12991. "
  12992. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  12993. acx_cv_header_stdint=$i
  12994. else
  12995. continue
  12996. fi
  12997. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12998. #include <$i>
  12999. "
  13000. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  13001. fi
  13002. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13003. #include <$i>
  13004. "
  13005. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13006. fi
  13007. break
  13008. done
  13009. fi
  13010. if test "$acx_cv_header_stdint" = stddef.h; then
  13011. acx_cv_header_stdint_kind="(u_intXX_t style)"
  13012. for i in sys/types.h $inttype_headers; do
  13013. unset ac_cv_type_u_int32_t
  13014. unset ac_cv_type_u_int64_t
  13015. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  13016. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  13017. #include <$i>
  13018. "
  13019. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  13020. acx_cv_header_stdint=$i
  13021. else
  13022. continue
  13023. fi
  13024. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  13025. #include <$i>
  13026. "
  13027. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  13028. fi
  13029. break
  13030. done
  13031. fi
  13032. if test "$acx_cv_header_stdint" = stddef.h; then
  13033. acx_cv_header_stdint_kind="(using manual detection)"
  13034. fi
  13035. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  13036. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  13037. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  13038. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  13039. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  13040. # ----------------- Summarize what we found so far
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  13042. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  13043. case `$as_basename -- gstdint.h ||
  13044. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  13045. Xgstdint.h : 'X\(//\)$' \| \
  13046. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  13047. $as_echo X/gstdint.h |
  13048. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13049. s//\1/
  13050. q
  13051. }
  13052. /^X\/\(\/\/\)$/{
  13053. s//\1/
  13054. q
  13055. }
  13056. /^X\/\(\/\).*/{
  13057. s//\1/
  13058. q
  13059. }
  13060. s/.*/./; q'` in
  13061. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13062. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13063. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13064. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13065. *) ;;
  13066. esac
  13067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  13068. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  13069. # ----------------- done included file, check C basic types --------
  13070. # Lacking an uintptr_t? Test size of void *
  13071. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  13072. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  13073. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13074. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13075. # This bug is HP SR number 8606223364.
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13077. $as_echo_n "checking size of void *... " >&6; }
  13078. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13079. $as_echo_n "(cached) " >&6
  13080. else
  13081. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13082. else
  13083. if test "$ac_cv_type_void_p" = yes; then
  13084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13086. { as_fn_set_status 77
  13087. as_fn_error "cannot compute sizeof (void *)
  13088. See \`config.log' for more details." "$LINENO" 5; }; }
  13089. else
  13090. ac_cv_sizeof_void_p=0
  13091. fi
  13092. fi
  13093. fi
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13095. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13096. cat >>confdefs.h <<_ACEOF
  13097. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13098. _ACEOF
  13099. ;;
  13100. esac
  13101. # Lacking an uint64_t? Test size of long
  13102. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  13103. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  13104. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13105. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13106. # This bug is HP SR number 8606223364.
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13108. $as_echo_n "checking size of long... " >&6; }
  13109. if test "${ac_cv_sizeof_long+set}" = set; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13113. else
  13114. if test "$ac_cv_type_long" = yes; then
  13115. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13116. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13117. { as_fn_set_status 77
  13118. as_fn_error "cannot compute sizeof (long)
  13119. See \`config.log' for more details." "$LINENO" 5; }; }
  13120. else
  13121. ac_cv_sizeof_long=0
  13122. fi
  13123. fi
  13124. fi
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13126. $as_echo "$ac_cv_sizeof_long" >&6; }
  13127. cat >>confdefs.h <<_ACEOF
  13128. #define SIZEOF_LONG $ac_cv_sizeof_long
  13129. _ACEOF
  13130. ;;
  13131. esac
  13132. if test $acx_cv_header_stdint = stddef.h; then
  13133. # Lacking a good header? Test size of everything and deduce all types.
  13134. # The cast to long int works around a bug in the HP C Compiler
  13135. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13136. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13137. # This bug is HP SR number 8606223364.
  13138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13139. $as_echo_n "checking size of int... " >&6; }
  13140. if test "${ac_cv_sizeof_int+set}" = set; then :
  13141. $as_echo_n "(cached) " >&6
  13142. else
  13143. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13144. else
  13145. if test "$ac_cv_type_int" = yes; then
  13146. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13148. { as_fn_set_status 77
  13149. as_fn_error "cannot compute sizeof (int)
  13150. See \`config.log' for more details." "$LINENO" 5; }; }
  13151. else
  13152. ac_cv_sizeof_int=0
  13153. fi
  13154. fi
  13155. fi
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13157. $as_echo "$ac_cv_sizeof_int" >&6; }
  13158. cat >>confdefs.h <<_ACEOF
  13159. #define SIZEOF_INT $ac_cv_sizeof_int
  13160. _ACEOF
  13161. # The cast to long int works around a bug in the HP C Compiler
  13162. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13163. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13164. # This bug is HP SR number 8606223364.
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  13166. $as_echo_n "checking size of short... " >&6; }
  13167. if test "${ac_cv_sizeof_short+set}" = set; then :
  13168. $as_echo_n "(cached) " >&6
  13169. else
  13170. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  13171. else
  13172. if test "$ac_cv_type_short" = yes; then
  13173. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13174. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13175. { as_fn_set_status 77
  13176. as_fn_error "cannot compute sizeof (short)
  13177. See \`config.log' for more details." "$LINENO" 5; }; }
  13178. else
  13179. ac_cv_sizeof_short=0
  13180. fi
  13181. fi
  13182. fi
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  13184. $as_echo "$ac_cv_sizeof_short" >&6; }
  13185. cat >>confdefs.h <<_ACEOF
  13186. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13187. _ACEOF
  13188. # The cast to long int works around a bug in the HP C Compiler
  13189. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13190. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13191. # This bug is HP SR number 8606223364.
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  13193. $as_echo_n "checking size of char... " >&6; }
  13194. if test "${ac_cv_sizeof_char+set}" = set; then :
  13195. $as_echo_n "(cached) " >&6
  13196. else
  13197. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  13198. else
  13199. if test "$ac_cv_type_char" = yes; then
  13200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13202. { as_fn_set_status 77
  13203. as_fn_error "cannot compute sizeof (char)
  13204. See \`config.log' for more details." "$LINENO" 5; }; }
  13205. else
  13206. ac_cv_sizeof_char=0
  13207. fi
  13208. fi
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  13211. $as_echo "$ac_cv_sizeof_char" >&6; }
  13212. cat >>confdefs.h <<_ACEOF
  13213. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13214. _ACEOF
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  13216. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  13217. case "$ac_cv_sizeof_char" in
  13218. 1) acx_cv_type_int8_t=char ;;
  13219. *) { as_fn_set_status please report a bug
  13220. as_fn_error "no 8-bit type" "$LINENO" 5; }
  13221. esac
  13222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  13223. $as_echo "$acx_cv_type_int8_t" >&6; }
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  13225. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  13226. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13227. 2:*) acx_cv_type_int16_t=int ;;
  13228. *:2) acx_cv_type_int16_t=short ;;
  13229. *) { as_fn_set_status please report a bug
  13230. as_fn_error "no 16-bit type" "$LINENO" 5; }
  13231. esac
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  13233. $as_echo "$acx_cv_type_int16_t" >&6; }
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  13235. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  13236. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13237. 4:*) acx_cv_type_int32_t=int ;;
  13238. *:4) acx_cv_type_int32_t=long ;;
  13239. *) { as_fn_set_status please report a bug
  13240. as_fn_error "no 32-bit type" "$LINENO" 5; }
  13241. esac
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  13243. $as_echo "$acx_cv_type_int32_t" >&6; }
  13244. fi
  13245. # These tests are here to make the output prettier
  13246. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13247. case "$ac_cv_sizeof_long" in
  13248. 8) acx_cv_type_int64_t=long ;;
  13249. esac
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  13251. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13253. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  13254. fi
  13255. # Now we can use the above types
  13256. if test "$ac_cv_type_uintptr_t" != yes; then
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  13258. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  13259. case $ac_cv_sizeof_void_p in
  13260. 2) acx_cv_type_intptr_t=int16_t ;;
  13261. 4) acx_cv_type_intptr_t=int32_t ;;
  13262. 8) acx_cv_type_intptr_t=int64_t ;;
  13263. *) { as_fn_set_status please report a bug
  13264. as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
  13265. esac
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  13267. $as_echo "$acx_cv_type_intptr_t" >&6; }
  13268. fi
  13269. # ----------------- done all checks, emit header -------------
  13270. ac_config_commands="$ac_config_commands gstdint.h"
  13271. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  13272. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
  13273. cat >>confdefs.h <<_ACEOF
  13274. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  13275. _ACEOF
  13276. fi
  13277. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  13278. if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
  13279. cat >>confdefs.h <<_ACEOF
  13280. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  13281. _ACEOF
  13282. fi
  13283. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  13284. if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
  13285. cat >>confdefs.h <<_ACEOF
  13286. #define HAVE_STRUCT_STAT_ST_RDEV 1
  13287. _ACEOF
  13288. fi
  13289. # Check for library functions.
  13290. for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
  13291. do :
  13292. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13293. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13294. eval as_val=\$$as_ac_var
  13295. if test "x$as_val" = x""yes; then :
  13296. cat >>confdefs.h <<_ACEOF
  13297. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13298. _ACEOF
  13299. fi
  13300. done
  13301. for ac_func in chdir strerror getlogin gethostname kill link symlink perror
  13302. do :
  13303. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13304. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13305. eval as_val=\$$as_ac_var
  13306. if test "x$as_val" = x""yes; then :
  13307. cat >>confdefs.h <<_ACEOF
  13308. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13309. _ACEOF
  13310. fi
  13311. done
  13312. for ac_func in sleep time ttyname signal alarm ctime clock access fork vfork execl
  13313. do :
  13314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13315. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13316. eval as_val=\$$as_ac_var
  13317. if test "x$as_val" = x""yes; then :
  13318. cat >>confdefs.h <<_ACEOF
  13319. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13320. _ACEOF
  13321. fi
  13322. done
  13323. for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
  13324. do :
  13325. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13326. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13327. eval as_val=\$$as_ac_var
  13328. if test "x$as_val" = x""yes; then :
  13329. cat >>confdefs.h <<_ACEOF
  13330. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13331. _ACEOF
  13332. fi
  13333. done
  13334. for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
  13335. do :
  13336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13338. eval as_val=\$$as_ac_var
  13339. if test "x$as_val" = x""yes; then :
  13340. cat >>confdefs.h <<_ACEOF
  13341. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13342. _ACEOF
  13343. fi
  13344. done
  13345. for ac_func in localtime_r gmtime_r
  13346. do :
  13347. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13348. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13349. eval as_val=\$$as_ac_var
  13350. if test "x$as_val" = x""yes; then :
  13351. cat >>confdefs.h <<_ACEOF
  13352. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13353. _ACEOF
  13354. fi
  13355. done
  13356. # Check for glibc backtrace functions
  13357. for ac_func in backtrace backtrace_symbols
  13358. do :
  13359. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13360. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13361. eval as_val=\$$as_ac_var
  13362. if test "x$as_val" = x""yes; then :
  13363. cat >>confdefs.h <<_ACEOF
  13364. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13365. _ACEOF
  13366. fi
  13367. done
  13368. # Check for types
  13369. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  13370. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  13371. cat >>confdefs.h <<_ACEOF
  13372. #define HAVE_INTPTR_T 1
  13373. _ACEOF
  13374. fi
  13375. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  13376. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  13377. cat >>confdefs.h <<_ACEOF
  13378. #define HAVE_UINTPTR_T 1
  13379. _ACEOF
  13380. fi
  13381. # Check libc for getgid, getpid, getuid
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
  13383. $as_echo_n "checking for getgid in -lc... " >&6; }
  13384. if test "${ac_cv_lib_c_getgid+set}" = set; then :
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. ac_check_lib_save_LIBS=$LIBS
  13388. LIBS="-lc $LIBS"
  13389. if test x$gcc_no_link = xyes; then
  13390. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13391. fi
  13392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13393. /* end confdefs.h. */
  13394. /* Override any GCC internal prototype to avoid an error.
  13395. Use char because int might match the return type of a GCC
  13396. builtin and then its argument prototype would still apply. */
  13397. #ifdef __cplusplus
  13398. extern "C"
  13399. #endif
  13400. char getgid ();
  13401. int
  13402. main ()
  13403. {
  13404. return getgid ();
  13405. ;
  13406. return 0;
  13407. }
  13408. _ACEOF
  13409. if ac_fn_c_try_link "$LINENO"; then :
  13410. ac_cv_lib_c_getgid=yes
  13411. else
  13412. ac_cv_lib_c_getgid=no
  13413. fi
  13414. rm -f core conftest.err conftest.$ac_objext \
  13415. conftest$ac_exeext conftest.$ac_ext
  13416. LIBS=$ac_check_lib_save_LIBS
  13417. fi
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
  13419. $as_echo "$ac_cv_lib_c_getgid" >&6; }
  13420. if test "x$ac_cv_lib_c_getgid" = x""yes; then :
  13421. $as_echo "#define HAVE_GETGID 1" >>confdefs.h
  13422. fi
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
  13424. $as_echo_n "checking for getpid in -lc... " >&6; }
  13425. if test "${ac_cv_lib_c_getpid+set}" = set; then :
  13426. $as_echo_n "(cached) " >&6
  13427. else
  13428. ac_check_lib_save_LIBS=$LIBS
  13429. LIBS="-lc $LIBS"
  13430. if test x$gcc_no_link = xyes; then
  13431. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13432. fi
  13433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13434. /* end confdefs.h. */
  13435. /* Override any GCC internal prototype to avoid an error.
  13436. Use char because int might match the return type of a GCC
  13437. builtin and then its argument prototype would still apply. */
  13438. #ifdef __cplusplus
  13439. extern "C"
  13440. #endif
  13441. char getpid ();
  13442. int
  13443. main ()
  13444. {
  13445. return getpid ();
  13446. ;
  13447. return 0;
  13448. }
  13449. _ACEOF
  13450. if ac_fn_c_try_link "$LINENO"; then :
  13451. ac_cv_lib_c_getpid=yes
  13452. else
  13453. ac_cv_lib_c_getpid=no
  13454. fi
  13455. rm -f core conftest.err conftest.$ac_objext \
  13456. conftest$ac_exeext conftest.$ac_ext
  13457. LIBS=$ac_check_lib_save_LIBS
  13458. fi
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
  13460. $as_echo "$ac_cv_lib_c_getpid" >&6; }
  13461. if test "x$ac_cv_lib_c_getpid" = x""yes; then :
  13462. $as_echo "#define HAVE_GETPID 1" >>confdefs.h
  13463. fi
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5
  13465. $as_echo_n "checking for getppid in -lc... " >&6; }
  13466. if test "${ac_cv_lib_c_getppid+set}" = set; then :
  13467. $as_echo_n "(cached) " >&6
  13468. else
  13469. ac_check_lib_save_LIBS=$LIBS
  13470. LIBS="-lc $LIBS"
  13471. if test x$gcc_no_link = xyes; then
  13472. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13473. fi
  13474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13475. /* end confdefs.h. */
  13476. /* Override any GCC internal prototype to avoid an error.
  13477. Use char because int might match the return type of a GCC
  13478. builtin and then its argument prototype would still apply. */
  13479. #ifdef __cplusplus
  13480. extern "C"
  13481. #endif
  13482. char getppid ();
  13483. int
  13484. main ()
  13485. {
  13486. return getppid ();
  13487. ;
  13488. return 0;
  13489. }
  13490. _ACEOF
  13491. if ac_fn_c_try_link "$LINENO"; then :
  13492. ac_cv_lib_c_getppid=yes
  13493. else
  13494. ac_cv_lib_c_getppid=no
  13495. fi
  13496. rm -f core conftest.err conftest.$ac_objext \
  13497. conftest$ac_exeext conftest.$ac_ext
  13498. LIBS=$ac_check_lib_save_LIBS
  13499. fi
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getppid" >&5
  13501. $as_echo "$ac_cv_lib_c_getppid" >&6; }
  13502. if test "x$ac_cv_lib_c_getppid" = x""yes; then :
  13503. $as_echo "#define HAVE_GETPPID 1" >>confdefs.h
  13504. fi
  13505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
  13506. $as_echo_n "checking for getuid in -lc... " >&6; }
  13507. if test "${ac_cv_lib_c_getuid+set}" = set; then :
  13508. $as_echo_n "(cached) " >&6
  13509. else
  13510. ac_check_lib_save_LIBS=$LIBS
  13511. LIBS="-lc $LIBS"
  13512. if test x$gcc_no_link = xyes; then
  13513. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13514. fi
  13515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13516. /* end confdefs.h. */
  13517. /* Override any GCC internal prototype to avoid an error.
  13518. Use char because int might match the return type of a GCC
  13519. builtin and then its argument prototype would still apply. */
  13520. #ifdef __cplusplus
  13521. extern "C"
  13522. #endif
  13523. char getuid ();
  13524. int
  13525. main ()
  13526. {
  13527. return getuid ();
  13528. ;
  13529. return 0;
  13530. }
  13531. _ACEOF
  13532. if ac_fn_c_try_link "$LINENO"; then :
  13533. ac_cv_lib_c_getuid=yes
  13534. else
  13535. ac_cv_lib_c_getuid=no
  13536. fi
  13537. rm -f core conftest.err conftest.$ac_objext \
  13538. conftest$ac_exeext conftest.$ac_ext
  13539. LIBS=$ac_check_lib_save_LIBS
  13540. fi
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
  13542. $as_echo "$ac_cv_lib_c_getuid" >&6; }
  13543. if test "x$ac_cv_lib_c_getuid" = x""yes; then :
  13544. $as_echo "#define HAVE_GETUID 1" >>confdefs.h
  13545. fi
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5
  13547. $as_echo_n "checking for geteuid in -lc... " >&6; }
  13548. if test "${ac_cv_lib_c_geteuid+set}" = set; then :
  13549. $as_echo_n "(cached) " >&6
  13550. else
  13551. ac_check_lib_save_LIBS=$LIBS
  13552. LIBS="-lc $LIBS"
  13553. if test x$gcc_no_link = xyes; then
  13554. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13555. fi
  13556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13557. /* end confdefs.h. */
  13558. /* Override any GCC internal prototype to avoid an error.
  13559. Use char because int might match the return type of a GCC
  13560. builtin and then its argument prototype would still apply. */
  13561. #ifdef __cplusplus
  13562. extern "C"
  13563. #endif
  13564. char geteuid ();
  13565. int
  13566. main ()
  13567. {
  13568. return geteuid ();
  13569. ;
  13570. return 0;
  13571. }
  13572. _ACEOF
  13573. if ac_fn_c_try_link "$LINENO"; then :
  13574. ac_cv_lib_c_geteuid=yes
  13575. else
  13576. ac_cv_lib_c_geteuid=no
  13577. fi
  13578. rm -f core conftest.err conftest.$ac_objext \
  13579. conftest$ac_exeext conftest.$ac_ext
  13580. LIBS=$ac_check_lib_save_LIBS
  13581. fi
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_geteuid" >&5
  13583. $as_echo "$ac_cv_lib_c_geteuid" >&6; }
  13584. if test "x$ac_cv_lib_c_geteuid" = x""yes; then :
  13585. $as_echo "#define HAVE_GETEUID 1" >>confdefs.h
  13586. fi
  13587. # Check for C99 (and other IEEE) math functions
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
  13589. $as_echo_n "checking for acosf in -lm... " >&6; }
  13590. if test "${ac_cv_lib_m_acosf+set}" = set; then :
  13591. $as_echo_n "(cached) " >&6
  13592. else
  13593. ac_check_lib_save_LIBS=$LIBS
  13594. LIBS="-lm $LIBS"
  13595. if test x$gcc_no_link = xyes; then
  13596. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13597. fi
  13598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13599. /* end confdefs.h. */
  13600. /* Override any GCC internal prototype to avoid an error.
  13601. Use char because int might match the return type of a GCC
  13602. builtin and then its argument prototype would still apply. */
  13603. #ifdef __cplusplus
  13604. extern "C"
  13605. #endif
  13606. char acosf ();
  13607. int
  13608. main ()
  13609. {
  13610. return acosf ();
  13611. ;
  13612. return 0;
  13613. }
  13614. _ACEOF
  13615. if ac_fn_c_try_link "$LINENO"; then :
  13616. ac_cv_lib_m_acosf=yes
  13617. else
  13618. ac_cv_lib_m_acosf=no
  13619. fi
  13620. rm -f core conftest.err conftest.$ac_objext \
  13621. conftest$ac_exeext conftest.$ac_ext
  13622. LIBS=$ac_check_lib_save_LIBS
  13623. fi
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5
  13625. $as_echo "$ac_cv_lib_m_acosf" >&6; }
  13626. if test "x$ac_cv_lib_m_acosf" = x""yes; then :
  13627. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  13628. fi
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
  13630. $as_echo_n "checking for acos in -lm... " >&6; }
  13631. if test "${ac_cv_lib_m_acos+set}" = set; then :
  13632. $as_echo_n "(cached) " >&6
  13633. else
  13634. ac_check_lib_save_LIBS=$LIBS
  13635. LIBS="-lm $LIBS"
  13636. if test x$gcc_no_link = xyes; then
  13637. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13638. fi
  13639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13640. /* end confdefs.h. */
  13641. /* Override any GCC internal prototype to avoid an error.
  13642. Use char because int might match the return type of a GCC
  13643. builtin and then its argument prototype would still apply. */
  13644. #ifdef __cplusplus
  13645. extern "C"
  13646. #endif
  13647. char acos ();
  13648. int
  13649. main ()
  13650. {
  13651. return acos ();
  13652. ;
  13653. return 0;
  13654. }
  13655. _ACEOF
  13656. if ac_fn_c_try_link "$LINENO"; then :
  13657. ac_cv_lib_m_acos=yes
  13658. else
  13659. ac_cv_lib_m_acos=no
  13660. fi
  13661. rm -f core conftest.err conftest.$ac_objext \
  13662. conftest$ac_exeext conftest.$ac_ext
  13663. LIBS=$ac_check_lib_save_LIBS
  13664. fi
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
  13666. $as_echo "$ac_cv_lib_m_acos" >&6; }
  13667. if test "x$ac_cv_lib_m_acos" = x""yes; then :
  13668. $as_echo "#define HAVE_ACOS 1" >>confdefs.h
  13669. fi
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
  13671. $as_echo_n "checking for acosl in -lm... " >&6; }
  13672. if test "${ac_cv_lib_m_acosl+set}" = set; then :
  13673. $as_echo_n "(cached) " >&6
  13674. else
  13675. ac_check_lib_save_LIBS=$LIBS
  13676. LIBS="-lm $LIBS"
  13677. if test x$gcc_no_link = xyes; then
  13678. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13679. fi
  13680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13681. /* end confdefs.h. */
  13682. /* Override any GCC internal prototype to avoid an error.
  13683. Use char because int might match the return type of a GCC
  13684. builtin and then its argument prototype would still apply. */
  13685. #ifdef __cplusplus
  13686. extern "C"
  13687. #endif
  13688. char acosl ();
  13689. int
  13690. main ()
  13691. {
  13692. return acosl ();
  13693. ;
  13694. return 0;
  13695. }
  13696. _ACEOF
  13697. if ac_fn_c_try_link "$LINENO"; then :
  13698. ac_cv_lib_m_acosl=yes
  13699. else
  13700. ac_cv_lib_m_acosl=no
  13701. fi
  13702. rm -f core conftest.err conftest.$ac_objext \
  13703. conftest$ac_exeext conftest.$ac_ext
  13704. LIBS=$ac_check_lib_save_LIBS
  13705. fi
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5
  13707. $as_echo "$ac_cv_lib_m_acosl" >&6; }
  13708. if test "x$ac_cv_lib_m_acosl" = x""yes; then :
  13709. $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
  13712. $as_echo_n "checking for acoshf in -lm... " >&6; }
  13713. if test "${ac_cv_lib_m_acoshf+set}" = set; then :
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. ac_check_lib_save_LIBS=$LIBS
  13717. LIBS="-lm $LIBS"
  13718. if test x$gcc_no_link = xyes; then
  13719. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13720. fi
  13721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13722. /* end confdefs.h. */
  13723. /* Override any GCC internal prototype to avoid an error.
  13724. Use char because int might match the return type of a GCC
  13725. builtin and then its argument prototype would still apply. */
  13726. #ifdef __cplusplus
  13727. extern "C"
  13728. #endif
  13729. char acoshf ();
  13730. int
  13731. main ()
  13732. {
  13733. return acoshf ();
  13734. ;
  13735. return 0;
  13736. }
  13737. _ACEOF
  13738. if ac_fn_c_try_link "$LINENO"; then :
  13739. ac_cv_lib_m_acoshf=yes
  13740. else
  13741. ac_cv_lib_m_acoshf=no
  13742. fi
  13743. rm -f core conftest.err conftest.$ac_objext \
  13744. conftest$ac_exeext conftest.$ac_ext
  13745. LIBS=$ac_check_lib_save_LIBS
  13746. fi
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5
  13748. $as_echo "$ac_cv_lib_m_acoshf" >&6; }
  13749. if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
  13750. $as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
  13751. fi
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
  13753. $as_echo_n "checking for acosh in -lm... " >&6; }
  13754. if test "${ac_cv_lib_m_acosh+set}" = set; then :
  13755. $as_echo_n "(cached) " >&6
  13756. else
  13757. ac_check_lib_save_LIBS=$LIBS
  13758. LIBS="-lm $LIBS"
  13759. if test x$gcc_no_link = xyes; then
  13760. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13761. fi
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. /* Override any GCC internal prototype to avoid an error.
  13765. Use char because int might match the return type of a GCC
  13766. builtin and then its argument prototype would still apply. */
  13767. #ifdef __cplusplus
  13768. extern "C"
  13769. #endif
  13770. char acosh ();
  13771. int
  13772. main ()
  13773. {
  13774. return acosh ();
  13775. ;
  13776. return 0;
  13777. }
  13778. _ACEOF
  13779. if ac_fn_c_try_link "$LINENO"; then :
  13780. ac_cv_lib_m_acosh=yes
  13781. else
  13782. ac_cv_lib_m_acosh=no
  13783. fi
  13784. rm -f core conftest.err conftest.$ac_objext \
  13785. conftest$ac_exeext conftest.$ac_ext
  13786. LIBS=$ac_check_lib_save_LIBS
  13787. fi
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
  13789. $as_echo "$ac_cv_lib_m_acosh" >&6; }
  13790. if test "x$ac_cv_lib_m_acosh" = x""yes; then :
  13791. $as_echo "#define HAVE_ACOSH 1" >>confdefs.h
  13792. fi
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
  13794. $as_echo_n "checking for acoshl in -lm... " >&6; }
  13795. if test "${ac_cv_lib_m_acoshl+set}" = set; then :
  13796. $as_echo_n "(cached) " >&6
  13797. else
  13798. ac_check_lib_save_LIBS=$LIBS
  13799. LIBS="-lm $LIBS"
  13800. if test x$gcc_no_link = xyes; then
  13801. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13802. fi
  13803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13804. /* end confdefs.h. */
  13805. /* Override any GCC internal prototype to avoid an error.
  13806. Use char because int might match the return type of a GCC
  13807. builtin and then its argument prototype would still apply. */
  13808. #ifdef __cplusplus
  13809. extern "C"
  13810. #endif
  13811. char acoshl ();
  13812. int
  13813. main ()
  13814. {
  13815. return acoshl ();
  13816. ;
  13817. return 0;
  13818. }
  13819. _ACEOF
  13820. if ac_fn_c_try_link "$LINENO"; then :
  13821. ac_cv_lib_m_acoshl=yes
  13822. else
  13823. ac_cv_lib_m_acoshl=no
  13824. fi
  13825. rm -f core conftest.err conftest.$ac_objext \
  13826. conftest$ac_exeext conftest.$ac_ext
  13827. LIBS=$ac_check_lib_save_LIBS
  13828. fi
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5
  13830. $as_echo "$ac_cv_lib_m_acoshl" >&6; }
  13831. if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
  13832. $as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
  13833. fi
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
  13835. $as_echo_n "checking for asinf in -lm... " >&6; }
  13836. if test "${ac_cv_lib_m_asinf+set}" = set; then :
  13837. $as_echo_n "(cached) " >&6
  13838. else
  13839. ac_check_lib_save_LIBS=$LIBS
  13840. LIBS="-lm $LIBS"
  13841. if test x$gcc_no_link = xyes; then
  13842. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13843. fi
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. /* Override any GCC internal prototype to avoid an error.
  13847. Use char because int might match the return type of a GCC
  13848. builtin and then its argument prototype would still apply. */
  13849. #ifdef __cplusplus
  13850. extern "C"
  13851. #endif
  13852. char asinf ();
  13853. int
  13854. main ()
  13855. {
  13856. return asinf ();
  13857. ;
  13858. return 0;
  13859. }
  13860. _ACEOF
  13861. if ac_fn_c_try_link "$LINENO"; then :
  13862. ac_cv_lib_m_asinf=yes
  13863. else
  13864. ac_cv_lib_m_asinf=no
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext \
  13867. conftest$ac_exeext conftest.$ac_ext
  13868. LIBS=$ac_check_lib_save_LIBS
  13869. fi
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5
  13871. $as_echo "$ac_cv_lib_m_asinf" >&6; }
  13872. if test "x$ac_cv_lib_m_asinf" = x""yes; then :
  13873. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
  13876. $as_echo_n "checking for asin in -lm... " >&6; }
  13877. if test "${ac_cv_lib_m_asin+set}" = set; then :
  13878. $as_echo_n "(cached) " >&6
  13879. else
  13880. ac_check_lib_save_LIBS=$LIBS
  13881. LIBS="-lm $LIBS"
  13882. if test x$gcc_no_link = xyes; then
  13883. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13884. fi
  13885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13886. /* end confdefs.h. */
  13887. /* Override any GCC internal prototype to avoid an error.
  13888. Use char because int might match the return type of a GCC
  13889. builtin and then its argument prototype would still apply. */
  13890. #ifdef __cplusplus
  13891. extern "C"
  13892. #endif
  13893. char asin ();
  13894. int
  13895. main ()
  13896. {
  13897. return asin ();
  13898. ;
  13899. return 0;
  13900. }
  13901. _ACEOF
  13902. if ac_fn_c_try_link "$LINENO"; then :
  13903. ac_cv_lib_m_asin=yes
  13904. else
  13905. ac_cv_lib_m_asin=no
  13906. fi
  13907. rm -f core conftest.err conftest.$ac_objext \
  13908. conftest$ac_exeext conftest.$ac_ext
  13909. LIBS=$ac_check_lib_save_LIBS
  13910. fi
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
  13912. $as_echo "$ac_cv_lib_m_asin" >&6; }
  13913. if test "x$ac_cv_lib_m_asin" = x""yes; then :
  13914. $as_echo "#define HAVE_ASIN 1" >>confdefs.h
  13915. fi
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
  13917. $as_echo_n "checking for asinl in -lm... " >&6; }
  13918. if test "${ac_cv_lib_m_asinl+set}" = set; then :
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. ac_check_lib_save_LIBS=$LIBS
  13922. LIBS="-lm $LIBS"
  13923. if test x$gcc_no_link = xyes; then
  13924. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13925. fi
  13926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13927. /* end confdefs.h. */
  13928. /* Override any GCC internal prototype to avoid an error.
  13929. Use char because int might match the return type of a GCC
  13930. builtin and then its argument prototype would still apply. */
  13931. #ifdef __cplusplus
  13932. extern "C"
  13933. #endif
  13934. char asinl ();
  13935. int
  13936. main ()
  13937. {
  13938. return asinl ();
  13939. ;
  13940. return 0;
  13941. }
  13942. _ACEOF
  13943. if ac_fn_c_try_link "$LINENO"; then :
  13944. ac_cv_lib_m_asinl=yes
  13945. else
  13946. ac_cv_lib_m_asinl=no
  13947. fi
  13948. rm -f core conftest.err conftest.$ac_objext \
  13949. conftest$ac_exeext conftest.$ac_ext
  13950. LIBS=$ac_check_lib_save_LIBS
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5
  13953. $as_echo "$ac_cv_lib_m_asinl" >&6; }
  13954. if test "x$ac_cv_lib_m_asinl" = x""yes; then :
  13955. $as_echo "#define HAVE_ASINL 1" >>confdefs.h
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
  13958. $as_echo_n "checking for asinhf in -lm... " >&6; }
  13959. if test "${ac_cv_lib_m_asinhf+set}" = set; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. ac_check_lib_save_LIBS=$LIBS
  13963. LIBS="-lm $LIBS"
  13964. if test x$gcc_no_link = xyes; then
  13965. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13966. fi
  13967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13968. /* end confdefs.h. */
  13969. /* Override any GCC internal prototype to avoid an error.
  13970. Use char because int might match the return type of a GCC
  13971. builtin and then its argument prototype would still apply. */
  13972. #ifdef __cplusplus
  13973. extern "C"
  13974. #endif
  13975. char asinhf ();
  13976. int
  13977. main ()
  13978. {
  13979. return asinhf ();
  13980. ;
  13981. return 0;
  13982. }
  13983. _ACEOF
  13984. if ac_fn_c_try_link "$LINENO"; then :
  13985. ac_cv_lib_m_asinhf=yes
  13986. else
  13987. ac_cv_lib_m_asinhf=no
  13988. fi
  13989. rm -f core conftest.err conftest.$ac_objext \
  13990. conftest$ac_exeext conftest.$ac_ext
  13991. LIBS=$ac_check_lib_save_LIBS
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5
  13994. $as_echo "$ac_cv_lib_m_asinhf" >&6; }
  13995. if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
  13996. $as_echo "#define HAVE_ASINHF 1" >>confdefs.h
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
  13999. $as_echo_n "checking for asinh in -lm... " >&6; }
  14000. if test "${ac_cv_lib_m_asinh+set}" = set; then :
  14001. $as_echo_n "(cached) " >&6
  14002. else
  14003. ac_check_lib_save_LIBS=$LIBS
  14004. LIBS="-lm $LIBS"
  14005. if test x$gcc_no_link = xyes; then
  14006. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14007. fi
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. /* Override any GCC internal prototype to avoid an error.
  14011. Use char because int might match the return type of a GCC
  14012. builtin and then its argument prototype would still apply. */
  14013. #ifdef __cplusplus
  14014. extern "C"
  14015. #endif
  14016. char asinh ();
  14017. int
  14018. main ()
  14019. {
  14020. return asinh ();
  14021. ;
  14022. return 0;
  14023. }
  14024. _ACEOF
  14025. if ac_fn_c_try_link "$LINENO"; then :
  14026. ac_cv_lib_m_asinh=yes
  14027. else
  14028. ac_cv_lib_m_asinh=no
  14029. fi
  14030. rm -f core conftest.err conftest.$ac_objext \
  14031. conftest$ac_exeext conftest.$ac_ext
  14032. LIBS=$ac_check_lib_save_LIBS
  14033. fi
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
  14035. $as_echo "$ac_cv_lib_m_asinh" >&6; }
  14036. if test "x$ac_cv_lib_m_asinh" = x""yes; then :
  14037. $as_echo "#define HAVE_ASINH 1" >>confdefs.h
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
  14040. $as_echo_n "checking for asinhl in -lm... " >&6; }
  14041. if test "${ac_cv_lib_m_asinhl+set}" = set; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. ac_check_lib_save_LIBS=$LIBS
  14045. LIBS="-lm $LIBS"
  14046. if test x$gcc_no_link = xyes; then
  14047. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14048. fi
  14049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14050. /* end confdefs.h. */
  14051. /* Override any GCC internal prototype to avoid an error.
  14052. Use char because int might match the return type of a GCC
  14053. builtin and then its argument prototype would still apply. */
  14054. #ifdef __cplusplus
  14055. extern "C"
  14056. #endif
  14057. char asinhl ();
  14058. int
  14059. main ()
  14060. {
  14061. return asinhl ();
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_link "$LINENO"; then :
  14067. ac_cv_lib_m_asinhl=yes
  14068. else
  14069. ac_cv_lib_m_asinhl=no
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext \
  14072. conftest$ac_exeext conftest.$ac_ext
  14073. LIBS=$ac_check_lib_save_LIBS
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5
  14076. $as_echo "$ac_cv_lib_m_asinhl" >&6; }
  14077. if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
  14078. $as_echo "#define HAVE_ASINHL 1" >>confdefs.h
  14079. fi
  14080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
  14081. $as_echo_n "checking for atan2f in -lm... " >&6; }
  14082. if test "${ac_cv_lib_m_atan2f+set}" = set; then :
  14083. $as_echo_n "(cached) " >&6
  14084. else
  14085. ac_check_lib_save_LIBS=$LIBS
  14086. LIBS="-lm $LIBS"
  14087. if test x$gcc_no_link = xyes; then
  14088. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14089. fi
  14090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. /* end confdefs.h. */
  14092. /* Override any GCC internal prototype to avoid an error.
  14093. Use char because int might match the return type of a GCC
  14094. builtin and then its argument prototype would still apply. */
  14095. #ifdef __cplusplus
  14096. extern "C"
  14097. #endif
  14098. char atan2f ();
  14099. int
  14100. main ()
  14101. {
  14102. return atan2f ();
  14103. ;
  14104. return 0;
  14105. }
  14106. _ACEOF
  14107. if ac_fn_c_try_link "$LINENO"; then :
  14108. ac_cv_lib_m_atan2f=yes
  14109. else
  14110. ac_cv_lib_m_atan2f=no
  14111. fi
  14112. rm -f core conftest.err conftest.$ac_objext \
  14113. conftest$ac_exeext conftest.$ac_ext
  14114. LIBS=$ac_check_lib_save_LIBS
  14115. fi
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5
  14117. $as_echo "$ac_cv_lib_m_atan2f" >&6; }
  14118. if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
  14119. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
  14122. $as_echo_n "checking for atan2 in -lm... " >&6; }
  14123. if test "${ac_cv_lib_m_atan2+set}" = set; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. ac_check_lib_save_LIBS=$LIBS
  14127. LIBS="-lm $LIBS"
  14128. if test x$gcc_no_link = xyes; then
  14129. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14130. fi
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. /* Override any GCC internal prototype to avoid an error.
  14134. Use char because int might match the return type of a GCC
  14135. builtin and then its argument prototype would still apply. */
  14136. #ifdef __cplusplus
  14137. extern "C"
  14138. #endif
  14139. char atan2 ();
  14140. int
  14141. main ()
  14142. {
  14143. return atan2 ();
  14144. ;
  14145. return 0;
  14146. }
  14147. _ACEOF
  14148. if ac_fn_c_try_link "$LINENO"; then :
  14149. ac_cv_lib_m_atan2=yes
  14150. else
  14151. ac_cv_lib_m_atan2=no
  14152. fi
  14153. rm -f core conftest.err conftest.$ac_objext \
  14154. conftest$ac_exeext conftest.$ac_ext
  14155. LIBS=$ac_check_lib_save_LIBS
  14156. fi
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
  14158. $as_echo "$ac_cv_lib_m_atan2" >&6; }
  14159. if test "x$ac_cv_lib_m_atan2" = x""yes; then :
  14160. $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
  14161. fi
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
  14163. $as_echo_n "checking for atan2l in -lm... " >&6; }
  14164. if test "${ac_cv_lib_m_atan2l+set}" = set; then :
  14165. $as_echo_n "(cached) " >&6
  14166. else
  14167. ac_check_lib_save_LIBS=$LIBS
  14168. LIBS="-lm $LIBS"
  14169. if test x$gcc_no_link = xyes; then
  14170. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14171. fi
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. /* Override any GCC internal prototype to avoid an error.
  14175. Use char because int might match the return type of a GCC
  14176. builtin and then its argument prototype would still apply. */
  14177. #ifdef __cplusplus
  14178. extern "C"
  14179. #endif
  14180. char atan2l ();
  14181. int
  14182. main ()
  14183. {
  14184. return atan2l ();
  14185. ;
  14186. return 0;
  14187. }
  14188. _ACEOF
  14189. if ac_fn_c_try_link "$LINENO"; then :
  14190. ac_cv_lib_m_atan2l=yes
  14191. else
  14192. ac_cv_lib_m_atan2l=no
  14193. fi
  14194. rm -f core conftest.err conftest.$ac_objext \
  14195. conftest$ac_exeext conftest.$ac_ext
  14196. LIBS=$ac_check_lib_save_LIBS
  14197. fi
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5
  14199. $as_echo "$ac_cv_lib_m_atan2l" >&6; }
  14200. if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
  14201. $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
  14202. fi
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
  14204. $as_echo_n "checking for atanf in -lm... " >&6; }
  14205. if test "${ac_cv_lib_m_atanf+set}" = set; then :
  14206. $as_echo_n "(cached) " >&6
  14207. else
  14208. ac_check_lib_save_LIBS=$LIBS
  14209. LIBS="-lm $LIBS"
  14210. if test x$gcc_no_link = xyes; then
  14211. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14212. fi
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. /* Override any GCC internal prototype to avoid an error.
  14216. Use char because int might match the return type of a GCC
  14217. builtin and then its argument prototype would still apply. */
  14218. #ifdef __cplusplus
  14219. extern "C"
  14220. #endif
  14221. char atanf ();
  14222. int
  14223. main ()
  14224. {
  14225. return atanf ();
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. if ac_fn_c_try_link "$LINENO"; then :
  14231. ac_cv_lib_m_atanf=yes
  14232. else
  14233. ac_cv_lib_m_atanf=no
  14234. fi
  14235. rm -f core conftest.err conftest.$ac_objext \
  14236. conftest$ac_exeext conftest.$ac_ext
  14237. LIBS=$ac_check_lib_save_LIBS
  14238. fi
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5
  14240. $as_echo "$ac_cv_lib_m_atanf" >&6; }
  14241. if test "x$ac_cv_lib_m_atanf" = x""yes; then :
  14242. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
  14245. $as_echo_n "checking for atan in -lm... " >&6; }
  14246. if test "${ac_cv_lib_m_atan+set}" = set; then :
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. ac_check_lib_save_LIBS=$LIBS
  14250. LIBS="-lm $LIBS"
  14251. if test x$gcc_no_link = xyes; then
  14252. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14253. fi
  14254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14255. /* end confdefs.h. */
  14256. /* Override any GCC internal prototype to avoid an error.
  14257. Use char because int might match the return type of a GCC
  14258. builtin and then its argument prototype would still apply. */
  14259. #ifdef __cplusplus
  14260. extern "C"
  14261. #endif
  14262. char atan ();
  14263. int
  14264. main ()
  14265. {
  14266. return atan ();
  14267. ;
  14268. return 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_link "$LINENO"; then :
  14272. ac_cv_lib_m_atan=yes
  14273. else
  14274. ac_cv_lib_m_atan=no
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext \
  14277. conftest$ac_exeext conftest.$ac_ext
  14278. LIBS=$ac_check_lib_save_LIBS
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
  14281. $as_echo "$ac_cv_lib_m_atan" >&6; }
  14282. if test "x$ac_cv_lib_m_atan" = x""yes; then :
  14283. $as_echo "#define HAVE_ATAN 1" >>confdefs.h
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
  14286. $as_echo_n "checking for atanl in -lm... " >&6; }
  14287. if test "${ac_cv_lib_m_atanl+set}" = set; then :
  14288. $as_echo_n "(cached) " >&6
  14289. else
  14290. ac_check_lib_save_LIBS=$LIBS
  14291. LIBS="-lm $LIBS"
  14292. if test x$gcc_no_link = xyes; then
  14293. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14294. fi
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. /* Override any GCC internal prototype to avoid an error.
  14298. Use char because int might match the return type of a GCC
  14299. builtin and then its argument prototype would still apply. */
  14300. #ifdef __cplusplus
  14301. extern "C"
  14302. #endif
  14303. char atanl ();
  14304. int
  14305. main ()
  14306. {
  14307. return atanl ();
  14308. ;
  14309. return 0;
  14310. }
  14311. _ACEOF
  14312. if ac_fn_c_try_link "$LINENO"; then :
  14313. ac_cv_lib_m_atanl=yes
  14314. else
  14315. ac_cv_lib_m_atanl=no
  14316. fi
  14317. rm -f core conftest.err conftest.$ac_objext \
  14318. conftest$ac_exeext conftest.$ac_ext
  14319. LIBS=$ac_check_lib_save_LIBS
  14320. fi
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5
  14322. $as_echo "$ac_cv_lib_m_atanl" >&6; }
  14323. if test "x$ac_cv_lib_m_atanl" = x""yes; then :
  14324. $as_echo "#define HAVE_ATANL 1" >>confdefs.h
  14325. fi
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
  14327. $as_echo_n "checking for atanhf in -lm... " >&6; }
  14328. if test "${ac_cv_lib_m_atanhf+set}" = set; then :
  14329. $as_echo_n "(cached) " >&6
  14330. else
  14331. ac_check_lib_save_LIBS=$LIBS
  14332. LIBS="-lm $LIBS"
  14333. if test x$gcc_no_link = xyes; then
  14334. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14335. fi
  14336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14337. /* end confdefs.h. */
  14338. /* Override any GCC internal prototype to avoid an error.
  14339. Use char because int might match the return type of a GCC
  14340. builtin and then its argument prototype would still apply. */
  14341. #ifdef __cplusplus
  14342. extern "C"
  14343. #endif
  14344. char atanhf ();
  14345. int
  14346. main ()
  14347. {
  14348. return atanhf ();
  14349. ;
  14350. return 0;
  14351. }
  14352. _ACEOF
  14353. if ac_fn_c_try_link "$LINENO"; then :
  14354. ac_cv_lib_m_atanhf=yes
  14355. else
  14356. ac_cv_lib_m_atanhf=no
  14357. fi
  14358. rm -f core conftest.err conftest.$ac_objext \
  14359. conftest$ac_exeext conftest.$ac_ext
  14360. LIBS=$ac_check_lib_save_LIBS
  14361. fi
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhf" >&5
  14363. $as_echo "$ac_cv_lib_m_atanhf" >&6; }
  14364. if test "x$ac_cv_lib_m_atanhf" = x""yes; then :
  14365. $as_echo "#define HAVE_ATANHF 1" >>confdefs.h
  14366. fi
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
  14368. $as_echo_n "checking for atanh in -lm... " >&6; }
  14369. if test "${ac_cv_lib_m_atanh+set}" = set; then :
  14370. $as_echo_n "(cached) " >&6
  14371. else
  14372. ac_check_lib_save_LIBS=$LIBS
  14373. LIBS="-lm $LIBS"
  14374. if test x$gcc_no_link = xyes; then
  14375. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14376. fi
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. /* Override any GCC internal prototype to avoid an error.
  14380. Use char because int might match the return type of a GCC
  14381. builtin and then its argument prototype would still apply. */
  14382. #ifdef __cplusplus
  14383. extern "C"
  14384. #endif
  14385. char atanh ();
  14386. int
  14387. main ()
  14388. {
  14389. return atanh ();
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. if ac_fn_c_try_link "$LINENO"; then :
  14395. ac_cv_lib_m_atanh=yes
  14396. else
  14397. ac_cv_lib_m_atanh=no
  14398. fi
  14399. rm -f core conftest.err conftest.$ac_objext \
  14400. conftest$ac_exeext conftest.$ac_ext
  14401. LIBS=$ac_check_lib_save_LIBS
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5
  14404. $as_echo "$ac_cv_lib_m_atanh" >&6; }
  14405. if test "x$ac_cv_lib_m_atanh" = x""yes; then :
  14406. $as_echo "#define HAVE_ATANH 1" >>confdefs.h
  14407. fi
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5
  14409. $as_echo_n "checking for atanhl in -lm... " >&6; }
  14410. if test "${ac_cv_lib_m_atanhl+set}" = set; then :
  14411. $as_echo_n "(cached) " >&6
  14412. else
  14413. ac_check_lib_save_LIBS=$LIBS
  14414. LIBS="-lm $LIBS"
  14415. if test x$gcc_no_link = xyes; then
  14416. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14417. fi
  14418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14419. /* end confdefs.h. */
  14420. /* Override any GCC internal prototype to avoid an error.
  14421. Use char because int might match the return type of a GCC
  14422. builtin and then its argument prototype would still apply. */
  14423. #ifdef __cplusplus
  14424. extern "C"
  14425. #endif
  14426. char atanhl ();
  14427. int
  14428. main ()
  14429. {
  14430. return atanhl ();
  14431. ;
  14432. return 0;
  14433. }
  14434. _ACEOF
  14435. if ac_fn_c_try_link "$LINENO"; then :
  14436. ac_cv_lib_m_atanhl=yes
  14437. else
  14438. ac_cv_lib_m_atanhl=no
  14439. fi
  14440. rm -f core conftest.err conftest.$ac_objext \
  14441. conftest$ac_exeext conftest.$ac_ext
  14442. LIBS=$ac_check_lib_save_LIBS
  14443. fi
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhl" >&5
  14445. $as_echo "$ac_cv_lib_m_atanhl" >&6; }
  14446. if test "x$ac_cv_lib_m_atanhl" = x""yes; then :
  14447. $as_echo "#define HAVE_ATANHL 1" >>confdefs.h
  14448. fi
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5
  14450. $as_echo_n "checking for cargf in -lm... " >&6; }
  14451. if test "${ac_cv_lib_m_cargf+set}" = set; then :
  14452. $as_echo_n "(cached) " >&6
  14453. else
  14454. ac_check_lib_save_LIBS=$LIBS
  14455. LIBS="-lm $LIBS"
  14456. if test x$gcc_no_link = xyes; then
  14457. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14458. fi
  14459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14460. /* end confdefs.h. */
  14461. /* Override any GCC internal prototype to avoid an error.
  14462. Use char because int might match the return type of a GCC
  14463. builtin and then its argument prototype would still apply. */
  14464. #ifdef __cplusplus
  14465. extern "C"
  14466. #endif
  14467. char cargf ();
  14468. int
  14469. main ()
  14470. {
  14471. return cargf ();
  14472. ;
  14473. return 0;
  14474. }
  14475. _ACEOF
  14476. if ac_fn_c_try_link "$LINENO"; then :
  14477. ac_cv_lib_m_cargf=yes
  14478. else
  14479. ac_cv_lib_m_cargf=no
  14480. fi
  14481. rm -f core conftest.err conftest.$ac_objext \
  14482. conftest$ac_exeext conftest.$ac_ext
  14483. LIBS=$ac_check_lib_save_LIBS
  14484. fi
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargf" >&5
  14486. $as_echo "$ac_cv_lib_m_cargf" >&6; }
  14487. if test "x$ac_cv_lib_m_cargf" = x""yes; then :
  14488. $as_echo "#define HAVE_CARGF 1" >>confdefs.h
  14489. fi
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5
  14491. $as_echo_n "checking for carg in -lm... " >&6; }
  14492. if test "${ac_cv_lib_m_carg+set}" = set; then :
  14493. $as_echo_n "(cached) " >&6
  14494. else
  14495. ac_check_lib_save_LIBS=$LIBS
  14496. LIBS="-lm $LIBS"
  14497. if test x$gcc_no_link = xyes; then
  14498. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14499. fi
  14500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14501. /* end confdefs.h. */
  14502. /* Override any GCC internal prototype to avoid an error.
  14503. Use char because int might match the return type of a GCC
  14504. builtin and then its argument prototype would still apply. */
  14505. #ifdef __cplusplus
  14506. extern "C"
  14507. #endif
  14508. char carg ();
  14509. int
  14510. main ()
  14511. {
  14512. return carg ();
  14513. ;
  14514. return 0;
  14515. }
  14516. _ACEOF
  14517. if ac_fn_c_try_link "$LINENO"; then :
  14518. ac_cv_lib_m_carg=yes
  14519. else
  14520. ac_cv_lib_m_carg=no
  14521. fi
  14522. rm -f core conftest.err conftest.$ac_objext \
  14523. conftest$ac_exeext conftest.$ac_ext
  14524. LIBS=$ac_check_lib_save_LIBS
  14525. fi
  14526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_carg" >&5
  14527. $as_echo "$ac_cv_lib_m_carg" >&6; }
  14528. if test "x$ac_cv_lib_m_carg" = x""yes; then :
  14529. $as_echo "#define HAVE_CARG 1" >>confdefs.h
  14530. fi
  14531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5
  14532. $as_echo_n "checking for cargl in -lm... " >&6; }
  14533. if test "${ac_cv_lib_m_cargl+set}" = set; then :
  14534. $as_echo_n "(cached) " >&6
  14535. else
  14536. ac_check_lib_save_LIBS=$LIBS
  14537. LIBS="-lm $LIBS"
  14538. if test x$gcc_no_link = xyes; then
  14539. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14540. fi
  14541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14542. /* end confdefs.h. */
  14543. /* Override any GCC internal prototype to avoid an error.
  14544. Use char because int might match the return type of a GCC
  14545. builtin and then its argument prototype would still apply. */
  14546. #ifdef __cplusplus
  14547. extern "C"
  14548. #endif
  14549. char cargl ();
  14550. int
  14551. main ()
  14552. {
  14553. return cargl ();
  14554. ;
  14555. return 0;
  14556. }
  14557. _ACEOF
  14558. if ac_fn_c_try_link "$LINENO"; then :
  14559. ac_cv_lib_m_cargl=yes
  14560. else
  14561. ac_cv_lib_m_cargl=no
  14562. fi
  14563. rm -f core conftest.err conftest.$ac_objext \
  14564. conftest$ac_exeext conftest.$ac_ext
  14565. LIBS=$ac_check_lib_save_LIBS
  14566. fi
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargl" >&5
  14568. $as_echo "$ac_cv_lib_m_cargl" >&6; }
  14569. if test "x$ac_cv_lib_m_cargl" = x""yes; then :
  14570. $as_echo "#define HAVE_CARGL 1" >>confdefs.h
  14571. fi
  14572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5
  14573. $as_echo_n "checking for ceilf in -lm... " >&6; }
  14574. if test "${ac_cv_lib_m_ceilf+set}" = set; then :
  14575. $as_echo_n "(cached) " >&6
  14576. else
  14577. ac_check_lib_save_LIBS=$LIBS
  14578. LIBS="-lm $LIBS"
  14579. if test x$gcc_no_link = xyes; then
  14580. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14581. fi
  14582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14583. /* end confdefs.h. */
  14584. /* Override any GCC internal prototype to avoid an error.
  14585. Use char because int might match the return type of a GCC
  14586. builtin and then its argument prototype would still apply. */
  14587. #ifdef __cplusplus
  14588. extern "C"
  14589. #endif
  14590. char ceilf ();
  14591. int
  14592. main ()
  14593. {
  14594. return ceilf ();
  14595. ;
  14596. return 0;
  14597. }
  14598. _ACEOF
  14599. if ac_fn_c_try_link "$LINENO"; then :
  14600. ac_cv_lib_m_ceilf=yes
  14601. else
  14602. ac_cv_lib_m_ceilf=no
  14603. fi
  14604. rm -f core conftest.err conftest.$ac_objext \
  14605. conftest$ac_exeext conftest.$ac_ext
  14606. LIBS=$ac_check_lib_save_LIBS
  14607. fi
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceilf" >&5
  14609. $as_echo "$ac_cv_lib_m_ceilf" >&6; }
  14610. if test "x$ac_cv_lib_m_ceilf" = x""yes; then :
  14611. $as_echo "#define HAVE_CEILF 1" >>confdefs.h
  14612. fi
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
  14614. $as_echo_n "checking for ceil in -lm... " >&6; }
  14615. if test "${ac_cv_lib_m_ceil+set}" = set; then :
  14616. $as_echo_n "(cached) " >&6
  14617. else
  14618. ac_check_lib_save_LIBS=$LIBS
  14619. LIBS="-lm $LIBS"
  14620. if test x$gcc_no_link = xyes; then
  14621. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14622. fi
  14623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14624. /* end confdefs.h. */
  14625. /* Override any GCC internal prototype to avoid an error.
  14626. Use char because int might match the return type of a GCC
  14627. builtin and then its argument prototype would still apply. */
  14628. #ifdef __cplusplus
  14629. extern "C"
  14630. #endif
  14631. char ceil ();
  14632. int
  14633. main ()
  14634. {
  14635. return ceil ();
  14636. ;
  14637. return 0;
  14638. }
  14639. _ACEOF
  14640. if ac_fn_c_try_link "$LINENO"; then :
  14641. ac_cv_lib_m_ceil=yes
  14642. else
  14643. ac_cv_lib_m_ceil=no
  14644. fi
  14645. rm -f core conftest.err conftest.$ac_objext \
  14646. conftest$ac_exeext conftest.$ac_ext
  14647. LIBS=$ac_check_lib_save_LIBS
  14648. fi
  14649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
  14650. $as_echo "$ac_cv_lib_m_ceil" >&6; }
  14651. if test "x$ac_cv_lib_m_ceil" = x""yes; then :
  14652. $as_echo "#define HAVE_CEIL 1" >>confdefs.h
  14653. fi
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5
  14655. $as_echo_n "checking for ceill in -lm... " >&6; }
  14656. if test "${ac_cv_lib_m_ceill+set}" = set; then :
  14657. $as_echo_n "(cached) " >&6
  14658. else
  14659. ac_check_lib_save_LIBS=$LIBS
  14660. LIBS="-lm $LIBS"
  14661. if test x$gcc_no_link = xyes; then
  14662. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14663. fi
  14664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14665. /* end confdefs.h. */
  14666. /* Override any GCC internal prototype to avoid an error.
  14667. Use char because int might match the return type of a GCC
  14668. builtin and then its argument prototype would still apply. */
  14669. #ifdef __cplusplus
  14670. extern "C"
  14671. #endif
  14672. char ceill ();
  14673. int
  14674. main ()
  14675. {
  14676. return ceill ();
  14677. ;
  14678. return 0;
  14679. }
  14680. _ACEOF
  14681. if ac_fn_c_try_link "$LINENO"; then :
  14682. ac_cv_lib_m_ceill=yes
  14683. else
  14684. ac_cv_lib_m_ceill=no
  14685. fi
  14686. rm -f core conftest.err conftest.$ac_objext \
  14687. conftest$ac_exeext conftest.$ac_ext
  14688. LIBS=$ac_check_lib_save_LIBS
  14689. fi
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceill" >&5
  14691. $as_echo "$ac_cv_lib_m_ceill" >&6; }
  14692. if test "x$ac_cv_lib_m_ceill" = x""yes; then :
  14693. $as_echo "#define HAVE_CEILL 1" >>confdefs.h
  14694. fi
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5
  14696. $as_echo_n "checking for copysignf in -lm... " >&6; }
  14697. if test "${ac_cv_lib_m_copysignf+set}" = set; then :
  14698. $as_echo_n "(cached) " >&6
  14699. else
  14700. ac_check_lib_save_LIBS=$LIBS
  14701. LIBS="-lm $LIBS"
  14702. if test x$gcc_no_link = xyes; then
  14703. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14704. fi
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. /* Override any GCC internal prototype to avoid an error.
  14708. Use char because int might match the return type of a GCC
  14709. builtin and then its argument prototype would still apply. */
  14710. #ifdef __cplusplus
  14711. extern "C"
  14712. #endif
  14713. char copysignf ();
  14714. int
  14715. main ()
  14716. {
  14717. return copysignf ();
  14718. ;
  14719. return 0;
  14720. }
  14721. _ACEOF
  14722. if ac_fn_c_try_link "$LINENO"; then :
  14723. ac_cv_lib_m_copysignf=yes
  14724. else
  14725. ac_cv_lib_m_copysignf=no
  14726. fi
  14727. rm -f core conftest.err conftest.$ac_objext \
  14728. conftest$ac_exeext conftest.$ac_ext
  14729. LIBS=$ac_check_lib_save_LIBS
  14730. fi
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignf" >&5
  14732. $as_echo "$ac_cv_lib_m_copysignf" >&6; }
  14733. if test "x$ac_cv_lib_m_copysignf" = x""yes; then :
  14734. $as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
  14735. fi
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5
  14737. $as_echo_n "checking for copysign in -lm... " >&6; }
  14738. if test "${ac_cv_lib_m_copysign+set}" = set; then :
  14739. $as_echo_n "(cached) " >&6
  14740. else
  14741. ac_check_lib_save_LIBS=$LIBS
  14742. LIBS="-lm $LIBS"
  14743. if test x$gcc_no_link = xyes; then
  14744. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14745. fi
  14746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14747. /* end confdefs.h. */
  14748. /* Override any GCC internal prototype to avoid an error.
  14749. Use char because int might match the return type of a GCC
  14750. builtin and then its argument prototype would still apply. */
  14751. #ifdef __cplusplus
  14752. extern "C"
  14753. #endif
  14754. char copysign ();
  14755. int
  14756. main ()
  14757. {
  14758. return copysign ();
  14759. ;
  14760. return 0;
  14761. }
  14762. _ACEOF
  14763. if ac_fn_c_try_link "$LINENO"; then :
  14764. ac_cv_lib_m_copysign=yes
  14765. else
  14766. ac_cv_lib_m_copysign=no
  14767. fi
  14768. rm -f core conftest.err conftest.$ac_objext \
  14769. conftest$ac_exeext conftest.$ac_ext
  14770. LIBS=$ac_check_lib_save_LIBS
  14771. fi
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysign" >&5
  14773. $as_echo "$ac_cv_lib_m_copysign" >&6; }
  14774. if test "x$ac_cv_lib_m_copysign" = x""yes; then :
  14775. $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
  14776. fi
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5
  14778. $as_echo_n "checking for copysignl in -lm... " >&6; }
  14779. if test "${ac_cv_lib_m_copysignl+set}" = set; then :
  14780. $as_echo_n "(cached) " >&6
  14781. else
  14782. ac_check_lib_save_LIBS=$LIBS
  14783. LIBS="-lm $LIBS"
  14784. if test x$gcc_no_link = xyes; then
  14785. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14786. fi
  14787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14788. /* end confdefs.h. */
  14789. /* Override any GCC internal prototype to avoid an error.
  14790. Use char because int might match the return type of a GCC
  14791. builtin and then its argument prototype would still apply. */
  14792. #ifdef __cplusplus
  14793. extern "C"
  14794. #endif
  14795. char copysignl ();
  14796. int
  14797. main ()
  14798. {
  14799. return copysignl ();
  14800. ;
  14801. return 0;
  14802. }
  14803. _ACEOF
  14804. if ac_fn_c_try_link "$LINENO"; then :
  14805. ac_cv_lib_m_copysignl=yes
  14806. else
  14807. ac_cv_lib_m_copysignl=no
  14808. fi
  14809. rm -f core conftest.err conftest.$ac_objext \
  14810. conftest$ac_exeext conftest.$ac_ext
  14811. LIBS=$ac_check_lib_save_LIBS
  14812. fi
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignl" >&5
  14814. $as_echo "$ac_cv_lib_m_copysignl" >&6; }
  14815. if test "x$ac_cv_lib_m_copysignl" = x""yes; then :
  14816. $as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
  14817. fi
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
  14819. $as_echo_n "checking for cosf in -lm... " >&6; }
  14820. if test "${ac_cv_lib_m_cosf+set}" = set; then :
  14821. $as_echo_n "(cached) " >&6
  14822. else
  14823. ac_check_lib_save_LIBS=$LIBS
  14824. LIBS="-lm $LIBS"
  14825. if test x$gcc_no_link = xyes; then
  14826. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14827. fi
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. /* Override any GCC internal prototype to avoid an error.
  14831. Use char because int might match the return type of a GCC
  14832. builtin and then its argument prototype would still apply. */
  14833. #ifdef __cplusplus
  14834. extern "C"
  14835. #endif
  14836. char cosf ();
  14837. int
  14838. main ()
  14839. {
  14840. return cosf ();
  14841. ;
  14842. return 0;
  14843. }
  14844. _ACEOF
  14845. if ac_fn_c_try_link "$LINENO"; then :
  14846. ac_cv_lib_m_cosf=yes
  14847. else
  14848. ac_cv_lib_m_cosf=no
  14849. fi
  14850. rm -f core conftest.err conftest.$ac_objext \
  14851. conftest$ac_exeext conftest.$ac_ext
  14852. LIBS=$ac_check_lib_save_LIBS
  14853. fi
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
  14855. $as_echo "$ac_cv_lib_m_cosf" >&6; }
  14856. if test "x$ac_cv_lib_m_cosf" = x""yes; then :
  14857. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  14858. fi
  14859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  14860. $as_echo_n "checking for cos in -lm... " >&6; }
  14861. if test "${ac_cv_lib_m_cos+set}" = set; then :
  14862. $as_echo_n "(cached) " >&6
  14863. else
  14864. ac_check_lib_save_LIBS=$LIBS
  14865. LIBS="-lm $LIBS"
  14866. if test x$gcc_no_link = xyes; then
  14867. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14868. fi
  14869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14870. /* end confdefs.h. */
  14871. /* Override any GCC internal prototype to avoid an error.
  14872. Use char because int might match the return type of a GCC
  14873. builtin and then its argument prototype would still apply. */
  14874. #ifdef __cplusplus
  14875. extern "C"
  14876. #endif
  14877. char cos ();
  14878. int
  14879. main ()
  14880. {
  14881. return cos ();
  14882. ;
  14883. return 0;
  14884. }
  14885. _ACEOF
  14886. if ac_fn_c_try_link "$LINENO"; then :
  14887. ac_cv_lib_m_cos=yes
  14888. else
  14889. ac_cv_lib_m_cos=no
  14890. fi
  14891. rm -f core conftest.err conftest.$ac_objext \
  14892. conftest$ac_exeext conftest.$ac_ext
  14893. LIBS=$ac_check_lib_save_LIBS
  14894. fi
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  14896. $as_echo "$ac_cv_lib_m_cos" >&6; }
  14897. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  14898. $as_echo "#define HAVE_COS 1" >>confdefs.h
  14899. fi
  14900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5
  14901. $as_echo_n "checking for cosl in -lm... " >&6; }
  14902. if test "${ac_cv_lib_m_cosl+set}" = set; then :
  14903. $as_echo_n "(cached) " >&6
  14904. else
  14905. ac_check_lib_save_LIBS=$LIBS
  14906. LIBS="-lm $LIBS"
  14907. if test x$gcc_no_link = xyes; then
  14908. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14909. fi
  14910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14911. /* end confdefs.h. */
  14912. /* Override any GCC internal prototype to avoid an error.
  14913. Use char because int might match the return type of a GCC
  14914. builtin and then its argument prototype would still apply. */
  14915. #ifdef __cplusplus
  14916. extern "C"
  14917. #endif
  14918. char cosl ();
  14919. int
  14920. main ()
  14921. {
  14922. return cosl ();
  14923. ;
  14924. return 0;
  14925. }
  14926. _ACEOF
  14927. if ac_fn_c_try_link "$LINENO"; then :
  14928. ac_cv_lib_m_cosl=yes
  14929. else
  14930. ac_cv_lib_m_cosl=no
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext \
  14933. conftest$ac_exeext conftest.$ac_ext
  14934. LIBS=$ac_check_lib_save_LIBS
  14935. fi
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosl" >&5
  14937. $as_echo "$ac_cv_lib_m_cosl" >&6; }
  14938. if test "x$ac_cv_lib_m_cosl" = x""yes; then :
  14939. $as_echo "#define HAVE_COSL 1" >>confdefs.h
  14940. fi
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5
  14942. $as_echo_n "checking for ccosf in -lm... " >&6; }
  14943. if test "${ac_cv_lib_m_ccosf+set}" = set; then :
  14944. $as_echo_n "(cached) " >&6
  14945. else
  14946. ac_check_lib_save_LIBS=$LIBS
  14947. LIBS="-lm $LIBS"
  14948. if test x$gcc_no_link = xyes; then
  14949. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14950. fi
  14951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14952. /* end confdefs.h. */
  14953. /* Override any GCC internal prototype to avoid an error.
  14954. Use char because int might match the return type of a GCC
  14955. builtin and then its argument prototype would still apply. */
  14956. #ifdef __cplusplus
  14957. extern "C"
  14958. #endif
  14959. char ccosf ();
  14960. int
  14961. main ()
  14962. {
  14963. return ccosf ();
  14964. ;
  14965. return 0;
  14966. }
  14967. _ACEOF
  14968. if ac_fn_c_try_link "$LINENO"; then :
  14969. ac_cv_lib_m_ccosf=yes
  14970. else
  14971. ac_cv_lib_m_ccosf=no
  14972. fi
  14973. rm -f core conftest.err conftest.$ac_objext \
  14974. conftest$ac_exeext conftest.$ac_ext
  14975. LIBS=$ac_check_lib_save_LIBS
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosf" >&5
  14978. $as_echo "$ac_cv_lib_m_ccosf" >&6; }
  14979. if test "x$ac_cv_lib_m_ccosf" = x""yes; then :
  14980. $as_echo "#define HAVE_CCOSF 1" >>confdefs.h
  14981. fi
  14982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5
  14983. $as_echo_n "checking for ccos in -lm... " >&6; }
  14984. if test "${ac_cv_lib_m_ccos+set}" = set; then :
  14985. $as_echo_n "(cached) " >&6
  14986. else
  14987. ac_check_lib_save_LIBS=$LIBS
  14988. LIBS="-lm $LIBS"
  14989. if test x$gcc_no_link = xyes; then
  14990. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14991. fi
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. /* Override any GCC internal prototype to avoid an error.
  14995. Use char because int might match the return type of a GCC
  14996. builtin and then its argument prototype would still apply. */
  14997. #ifdef __cplusplus
  14998. extern "C"
  14999. #endif
  15000. char ccos ();
  15001. int
  15002. main ()
  15003. {
  15004. return ccos ();
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. if ac_fn_c_try_link "$LINENO"; then :
  15010. ac_cv_lib_m_ccos=yes
  15011. else
  15012. ac_cv_lib_m_ccos=no
  15013. fi
  15014. rm -f core conftest.err conftest.$ac_objext \
  15015. conftest$ac_exeext conftest.$ac_ext
  15016. LIBS=$ac_check_lib_save_LIBS
  15017. fi
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccos" >&5
  15019. $as_echo "$ac_cv_lib_m_ccos" >&6; }
  15020. if test "x$ac_cv_lib_m_ccos" = x""yes; then :
  15021. $as_echo "#define HAVE_CCOS 1" >>confdefs.h
  15022. fi
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5
  15024. $as_echo_n "checking for ccosl in -lm... " >&6; }
  15025. if test "${ac_cv_lib_m_ccosl+set}" = set; then :
  15026. $as_echo_n "(cached) " >&6
  15027. else
  15028. ac_check_lib_save_LIBS=$LIBS
  15029. LIBS="-lm $LIBS"
  15030. if test x$gcc_no_link = xyes; then
  15031. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15032. fi
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. /* Override any GCC internal prototype to avoid an error.
  15036. Use char because int might match the return type of a GCC
  15037. builtin and then its argument prototype would still apply. */
  15038. #ifdef __cplusplus
  15039. extern "C"
  15040. #endif
  15041. char ccosl ();
  15042. int
  15043. main ()
  15044. {
  15045. return ccosl ();
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. if ac_fn_c_try_link "$LINENO"; then :
  15051. ac_cv_lib_m_ccosl=yes
  15052. else
  15053. ac_cv_lib_m_ccosl=no
  15054. fi
  15055. rm -f core conftest.err conftest.$ac_objext \
  15056. conftest$ac_exeext conftest.$ac_ext
  15057. LIBS=$ac_check_lib_save_LIBS
  15058. fi
  15059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosl" >&5
  15060. $as_echo "$ac_cv_lib_m_ccosl" >&6; }
  15061. if test "x$ac_cv_lib_m_ccosl" = x""yes; then :
  15062. $as_echo "#define HAVE_CCOSL 1" >>confdefs.h
  15063. fi
  15064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5
  15065. $as_echo_n "checking for coshf in -lm... " >&6; }
  15066. if test "${ac_cv_lib_m_coshf+set}" = set; then :
  15067. $as_echo_n "(cached) " >&6
  15068. else
  15069. ac_check_lib_save_LIBS=$LIBS
  15070. LIBS="-lm $LIBS"
  15071. if test x$gcc_no_link = xyes; then
  15072. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15073. fi
  15074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15075. /* end confdefs.h. */
  15076. /* Override any GCC internal prototype to avoid an error.
  15077. Use char because int might match the return type of a GCC
  15078. builtin and then its argument prototype would still apply. */
  15079. #ifdef __cplusplus
  15080. extern "C"
  15081. #endif
  15082. char coshf ();
  15083. int
  15084. main ()
  15085. {
  15086. return coshf ();
  15087. ;
  15088. return 0;
  15089. }
  15090. _ACEOF
  15091. if ac_fn_c_try_link "$LINENO"; then :
  15092. ac_cv_lib_m_coshf=yes
  15093. else
  15094. ac_cv_lib_m_coshf=no
  15095. fi
  15096. rm -f core conftest.err conftest.$ac_objext \
  15097. conftest$ac_exeext conftest.$ac_ext
  15098. LIBS=$ac_check_lib_save_LIBS
  15099. fi
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshf" >&5
  15101. $as_echo "$ac_cv_lib_m_coshf" >&6; }
  15102. if test "x$ac_cv_lib_m_coshf" = x""yes; then :
  15103. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  15104. fi
  15105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5
  15106. $as_echo_n "checking for cosh in -lm... " >&6; }
  15107. if test "${ac_cv_lib_m_cosh+set}" = set; then :
  15108. $as_echo_n "(cached) " >&6
  15109. else
  15110. ac_check_lib_save_LIBS=$LIBS
  15111. LIBS="-lm $LIBS"
  15112. if test x$gcc_no_link = xyes; then
  15113. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15114. fi
  15115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15116. /* end confdefs.h. */
  15117. /* Override any GCC internal prototype to avoid an error.
  15118. Use char because int might match the return type of a GCC
  15119. builtin and then its argument prototype would still apply. */
  15120. #ifdef __cplusplus
  15121. extern "C"
  15122. #endif
  15123. char cosh ();
  15124. int
  15125. main ()
  15126. {
  15127. return cosh ();
  15128. ;
  15129. return 0;
  15130. }
  15131. _ACEOF
  15132. if ac_fn_c_try_link "$LINENO"; then :
  15133. ac_cv_lib_m_cosh=yes
  15134. else
  15135. ac_cv_lib_m_cosh=no
  15136. fi
  15137. rm -f core conftest.err conftest.$ac_objext \
  15138. conftest$ac_exeext conftest.$ac_ext
  15139. LIBS=$ac_check_lib_save_LIBS
  15140. fi
  15141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosh" >&5
  15142. $as_echo "$ac_cv_lib_m_cosh" >&6; }
  15143. if test "x$ac_cv_lib_m_cosh" = x""yes; then :
  15144. $as_echo "#define HAVE_COSH 1" >>confdefs.h
  15145. fi
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5
  15147. $as_echo_n "checking for coshl in -lm... " >&6; }
  15148. if test "${ac_cv_lib_m_coshl+set}" = set; then :
  15149. $as_echo_n "(cached) " >&6
  15150. else
  15151. ac_check_lib_save_LIBS=$LIBS
  15152. LIBS="-lm $LIBS"
  15153. if test x$gcc_no_link = xyes; then
  15154. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15155. fi
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. /* Override any GCC internal prototype to avoid an error.
  15159. Use char because int might match the return type of a GCC
  15160. builtin and then its argument prototype would still apply. */
  15161. #ifdef __cplusplus
  15162. extern "C"
  15163. #endif
  15164. char coshl ();
  15165. int
  15166. main ()
  15167. {
  15168. return coshl ();
  15169. ;
  15170. return 0;
  15171. }
  15172. _ACEOF
  15173. if ac_fn_c_try_link "$LINENO"; then :
  15174. ac_cv_lib_m_coshl=yes
  15175. else
  15176. ac_cv_lib_m_coshl=no
  15177. fi
  15178. rm -f core conftest.err conftest.$ac_objext \
  15179. conftest$ac_exeext conftest.$ac_ext
  15180. LIBS=$ac_check_lib_save_LIBS
  15181. fi
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshl" >&5
  15183. $as_echo "$ac_cv_lib_m_coshl" >&6; }
  15184. if test "x$ac_cv_lib_m_coshl" = x""yes; then :
  15185. $as_echo "#define HAVE_COSHL 1" >>confdefs.h
  15186. fi
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5
  15188. $as_echo_n "checking for ccoshf in -lm... " >&6; }
  15189. if test "${ac_cv_lib_m_ccoshf+set}" = set; then :
  15190. $as_echo_n "(cached) " >&6
  15191. else
  15192. ac_check_lib_save_LIBS=$LIBS
  15193. LIBS="-lm $LIBS"
  15194. if test x$gcc_no_link = xyes; then
  15195. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15196. fi
  15197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15198. /* end confdefs.h. */
  15199. /* Override any GCC internal prototype to avoid an error.
  15200. Use char because int might match the return type of a GCC
  15201. builtin and then its argument prototype would still apply. */
  15202. #ifdef __cplusplus
  15203. extern "C"
  15204. #endif
  15205. char ccoshf ();
  15206. int
  15207. main ()
  15208. {
  15209. return ccoshf ();
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_link "$LINENO"; then :
  15215. ac_cv_lib_m_ccoshf=yes
  15216. else
  15217. ac_cv_lib_m_ccoshf=no
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext \
  15220. conftest$ac_exeext conftest.$ac_ext
  15221. LIBS=$ac_check_lib_save_LIBS
  15222. fi
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshf" >&5
  15224. $as_echo "$ac_cv_lib_m_ccoshf" >&6; }
  15225. if test "x$ac_cv_lib_m_ccoshf" = x""yes; then :
  15226. $as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
  15227. fi
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5
  15229. $as_echo_n "checking for ccosh in -lm... " >&6; }
  15230. if test "${ac_cv_lib_m_ccosh+set}" = set; then :
  15231. $as_echo_n "(cached) " >&6
  15232. else
  15233. ac_check_lib_save_LIBS=$LIBS
  15234. LIBS="-lm $LIBS"
  15235. if test x$gcc_no_link = xyes; then
  15236. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15237. fi
  15238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15239. /* end confdefs.h. */
  15240. /* Override any GCC internal prototype to avoid an error.
  15241. Use char because int might match the return type of a GCC
  15242. builtin and then its argument prototype would still apply. */
  15243. #ifdef __cplusplus
  15244. extern "C"
  15245. #endif
  15246. char ccosh ();
  15247. int
  15248. main ()
  15249. {
  15250. return ccosh ();
  15251. ;
  15252. return 0;
  15253. }
  15254. _ACEOF
  15255. if ac_fn_c_try_link "$LINENO"; then :
  15256. ac_cv_lib_m_ccosh=yes
  15257. else
  15258. ac_cv_lib_m_ccosh=no
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext \
  15261. conftest$ac_exeext conftest.$ac_ext
  15262. LIBS=$ac_check_lib_save_LIBS
  15263. fi
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosh" >&5
  15265. $as_echo "$ac_cv_lib_m_ccosh" >&6; }
  15266. if test "x$ac_cv_lib_m_ccosh" = x""yes; then :
  15267. $as_echo "#define HAVE_CCOSH 1" >>confdefs.h
  15268. fi
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5
  15270. $as_echo_n "checking for ccoshl in -lm... " >&6; }
  15271. if test "${ac_cv_lib_m_ccoshl+set}" = set; then :
  15272. $as_echo_n "(cached) " >&6
  15273. else
  15274. ac_check_lib_save_LIBS=$LIBS
  15275. LIBS="-lm $LIBS"
  15276. if test x$gcc_no_link = xyes; then
  15277. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15278. fi
  15279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15280. /* end confdefs.h. */
  15281. /* Override any GCC internal prototype to avoid an error.
  15282. Use char because int might match the return type of a GCC
  15283. builtin and then its argument prototype would still apply. */
  15284. #ifdef __cplusplus
  15285. extern "C"
  15286. #endif
  15287. char ccoshl ();
  15288. int
  15289. main ()
  15290. {
  15291. return ccoshl ();
  15292. ;
  15293. return 0;
  15294. }
  15295. _ACEOF
  15296. if ac_fn_c_try_link "$LINENO"; then :
  15297. ac_cv_lib_m_ccoshl=yes
  15298. else
  15299. ac_cv_lib_m_ccoshl=no
  15300. fi
  15301. rm -f core conftest.err conftest.$ac_objext \
  15302. conftest$ac_exeext conftest.$ac_ext
  15303. LIBS=$ac_check_lib_save_LIBS
  15304. fi
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshl" >&5
  15306. $as_echo "$ac_cv_lib_m_ccoshl" >&6; }
  15307. if test "x$ac_cv_lib_m_ccoshl" = x""yes; then :
  15308. $as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
  15309. fi
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5
  15311. $as_echo_n "checking for expf in -lm... " >&6; }
  15312. if test "${ac_cv_lib_m_expf+set}" = set; then :
  15313. $as_echo_n "(cached) " >&6
  15314. else
  15315. ac_check_lib_save_LIBS=$LIBS
  15316. LIBS="-lm $LIBS"
  15317. if test x$gcc_no_link = xyes; then
  15318. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15319. fi
  15320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15321. /* end confdefs.h. */
  15322. /* Override any GCC internal prototype to avoid an error.
  15323. Use char because int might match the return type of a GCC
  15324. builtin and then its argument prototype would still apply. */
  15325. #ifdef __cplusplus
  15326. extern "C"
  15327. #endif
  15328. char expf ();
  15329. int
  15330. main ()
  15331. {
  15332. return expf ();
  15333. ;
  15334. return 0;
  15335. }
  15336. _ACEOF
  15337. if ac_fn_c_try_link "$LINENO"; then :
  15338. ac_cv_lib_m_expf=yes
  15339. else
  15340. ac_cv_lib_m_expf=no
  15341. fi
  15342. rm -f core conftest.err conftest.$ac_objext \
  15343. conftest$ac_exeext conftest.$ac_ext
  15344. LIBS=$ac_check_lib_save_LIBS
  15345. fi
  15346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expf" >&5
  15347. $as_echo "$ac_cv_lib_m_expf" >&6; }
  15348. if test "x$ac_cv_lib_m_expf" = x""yes; then :
  15349. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  15350. fi
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  15352. $as_echo_n "checking for exp in -lm... " >&6; }
  15353. if test "${ac_cv_lib_m_exp+set}" = set; then :
  15354. $as_echo_n "(cached) " >&6
  15355. else
  15356. ac_check_lib_save_LIBS=$LIBS
  15357. LIBS="-lm $LIBS"
  15358. if test x$gcc_no_link = xyes; then
  15359. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15360. fi
  15361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15362. /* end confdefs.h. */
  15363. /* Override any GCC internal prototype to avoid an error.
  15364. Use char because int might match the return type of a GCC
  15365. builtin and then its argument prototype would still apply. */
  15366. #ifdef __cplusplus
  15367. extern "C"
  15368. #endif
  15369. char exp ();
  15370. int
  15371. main ()
  15372. {
  15373. return exp ();
  15374. ;
  15375. return 0;
  15376. }
  15377. _ACEOF
  15378. if ac_fn_c_try_link "$LINENO"; then :
  15379. ac_cv_lib_m_exp=yes
  15380. else
  15381. ac_cv_lib_m_exp=no
  15382. fi
  15383. rm -f core conftest.err conftest.$ac_objext \
  15384. conftest$ac_exeext conftest.$ac_ext
  15385. LIBS=$ac_check_lib_save_LIBS
  15386. fi
  15387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  15388. $as_echo "$ac_cv_lib_m_exp" >&6; }
  15389. if test "x$ac_cv_lib_m_exp" = x""yes; then :
  15390. $as_echo "#define HAVE_EXP 1" >>confdefs.h
  15391. fi
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5
  15393. $as_echo_n "checking for expl in -lm... " >&6; }
  15394. if test "${ac_cv_lib_m_expl+set}" = set; then :
  15395. $as_echo_n "(cached) " >&6
  15396. else
  15397. ac_check_lib_save_LIBS=$LIBS
  15398. LIBS="-lm $LIBS"
  15399. if test x$gcc_no_link = xyes; then
  15400. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15401. fi
  15402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15403. /* end confdefs.h. */
  15404. /* Override any GCC internal prototype to avoid an error.
  15405. Use char because int might match the return type of a GCC
  15406. builtin and then its argument prototype would still apply. */
  15407. #ifdef __cplusplus
  15408. extern "C"
  15409. #endif
  15410. char expl ();
  15411. int
  15412. main ()
  15413. {
  15414. return expl ();
  15415. ;
  15416. return 0;
  15417. }
  15418. _ACEOF
  15419. if ac_fn_c_try_link "$LINENO"; then :
  15420. ac_cv_lib_m_expl=yes
  15421. else
  15422. ac_cv_lib_m_expl=no
  15423. fi
  15424. rm -f core conftest.err conftest.$ac_objext \
  15425. conftest$ac_exeext conftest.$ac_ext
  15426. LIBS=$ac_check_lib_save_LIBS
  15427. fi
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expl" >&5
  15429. $as_echo "$ac_cv_lib_m_expl" >&6; }
  15430. if test "x$ac_cv_lib_m_expl" = x""yes; then :
  15431. $as_echo "#define HAVE_EXPL 1" >>confdefs.h
  15432. fi
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5
  15434. $as_echo_n "checking for cexpf in -lm... " >&6; }
  15435. if test "${ac_cv_lib_m_cexpf+set}" = set; then :
  15436. $as_echo_n "(cached) " >&6
  15437. else
  15438. ac_check_lib_save_LIBS=$LIBS
  15439. LIBS="-lm $LIBS"
  15440. if test x$gcc_no_link = xyes; then
  15441. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15442. fi
  15443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15444. /* end confdefs.h. */
  15445. /* Override any GCC internal prototype to avoid an error.
  15446. Use char because int might match the return type of a GCC
  15447. builtin and then its argument prototype would still apply. */
  15448. #ifdef __cplusplus
  15449. extern "C"
  15450. #endif
  15451. char cexpf ();
  15452. int
  15453. main ()
  15454. {
  15455. return cexpf ();
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_c_try_link "$LINENO"; then :
  15461. ac_cv_lib_m_cexpf=yes
  15462. else
  15463. ac_cv_lib_m_cexpf=no
  15464. fi
  15465. rm -f core conftest.err conftest.$ac_objext \
  15466. conftest$ac_exeext conftest.$ac_ext
  15467. LIBS=$ac_check_lib_save_LIBS
  15468. fi
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpf" >&5
  15470. $as_echo "$ac_cv_lib_m_cexpf" >&6; }
  15471. if test "x$ac_cv_lib_m_cexpf" = x""yes; then :
  15472. $as_echo "#define HAVE_CEXPF 1" >>confdefs.h
  15473. fi
  15474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5
  15475. $as_echo_n "checking for cexp in -lm... " >&6; }
  15476. if test "${ac_cv_lib_m_cexp+set}" = set; then :
  15477. $as_echo_n "(cached) " >&6
  15478. else
  15479. ac_check_lib_save_LIBS=$LIBS
  15480. LIBS="-lm $LIBS"
  15481. if test x$gcc_no_link = xyes; then
  15482. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15483. fi
  15484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15485. /* end confdefs.h. */
  15486. /* Override any GCC internal prototype to avoid an error.
  15487. Use char because int might match the return type of a GCC
  15488. builtin and then its argument prototype would still apply. */
  15489. #ifdef __cplusplus
  15490. extern "C"
  15491. #endif
  15492. char cexp ();
  15493. int
  15494. main ()
  15495. {
  15496. return cexp ();
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. if ac_fn_c_try_link "$LINENO"; then :
  15502. ac_cv_lib_m_cexp=yes
  15503. else
  15504. ac_cv_lib_m_cexp=no
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. LIBS=$ac_check_lib_save_LIBS
  15509. fi
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexp" >&5
  15511. $as_echo "$ac_cv_lib_m_cexp" >&6; }
  15512. if test "x$ac_cv_lib_m_cexp" = x""yes; then :
  15513. $as_echo "#define HAVE_CEXP 1" >>confdefs.h
  15514. fi
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5
  15516. $as_echo_n "checking for cexpl in -lm... " >&6; }
  15517. if test "${ac_cv_lib_m_cexpl+set}" = set; then :
  15518. $as_echo_n "(cached) " >&6
  15519. else
  15520. ac_check_lib_save_LIBS=$LIBS
  15521. LIBS="-lm $LIBS"
  15522. if test x$gcc_no_link = xyes; then
  15523. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15524. fi
  15525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15526. /* end confdefs.h. */
  15527. /* Override any GCC internal prototype to avoid an error.
  15528. Use char because int might match the return type of a GCC
  15529. builtin and then its argument prototype would still apply. */
  15530. #ifdef __cplusplus
  15531. extern "C"
  15532. #endif
  15533. char cexpl ();
  15534. int
  15535. main ()
  15536. {
  15537. return cexpl ();
  15538. ;
  15539. return 0;
  15540. }
  15541. _ACEOF
  15542. if ac_fn_c_try_link "$LINENO"; then :
  15543. ac_cv_lib_m_cexpl=yes
  15544. else
  15545. ac_cv_lib_m_cexpl=no
  15546. fi
  15547. rm -f core conftest.err conftest.$ac_objext \
  15548. conftest$ac_exeext conftest.$ac_ext
  15549. LIBS=$ac_check_lib_save_LIBS
  15550. fi
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpl" >&5
  15552. $as_echo "$ac_cv_lib_m_cexpl" >&6; }
  15553. if test "x$ac_cv_lib_m_cexpl" = x""yes; then :
  15554. $as_echo "#define HAVE_CEXPL 1" >>confdefs.h
  15555. fi
  15556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
  15557. $as_echo_n "checking for fabsf in -lm... " >&6; }
  15558. if test "${ac_cv_lib_m_fabsf+set}" = set; then :
  15559. $as_echo_n "(cached) " >&6
  15560. else
  15561. ac_check_lib_save_LIBS=$LIBS
  15562. LIBS="-lm $LIBS"
  15563. if test x$gcc_no_link = xyes; then
  15564. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15565. fi
  15566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15567. /* end confdefs.h. */
  15568. /* Override any GCC internal prototype to avoid an error.
  15569. Use char because int might match the return type of a GCC
  15570. builtin and then its argument prototype would still apply. */
  15571. #ifdef __cplusplus
  15572. extern "C"
  15573. #endif
  15574. char fabsf ();
  15575. int
  15576. main ()
  15577. {
  15578. return fabsf ();
  15579. ;
  15580. return 0;
  15581. }
  15582. _ACEOF
  15583. if ac_fn_c_try_link "$LINENO"; then :
  15584. ac_cv_lib_m_fabsf=yes
  15585. else
  15586. ac_cv_lib_m_fabsf=no
  15587. fi
  15588. rm -f core conftest.err conftest.$ac_objext \
  15589. conftest$ac_exeext conftest.$ac_ext
  15590. LIBS=$ac_check_lib_save_LIBS
  15591. fi
  15592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
  15593. $as_echo "$ac_cv_lib_m_fabsf" >&6; }
  15594. if test "x$ac_cv_lib_m_fabsf" = x""yes; then :
  15595. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  15596. fi
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
  15598. $as_echo_n "checking for fabs in -lm... " >&6; }
  15599. if test "${ac_cv_lib_m_fabs+set}" = set; then :
  15600. $as_echo_n "(cached) " >&6
  15601. else
  15602. ac_check_lib_save_LIBS=$LIBS
  15603. LIBS="-lm $LIBS"
  15604. if test x$gcc_no_link = xyes; then
  15605. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15606. fi
  15607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15608. /* end confdefs.h. */
  15609. /* Override any GCC internal prototype to avoid an error.
  15610. Use char because int might match the return type of a GCC
  15611. builtin and then its argument prototype would still apply. */
  15612. #ifdef __cplusplus
  15613. extern "C"
  15614. #endif
  15615. char fabs ();
  15616. int
  15617. main ()
  15618. {
  15619. return fabs ();
  15620. ;
  15621. return 0;
  15622. }
  15623. _ACEOF
  15624. if ac_fn_c_try_link "$LINENO"; then :
  15625. ac_cv_lib_m_fabs=yes
  15626. else
  15627. ac_cv_lib_m_fabs=no
  15628. fi
  15629. rm -f core conftest.err conftest.$ac_objext \
  15630. conftest$ac_exeext conftest.$ac_ext
  15631. LIBS=$ac_check_lib_save_LIBS
  15632. fi
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
  15634. $as_echo "$ac_cv_lib_m_fabs" >&6; }
  15635. if test "x$ac_cv_lib_m_fabs" = x""yes; then :
  15636. $as_echo "#define HAVE_FABS 1" >>confdefs.h
  15637. fi
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5
  15639. $as_echo_n "checking for fabsl in -lm... " >&6; }
  15640. if test "${ac_cv_lib_m_fabsl+set}" = set; then :
  15641. $as_echo_n "(cached) " >&6
  15642. else
  15643. ac_check_lib_save_LIBS=$LIBS
  15644. LIBS="-lm $LIBS"
  15645. if test x$gcc_no_link = xyes; then
  15646. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15647. fi
  15648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15649. /* end confdefs.h. */
  15650. /* Override any GCC internal prototype to avoid an error.
  15651. Use char because int might match the return type of a GCC
  15652. builtin and then its argument prototype would still apply. */
  15653. #ifdef __cplusplus
  15654. extern "C"
  15655. #endif
  15656. char fabsl ();
  15657. int
  15658. main ()
  15659. {
  15660. return fabsl ();
  15661. ;
  15662. return 0;
  15663. }
  15664. _ACEOF
  15665. if ac_fn_c_try_link "$LINENO"; then :
  15666. ac_cv_lib_m_fabsl=yes
  15667. else
  15668. ac_cv_lib_m_fabsl=no
  15669. fi
  15670. rm -f core conftest.err conftest.$ac_objext \
  15671. conftest$ac_exeext conftest.$ac_ext
  15672. LIBS=$ac_check_lib_save_LIBS
  15673. fi
  15674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsl" >&5
  15675. $as_echo "$ac_cv_lib_m_fabsl" >&6; }
  15676. if test "x$ac_cv_lib_m_fabsl" = x""yes; then :
  15677. $as_echo "#define HAVE_FABSL 1" >>confdefs.h
  15678. fi
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5
  15680. $as_echo_n "checking for cabsf in -lm... " >&6; }
  15681. if test "${ac_cv_lib_m_cabsf+set}" = set; then :
  15682. $as_echo_n "(cached) " >&6
  15683. else
  15684. ac_check_lib_save_LIBS=$LIBS
  15685. LIBS="-lm $LIBS"
  15686. if test x$gcc_no_link = xyes; then
  15687. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15688. fi
  15689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15690. /* end confdefs.h. */
  15691. /* Override any GCC internal prototype to avoid an error.
  15692. Use char because int might match the return type of a GCC
  15693. builtin and then its argument prototype would still apply. */
  15694. #ifdef __cplusplus
  15695. extern "C"
  15696. #endif
  15697. char cabsf ();
  15698. int
  15699. main ()
  15700. {
  15701. return cabsf ();
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. if ac_fn_c_try_link "$LINENO"; then :
  15707. ac_cv_lib_m_cabsf=yes
  15708. else
  15709. ac_cv_lib_m_cabsf=no
  15710. fi
  15711. rm -f core conftest.err conftest.$ac_objext \
  15712. conftest$ac_exeext conftest.$ac_ext
  15713. LIBS=$ac_check_lib_save_LIBS
  15714. fi
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsf" >&5
  15716. $as_echo "$ac_cv_lib_m_cabsf" >&6; }
  15717. if test "x$ac_cv_lib_m_cabsf" = x""yes; then :
  15718. $as_echo "#define HAVE_CABSF 1" >>confdefs.h
  15719. fi
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5
  15721. $as_echo_n "checking for cabs in -lm... " >&6; }
  15722. if test "${ac_cv_lib_m_cabs+set}" = set; then :
  15723. $as_echo_n "(cached) " >&6
  15724. else
  15725. ac_check_lib_save_LIBS=$LIBS
  15726. LIBS="-lm $LIBS"
  15727. if test x$gcc_no_link = xyes; then
  15728. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15729. fi
  15730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15731. /* end confdefs.h. */
  15732. /* Override any GCC internal prototype to avoid an error.
  15733. Use char because int might match the return type of a GCC
  15734. builtin and then its argument prototype would still apply. */
  15735. #ifdef __cplusplus
  15736. extern "C"
  15737. #endif
  15738. char cabs ();
  15739. int
  15740. main ()
  15741. {
  15742. return cabs ();
  15743. ;
  15744. return 0;
  15745. }
  15746. _ACEOF
  15747. if ac_fn_c_try_link "$LINENO"; then :
  15748. ac_cv_lib_m_cabs=yes
  15749. else
  15750. ac_cv_lib_m_cabs=no
  15751. fi
  15752. rm -f core conftest.err conftest.$ac_objext \
  15753. conftest$ac_exeext conftest.$ac_ext
  15754. LIBS=$ac_check_lib_save_LIBS
  15755. fi
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5
  15757. $as_echo "$ac_cv_lib_m_cabs" >&6; }
  15758. if test "x$ac_cv_lib_m_cabs" = x""yes; then :
  15759. $as_echo "#define HAVE_CABS 1" >>confdefs.h
  15760. fi
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5
  15762. $as_echo_n "checking for cabsl in -lm... " >&6; }
  15763. if test "${ac_cv_lib_m_cabsl+set}" = set; then :
  15764. $as_echo_n "(cached) " >&6
  15765. else
  15766. ac_check_lib_save_LIBS=$LIBS
  15767. LIBS="-lm $LIBS"
  15768. if test x$gcc_no_link = xyes; then
  15769. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15770. fi
  15771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15772. /* end confdefs.h. */
  15773. /* Override any GCC internal prototype to avoid an error.
  15774. Use char because int might match the return type of a GCC
  15775. builtin and then its argument prototype would still apply. */
  15776. #ifdef __cplusplus
  15777. extern "C"
  15778. #endif
  15779. char cabsl ();
  15780. int
  15781. main ()
  15782. {
  15783. return cabsl ();
  15784. ;
  15785. return 0;
  15786. }
  15787. _ACEOF
  15788. if ac_fn_c_try_link "$LINENO"; then :
  15789. ac_cv_lib_m_cabsl=yes
  15790. else
  15791. ac_cv_lib_m_cabsl=no
  15792. fi
  15793. rm -f core conftest.err conftest.$ac_objext \
  15794. conftest$ac_exeext conftest.$ac_ext
  15795. LIBS=$ac_check_lib_save_LIBS
  15796. fi
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsl" >&5
  15798. $as_echo "$ac_cv_lib_m_cabsl" >&6; }
  15799. if test "x$ac_cv_lib_m_cabsl" = x""yes; then :
  15800. $as_echo "#define HAVE_CABSL 1" >>confdefs.h
  15801. fi
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5
  15803. $as_echo_n "checking for floorf in -lm... " >&6; }
  15804. if test "${ac_cv_lib_m_floorf+set}" = set; then :
  15805. $as_echo_n "(cached) " >&6
  15806. else
  15807. ac_check_lib_save_LIBS=$LIBS
  15808. LIBS="-lm $LIBS"
  15809. if test x$gcc_no_link = xyes; then
  15810. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15811. fi
  15812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15813. /* end confdefs.h. */
  15814. /* Override any GCC internal prototype to avoid an error.
  15815. Use char because int might match the return type of a GCC
  15816. builtin and then its argument prototype would still apply. */
  15817. #ifdef __cplusplus
  15818. extern "C"
  15819. #endif
  15820. char floorf ();
  15821. int
  15822. main ()
  15823. {
  15824. return floorf ();
  15825. ;
  15826. return 0;
  15827. }
  15828. _ACEOF
  15829. if ac_fn_c_try_link "$LINENO"; then :
  15830. ac_cv_lib_m_floorf=yes
  15831. else
  15832. ac_cv_lib_m_floorf=no
  15833. fi
  15834. rm -f core conftest.err conftest.$ac_objext \
  15835. conftest$ac_exeext conftest.$ac_ext
  15836. LIBS=$ac_check_lib_save_LIBS
  15837. fi
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorf" >&5
  15839. $as_echo "$ac_cv_lib_m_floorf" >&6; }
  15840. if test "x$ac_cv_lib_m_floorf" = x""yes; then :
  15841. $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
  15842. fi
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
  15844. $as_echo_n "checking for floor in -lm... " >&6; }
  15845. if test "${ac_cv_lib_m_floor+set}" = set; then :
  15846. $as_echo_n "(cached) " >&6
  15847. else
  15848. ac_check_lib_save_LIBS=$LIBS
  15849. LIBS="-lm $LIBS"
  15850. if test x$gcc_no_link = xyes; then
  15851. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15852. fi
  15853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15854. /* end confdefs.h. */
  15855. /* Override any GCC internal prototype to avoid an error.
  15856. Use char because int might match the return type of a GCC
  15857. builtin and then its argument prototype would still apply. */
  15858. #ifdef __cplusplus
  15859. extern "C"
  15860. #endif
  15861. char floor ();
  15862. int
  15863. main ()
  15864. {
  15865. return floor ();
  15866. ;
  15867. return 0;
  15868. }
  15869. _ACEOF
  15870. if ac_fn_c_try_link "$LINENO"; then :
  15871. ac_cv_lib_m_floor=yes
  15872. else
  15873. ac_cv_lib_m_floor=no
  15874. fi
  15875. rm -f core conftest.err conftest.$ac_objext \
  15876. conftest$ac_exeext conftest.$ac_ext
  15877. LIBS=$ac_check_lib_save_LIBS
  15878. fi
  15879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
  15880. $as_echo "$ac_cv_lib_m_floor" >&6; }
  15881. if test "x$ac_cv_lib_m_floor" = x""yes; then :
  15882. $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
  15883. fi
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5
  15885. $as_echo_n "checking for floorl in -lm... " >&6; }
  15886. if test "${ac_cv_lib_m_floorl+set}" = set; then :
  15887. $as_echo_n "(cached) " >&6
  15888. else
  15889. ac_check_lib_save_LIBS=$LIBS
  15890. LIBS="-lm $LIBS"
  15891. if test x$gcc_no_link = xyes; then
  15892. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15893. fi
  15894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15895. /* end confdefs.h. */
  15896. /* Override any GCC internal prototype to avoid an error.
  15897. Use char because int might match the return type of a GCC
  15898. builtin and then its argument prototype would still apply. */
  15899. #ifdef __cplusplus
  15900. extern "C"
  15901. #endif
  15902. char floorl ();
  15903. int
  15904. main ()
  15905. {
  15906. return floorl ();
  15907. ;
  15908. return 0;
  15909. }
  15910. _ACEOF
  15911. if ac_fn_c_try_link "$LINENO"; then :
  15912. ac_cv_lib_m_floorl=yes
  15913. else
  15914. ac_cv_lib_m_floorl=no
  15915. fi
  15916. rm -f core conftest.err conftest.$ac_objext \
  15917. conftest$ac_exeext conftest.$ac_ext
  15918. LIBS=$ac_check_lib_save_LIBS
  15919. fi
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorl" >&5
  15921. $as_echo "$ac_cv_lib_m_floorl" >&6; }
  15922. if test "x$ac_cv_lib_m_floorl" = x""yes; then :
  15923. $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
  15924. fi
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5
  15926. $as_echo_n "checking for fmodf in -lm... " >&6; }
  15927. if test "${ac_cv_lib_m_fmodf+set}" = set; then :
  15928. $as_echo_n "(cached) " >&6
  15929. else
  15930. ac_check_lib_save_LIBS=$LIBS
  15931. LIBS="-lm $LIBS"
  15932. if test x$gcc_no_link = xyes; then
  15933. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15934. fi
  15935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15936. /* end confdefs.h. */
  15937. /* Override any GCC internal prototype to avoid an error.
  15938. Use char because int might match the return type of a GCC
  15939. builtin and then its argument prototype would still apply. */
  15940. #ifdef __cplusplus
  15941. extern "C"
  15942. #endif
  15943. char fmodf ();
  15944. int
  15945. main ()
  15946. {
  15947. return fmodf ();
  15948. ;
  15949. return 0;
  15950. }
  15951. _ACEOF
  15952. if ac_fn_c_try_link "$LINENO"; then :
  15953. ac_cv_lib_m_fmodf=yes
  15954. else
  15955. ac_cv_lib_m_fmodf=no
  15956. fi
  15957. rm -f core conftest.err conftest.$ac_objext \
  15958. conftest$ac_exeext conftest.$ac_ext
  15959. LIBS=$ac_check_lib_save_LIBS
  15960. fi
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodf" >&5
  15962. $as_echo "$ac_cv_lib_m_fmodf" >&6; }
  15963. if test "x$ac_cv_lib_m_fmodf" = x""yes; then :
  15964. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  15965. fi
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
  15967. $as_echo_n "checking for fmod in -lm... " >&6; }
  15968. if test "${ac_cv_lib_m_fmod+set}" = set; then :
  15969. $as_echo_n "(cached) " >&6
  15970. else
  15971. ac_check_lib_save_LIBS=$LIBS
  15972. LIBS="-lm $LIBS"
  15973. if test x$gcc_no_link = xyes; then
  15974. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15975. fi
  15976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15977. /* end confdefs.h. */
  15978. /* Override any GCC internal prototype to avoid an error.
  15979. Use char because int might match the return type of a GCC
  15980. builtin and then its argument prototype would still apply. */
  15981. #ifdef __cplusplus
  15982. extern "C"
  15983. #endif
  15984. char fmod ();
  15985. int
  15986. main ()
  15987. {
  15988. return fmod ();
  15989. ;
  15990. return 0;
  15991. }
  15992. _ACEOF
  15993. if ac_fn_c_try_link "$LINENO"; then :
  15994. ac_cv_lib_m_fmod=yes
  15995. else
  15996. ac_cv_lib_m_fmod=no
  15997. fi
  15998. rm -f core conftest.err conftest.$ac_objext \
  15999. conftest$ac_exeext conftest.$ac_ext
  16000. LIBS=$ac_check_lib_save_LIBS
  16001. fi
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
  16003. $as_echo "$ac_cv_lib_m_fmod" >&6; }
  16004. if test "x$ac_cv_lib_m_fmod" = x""yes; then :
  16005. $as_echo "#define HAVE_FMOD 1" >>confdefs.h
  16006. fi
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5
  16008. $as_echo_n "checking for fmodl in -lm... " >&6; }
  16009. if test "${ac_cv_lib_m_fmodl+set}" = set; then :
  16010. $as_echo_n "(cached) " >&6
  16011. else
  16012. ac_check_lib_save_LIBS=$LIBS
  16013. LIBS="-lm $LIBS"
  16014. if test x$gcc_no_link = xyes; then
  16015. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16016. fi
  16017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16018. /* end confdefs.h. */
  16019. /* Override any GCC internal prototype to avoid an error.
  16020. Use char because int might match the return type of a GCC
  16021. builtin and then its argument prototype would still apply. */
  16022. #ifdef __cplusplus
  16023. extern "C"
  16024. #endif
  16025. char fmodl ();
  16026. int
  16027. main ()
  16028. {
  16029. return fmodl ();
  16030. ;
  16031. return 0;
  16032. }
  16033. _ACEOF
  16034. if ac_fn_c_try_link "$LINENO"; then :
  16035. ac_cv_lib_m_fmodl=yes
  16036. else
  16037. ac_cv_lib_m_fmodl=no
  16038. fi
  16039. rm -f core conftest.err conftest.$ac_objext \
  16040. conftest$ac_exeext conftest.$ac_ext
  16041. LIBS=$ac_check_lib_save_LIBS
  16042. fi
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodl" >&5
  16044. $as_echo "$ac_cv_lib_m_fmodl" >&6; }
  16045. if test "x$ac_cv_lib_m_fmodl" = x""yes; then :
  16046. $as_echo "#define HAVE_FMODL 1" >>confdefs.h
  16047. fi
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
  16049. $as_echo_n "checking for frexpf in -lm... " >&6; }
  16050. if test "${ac_cv_lib_m_frexpf+set}" = set; then :
  16051. $as_echo_n "(cached) " >&6
  16052. else
  16053. ac_check_lib_save_LIBS=$LIBS
  16054. LIBS="-lm $LIBS"
  16055. if test x$gcc_no_link = xyes; then
  16056. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16057. fi
  16058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16059. /* end confdefs.h. */
  16060. /* Override any GCC internal prototype to avoid an error.
  16061. Use char because int might match the return type of a GCC
  16062. builtin and then its argument prototype would still apply. */
  16063. #ifdef __cplusplus
  16064. extern "C"
  16065. #endif
  16066. char frexpf ();
  16067. int
  16068. main ()
  16069. {
  16070. return frexpf ();
  16071. ;
  16072. return 0;
  16073. }
  16074. _ACEOF
  16075. if ac_fn_c_try_link "$LINENO"; then :
  16076. ac_cv_lib_m_frexpf=yes
  16077. else
  16078. ac_cv_lib_m_frexpf=no
  16079. fi
  16080. rm -f core conftest.err conftest.$ac_objext \
  16081. conftest$ac_exeext conftest.$ac_ext
  16082. LIBS=$ac_check_lib_save_LIBS
  16083. fi
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5
  16085. $as_echo "$ac_cv_lib_m_frexpf" >&6; }
  16086. if test "x$ac_cv_lib_m_frexpf" = x""yes; then :
  16087. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  16088. fi
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
  16090. $as_echo_n "checking for frexp in -lm... " >&6; }
  16091. if test "${ac_cv_lib_m_frexp+set}" = set; then :
  16092. $as_echo_n "(cached) " >&6
  16093. else
  16094. ac_check_lib_save_LIBS=$LIBS
  16095. LIBS="-lm $LIBS"
  16096. if test x$gcc_no_link = xyes; then
  16097. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16098. fi
  16099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16100. /* end confdefs.h. */
  16101. /* Override any GCC internal prototype to avoid an error.
  16102. Use char because int might match the return type of a GCC
  16103. builtin and then its argument prototype would still apply. */
  16104. #ifdef __cplusplus
  16105. extern "C"
  16106. #endif
  16107. char frexp ();
  16108. int
  16109. main ()
  16110. {
  16111. return frexp ();
  16112. ;
  16113. return 0;
  16114. }
  16115. _ACEOF
  16116. if ac_fn_c_try_link "$LINENO"; then :
  16117. ac_cv_lib_m_frexp=yes
  16118. else
  16119. ac_cv_lib_m_frexp=no
  16120. fi
  16121. rm -f core conftest.err conftest.$ac_objext \
  16122. conftest$ac_exeext conftest.$ac_ext
  16123. LIBS=$ac_check_lib_save_LIBS
  16124. fi
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
  16126. $as_echo "$ac_cv_lib_m_frexp" >&6; }
  16127. if test "x$ac_cv_lib_m_frexp" = x""yes; then :
  16128. $as_echo "#define HAVE_FREXP 1" >>confdefs.h
  16129. fi
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5
  16131. $as_echo_n "checking for frexpl in -lm... " >&6; }
  16132. if test "${ac_cv_lib_m_frexpl+set}" = set; then :
  16133. $as_echo_n "(cached) " >&6
  16134. else
  16135. ac_check_lib_save_LIBS=$LIBS
  16136. LIBS="-lm $LIBS"
  16137. if test x$gcc_no_link = xyes; then
  16138. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16139. fi
  16140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16141. /* end confdefs.h. */
  16142. /* Override any GCC internal prototype to avoid an error.
  16143. Use char because int might match the return type of a GCC
  16144. builtin and then its argument prototype would still apply. */
  16145. #ifdef __cplusplus
  16146. extern "C"
  16147. #endif
  16148. char frexpl ();
  16149. int
  16150. main ()
  16151. {
  16152. return frexpl ();
  16153. ;
  16154. return 0;
  16155. }
  16156. _ACEOF
  16157. if ac_fn_c_try_link "$LINENO"; then :
  16158. ac_cv_lib_m_frexpl=yes
  16159. else
  16160. ac_cv_lib_m_frexpl=no
  16161. fi
  16162. rm -f core conftest.err conftest.$ac_objext \
  16163. conftest$ac_exeext conftest.$ac_ext
  16164. LIBS=$ac_check_lib_save_LIBS
  16165. fi
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpl" >&5
  16167. $as_echo "$ac_cv_lib_m_frexpl" >&6; }
  16168. if test "x$ac_cv_lib_m_frexpl" = x""yes; then :
  16169. $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
  16170. fi
  16171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5
  16172. $as_echo_n "checking for hypotf in -lm... " >&6; }
  16173. if test "${ac_cv_lib_m_hypotf+set}" = set; then :
  16174. $as_echo_n "(cached) " >&6
  16175. else
  16176. ac_check_lib_save_LIBS=$LIBS
  16177. LIBS="-lm $LIBS"
  16178. if test x$gcc_no_link = xyes; then
  16179. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16180. fi
  16181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16182. /* end confdefs.h. */
  16183. /* Override any GCC internal prototype to avoid an error.
  16184. Use char because int might match the return type of a GCC
  16185. builtin and then its argument prototype would still apply. */
  16186. #ifdef __cplusplus
  16187. extern "C"
  16188. #endif
  16189. char hypotf ();
  16190. int
  16191. main ()
  16192. {
  16193. return hypotf ();
  16194. ;
  16195. return 0;
  16196. }
  16197. _ACEOF
  16198. if ac_fn_c_try_link "$LINENO"; then :
  16199. ac_cv_lib_m_hypotf=yes
  16200. else
  16201. ac_cv_lib_m_hypotf=no
  16202. fi
  16203. rm -f core conftest.err conftest.$ac_objext \
  16204. conftest$ac_exeext conftest.$ac_ext
  16205. LIBS=$ac_check_lib_save_LIBS
  16206. fi
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotf" >&5
  16208. $as_echo "$ac_cv_lib_m_hypotf" >&6; }
  16209. if test "x$ac_cv_lib_m_hypotf" = x""yes; then :
  16210. $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
  16211. fi
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
  16213. $as_echo_n "checking for hypot in -lm... " >&6; }
  16214. if test "${ac_cv_lib_m_hypot+set}" = set; then :
  16215. $as_echo_n "(cached) " >&6
  16216. else
  16217. ac_check_lib_save_LIBS=$LIBS
  16218. LIBS="-lm $LIBS"
  16219. if test x$gcc_no_link = xyes; then
  16220. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16221. fi
  16222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16223. /* end confdefs.h. */
  16224. /* Override any GCC internal prototype to avoid an error.
  16225. Use char because int might match the return type of a GCC
  16226. builtin and then its argument prototype would still apply. */
  16227. #ifdef __cplusplus
  16228. extern "C"
  16229. #endif
  16230. char hypot ();
  16231. int
  16232. main ()
  16233. {
  16234. return hypot ();
  16235. ;
  16236. return 0;
  16237. }
  16238. _ACEOF
  16239. if ac_fn_c_try_link "$LINENO"; then :
  16240. ac_cv_lib_m_hypot=yes
  16241. else
  16242. ac_cv_lib_m_hypot=no
  16243. fi
  16244. rm -f core conftest.err conftest.$ac_objext \
  16245. conftest$ac_exeext conftest.$ac_ext
  16246. LIBS=$ac_check_lib_save_LIBS
  16247. fi
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
  16249. $as_echo "$ac_cv_lib_m_hypot" >&6; }
  16250. if test "x$ac_cv_lib_m_hypot" = x""yes; then :
  16251. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  16252. fi
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5
  16254. $as_echo_n "checking for hypotl in -lm... " >&6; }
  16255. if test "${ac_cv_lib_m_hypotl+set}" = set; then :
  16256. $as_echo_n "(cached) " >&6
  16257. else
  16258. ac_check_lib_save_LIBS=$LIBS
  16259. LIBS="-lm $LIBS"
  16260. if test x$gcc_no_link = xyes; then
  16261. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16262. fi
  16263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16264. /* end confdefs.h. */
  16265. /* Override any GCC internal prototype to avoid an error.
  16266. Use char because int might match the return type of a GCC
  16267. builtin and then its argument prototype would still apply. */
  16268. #ifdef __cplusplus
  16269. extern "C"
  16270. #endif
  16271. char hypotl ();
  16272. int
  16273. main ()
  16274. {
  16275. return hypotl ();
  16276. ;
  16277. return 0;
  16278. }
  16279. _ACEOF
  16280. if ac_fn_c_try_link "$LINENO"; then :
  16281. ac_cv_lib_m_hypotl=yes
  16282. else
  16283. ac_cv_lib_m_hypotl=no
  16284. fi
  16285. rm -f core conftest.err conftest.$ac_objext \
  16286. conftest$ac_exeext conftest.$ac_ext
  16287. LIBS=$ac_check_lib_save_LIBS
  16288. fi
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotl" >&5
  16290. $as_echo "$ac_cv_lib_m_hypotl" >&6; }
  16291. if test "x$ac_cv_lib_m_hypotl" = x""yes; then :
  16292. $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
  16293. fi
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
  16295. $as_echo_n "checking for ldexpf in -lm... " >&6; }
  16296. if test "${ac_cv_lib_m_ldexpf+set}" = set; then :
  16297. $as_echo_n "(cached) " >&6
  16298. else
  16299. ac_check_lib_save_LIBS=$LIBS
  16300. LIBS="-lm $LIBS"
  16301. if test x$gcc_no_link = xyes; then
  16302. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16303. fi
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. /* Override any GCC internal prototype to avoid an error.
  16307. Use char because int might match the return type of a GCC
  16308. builtin and then its argument prototype would still apply. */
  16309. #ifdef __cplusplus
  16310. extern "C"
  16311. #endif
  16312. char ldexpf ();
  16313. int
  16314. main ()
  16315. {
  16316. return ldexpf ();
  16317. ;
  16318. return 0;
  16319. }
  16320. _ACEOF
  16321. if ac_fn_c_try_link "$LINENO"; then :
  16322. ac_cv_lib_m_ldexpf=yes
  16323. else
  16324. ac_cv_lib_m_ldexpf=no
  16325. fi
  16326. rm -f core conftest.err conftest.$ac_objext \
  16327. conftest$ac_exeext conftest.$ac_ext
  16328. LIBS=$ac_check_lib_save_LIBS
  16329. fi
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5
  16331. $as_echo "$ac_cv_lib_m_ldexpf" >&6; }
  16332. if test "x$ac_cv_lib_m_ldexpf" = x""yes; then :
  16333. $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
  16334. fi
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
  16336. $as_echo_n "checking for ldexp in -lm... " >&6; }
  16337. if test "${ac_cv_lib_m_ldexp+set}" = set; then :
  16338. $as_echo_n "(cached) " >&6
  16339. else
  16340. ac_check_lib_save_LIBS=$LIBS
  16341. LIBS="-lm $LIBS"
  16342. if test x$gcc_no_link = xyes; then
  16343. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16344. fi
  16345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. /* Override any GCC internal prototype to avoid an error.
  16348. Use char because int might match the return type of a GCC
  16349. builtin and then its argument prototype would still apply. */
  16350. #ifdef __cplusplus
  16351. extern "C"
  16352. #endif
  16353. char ldexp ();
  16354. int
  16355. main ()
  16356. {
  16357. return ldexp ();
  16358. ;
  16359. return 0;
  16360. }
  16361. _ACEOF
  16362. if ac_fn_c_try_link "$LINENO"; then :
  16363. ac_cv_lib_m_ldexp=yes
  16364. else
  16365. ac_cv_lib_m_ldexp=no
  16366. fi
  16367. rm -f core conftest.err conftest.$ac_objext \
  16368. conftest$ac_exeext conftest.$ac_ext
  16369. LIBS=$ac_check_lib_save_LIBS
  16370. fi
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
  16372. $as_echo "$ac_cv_lib_m_ldexp" >&6; }
  16373. if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
  16374. $as_echo "#define HAVE_LDEXP 1" >>confdefs.h
  16375. fi
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5
  16377. $as_echo_n "checking for ldexpl in -lm... " >&6; }
  16378. if test "${ac_cv_lib_m_ldexpl+set}" = set; then :
  16379. $as_echo_n "(cached) " >&6
  16380. else
  16381. ac_check_lib_save_LIBS=$LIBS
  16382. LIBS="-lm $LIBS"
  16383. if test x$gcc_no_link = xyes; then
  16384. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16385. fi
  16386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16387. /* end confdefs.h. */
  16388. /* Override any GCC internal prototype to avoid an error.
  16389. Use char because int might match the return type of a GCC
  16390. builtin and then its argument prototype would still apply. */
  16391. #ifdef __cplusplus
  16392. extern "C"
  16393. #endif
  16394. char ldexpl ();
  16395. int
  16396. main ()
  16397. {
  16398. return ldexpl ();
  16399. ;
  16400. return 0;
  16401. }
  16402. _ACEOF
  16403. if ac_fn_c_try_link "$LINENO"; then :
  16404. ac_cv_lib_m_ldexpl=yes
  16405. else
  16406. ac_cv_lib_m_ldexpl=no
  16407. fi
  16408. rm -f core conftest.err conftest.$ac_objext \
  16409. conftest$ac_exeext conftest.$ac_ext
  16410. LIBS=$ac_check_lib_save_LIBS
  16411. fi
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpl" >&5
  16413. $as_echo "$ac_cv_lib_m_ldexpl" >&6; }
  16414. if test "x$ac_cv_lib_m_ldexpl" = x""yes; then :
  16415. $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
  16416. fi
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5
  16418. $as_echo_n "checking for logf in -lm... " >&6; }
  16419. if test "${ac_cv_lib_m_logf+set}" = set; then :
  16420. $as_echo_n "(cached) " >&6
  16421. else
  16422. ac_check_lib_save_LIBS=$LIBS
  16423. LIBS="-lm $LIBS"
  16424. if test x$gcc_no_link = xyes; then
  16425. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16426. fi
  16427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16428. /* end confdefs.h. */
  16429. /* Override any GCC internal prototype to avoid an error.
  16430. Use char because int might match the return type of a GCC
  16431. builtin and then its argument prototype would still apply. */
  16432. #ifdef __cplusplus
  16433. extern "C"
  16434. #endif
  16435. char logf ();
  16436. int
  16437. main ()
  16438. {
  16439. return logf ();
  16440. ;
  16441. return 0;
  16442. }
  16443. _ACEOF
  16444. if ac_fn_c_try_link "$LINENO"; then :
  16445. ac_cv_lib_m_logf=yes
  16446. else
  16447. ac_cv_lib_m_logf=no
  16448. fi
  16449. rm -f core conftest.err conftest.$ac_objext \
  16450. conftest$ac_exeext conftest.$ac_ext
  16451. LIBS=$ac_check_lib_save_LIBS
  16452. fi
  16453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logf" >&5
  16454. $as_echo "$ac_cv_lib_m_logf" >&6; }
  16455. if test "x$ac_cv_lib_m_logf" = x""yes; then :
  16456. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  16457. fi
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
  16459. $as_echo_n "checking for log in -lm... " >&6; }
  16460. if test "${ac_cv_lib_m_log+set}" = set; then :
  16461. $as_echo_n "(cached) " >&6
  16462. else
  16463. ac_check_lib_save_LIBS=$LIBS
  16464. LIBS="-lm $LIBS"
  16465. if test x$gcc_no_link = xyes; then
  16466. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16467. fi
  16468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h. */
  16470. /* Override any GCC internal prototype to avoid an error.
  16471. Use char because int might match the return type of a GCC
  16472. builtin and then its argument prototype would still apply. */
  16473. #ifdef __cplusplus
  16474. extern "C"
  16475. #endif
  16476. char log ();
  16477. int
  16478. main ()
  16479. {
  16480. return log ();
  16481. ;
  16482. return 0;
  16483. }
  16484. _ACEOF
  16485. if ac_fn_c_try_link "$LINENO"; then :
  16486. ac_cv_lib_m_log=yes
  16487. else
  16488. ac_cv_lib_m_log=no
  16489. fi
  16490. rm -f core conftest.err conftest.$ac_objext \
  16491. conftest$ac_exeext conftest.$ac_ext
  16492. LIBS=$ac_check_lib_save_LIBS
  16493. fi
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
  16495. $as_echo "$ac_cv_lib_m_log" >&6; }
  16496. if test "x$ac_cv_lib_m_log" = x""yes; then :
  16497. $as_echo "#define HAVE_LOG 1" >>confdefs.h
  16498. fi
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5
  16500. $as_echo_n "checking for logl in -lm... " >&6; }
  16501. if test "${ac_cv_lib_m_logl+set}" = set; then :
  16502. $as_echo_n "(cached) " >&6
  16503. else
  16504. ac_check_lib_save_LIBS=$LIBS
  16505. LIBS="-lm $LIBS"
  16506. if test x$gcc_no_link = xyes; then
  16507. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16508. fi
  16509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. /* end confdefs.h. */
  16511. /* Override any GCC internal prototype to avoid an error.
  16512. Use char because int might match the return type of a GCC
  16513. builtin and then its argument prototype would still apply. */
  16514. #ifdef __cplusplus
  16515. extern "C"
  16516. #endif
  16517. char logl ();
  16518. int
  16519. main ()
  16520. {
  16521. return logl ();
  16522. ;
  16523. return 0;
  16524. }
  16525. _ACEOF
  16526. if ac_fn_c_try_link "$LINENO"; then :
  16527. ac_cv_lib_m_logl=yes
  16528. else
  16529. ac_cv_lib_m_logl=no
  16530. fi
  16531. rm -f core conftest.err conftest.$ac_objext \
  16532. conftest$ac_exeext conftest.$ac_ext
  16533. LIBS=$ac_check_lib_save_LIBS
  16534. fi
  16535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logl" >&5
  16536. $as_echo "$ac_cv_lib_m_logl" >&6; }
  16537. if test "x$ac_cv_lib_m_logl" = x""yes; then :
  16538. $as_echo "#define HAVE_LOGL 1" >>confdefs.h
  16539. fi
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5
  16541. $as_echo_n "checking for clogf in -lm... " >&6; }
  16542. if test "${ac_cv_lib_m_clogf+set}" = set; then :
  16543. $as_echo_n "(cached) " >&6
  16544. else
  16545. ac_check_lib_save_LIBS=$LIBS
  16546. LIBS="-lm $LIBS"
  16547. if test x$gcc_no_link = xyes; then
  16548. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16549. fi
  16550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16551. /* end confdefs.h. */
  16552. /* Override any GCC internal prototype to avoid an error.
  16553. Use char because int might match the return type of a GCC
  16554. builtin and then its argument prototype would still apply. */
  16555. #ifdef __cplusplus
  16556. extern "C"
  16557. #endif
  16558. char clogf ();
  16559. int
  16560. main ()
  16561. {
  16562. return clogf ();
  16563. ;
  16564. return 0;
  16565. }
  16566. _ACEOF
  16567. if ac_fn_c_try_link "$LINENO"; then :
  16568. ac_cv_lib_m_clogf=yes
  16569. else
  16570. ac_cv_lib_m_clogf=no
  16571. fi
  16572. rm -f core conftest.err conftest.$ac_objext \
  16573. conftest$ac_exeext conftest.$ac_ext
  16574. LIBS=$ac_check_lib_save_LIBS
  16575. fi
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogf" >&5
  16577. $as_echo "$ac_cv_lib_m_clogf" >&6; }
  16578. if test "x$ac_cv_lib_m_clogf" = x""yes; then :
  16579. $as_echo "#define HAVE_CLOGF 1" >>confdefs.h
  16580. fi
  16581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5
  16582. $as_echo_n "checking for clog in -lm... " >&6; }
  16583. if test "${ac_cv_lib_m_clog+set}" = set; then :
  16584. $as_echo_n "(cached) " >&6
  16585. else
  16586. ac_check_lib_save_LIBS=$LIBS
  16587. LIBS="-lm $LIBS"
  16588. if test x$gcc_no_link = xyes; then
  16589. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16590. fi
  16591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16592. /* end confdefs.h. */
  16593. /* Override any GCC internal prototype to avoid an error.
  16594. Use char because int might match the return type of a GCC
  16595. builtin and then its argument prototype would still apply. */
  16596. #ifdef __cplusplus
  16597. extern "C"
  16598. #endif
  16599. char clog ();
  16600. int
  16601. main ()
  16602. {
  16603. return clog ();
  16604. ;
  16605. return 0;
  16606. }
  16607. _ACEOF
  16608. if ac_fn_c_try_link "$LINENO"; then :
  16609. ac_cv_lib_m_clog=yes
  16610. else
  16611. ac_cv_lib_m_clog=no
  16612. fi
  16613. rm -f core conftest.err conftest.$ac_objext \
  16614. conftest$ac_exeext conftest.$ac_ext
  16615. LIBS=$ac_check_lib_save_LIBS
  16616. fi
  16617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog" >&5
  16618. $as_echo "$ac_cv_lib_m_clog" >&6; }
  16619. if test "x$ac_cv_lib_m_clog" = x""yes; then :
  16620. $as_echo "#define HAVE_CLOG 1" >>confdefs.h
  16621. fi
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5
  16623. $as_echo_n "checking for clogl in -lm... " >&6; }
  16624. if test "${ac_cv_lib_m_clogl+set}" = set; then :
  16625. $as_echo_n "(cached) " >&6
  16626. else
  16627. ac_check_lib_save_LIBS=$LIBS
  16628. LIBS="-lm $LIBS"
  16629. if test x$gcc_no_link = xyes; then
  16630. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16631. fi
  16632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16633. /* end confdefs.h. */
  16634. /* Override any GCC internal prototype to avoid an error.
  16635. Use char because int might match the return type of a GCC
  16636. builtin and then its argument prototype would still apply. */
  16637. #ifdef __cplusplus
  16638. extern "C"
  16639. #endif
  16640. char clogl ();
  16641. int
  16642. main ()
  16643. {
  16644. return clogl ();
  16645. ;
  16646. return 0;
  16647. }
  16648. _ACEOF
  16649. if ac_fn_c_try_link "$LINENO"; then :
  16650. ac_cv_lib_m_clogl=yes
  16651. else
  16652. ac_cv_lib_m_clogl=no
  16653. fi
  16654. rm -f core conftest.err conftest.$ac_objext \
  16655. conftest$ac_exeext conftest.$ac_ext
  16656. LIBS=$ac_check_lib_save_LIBS
  16657. fi
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogl" >&5
  16659. $as_echo "$ac_cv_lib_m_clogl" >&6; }
  16660. if test "x$ac_cv_lib_m_clogl" = x""yes; then :
  16661. $as_echo "#define HAVE_CLOGL 1" >>confdefs.h
  16662. fi
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5
  16664. $as_echo_n "checking for log10f in -lm... " >&6; }
  16665. if test "${ac_cv_lib_m_log10f+set}" = set; then :
  16666. $as_echo_n "(cached) " >&6
  16667. else
  16668. ac_check_lib_save_LIBS=$LIBS
  16669. LIBS="-lm $LIBS"
  16670. if test x$gcc_no_link = xyes; then
  16671. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16672. fi
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. /* Override any GCC internal prototype to avoid an error.
  16676. Use char because int might match the return type of a GCC
  16677. builtin and then its argument prototype would still apply. */
  16678. #ifdef __cplusplus
  16679. extern "C"
  16680. #endif
  16681. char log10f ();
  16682. int
  16683. main ()
  16684. {
  16685. return log10f ();
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. if ac_fn_c_try_link "$LINENO"; then :
  16691. ac_cv_lib_m_log10f=yes
  16692. else
  16693. ac_cv_lib_m_log10f=no
  16694. fi
  16695. rm -f core conftest.err conftest.$ac_objext \
  16696. conftest$ac_exeext conftest.$ac_ext
  16697. LIBS=$ac_check_lib_save_LIBS
  16698. fi
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10f" >&5
  16700. $as_echo "$ac_cv_lib_m_log10f" >&6; }
  16701. if test "x$ac_cv_lib_m_log10f" = x""yes; then :
  16702. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  16703. fi
  16704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
  16705. $as_echo_n "checking for log10 in -lm... " >&6; }
  16706. if test "${ac_cv_lib_m_log10+set}" = set; then :
  16707. $as_echo_n "(cached) " >&6
  16708. else
  16709. ac_check_lib_save_LIBS=$LIBS
  16710. LIBS="-lm $LIBS"
  16711. if test x$gcc_no_link = xyes; then
  16712. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16713. fi
  16714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16715. /* end confdefs.h. */
  16716. /* Override any GCC internal prototype to avoid an error.
  16717. Use char because int might match the return type of a GCC
  16718. builtin and then its argument prototype would still apply. */
  16719. #ifdef __cplusplus
  16720. extern "C"
  16721. #endif
  16722. char log10 ();
  16723. int
  16724. main ()
  16725. {
  16726. return log10 ();
  16727. ;
  16728. return 0;
  16729. }
  16730. _ACEOF
  16731. if ac_fn_c_try_link "$LINENO"; then :
  16732. ac_cv_lib_m_log10=yes
  16733. else
  16734. ac_cv_lib_m_log10=no
  16735. fi
  16736. rm -f core conftest.err conftest.$ac_objext \
  16737. conftest$ac_exeext conftest.$ac_ext
  16738. LIBS=$ac_check_lib_save_LIBS
  16739. fi
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
  16741. $as_echo "$ac_cv_lib_m_log10" >&6; }
  16742. if test "x$ac_cv_lib_m_log10" = x""yes; then :
  16743. $as_echo "#define HAVE_LOG10 1" >>confdefs.h
  16744. fi
  16745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5
  16746. $as_echo_n "checking for log10l in -lm... " >&6; }
  16747. if test "${ac_cv_lib_m_log10l+set}" = set; then :
  16748. $as_echo_n "(cached) " >&6
  16749. else
  16750. ac_check_lib_save_LIBS=$LIBS
  16751. LIBS="-lm $LIBS"
  16752. if test x$gcc_no_link = xyes; then
  16753. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16754. fi
  16755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16756. /* end confdefs.h. */
  16757. /* Override any GCC internal prototype to avoid an error.
  16758. Use char because int might match the return type of a GCC
  16759. builtin and then its argument prototype would still apply. */
  16760. #ifdef __cplusplus
  16761. extern "C"
  16762. #endif
  16763. char log10l ();
  16764. int
  16765. main ()
  16766. {
  16767. return log10l ();
  16768. ;
  16769. return 0;
  16770. }
  16771. _ACEOF
  16772. if ac_fn_c_try_link "$LINENO"; then :
  16773. ac_cv_lib_m_log10l=yes
  16774. else
  16775. ac_cv_lib_m_log10l=no
  16776. fi
  16777. rm -f core conftest.err conftest.$ac_objext \
  16778. conftest$ac_exeext conftest.$ac_ext
  16779. LIBS=$ac_check_lib_save_LIBS
  16780. fi
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10l" >&5
  16782. $as_echo "$ac_cv_lib_m_log10l" >&6; }
  16783. if test "x$ac_cv_lib_m_log10l" = x""yes; then :
  16784. $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
  16785. fi
  16786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5
  16787. $as_echo_n "checking for clog10f in -lm... " >&6; }
  16788. if test "${ac_cv_lib_m_clog10f+set}" = set; then :
  16789. $as_echo_n "(cached) " >&6
  16790. else
  16791. ac_check_lib_save_LIBS=$LIBS
  16792. LIBS="-lm $LIBS"
  16793. if test x$gcc_no_link = xyes; then
  16794. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16795. fi
  16796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16797. /* end confdefs.h. */
  16798. /* Override any GCC internal prototype to avoid an error.
  16799. Use char because int might match the return type of a GCC
  16800. builtin and then its argument prototype would still apply. */
  16801. #ifdef __cplusplus
  16802. extern "C"
  16803. #endif
  16804. char clog10f ();
  16805. int
  16806. main ()
  16807. {
  16808. return clog10f ();
  16809. ;
  16810. return 0;
  16811. }
  16812. _ACEOF
  16813. if ac_fn_c_try_link "$LINENO"; then :
  16814. ac_cv_lib_m_clog10f=yes
  16815. else
  16816. ac_cv_lib_m_clog10f=no
  16817. fi
  16818. rm -f core conftest.err conftest.$ac_objext \
  16819. conftest$ac_exeext conftest.$ac_ext
  16820. LIBS=$ac_check_lib_save_LIBS
  16821. fi
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10f" >&5
  16823. $as_echo "$ac_cv_lib_m_clog10f" >&6; }
  16824. if test "x$ac_cv_lib_m_clog10f" = x""yes; then :
  16825. $as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
  16826. fi
  16827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5
  16828. $as_echo_n "checking for clog10 in -lm... " >&6; }
  16829. if test "${ac_cv_lib_m_clog10+set}" = set; then :
  16830. $as_echo_n "(cached) " >&6
  16831. else
  16832. ac_check_lib_save_LIBS=$LIBS
  16833. LIBS="-lm $LIBS"
  16834. if test x$gcc_no_link = xyes; then
  16835. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16836. fi
  16837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16838. /* end confdefs.h. */
  16839. /* Override any GCC internal prototype to avoid an error.
  16840. Use char because int might match the return type of a GCC
  16841. builtin and then its argument prototype would still apply. */
  16842. #ifdef __cplusplus
  16843. extern "C"
  16844. #endif
  16845. char clog10 ();
  16846. int
  16847. main ()
  16848. {
  16849. return clog10 ();
  16850. ;
  16851. return 0;
  16852. }
  16853. _ACEOF
  16854. if ac_fn_c_try_link "$LINENO"; then :
  16855. ac_cv_lib_m_clog10=yes
  16856. else
  16857. ac_cv_lib_m_clog10=no
  16858. fi
  16859. rm -f core conftest.err conftest.$ac_objext \
  16860. conftest$ac_exeext conftest.$ac_ext
  16861. LIBS=$ac_check_lib_save_LIBS
  16862. fi
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10" >&5
  16864. $as_echo "$ac_cv_lib_m_clog10" >&6; }
  16865. if test "x$ac_cv_lib_m_clog10" = x""yes; then :
  16866. $as_echo "#define HAVE_CLOG10 1" >>confdefs.h
  16867. fi
  16868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5
  16869. $as_echo_n "checking for clog10l in -lm... " >&6; }
  16870. if test "${ac_cv_lib_m_clog10l+set}" = set; then :
  16871. $as_echo_n "(cached) " >&6
  16872. else
  16873. ac_check_lib_save_LIBS=$LIBS
  16874. LIBS="-lm $LIBS"
  16875. if test x$gcc_no_link = xyes; then
  16876. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16877. fi
  16878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16879. /* end confdefs.h. */
  16880. /* Override any GCC internal prototype to avoid an error.
  16881. Use char because int might match the return type of a GCC
  16882. builtin and then its argument prototype would still apply. */
  16883. #ifdef __cplusplus
  16884. extern "C"
  16885. #endif
  16886. char clog10l ();
  16887. int
  16888. main ()
  16889. {
  16890. return clog10l ();
  16891. ;
  16892. return 0;
  16893. }
  16894. _ACEOF
  16895. if ac_fn_c_try_link "$LINENO"; then :
  16896. ac_cv_lib_m_clog10l=yes
  16897. else
  16898. ac_cv_lib_m_clog10l=no
  16899. fi
  16900. rm -f core conftest.err conftest.$ac_objext \
  16901. conftest$ac_exeext conftest.$ac_ext
  16902. LIBS=$ac_check_lib_save_LIBS
  16903. fi
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10l" >&5
  16905. $as_echo "$ac_cv_lib_m_clog10l" >&6; }
  16906. if test "x$ac_cv_lib_m_clog10l" = x""yes; then :
  16907. $as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
  16908. fi
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5
  16910. $as_echo_n "checking for nextafterf in -lm... " >&6; }
  16911. if test "${ac_cv_lib_m_nextafterf+set}" = set; then :
  16912. $as_echo_n "(cached) " >&6
  16913. else
  16914. ac_check_lib_save_LIBS=$LIBS
  16915. LIBS="-lm $LIBS"
  16916. if test x$gcc_no_link = xyes; then
  16917. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16918. fi
  16919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16920. /* end confdefs.h. */
  16921. /* Override any GCC internal prototype to avoid an error.
  16922. Use char because int might match the return type of a GCC
  16923. builtin and then its argument prototype would still apply. */
  16924. #ifdef __cplusplus
  16925. extern "C"
  16926. #endif
  16927. char nextafterf ();
  16928. int
  16929. main ()
  16930. {
  16931. return nextafterf ();
  16932. ;
  16933. return 0;
  16934. }
  16935. _ACEOF
  16936. if ac_fn_c_try_link "$LINENO"; then :
  16937. ac_cv_lib_m_nextafterf=yes
  16938. else
  16939. ac_cv_lib_m_nextafterf=no
  16940. fi
  16941. rm -f core conftest.err conftest.$ac_objext \
  16942. conftest$ac_exeext conftest.$ac_ext
  16943. LIBS=$ac_check_lib_save_LIBS
  16944. fi
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterf" >&5
  16946. $as_echo "$ac_cv_lib_m_nextafterf" >&6; }
  16947. if test "x$ac_cv_lib_m_nextafterf" = x""yes; then :
  16948. $as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
  16949. fi
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5
  16951. $as_echo_n "checking for nextafter in -lm... " >&6; }
  16952. if test "${ac_cv_lib_m_nextafter+set}" = set; then :
  16953. $as_echo_n "(cached) " >&6
  16954. else
  16955. ac_check_lib_save_LIBS=$LIBS
  16956. LIBS="-lm $LIBS"
  16957. if test x$gcc_no_link = xyes; then
  16958. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16959. fi
  16960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16961. /* end confdefs.h. */
  16962. /* Override any GCC internal prototype to avoid an error.
  16963. Use char because int might match the return type of a GCC
  16964. builtin and then its argument prototype would still apply. */
  16965. #ifdef __cplusplus
  16966. extern "C"
  16967. #endif
  16968. char nextafter ();
  16969. int
  16970. main ()
  16971. {
  16972. return nextafter ();
  16973. ;
  16974. return 0;
  16975. }
  16976. _ACEOF
  16977. if ac_fn_c_try_link "$LINENO"; then :
  16978. ac_cv_lib_m_nextafter=yes
  16979. else
  16980. ac_cv_lib_m_nextafter=no
  16981. fi
  16982. rm -f core conftest.err conftest.$ac_objext \
  16983. conftest$ac_exeext conftest.$ac_ext
  16984. LIBS=$ac_check_lib_save_LIBS
  16985. fi
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafter" >&5
  16987. $as_echo "$ac_cv_lib_m_nextafter" >&6; }
  16988. if test "x$ac_cv_lib_m_nextafter" = x""yes; then :
  16989. $as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
  16990. fi
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5
  16992. $as_echo_n "checking for nextafterl in -lm... " >&6; }
  16993. if test "${ac_cv_lib_m_nextafterl+set}" = set; then :
  16994. $as_echo_n "(cached) " >&6
  16995. else
  16996. ac_check_lib_save_LIBS=$LIBS
  16997. LIBS="-lm $LIBS"
  16998. if test x$gcc_no_link = xyes; then
  16999. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17000. fi
  17001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17002. /* end confdefs.h. */
  17003. /* Override any GCC internal prototype to avoid an error.
  17004. Use char because int might match the return type of a GCC
  17005. builtin and then its argument prototype would still apply. */
  17006. #ifdef __cplusplus
  17007. extern "C"
  17008. #endif
  17009. char nextafterl ();
  17010. int
  17011. main ()
  17012. {
  17013. return nextafterl ();
  17014. ;
  17015. return 0;
  17016. }
  17017. _ACEOF
  17018. if ac_fn_c_try_link "$LINENO"; then :
  17019. ac_cv_lib_m_nextafterl=yes
  17020. else
  17021. ac_cv_lib_m_nextafterl=no
  17022. fi
  17023. rm -f core conftest.err conftest.$ac_objext \
  17024. conftest$ac_exeext conftest.$ac_ext
  17025. LIBS=$ac_check_lib_save_LIBS
  17026. fi
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterl" >&5
  17028. $as_echo "$ac_cv_lib_m_nextafterl" >&6; }
  17029. if test "x$ac_cv_lib_m_nextafterl" = x""yes; then :
  17030. $as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
  17031. fi
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5
  17033. $as_echo_n "checking for powf in -lm... " >&6; }
  17034. if test "${ac_cv_lib_m_powf+set}" = set; then :
  17035. $as_echo_n "(cached) " >&6
  17036. else
  17037. ac_check_lib_save_LIBS=$LIBS
  17038. LIBS="-lm $LIBS"
  17039. if test x$gcc_no_link = xyes; then
  17040. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17041. fi
  17042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17043. /* end confdefs.h. */
  17044. /* Override any GCC internal prototype to avoid an error.
  17045. Use char because int might match the return type of a GCC
  17046. builtin and then its argument prototype would still apply. */
  17047. #ifdef __cplusplus
  17048. extern "C"
  17049. #endif
  17050. char powf ();
  17051. int
  17052. main ()
  17053. {
  17054. return powf ();
  17055. ;
  17056. return 0;
  17057. }
  17058. _ACEOF
  17059. if ac_fn_c_try_link "$LINENO"; then :
  17060. ac_cv_lib_m_powf=yes
  17061. else
  17062. ac_cv_lib_m_powf=no
  17063. fi
  17064. rm -f core conftest.err conftest.$ac_objext \
  17065. conftest$ac_exeext conftest.$ac_ext
  17066. LIBS=$ac_check_lib_save_LIBS
  17067. fi
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powf" >&5
  17069. $as_echo "$ac_cv_lib_m_powf" >&6; }
  17070. if test "x$ac_cv_lib_m_powf" = x""yes; then :
  17071. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  17072. fi
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17074. $as_echo_n "checking for pow in -lm... " >&6; }
  17075. if test "${ac_cv_lib_m_pow+set}" = set; then :
  17076. $as_echo_n "(cached) " >&6
  17077. else
  17078. ac_check_lib_save_LIBS=$LIBS
  17079. LIBS="-lm $LIBS"
  17080. if test x$gcc_no_link = xyes; then
  17081. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17082. fi
  17083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17084. /* end confdefs.h. */
  17085. /* Override any GCC internal prototype to avoid an error.
  17086. Use char because int might match the return type of a GCC
  17087. builtin and then its argument prototype would still apply. */
  17088. #ifdef __cplusplus
  17089. extern "C"
  17090. #endif
  17091. char pow ();
  17092. int
  17093. main ()
  17094. {
  17095. return pow ();
  17096. ;
  17097. return 0;
  17098. }
  17099. _ACEOF
  17100. if ac_fn_c_try_link "$LINENO"; then :
  17101. ac_cv_lib_m_pow=yes
  17102. else
  17103. ac_cv_lib_m_pow=no
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. LIBS=$ac_check_lib_save_LIBS
  17108. fi
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17110. $as_echo "$ac_cv_lib_m_pow" >&6; }
  17111. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  17112. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17113. fi
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5
  17115. $as_echo_n "checking for powl in -lm... " >&6; }
  17116. if test "${ac_cv_lib_m_powl+set}" = set; then :
  17117. $as_echo_n "(cached) " >&6
  17118. else
  17119. ac_check_lib_save_LIBS=$LIBS
  17120. LIBS="-lm $LIBS"
  17121. if test x$gcc_no_link = xyes; then
  17122. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17123. fi
  17124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17125. /* end confdefs.h. */
  17126. /* Override any GCC internal prototype to avoid an error.
  17127. Use char because int might match the return type of a GCC
  17128. builtin and then its argument prototype would still apply. */
  17129. #ifdef __cplusplus
  17130. extern "C"
  17131. #endif
  17132. char powl ();
  17133. int
  17134. main ()
  17135. {
  17136. return powl ();
  17137. ;
  17138. return 0;
  17139. }
  17140. _ACEOF
  17141. if ac_fn_c_try_link "$LINENO"; then :
  17142. ac_cv_lib_m_powl=yes
  17143. else
  17144. ac_cv_lib_m_powl=no
  17145. fi
  17146. rm -f core conftest.err conftest.$ac_objext \
  17147. conftest$ac_exeext conftest.$ac_ext
  17148. LIBS=$ac_check_lib_save_LIBS
  17149. fi
  17150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powl" >&5
  17151. $as_echo "$ac_cv_lib_m_powl" >&6; }
  17152. if test "x$ac_cv_lib_m_powl" = x""yes; then :
  17153. $as_echo "#define HAVE_POWL 1" >>confdefs.h
  17154. fi
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5
  17156. $as_echo_n "checking for cpowf in -lm... " >&6; }
  17157. if test "${ac_cv_lib_m_cpowf+set}" = set; then :
  17158. $as_echo_n "(cached) " >&6
  17159. else
  17160. ac_check_lib_save_LIBS=$LIBS
  17161. LIBS="-lm $LIBS"
  17162. if test x$gcc_no_link = xyes; then
  17163. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17164. fi
  17165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17166. /* end confdefs.h. */
  17167. /* Override any GCC internal prototype to avoid an error.
  17168. Use char because int might match the return type of a GCC
  17169. builtin and then its argument prototype would still apply. */
  17170. #ifdef __cplusplus
  17171. extern "C"
  17172. #endif
  17173. char cpowf ();
  17174. int
  17175. main ()
  17176. {
  17177. return cpowf ();
  17178. ;
  17179. return 0;
  17180. }
  17181. _ACEOF
  17182. if ac_fn_c_try_link "$LINENO"; then :
  17183. ac_cv_lib_m_cpowf=yes
  17184. else
  17185. ac_cv_lib_m_cpowf=no
  17186. fi
  17187. rm -f core conftest.err conftest.$ac_objext \
  17188. conftest$ac_exeext conftest.$ac_ext
  17189. LIBS=$ac_check_lib_save_LIBS
  17190. fi
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowf" >&5
  17192. $as_echo "$ac_cv_lib_m_cpowf" >&6; }
  17193. if test "x$ac_cv_lib_m_cpowf" = x""yes; then :
  17194. $as_echo "#define HAVE_CPOWF 1" >>confdefs.h
  17195. fi
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5
  17197. $as_echo_n "checking for cpow in -lm... " >&6; }
  17198. if test "${ac_cv_lib_m_cpow+set}" = set; then :
  17199. $as_echo_n "(cached) " >&6
  17200. else
  17201. ac_check_lib_save_LIBS=$LIBS
  17202. LIBS="-lm $LIBS"
  17203. if test x$gcc_no_link = xyes; then
  17204. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17205. fi
  17206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17207. /* end confdefs.h. */
  17208. /* Override any GCC internal prototype to avoid an error.
  17209. Use char because int might match the return type of a GCC
  17210. builtin and then its argument prototype would still apply. */
  17211. #ifdef __cplusplus
  17212. extern "C"
  17213. #endif
  17214. char cpow ();
  17215. int
  17216. main ()
  17217. {
  17218. return cpow ();
  17219. ;
  17220. return 0;
  17221. }
  17222. _ACEOF
  17223. if ac_fn_c_try_link "$LINENO"; then :
  17224. ac_cv_lib_m_cpow=yes
  17225. else
  17226. ac_cv_lib_m_cpow=no
  17227. fi
  17228. rm -f core conftest.err conftest.$ac_objext \
  17229. conftest$ac_exeext conftest.$ac_ext
  17230. LIBS=$ac_check_lib_save_LIBS
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpow" >&5
  17233. $as_echo "$ac_cv_lib_m_cpow" >&6; }
  17234. if test "x$ac_cv_lib_m_cpow" = x""yes; then :
  17235. $as_echo "#define HAVE_CPOW 1" >>confdefs.h
  17236. fi
  17237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5
  17238. $as_echo_n "checking for cpowl in -lm... " >&6; }
  17239. if test "${ac_cv_lib_m_cpowl+set}" = set; then :
  17240. $as_echo_n "(cached) " >&6
  17241. else
  17242. ac_check_lib_save_LIBS=$LIBS
  17243. LIBS="-lm $LIBS"
  17244. if test x$gcc_no_link = xyes; then
  17245. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17246. fi
  17247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17248. /* end confdefs.h. */
  17249. /* Override any GCC internal prototype to avoid an error.
  17250. Use char because int might match the return type of a GCC
  17251. builtin and then its argument prototype would still apply. */
  17252. #ifdef __cplusplus
  17253. extern "C"
  17254. #endif
  17255. char cpowl ();
  17256. int
  17257. main ()
  17258. {
  17259. return cpowl ();
  17260. ;
  17261. return 0;
  17262. }
  17263. _ACEOF
  17264. if ac_fn_c_try_link "$LINENO"; then :
  17265. ac_cv_lib_m_cpowl=yes
  17266. else
  17267. ac_cv_lib_m_cpowl=no
  17268. fi
  17269. rm -f core conftest.err conftest.$ac_objext \
  17270. conftest$ac_exeext conftest.$ac_ext
  17271. LIBS=$ac_check_lib_save_LIBS
  17272. fi
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowl" >&5
  17274. $as_echo "$ac_cv_lib_m_cpowl" >&6; }
  17275. if test "x$ac_cv_lib_m_cpowl" = x""yes; then :
  17276. $as_echo "#define HAVE_CPOWL 1" >>confdefs.h
  17277. fi
  17278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
  17279. $as_echo_n "checking for roundf in -lm... " >&6; }
  17280. if test "${ac_cv_lib_m_roundf+set}" = set; then :
  17281. $as_echo_n "(cached) " >&6
  17282. else
  17283. ac_check_lib_save_LIBS=$LIBS
  17284. LIBS="-lm $LIBS"
  17285. if test x$gcc_no_link = xyes; then
  17286. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17287. fi
  17288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17289. /* end confdefs.h. */
  17290. /* Override any GCC internal prototype to avoid an error.
  17291. Use char because int might match the return type of a GCC
  17292. builtin and then its argument prototype would still apply. */
  17293. #ifdef __cplusplus
  17294. extern "C"
  17295. #endif
  17296. char roundf ();
  17297. int
  17298. main ()
  17299. {
  17300. return roundf ();
  17301. ;
  17302. return 0;
  17303. }
  17304. _ACEOF
  17305. if ac_fn_c_try_link "$LINENO"; then :
  17306. ac_cv_lib_m_roundf=yes
  17307. else
  17308. ac_cv_lib_m_roundf=no
  17309. fi
  17310. rm -f core conftest.err conftest.$ac_objext \
  17311. conftest$ac_exeext conftest.$ac_ext
  17312. LIBS=$ac_check_lib_save_LIBS
  17313. fi
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5
  17315. $as_echo "$ac_cv_lib_m_roundf" >&6; }
  17316. if test "x$ac_cv_lib_m_roundf" = x""yes; then :
  17317. $as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
  17318. fi
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
  17320. $as_echo_n "checking for round in -lm... " >&6; }
  17321. if test "${ac_cv_lib_m_round+set}" = set; then :
  17322. $as_echo_n "(cached) " >&6
  17323. else
  17324. ac_check_lib_save_LIBS=$LIBS
  17325. LIBS="-lm $LIBS"
  17326. if test x$gcc_no_link = xyes; then
  17327. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17328. fi
  17329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17330. /* end confdefs.h. */
  17331. /* Override any GCC internal prototype to avoid an error.
  17332. Use char because int might match the return type of a GCC
  17333. builtin and then its argument prototype would still apply. */
  17334. #ifdef __cplusplus
  17335. extern "C"
  17336. #endif
  17337. char round ();
  17338. int
  17339. main ()
  17340. {
  17341. return round ();
  17342. ;
  17343. return 0;
  17344. }
  17345. _ACEOF
  17346. if ac_fn_c_try_link "$LINENO"; then :
  17347. ac_cv_lib_m_round=yes
  17348. else
  17349. ac_cv_lib_m_round=no
  17350. fi
  17351. rm -f core conftest.err conftest.$ac_objext \
  17352. conftest$ac_exeext conftest.$ac_ext
  17353. LIBS=$ac_check_lib_save_LIBS
  17354. fi
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
  17356. $as_echo "$ac_cv_lib_m_round" >&6; }
  17357. if test "x$ac_cv_lib_m_round" = x""yes; then :
  17358. $as_echo "#define HAVE_ROUND 1" >>confdefs.h
  17359. fi
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
  17361. $as_echo_n "checking for roundl in -lm... " >&6; }
  17362. if test "${ac_cv_lib_m_roundl+set}" = set; then :
  17363. $as_echo_n "(cached) " >&6
  17364. else
  17365. ac_check_lib_save_LIBS=$LIBS
  17366. LIBS="-lm $LIBS"
  17367. if test x$gcc_no_link = xyes; then
  17368. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17369. fi
  17370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17371. /* end confdefs.h. */
  17372. /* Override any GCC internal prototype to avoid an error.
  17373. Use char because int might match the return type of a GCC
  17374. builtin and then its argument prototype would still apply. */
  17375. #ifdef __cplusplus
  17376. extern "C"
  17377. #endif
  17378. char roundl ();
  17379. int
  17380. main ()
  17381. {
  17382. return roundl ();
  17383. ;
  17384. return 0;
  17385. }
  17386. _ACEOF
  17387. if ac_fn_c_try_link "$LINENO"; then :
  17388. ac_cv_lib_m_roundl=yes
  17389. else
  17390. ac_cv_lib_m_roundl=no
  17391. fi
  17392. rm -f core conftest.err conftest.$ac_objext \
  17393. conftest$ac_exeext conftest.$ac_ext
  17394. LIBS=$ac_check_lib_save_LIBS
  17395. fi
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5
  17397. $as_echo "$ac_cv_lib_m_roundl" >&6; }
  17398. if test "x$ac_cv_lib_m_roundl" = x""yes; then :
  17399. $as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
  17400. fi
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5
  17402. $as_echo_n "checking for lroundf in -lm... " >&6; }
  17403. if test "${ac_cv_lib_m_lroundf+set}" = set; then :
  17404. $as_echo_n "(cached) " >&6
  17405. else
  17406. ac_check_lib_save_LIBS=$LIBS
  17407. LIBS="-lm $LIBS"
  17408. if test x$gcc_no_link = xyes; then
  17409. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17410. fi
  17411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17412. /* end confdefs.h. */
  17413. /* Override any GCC internal prototype to avoid an error.
  17414. Use char because int might match the return type of a GCC
  17415. builtin and then its argument prototype would still apply. */
  17416. #ifdef __cplusplus
  17417. extern "C"
  17418. #endif
  17419. char lroundf ();
  17420. int
  17421. main ()
  17422. {
  17423. return lroundf ();
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. ac_cv_lib_m_lroundf=yes
  17430. else
  17431. ac_cv_lib_m_lroundf=no
  17432. fi
  17433. rm -f core conftest.err conftest.$ac_objext \
  17434. conftest$ac_exeext conftest.$ac_ext
  17435. LIBS=$ac_check_lib_save_LIBS
  17436. fi
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5
  17438. $as_echo "$ac_cv_lib_m_lroundf" >&6; }
  17439. if test "x$ac_cv_lib_m_lroundf" = x""yes; then :
  17440. $as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
  17441. fi
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
  17443. $as_echo_n "checking for lround in -lm... " >&6; }
  17444. if test "${ac_cv_lib_m_lround+set}" = set; then :
  17445. $as_echo_n "(cached) " >&6
  17446. else
  17447. ac_check_lib_save_LIBS=$LIBS
  17448. LIBS="-lm $LIBS"
  17449. if test x$gcc_no_link = xyes; then
  17450. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17451. fi
  17452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17453. /* end confdefs.h. */
  17454. /* Override any GCC internal prototype to avoid an error.
  17455. Use char because int might match the return type of a GCC
  17456. builtin and then its argument prototype would still apply. */
  17457. #ifdef __cplusplus
  17458. extern "C"
  17459. #endif
  17460. char lround ();
  17461. int
  17462. main ()
  17463. {
  17464. return lround ();
  17465. ;
  17466. return 0;
  17467. }
  17468. _ACEOF
  17469. if ac_fn_c_try_link "$LINENO"; then :
  17470. ac_cv_lib_m_lround=yes
  17471. else
  17472. ac_cv_lib_m_lround=no
  17473. fi
  17474. rm -f core conftest.err conftest.$ac_objext \
  17475. conftest$ac_exeext conftest.$ac_ext
  17476. LIBS=$ac_check_lib_save_LIBS
  17477. fi
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5
  17479. $as_echo "$ac_cv_lib_m_lround" >&6; }
  17480. if test "x$ac_cv_lib_m_lround" = x""yes; then :
  17481. $as_echo "#define HAVE_LROUND 1" >>confdefs.h
  17482. fi
  17483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5
  17484. $as_echo_n "checking for lroundl in -lm... " >&6; }
  17485. if test "${ac_cv_lib_m_lroundl+set}" = set; then :
  17486. $as_echo_n "(cached) " >&6
  17487. else
  17488. ac_check_lib_save_LIBS=$LIBS
  17489. LIBS="-lm $LIBS"
  17490. if test x$gcc_no_link = xyes; then
  17491. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17492. fi
  17493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17494. /* end confdefs.h. */
  17495. /* Override any GCC internal prototype to avoid an error.
  17496. Use char because int might match the return type of a GCC
  17497. builtin and then its argument prototype would still apply. */
  17498. #ifdef __cplusplus
  17499. extern "C"
  17500. #endif
  17501. char lroundl ();
  17502. int
  17503. main ()
  17504. {
  17505. return lroundl ();
  17506. ;
  17507. return 0;
  17508. }
  17509. _ACEOF
  17510. if ac_fn_c_try_link "$LINENO"; then :
  17511. ac_cv_lib_m_lroundl=yes
  17512. else
  17513. ac_cv_lib_m_lroundl=no
  17514. fi
  17515. rm -f core conftest.err conftest.$ac_objext \
  17516. conftest$ac_exeext conftest.$ac_ext
  17517. LIBS=$ac_check_lib_save_LIBS
  17518. fi
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundl" >&5
  17520. $as_echo "$ac_cv_lib_m_lroundl" >&6; }
  17521. if test "x$ac_cv_lib_m_lroundl" = x""yes; then :
  17522. $as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
  17523. fi
  17524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5
  17525. $as_echo_n "checking for llroundf in -lm... " >&6; }
  17526. if test "${ac_cv_lib_m_llroundf+set}" = set; then :
  17527. $as_echo_n "(cached) " >&6
  17528. else
  17529. ac_check_lib_save_LIBS=$LIBS
  17530. LIBS="-lm $LIBS"
  17531. if test x$gcc_no_link = xyes; then
  17532. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17533. fi
  17534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17535. /* end confdefs.h. */
  17536. /* Override any GCC internal prototype to avoid an error.
  17537. Use char because int might match the return type of a GCC
  17538. builtin and then its argument prototype would still apply. */
  17539. #ifdef __cplusplus
  17540. extern "C"
  17541. #endif
  17542. char llroundf ();
  17543. int
  17544. main ()
  17545. {
  17546. return llroundf ();
  17547. ;
  17548. return 0;
  17549. }
  17550. _ACEOF
  17551. if ac_fn_c_try_link "$LINENO"; then :
  17552. ac_cv_lib_m_llroundf=yes
  17553. else
  17554. ac_cv_lib_m_llroundf=no
  17555. fi
  17556. rm -f core conftest.err conftest.$ac_objext \
  17557. conftest$ac_exeext conftest.$ac_ext
  17558. LIBS=$ac_check_lib_save_LIBS
  17559. fi
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundf" >&5
  17561. $as_echo "$ac_cv_lib_m_llroundf" >&6; }
  17562. if test "x$ac_cv_lib_m_llroundf" = x""yes; then :
  17563. $as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
  17564. fi
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5
  17566. $as_echo_n "checking for llround in -lm... " >&6; }
  17567. if test "${ac_cv_lib_m_llround+set}" = set; then :
  17568. $as_echo_n "(cached) " >&6
  17569. else
  17570. ac_check_lib_save_LIBS=$LIBS
  17571. LIBS="-lm $LIBS"
  17572. if test x$gcc_no_link = xyes; then
  17573. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17574. fi
  17575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17576. /* end confdefs.h. */
  17577. /* Override any GCC internal prototype to avoid an error.
  17578. Use char because int might match the return type of a GCC
  17579. builtin and then its argument prototype would still apply. */
  17580. #ifdef __cplusplus
  17581. extern "C"
  17582. #endif
  17583. char llround ();
  17584. int
  17585. main ()
  17586. {
  17587. return llround ();
  17588. ;
  17589. return 0;
  17590. }
  17591. _ACEOF
  17592. if ac_fn_c_try_link "$LINENO"; then :
  17593. ac_cv_lib_m_llround=yes
  17594. else
  17595. ac_cv_lib_m_llround=no
  17596. fi
  17597. rm -f core conftest.err conftest.$ac_objext \
  17598. conftest$ac_exeext conftest.$ac_ext
  17599. LIBS=$ac_check_lib_save_LIBS
  17600. fi
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llround" >&5
  17602. $as_echo "$ac_cv_lib_m_llround" >&6; }
  17603. if test "x$ac_cv_lib_m_llround" = x""yes; then :
  17604. $as_echo "#define HAVE_LLROUND 1" >>confdefs.h
  17605. fi
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5
  17607. $as_echo_n "checking for llroundl in -lm... " >&6; }
  17608. if test "${ac_cv_lib_m_llroundl+set}" = set; then :
  17609. $as_echo_n "(cached) " >&6
  17610. else
  17611. ac_check_lib_save_LIBS=$LIBS
  17612. LIBS="-lm $LIBS"
  17613. if test x$gcc_no_link = xyes; then
  17614. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17615. fi
  17616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17617. /* end confdefs.h. */
  17618. /* Override any GCC internal prototype to avoid an error.
  17619. Use char because int might match the return type of a GCC
  17620. builtin and then its argument prototype would still apply. */
  17621. #ifdef __cplusplus
  17622. extern "C"
  17623. #endif
  17624. char llroundl ();
  17625. int
  17626. main ()
  17627. {
  17628. return llroundl ();
  17629. ;
  17630. return 0;
  17631. }
  17632. _ACEOF
  17633. if ac_fn_c_try_link "$LINENO"; then :
  17634. ac_cv_lib_m_llroundl=yes
  17635. else
  17636. ac_cv_lib_m_llroundl=no
  17637. fi
  17638. rm -f core conftest.err conftest.$ac_objext \
  17639. conftest$ac_exeext conftest.$ac_ext
  17640. LIBS=$ac_check_lib_save_LIBS
  17641. fi
  17642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundl" >&5
  17643. $as_echo "$ac_cv_lib_m_llroundl" >&6; }
  17644. if test "x$ac_cv_lib_m_llroundl" = x""yes; then :
  17645. $as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
  17646. fi
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5
  17648. $as_echo_n "checking for scalbnf in -lm... " >&6; }
  17649. if test "${ac_cv_lib_m_scalbnf+set}" = set; then :
  17650. $as_echo_n "(cached) " >&6
  17651. else
  17652. ac_check_lib_save_LIBS=$LIBS
  17653. LIBS="-lm $LIBS"
  17654. if test x$gcc_no_link = xyes; then
  17655. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17656. fi
  17657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17658. /* end confdefs.h. */
  17659. /* Override any GCC internal prototype to avoid an error.
  17660. Use char because int might match the return type of a GCC
  17661. builtin and then its argument prototype would still apply. */
  17662. #ifdef __cplusplus
  17663. extern "C"
  17664. #endif
  17665. char scalbnf ();
  17666. int
  17667. main ()
  17668. {
  17669. return scalbnf ();
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. if ac_fn_c_try_link "$LINENO"; then :
  17675. ac_cv_lib_m_scalbnf=yes
  17676. else
  17677. ac_cv_lib_m_scalbnf=no
  17678. fi
  17679. rm -f core conftest.err conftest.$ac_objext \
  17680. conftest$ac_exeext conftest.$ac_ext
  17681. LIBS=$ac_check_lib_save_LIBS
  17682. fi
  17683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnf" >&5
  17684. $as_echo "$ac_cv_lib_m_scalbnf" >&6; }
  17685. if test "x$ac_cv_lib_m_scalbnf" = x""yes; then :
  17686. $as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
  17687. fi
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5
  17689. $as_echo_n "checking for scalbn in -lm... " >&6; }
  17690. if test "${ac_cv_lib_m_scalbn+set}" = set; then :
  17691. $as_echo_n "(cached) " >&6
  17692. else
  17693. ac_check_lib_save_LIBS=$LIBS
  17694. LIBS="-lm $LIBS"
  17695. if test x$gcc_no_link = xyes; then
  17696. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17697. fi
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. /* Override any GCC internal prototype to avoid an error.
  17701. Use char because int might match the return type of a GCC
  17702. builtin and then its argument prototype would still apply. */
  17703. #ifdef __cplusplus
  17704. extern "C"
  17705. #endif
  17706. char scalbn ();
  17707. int
  17708. main ()
  17709. {
  17710. return scalbn ();
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_link "$LINENO"; then :
  17716. ac_cv_lib_m_scalbn=yes
  17717. else
  17718. ac_cv_lib_m_scalbn=no
  17719. fi
  17720. rm -f core conftest.err conftest.$ac_objext \
  17721. conftest$ac_exeext conftest.$ac_ext
  17722. LIBS=$ac_check_lib_save_LIBS
  17723. fi
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbn" >&5
  17725. $as_echo "$ac_cv_lib_m_scalbn" >&6; }
  17726. if test "x$ac_cv_lib_m_scalbn" = x""yes; then :
  17727. $as_echo "#define HAVE_SCALBN 1" >>confdefs.h
  17728. fi
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5
  17730. $as_echo_n "checking for scalbnl in -lm... " >&6; }
  17731. if test "${ac_cv_lib_m_scalbnl+set}" = set; then :
  17732. $as_echo_n "(cached) " >&6
  17733. else
  17734. ac_check_lib_save_LIBS=$LIBS
  17735. LIBS="-lm $LIBS"
  17736. if test x$gcc_no_link = xyes; then
  17737. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17738. fi
  17739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17740. /* end confdefs.h. */
  17741. /* Override any GCC internal prototype to avoid an error.
  17742. Use char because int might match the return type of a GCC
  17743. builtin and then its argument prototype would still apply. */
  17744. #ifdef __cplusplus
  17745. extern "C"
  17746. #endif
  17747. char scalbnl ();
  17748. int
  17749. main ()
  17750. {
  17751. return scalbnl ();
  17752. ;
  17753. return 0;
  17754. }
  17755. _ACEOF
  17756. if ac_fn_c_try_link "$LINENO"; then :
  17757. ac_cv_lib_m_scalbnl=yes
  17758. else
  17759. ac_cv_lib_m_scalbnl=no
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext \
  17762. conftest$ac_exeext conftest.$ac_ext
  17763. LIBS=$ac_check_lib_save_LIBS
  17764. fi
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnl" >&5
  17766. $as_echo "$ac_cv_lib_m_scalbnl" >&6; }
  17767. if test "x$ac_cv_lib_m_scalbnl" = x""yes; then :
  17768. $as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
  17769. fi
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
  17771. $as_echo_n "checking for sinf in -lm... " >&6; }
  17772. if test "${ac_cv_lib_m_sinf+set}" = set; then :
  17773. $as_echo_n "(cached) " >&6
  17774. else
  17775. ac_check_lib_save_LIBS=$LIBS
  17776. LIBS="-lm $LIBS"
  17777. if test x$gcc_no_link = xyes; then
  17778. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17779. fi
  17780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17781. /* end confdefs.h. */
  17782. /* Override any GCC internal prototype to avoid an error.
  17783. Use char because int might match the return type of a GCC
  17784. builtin and then its argument prototype would still apply. */
  17785. #ifdef __cplusplus
  17786. extern "C"
  17787. #endif
  17788. char sinf ();
  17789. int
  17790. main ()
  17791. {
  17792. return sinf ();
  17793. ;
  17794. return 0;
  17795. }
  17796. _ACEOF
  17797. if ac_fn_c_try_link "$LINENO"; then :
  17798. ac_cv_lib_m_sinf=yes
  17799. else
  17800. ac_cv_lib_m_sinf=no
  17801. fi
  17802. rm -f core conftest.err conftest.$ac_objext \
  17803. conftest$ac_exeext conftest.$ac_ext
  17804. LIBS=$ac_check_lib_save_LIBS
  17805. fi
  17806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
  17807. $as_echo "$ac_cv_lib_m_sinf" >&6; }
  17808. if test "x$ac_cv_lib_m_sinf" = x""yes; then :
  17809. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  17810. fi
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  17812. $as_echo_n "checking for sin in -lm... " >&6; }
  17813. if test "${ac_cv_lib_m_sin+set}" = set; then :
  17814. $as_echo_n "(cached) " >&6
  17815. else
  17816. ac_check_lib_save_LIBS=$LIBS
  17817. LIBS="-lm $LIBS"
  17818. if test x$gcc_no_link = xyes; then
  17819. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17820. fi
  17821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17822. /* end confdefs.h. */
  17823. /* Override any GCC internal prototype to avoid an error.
  17824. Use char because int might match the return type of a GCC
  17825. builtin and then its argument prototype would still apply. */
  17826. #ifdef __cplusplus
  17827. extern "C"
  17828. #endif
  17829. char sin ();
  17830. int
  17831. main ()
  17832. {
  17833. return sin ();
  17834. ;
  17835. return 0;
  17836. }
  17837. _ACEOF
  17838. if ac_fn_c_try_link "$LINENO"; then :
  17839. ac_cv_lib_m_sin=yes
  17840. else
  17841. ac_cv_lib_m_sin=no
  17842. fi
  17843. rm -f core conftest.err conftest.$ac_objext \
  17844. conftest$ac_exeext conftest.$ac_ext
  17845. LIBS=$ac_check_lib_save_LIBS
  17846. fi
  17847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  17848. $as_echo "$ac_cv_lib_m_sin" >&6; }
  17849. if test "x$ac_cv_lib_m_sin" = x""yes; then :
  17850. $as_echo "#define HAVE_SIN 1" >>confdefs.h
  17851. fi
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5
  17853. $as_echo_n "checking for sinl in -lm... " >&6; }
  17854. if test "${ac_cv_lib_m_sinl+set}" = set; then :
  17855. $as_echo_n "(cached) " >&6
  17856. else
  17857. ac_check_lib_save_LIBS=$LIBS
  17858. LIBS="-lm $LIBS"
  17859. if test x$gcc_no_link = xyes; then
  17860. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17861. fi
  17862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17863. /* end confdefs.h. */
  17864. /* Override any GCC internal prototype to avoid an error.
  17865. Use char because int might match the return type of a GCC
  17866. builtin and then its argument prototype would still apply. */
  17867. #ifdef __cplusplus
  17868. extern "C"
  17869. #endif
  17870. char sinl ();
  17871. int
  17872. main ()
  17873. {
  17874. return sinl ();
  17875. ;
  17876. return 0;
  17877. }
  17878. _ACEOF
  17879. if ac_fn_c_try_link "$LINENO"; then :
  17880. ac_cv_lib_m_sinl=yes
  17881. else
  17882. ac_cv_lib_m_sinl=no
  17883. fi
  17884. rm -f core conftest.err conftest.$ac_objext \
  17885. conftest$ac_exeext conftest.$ac_ext
  17886. LIBS=$ac_check_lib_save_LIBS
  17887. fi
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinl" >&5
  17889. $as_echo "$ac_cv_lib_m_sinl" >&6; }
  17890. if test "x$ac_cv_lib_m_sinl" = x""yes; then :
  17891. $as_echo "#define HAVE_SINL 1" >>confdefs.h
  17892. fi
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5
  17894. $as_echo_n "checking for csinf in -lm... " >&6; }
  17895. if test "${ac_cv_lib_m_csinf+set}" = set; then :
  17896. $as_echo_n "(cached) " >&6
  17897. else
  17898. ac_check_lib_save_LIBS=$LIBS
  17899. LIBS="-lm $LIBS"
  17900. if test x$gcc_no_link = xyes; then
  17901. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17902. fi
  17903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17904. /* end confdefs.h. */
  17905. /* Override any GCC internal prototype to avoid an error.
  17906. Use char because int might match the return type of a GCC
  17907. builtin and then its argument prototype would still apply. */
  17908. #ifdef __cplusplus
  17909. extern "C"
  17910. #endif
  17911. char csinf ();
  17912. int
  17913. main ()
  17914. {
  17915. return csinf ();
  17916. ;
  17917. return 0;
  17918. }
  17919. _ACEOF
  17920. if ac_fn_c_try_link "$LINENO"; then :
  17921. ac_cv_lib_m_csinf=yes
  17922. else
  17923. ac_cv_lib_m_csinf=no
  17924. fi
  17925. rm -f core conftest.err conftest.$ac_objext \
  17926. conftest$ac_exeext conftest.$ac_ext
  17927. LIBS=$ac_check_lib_save_LIBS
  17928. fi
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinf" >&5
  17930. $as_echo "$ac_cv_lib_m_csinf" >&6; }
  17931. if test "x$ac_cv_lib_m_csinf" = x""yes; then :
  17932. $as_echo "#define HAVE_CSINF 1" >>confdefs.h
  17933. fi
  17934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
  17935. $as_echo_n "checking for csin in -lm... " >&6; }
  17936. if test "${ac_cv_lib_m_csin+set}" = set; then :
  17937. $as_echo_n "(cached) " >&6
  17938. else
  17939. ac_check_lib_save_LIBS=$LIBS
  17940. LIBS="-lm $LIBS"
  17941. if test x$gcc_no_link = xyes; then
  17942. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17943. fi
  17944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17945. /* end confdefs.h. */
  17946. /* Override any GCC internal prototype to avoid an error.
  17947. Use char because int might match the return type of a GCC
  17948. builtin and then its argument prototype would still apply. */
  17949. #ifdef __cplusplus
  17950. extern "C"
  17951. #endif
  17952. char csin ();
  17953. int
  17954. main ()
  17955. {
  17956. return csin ();
  17957. ;
  17958. return 0;
  17959. }
  17960. _ACEOF
  17961. if ac_fn_c_try_link "$LINENO"; then :
  17962. ac_cv_lib_m_csin=yes
  17963. else
  17964. ac_cv_lib_m_csin=no
  17965. fi
  17966. rm -f core conftest.err conftest.$ac_objext \
  17967. conftest$ac_exeext conftest.$ac_ext
  17968. LIBS=$ac_check_lib_save_LIBS
  17969. fi
  17970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
  17971. $as_echo "$ac_cv_lib_m_csin" >&6; }
  17972. if test "x$ac_cv_lib_m_csin" = x""yes; then :
  17973. $as_echo "#define HAVE_CSIN 1" >>confdefs.h
  17974. fi
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5
  17976. $as_echo_n "checking for csinl in -lm... " >&6; }
  17977. if test "${ac_cv_lib_m_csinl+set}" = set; then :
  17978. $as_echo_n "(cached) " >&6
  17979. else
  17980. ac_check_lib_save_LIBS=$LIBS
  17981. LIBS="-lm $LIBS"
  17982. if test x$gcc_no_link = xyes; then
  17983. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17984. fi
  17985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17986. /* end confdefs.h. */
  17987. /* Override any GCC internal prototype to avoid an error.
  17988. Use char because int might match the return type of a GCC
  17989. builtin and then its argument prototype would still apply. */
  17990. #ifdef __cplusplus
  17991. extern "C"
  17992. #endif
  17993. char csinl ();
  17994. int
  17995. main ()
  17996. {
  17997. return csinl ();
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_link "$LINENO"; then :
  18003. ac_cv_lib_m_csinl=yes
  18004. else
  18005. ac_cv_lib_m_csinl=no
  18006. fi
  18007. rm -f core conftest.err conftest.$ac_objext \
  18008. conftest$ac_exeext conftest.$ac_ext
  18009. LIBS=$ac_check_lib_save_LIBS
  18010. fi
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinl" >&5
  18012. $as_echo "$ac_cv_lib_m_csinl" >&6; }
  18013. if test "x$ac_cv_lib_m_csinl" = x""yes; then :
  18014. $as_echo "#define HAVE_CSINL 1" >>confdefs.h
  18015. fi
  18016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5
  18017. $as_echo_n "checking for sinhf in -lm... " >&6; }
  18018. if test "${ac_cv_lib_m_sinhf+set}" = set; then :
  18019. $as_echo_n "(cached) " >&6
  18020. else
  18021. ac_check_lib_save_LIBS=$LIBS
  18022. LIBS="-lm $LIBS"
  18023. if test x$gcc_no_link = xyes; then
  18024. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18025. fi
  18026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18027. /* end confdefs.h. */
  18028. /* Override any GCC internal prototype to avoid an error.
  18029. Use char because int might match the return type of a GCC
  18030. builtin and then its argument prototype would still apply. */
  18031. #ifdef __cplusplus
  18032. extern "C"
  18033. #endif
  18034. char sinhf ();
  18035. int
  18036. main ()
  18037. {
  18038. return sinhf ();
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. if ac_fn_c_try_link "$LINENO"; then :
  18044. ac_cv_lib_m_sinhf=yes
  18045. else
  18046. ac_cv_lib_m_sinhf=no
  18047. fi
  18048. rm -f core conftest.err conftest.$ac_objext \
  18049. conftest$ac_exeext conftest.$ac_ext
  18050. LIBS=$ac_check_lib_save_LIBS
  18051. fi
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhf" >&5
  18053. $as_echo "$ac_cv_lib_m_sinhf" >&6; }
  18054. if test "x$ac_cv_lib_m_sinhf" = x""yes; then :
  18055. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  18056. fi
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
  18058. $as_echo_n "checking for sinh in -lm... " >&6; }
  18059. if test "${ac_cv_lib_m_sinh+set}" = set; then :
  18060. $as_echo_n "(cached) " >&6
  18061. else
  18062. ac_check_lib_save_LIBS=$LIBS
  18063. LIBS="-lm $LIBS"
  18064. if test x$gcc_no_link = xyes; then
  18065. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18066. fi
  18067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18068. /* end confdefs.h. */
  18069. /* Override any GCC internal prototype to avoid an error.
  18070. Use char because int might match the return type of a GCC
  18071. builtin and then its argument prototype would still apply. */
  18072. #ifdef __cplusplus
  18073. extern "C"
  18074. #endif
  18075. char sinh ();
  18076. int
  18077. main ()
  18078. {
  18079. return sinh ();
  18080. ;
  18081. return 0;
  18082. }
  18083. _ACEOF
  18084. if ac_fn_c_try_link "$LINENO"; then :
  18085. ac_cv_lib_m_sinh=yes
  18086. else
  18087. ac_cv_lib_m_sinh=no
  18088. fi
  18089. rm -f core conftest.err conftest.$ac_objext \
  18090. conftest$ac_exeext conftest.$ac_ext
  18091. LIBS=$ac_check_lib_save_LIBS
  18092. fi
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5
  18094. $as_echo "$ac_cv_lib_m_sinh" >&6; }
  18095. if test "x$ac_cv_lib_m_sinh" = x""yes; then :
  18096. $as_echo "#define HAVE_SINH 1" >>confdefs.h
  18097. fi
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5
  18099. $as_echo_n "checking for sinhl in -lm... " >&6; }
  18100. if test "${ac_cv_lib_m_sinhl+set}" = set; then :
  18101. $as_echo_n "(cached) " >&6
  18102. else
  18103. ac_check_lib_save_LIBS=$LIBS
  18104. LIBS="-lm $LIBS"
  18105. if test x$gcc_no_link = xyes; then
  18106. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18107. fi
  18108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18109. /* end confdefs.h. */
  18110. /* Override any GCC internal prototype to avoid an error.
  18111. Use char because int might match the return type of a GCC
  18112. builtin and then its argument prototype would still apply. */
  18113. #ifdef __cplusplus
  18114. extern "C"
  18115. #endif
  18116. char sinhl ();
  18117. int
  18118. main ()
  18119. {
  18120. return sinhl ();
  18121. ;
  18122. return 0;
  18123. }
  18124. _ACEOF
  18125. if ac_fn_c_try_link "$LINENO"; then :
  18126. ac_cv_lib_m_sinhl=yes
  18127. else
  18128. ac_cv_lib_m_sinhl=no
  18129. fi
  18130. rm -f core conftest.err conftest.$ac_objext \
  18131. conftest$ac_exeext conftest.$ac_ext
  18132. LIBS=$ac_check_lib_save_LIBS
  18133. fi
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhl" >&5
  18135. $as_echo "$ac_cv_lib_m_sinhl" >&6; }
  18136. if test "x$ac_cv_lib_m_sinhl" = x""yes; then :
  18137. $as_echo "#define HAVE_SINHL 1" >>confdefs.h
  18138. fi
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5
  18140. $as_echo_n "checking for csinhf in -lm... " >&6; }
  18141. if test "${ac_cv_lib_m_csinhf+set}" = set; then :
  18142. $as_echo_n "(cached) " >&6
  18143. else
  18144. ac_check_lib_save_LIBS=$LIBS
  18145. LIBS="-lm $LIBS"
  18146. if test x$gcc_no_link = xyes; then
  18147. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18148. fi
  18149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18150. /* end confdefs.h. */
  18151. /* Override any GCC internal prototype to avoid an error.
  18152. Use char because int might match the return type of a GCC
  18153. builtin and then its argument prototype would still apply. */
  18154. #ifdef __cplusplus
  18155. extern "C"
  18156. #endif
  18157. char csinhf ();
  18158. int
  18159. main ()
  18160. {
  18161. return csinhf ();
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_link "$LINENO"; then :
  18167. ac_cv_lib_m_csinhf=yes
  18168. else
  18169. ac_cv_lib_m_csinhf=no
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext \
  18172. conftest$ac_exeext conftest.$ac_ext
  18173. LIBS=$ac_check_lib_save_LIBS
  18174. fi
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhf" >&5
  18176. $as_echo "$ac_cv_lib_m_csinhf" >&6; }
  18177. if test "x$ac_cv_lib_m_csinhf" = x""yes; then :
  18178. $as_echo "#define HAVE_CSINHF 1" >>confdefs.h
  18179. fi
  18180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5
  18181. $as_echo_n "checking for csinh in -lm... " >&6; }
  18182. if test "${ac_cv_lib_m_csinh+set}" = set; then :
  18183. $as_echo_n "(cached) " >&6
  18184. else
  18185. ac_check_lib_save_LIBS=$LIBS
  18186. LIBS="-lm $LIBS"
  18187. if test x$gcc_no_link = xyes; then
  18188. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18189. fi
  18190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18191. /* end confdefs.h. */
  18192. /* Override any GCC internal prototype to avoid an error.
  18193. Use char because int might match the return type of a GCC
  18194. builtin and then its argument prototype would still apply. */
  18195. #ifdef __cplusplus
  18196. extern "C"
  18197. #endif
  18198. char csinh ();
  18199. int
  18200. main ()
  18201. {
  18202. return csinh ();
  18203. ;
  18204. return 0;
  18205. }
  18206. _ACEOF
  18207. if ac_fn_c_try_link "$LINENO"; then :
  18208. ac_cv_lib_m_csinh=yes
  18209. else
  18210. ac_cv_lib_m_csinh=no
  18211. fi
  18212. rm -f core conftest.err conftest.$ac_objext \
  18213. conftest$ac_exeext conftest.$ac_ext
  18214. LIBS=$ac_check_lib_save_LIBS
  18215. fi
  18216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinh" >&5
  18217. $as_echo "$ac_cv_lib_m_csinh" >&6; }
  18218. if test "x$ac_cv_lib_m_csinh" = x""yes; then :
  18219. $as_echo "#define HAVE_CSINH 1" >>confdefs.h
  18220. fi
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5
  18222. $as_echo_n "checking for csinhl in -lm... " >&6; }
  18223. if test "${ac_cv_lib_m_csinhl+set}" = set; then :
  18224. $as_echo_n "(cached) " >&6
  18225. else
  18226. ac_check_lib_save_LIBS=$LIBS
  18227. LIBS="-lm $LIBS"
  18228. if test x$gcc_no_link = xyes; then
  18229. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18230. fi
  18231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18232. /* end confdefs.h. */
  18233. /* Override any GCC internal prototype to avoid an error.
  18234. Use char because int might match the return type of a GCC
  18235. builtin and then its argument prototype would still apply. */
  18236. #ifdef __cplusplus
  18237. extern "C"
  18238. #endif
  18239. char csinhl ();
  18240. int
  18241. main ()
  18242. {
  18243. return csinhl ();
  18244. ;
  18245. return 0;
  18246. }
  18247. _ACEOF
  18248. if ac_fn_c_try_link "$LINENO"; then :
  18249. ac_cv_lib_m_csinhl=yes
  18250. else
  18251. ac_cv_lib_m_csinhl=no
  18252. fi
  18253. rm -f core conftest.err conftest.$ac_objext \
  18254. conftest$ac_exeext conftest.$ac_ext
  18255. LIBS=$ac_check_lib_save_LIBS
  18256. fi
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhl" >&5
  18258. $as_echo "$ac_cv_lib_m_csinhl" >&6; }
  18259. if test "x$ac_cv_lib_m_csinhl" = x""yes; then :
  18260. $as_echo "#define HAVE_CSINHL 1" >>confdefs.h
  18261. fi
  18262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
  18263. $as_echo_n "checking for sqrtf in -lm... " >&6; }
  18264. if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
  18265. $as_echo_n "(cached) " >&6
  18266. else
  18267. ac_check_lib_save_LIBS=$LIBS
  18268. LIBS="-lm $LIBS"
  18269. if test x$gcc_no_link = xyes; then
  18270. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18271. fi
  18272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18273. /* end confdefs.h. */
  18274. /* Override any GCC internal prototype to avoid an error.
  18275. Use char because int might match the return type of a GCC
  18276. builtin and then its argument prototype would still apply. */
  18277. #ifdef __cplusplus
  18278. extern "C"
  18279. #endif
  18280. char sqrtf ();
  18281. int
  18282. main ()
  18283. {
  18284. return sqrtf ();
  18285. ;
  18286. return 0;
  18287. }
  18288. _ACEOF
  18289. if ac_fn_c_try_link "$LINENO"; then :
  18290. ac_cv_lib_m_sqrtf=yes
  18291. else
  18292. ac_cv_lib_m_sqrtf=no
  18293. fi
  18294. rm -f core conftest.err conftest.$ac_objext \
  18295. conftest$ac_exeext conftest.$ac_ext
  18296. LIBS=$ac_check_lib_save_LIBS
  18297. fi
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5
  18299. $as_echo "$ac_cv_lib_m_sqrtf" >&6; }
  18300. if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
  18301. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  18302. fi
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  18304. $as_echo_n "checking for sqrt in -lm... " >&6; }
  18305. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  18306. $as_echo_n "(cached) " >&6
  18307. else
  18308. ac_check_lib_save_LIBS=$LIBS
  18309. LIBS="-lm $LIBS"
  18310. if test x$gcc_no_link = xyes; then
  18311. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18312. fi
  18313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18314. /* end confdefs.h. */
  18315. /* Override any GCC internal prototype to avoid an error.
  18316. Use char because int might match the return type of a GCC
  18317. builtin and then its argument prototype would still apply. */
  18318. #ifdef __cplusplus
  18319. extern "C"
  18320. #endif
  18321. char sqrt ();
  18322. int
  18323. main ()
  18324. {
  18325. return sqrt ();
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. if ac_fn_c_try_link "$LINENO"; then :
  18331. ac_cv_lib_m_sqrt=yes
  18332. else
  18333. ac_cv_lib_m_sqrt=no
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext \
  18336. conftest$ac_exeext conftest.$ac_ext
  18337. LIBS=$ac_check_lib_save_LIBS
  18338. fi
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  18340. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  18341. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  18342. $as_echo "#define HAVE_SQRT 1" >>confdefs.h
  18343. fi
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
  18345. $as_echo_n "checking for sqrtl in -lm... " >&6; }
  18346. if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
  18347. $as_echo_n "(cached) " >&6
  18348. else
  18349. ac_check_lib_save_LIBS=$LIBS
  18350. LIBS="-lm $LIBS"
  18351. if test x$gcc_no_link = xyes; then
  18352. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18353. fi
  18354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18355. /* end confdefs.h. */
  18356. /* Override any GCC internal prototype to avoid an error.
  18357. Use char because int might match the return type of a GCC
  18358. builtin and then its argument prototype would still apply. */
  18359. #ifdef __cplusplus
  18360. extern "C"
  18361. #endif
  18362. char sqrtl ();
  18363. int
  18364. main ()
  18365. {
  18366. return sqrtl ();
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. if ac_fn_c_try_link "$LINENO"; then :
  18372. ac_cv_lib_m_sqrtl=yes
  18373. else
  18374. ac_cv_lib_m_sqrtl=no
  18375. fi
  18376. rm -f core conftest.err conftest.$ac_objext \
  18377. conftest$ac_exeext conftest.$ac_ext
  18378. LIBS=$ac_check_lib_save_LIBS
  18379. fi
  18380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
  18381. $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
  18382. if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
  18383. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  18384. fi
  18385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5
  18386. $as_echo_n "checking for csqrtf in -lm... " >&6; }
  18387. if test "${ac_cv_lib_m_csqrtf+set}" = set; then :
  18388. $as_echo_n "(cached) " >&6
  18389. else
  18390. ac_check_lib_save_LIBS=$LIBS
  18391. LIBS="-lm $LIBS"
  18392. if test x$gcc_no_link = xyes; then
  18393. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18394. fi
  18395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18396. /* end confdefs.h. */
  18397. /* Override any GCC internal prototype to avoid an error.
  18398. Use char because int might match the return type of a GCC
  18399. builtin and then its argument prototype would still apply. */
  18400. #ifdef __cplusplus
  18401. extern "C"
  18402. #endif
  18403. char csqrtf ();
  18404. int
  18405. main ()
  18406. {
  18407. return csqrtf ();
  18408. ;
  18409. return 0;
  18410. }
  18411. _ACEOF
  18412. if ac_fn_c_try_link "$LINENO"; then :
  18413. ac_cv_lib_m_csqrtf=yes
  18414. else
  18415. ac_cv_lib_m_csqrtf=no
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext \
  18418. conftest$ac_exeext conftest.$ac_ext
  18419. LIBS=$ac_check_lib_save_LIBS
  18420. fi
  18421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtf" >&5
  18422. $as_echo "$ac_cv_lib_m_csqrtf" >&6; }
  18423. if test "x$ac_cv_lib_m_csqrtf" = x""yes; then :
  18424. $as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
  18425. fi
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5
  18427. $as_echo_n "checking for csqrt in -lm... " >&6; }
  18428. if test "${ac_cv_lib_m_csqrt+set}" = set; then :
  18429. $as_echo_n "(cached) " >&6
  18430. else
  18431. ac_check_lib_save_LIBS=$LIBS
  18432. LIBS="-lm $LIBS"
  18433. if test x$gcc_no_link = xyes; then
  18434. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18435. fi
  18436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18437. /* end confdefs.h. */
  18438. /* Override any GCC internal prototype to avoid an error.
  18439. Use char because int might match the return type of a GCC
  18440. builtin and then its argument prototype would still apply. */
  18441. #ifdef __cplusplus
  18442. extern "C"
  18443. #endif
  18444. char csqrt ();
  18445. int
  18446. main ()
  18447. {
  18448. return csqrt ();
  18449. ;
  18450. return 0;
  18451. }
  18452. _ACEOF
  18453. if ac_fn_c_try_link "$LINENO"; then :
  18454. ac_cv_lib_m_csqrt=yes
  18455. else
  18456. ac_cv_lib_m_csqrt=no
  18457. fi
  18458. rm -f core conftest.err conftest.$ac_objext \
  18459. conftest$ac_exeext conftest.$ac_ext
  18460. LIBS=$ac_check_lib_save_LIBS
  18461. fi
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrt" >&5
  18463. $as_echo "$ac_cv_lib_m_csqrt" >&6; }
  18464. if test "x$ac_cv_lib_m_csqrt" = x""yes; then :
  18465. $as_echo "#define HAVE_CSQRT 1" >>confdefs.h
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5
  18468. $as_echo_n "checking for csqrtl in -lm... " >&6; }
  18469. if test "${ac_cv_lib_m_csqrtl+set}" = set; then :
  18470. $as_echo_n "(cached) " >&6
  18471. else
  18472. ac_check_lib_save_LIBS=$LIBS
  18473. LIBS="-lm $LIBS"
  18474. if test x$gcc_no_link = xyes; then
  18475. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18476. fi
  18477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18478. /* end confdefs.h. */
  18479. /* Override any GCC internal prototype to avoid an error.
  18480. Use char because int might match the return type of a GCC
  18481. builtin and then its argument prototype would still apply. */
  18482. #ifdef __cplusplus
  18483. extern "C"
  18484. #endif
  18485. char csqrtl ();
  18486. int
  18487. main ()
  18488. {
  18489. return csqrtl ();
  18490. ;
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. if ac_fn_c_try_link "$LINENO"; then :
  18495. ac_cv_lib_m_csqrtl=yes
  18496. else
  18497. ac_cv_lib_m_csqrtl=no
  18498. fi
  18499. rm -f core conftest.err conftest.$ac_objext \
  18500. conftest$ac_exeext conftest.$ac_ext
  18501. LIBS=$ac_check_lib_save_LIBS
  18502. fi
  18503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtl" >&5
  18504. $as_echo "$ac_cv_lib_m_csqrtl" >&6; }
  18505. if test "x$ac_cv_lib_m_csqrtl" = x""yes; then :
  18506. $as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
  18507. fi
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5
  18509. $as_echo_n "checking for tanf in -lm... " >&6; }
  18510. if test "${ac_cv_lib_m_tanf+set}" = set; then :
  18511. $as_echo_n "(cached) " >&6
  18512. else
  18513. ac_check_lib_save_LIBS=$LIBS
  18514. LIBS="-lm $LIBS"
  18515. if test x$gcc_no_link = xyes; then
  18516. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18517. fi
  18518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18519. /* end confdefs.h. */
  18520. /* Override any GCC internal prototype to avoid an error.
  18521. Use char because int might match the return type of a GCC
  18522. builtin and then its argument prototype would still apply. */
  18523. #ifdef __cplusplus
  18524. extern "C"
  18525. #endif
  18526. char tanf ();
  18527. int
  18528. main ()
  18529. {
  18530. return tanf ();
  18531. ;
  18532. return 0;
  18533. }
  18534. _ACEOF
  18535. if ac_fn_c_try_link "$LINENO"; then :
  18536. ac_cv_lib_m_tanf=yes
  18537. else
  18538. ac_cv_lib_m_tanf=no
  18539. fi
  18540. rm -f core conftest.err conftest.$ac_objext \
  18541. conftest$ac_exeext conftest.$ac_ext
  18542. LIBS=$ac_check_lib_save_LIBS
  18543. fi
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanf" >&5
  18545. $as_echo "$ac_cv_lib_m_tanf" >&6; }
  18546. if test "x$ac_cv_lib_m_tanf" = x""yes; then :
  18547. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  18548. fi
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5
  18550. $as_echo_n "checking for tan in -lm... " >&6; }
  18551. if test "${ac_cv_lib_m_tan+set}" = set; then :
  18552. $as_echo_n "(cached) " >&6
  18553. else
  18554. ac_check_lib_save_LIBS=$LIBS
  18555. LIBS="-lm $LIBS"
  18556. if test x$gcc_no_link = xyes; then
  18557. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18558. fi
  18559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. /* end confdefs.h. */
  18561. /* Override any GCC internal prototype to avoid an error.
  18562. Use char because int might match the return type of a GCC
  18563. builtin and then its argument prototype would still apply. */
  18564. #ifdef __cplusplus
  18565. extern "C"
  18566. #endif
  18567. char tan ();
  18568. int
  18569. main ()
  18570. {
  18571. return tan ();
  18572. ;
  18573. return 0;
  18574. }
  18575. _ACEOF
  18576. if ac_fn_c_try_link "$LINENO"; then :
  18577. ac_cv_lib_m_tan=yes
  18578. else
  18579. ac_cv_lib_m_tan=no
  18580. fi
  18581. rm -f core conftest.err conftest.$ac_objext \
  18582. conftest$ac_exeext conftest.$ac_ext
  18583. LIBS=$ac_check_lib_save_LIBS
  18584. fi
  18585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan" >&5
  18586. $as_echo "$ac_cv_lib_m_tan" >&6; }
  18587. if test "x$ac_cv_lib_m_tan" = x""yes; then :
  18588. $as_echo "#define HAVE_TAN 1" >>confdefs.h
  18589. fi
  18590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5
  18591. $as_echo_n "checking for tanl in -lm... " >&6; }
  18592. if test "${ac_cv_lib_m_tanl+set}" = set; then :
  18593. $as_echo_n "(cached) " >&6
  18594. else
  18595. ac_check_lib_save_LIBS=$LIBS
  18596. LIBS="-lm $LIBS"
  18597. if test x$gcc_no_link = xyes; then
  18598. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18599. fi
  18600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18601. /* end confdefs.h. */
  18602. /* Override any GCC internal prototype to avoid an error.
  18603. Use char because int might match the return type of a GCC
  18604. builtin and then its argument prototype would still apply. */
  18605. #ifdef __cplusplus
  18606. extern "C"
  18607. #endif
  18608. char tanl ();
  18609. int
  18610. main ()
  18611. {
  18612. return tanl ();
  18613. ;
  18614. return 0;
  18615. }
  18616. _ACEOF
  18617. if ac_fn_c_try_link "$LINENO"; then :
  18618. ac_cv_lib_m_tanl=yes
  18619. else
  18620. ac_cv_lib_m_tanl=no
  18621. fi
  18622. rm -f core conftest.err conftest.$ac_objext \
  18623. conftest$ac_exeext conftest.$ac_ext
  18624. LIBS=$ac_check_lib_save_LIBS
  18625. fi
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanl" >&5
  18627. $as_echo "$ac_cv_lib_m_tanl" >&6; }
  18628. if test "x$ac_cv_lib_m_tanl" = x""yes; then :
  18629. $as_echo "#define HAVE_TANL 1" >>confdefs.h
  18630. fi
  18631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5
  18632. $as_echo_n "checking for ctanf in -lm... " >&6; }
  18633. if test "${ac_cv_lib_m_ctanf+set}" = set; then :
  18634. $as_echo_n "(cached) " >&6
  18635. else
  18636. ac_check_lib_save_LIBS=$LIBS
  18637. LIBS="-lm $LIBS"
  18638. if test x$gcc_no_link = xyes; then
  18639. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18640. fi
  18641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18642. /* end confdefs.h. */
  18643. /* Override any GCC internal prototype to avoid an error.
  18644. Use char because int might match the return type of a GCC
  18645. builtin and then its argument prototype would still apply. */
  18646. #ifdef __cplusplus
  18647. extern "C"
  18648. #endif
  18649. char ctanf ();
  18650. int
  18651. main ()
  18652. {
  18653. return ctanf ();
  18654. ;
  18655. return 0;
  18656. }
  18657. _ACEOF
  18658. if ac_fn_c_try_link "$LINENO"; then :
  18659. ac_cv_lib_m_ctanf=yes
  18660. else
  18661. ac_cv_lib_m_ctanf=no
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext \
  18664. conftest$ac_exeext conftest.$ac_ext
  18665. LIBS=$ac_check_lib_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanf" >&5
  18668. $as_echo "$ac_cv_lib_m_ctanf" >&6; }
  18669. if test "x$ac_cv_lib_m_ctanf" = x""yes; then :
  18670. $as_echo "#define HAVE_CTANF 1" >>confdefs.h
  18671. fi
  18672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5
  18673. $as_echo_n "checking for ctan in -lm... " >&6; }
  18674. if test "${ac_cv_lib_m_ctan+set}" = set; then :
  18675. $as_echo_n "(cached) " >&6
  18676. else
  18677. ac_check_lib_save_LIBS=$LIBS
  18678. LIBS="-lm $LIBS"
  18679. if test x$gcc_no_link = xyes; then
  18680. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18681. fi
  18682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18683. /* end confdefs.h. */
  18684. /* Override any GCC internal prototype to avoid an error.
  18685. Use char because int might match the return type of a GCC
  18686. builtin and then its argument prototype would still apply. */
  18687. #ifdef __cplusplus
  18688. extern "C"
  18689. #endif
  18690. char ctan ();
  18691. int
  18692. main ()
  18693. {
  18694. return ctan ();
  18695. ;
  18696. return 0;
  18697. }
  18698. _ACEOF
  18699. if ac_fn_c_try_link "$LINENO"; then :
  18700. ac_cv_lib_m_ctan=yes
  18701. else
  18702. ac_cv_lib_m_ctan=no
  18703. fi
  18704. rm -f core conftest.err conftest.$ac_objext \
  18705. conftest$ac_exeext conftest.$ac_ext
  18706. LIBS=$ac_check_lib_save_LIBS
  18707. fi
  18708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctan" >&5
  18709. $as_echo "$ac_cv_lib_m_ctan" >&6; }
  18710. if test "x$ac_cv_lib_m_ctan" = x""yes; then :
  18711. $as_echo "#define HAVE_CTAN 1" >>confdefs.h
  18712. fi
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5
  18714. $as_echo_n "checking for ctanl in -lm... " >&6; }
  18715. if test "${ac_cv_lib_m_ctanl+set}" = set; then :
  18716. $as_echo_n "(cached) " >&6
  18717. else
  18718. ac_check_lib_save_LIBS=$LIBS
  18719. LIBS="-lm $LIBS"
  18720. if test x$gcc_no_link = xyes; then
  18721. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18722. fi
  18723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18724. /* end confdefs.h. */
  18725. /* Override any GCC internal prototype to avoid an error.
  18726. Use char because int might match the return type of a GCC
  18727. builtin and then its argument prototype would still apply. */
  18728. #ifdef __cplusplus
  18729. extern "C"
  18730. #endif
  18731. char ctanl ();
  18732. int
  18733. main ()
  18734. {
  18735. return ctanl ();
  18736. ;
  18737. return 0;
  18738. }
  18739. _ACEOF
  18740. if ac_fn_c_try_link "$LINENO"; then :
  18741. ac_cv_lib_m_ctanl=yes
  18742. else
  18743. ac_cv_lib_m_ctanl=no
  18744. fi
  18745. rm -f core conftest.err conftest.$ac_objext \
  18746. conftest$ac_exeext conftest.$ac_ext
  18747. LIBS=$ac_check_lib_save_LIBS
  18748. fi
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanl" >&5
  18750. $as_echo "$ac_cv_lib_m_ctanl" >&6; }
  18751. if test "x$ac_cv_lib_m_ctanl" = x""yes; then :
  18752. $as_echo "#define HAVE_CTANL 1" >>confdefs.h
  18753. fi
  18754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5
  18755. $as_echo_n "checking for tanhf in -lm... " >&6; }
  18756. if test "${ac_cv_lib_m_tanhf+set}" = set; then :
  18757. $as_echo_n "(cached) " >&6
  18758. else
  18759. ac_check_lib_save_LIBS=$LIBS
  18760. LIBS="-lm $LIBS"
  18761. if test x$gcc_no_link = xyes; then
  18762. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18763. fi
  18764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18765. /* end confdefs.h. */
  18766. /* Override any GCC internal prototype to avoid an error.
  18767. Use char because int might match the return type of a GCC
  18768. builtin and then its argument prototype would still apply. */
  18769. #ifdef __cplusplus
  18770. extern "C"
  18771. #endif
  18772. char tanhf ();
  18773. int
  18774. main ()
  18775. {
  18776. return tanhf ();
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_link "$LINENO"; then :
  18782. ac_cv_lib_m_tanhf=yes
  18783. else
  18784. ac_cv_lib_m_tanhf=no
  18785. fi
  18786. rm -f core conftest.err conftest.$ac_objext \
  18787. conftest$ac_exeext conftest.$ac_ext
  18788. LIBS=$ac_check_lib_save_LIBS
  18789. fi
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhf" >&5
  18791. $as_echo "$ac_cv_lib_m_tanhf" >&6; }
  18792. if test "x$ac_cv_lib_m_tanhf" = x""yes; then :
  18793. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  18794. fi
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5
  18796. $as_echo_n "checking for tanh in -lm... " >&6; }
  18797. if test "${ac_cv_lib_m_tanh+set}" = set; then :
  18798. $as_echo_n "(cached) " >&6
  18799. else
  18800. ac_check_lib_save_LIBS=$LIBS
  18801. LIBS="-lm $LIBS"
  18802. if test x$gcc_no_link = xyes; then
  18803. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18804. fi
  18805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18806. /* end confdefs.h. */
  18807. /* Override any GCC internal prototype to avoid an error.
  18808. Use char because int might match the return type of a GCC
  18809. builtin and then its argument prototype would still apply. */
  18810. #ifdef __cplusplus
  18811. extern "C"
  18812. #endif
  18813. char tanh ();
  18814. int
  18815. main ()
  18816. {
  18817. return tanh ();
  18818. ;
  18819. return 0;
  18820. }
  18821. _ACEOF
  18822. if ac_fn_c_try_link "$LINENO"; then :
  18823. ac_cv_lib_m_tanh=yes
  18824. else
  18825. ac_cv_lib_m_tanh=no
  18826. fi
  18827. rm -f core conftest.err conftest.$ac_objext \
  18828. conftest$ac_exeext conftest.$ac_ext
  18829. LIBS=$ac_check_lib_save_LIBS
  18830. fi
  18831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanh" >&5
  18832. $as_echo "$ac_cv_lib_m_tanh" >&6; }
  18833. if test "x$ac_cv_lib_m_tanh" = x""yes; then :
  18834. $as_echo "#define HAVE_TANH 1" >>confdefs.h
  18835. fi
  18836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5
  18837. $as_echo_n "checking for tanhl in -lm... " >&6; }
  18838. if test "${ac_cv_lib_m_tanhl+set}" = set; then :
  18839. $as_echo_n "(cached) " >&6
  18840. else
  18841. ac_check_lib_save_LIBS=$LIBS
  18842. LIBS="-lm $LIBS"
  18843. if test x$gcc_no_link = xyes; then
  18844. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18845. fi
  18846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18847. /* end confdefs.h. */
  18848. /* Override any GCC internal prototype to avoid an error.
  18849. Use char because int might match the return type of a GCC
  18850. builtin and then its argument prototype would still apply. */
  18851. #ifdef __cplusplus
  18852. extern "C"
  18853. #endif
  18854. char tanhl ();
  18855. int
  18856. main ()
  18857. {
  18858. return tanhl ();
  18859. ;
  18860. return 0;
  18861. }
  18862. _ACEOF
  18863. if ac_fn_c_try_link "$LINENO"; then :
  18864. ac_cv_lib_m_tanhl=yes
  18865. else
  18866. ac_cv_lib_m_tanhl=no
  18867. fi
  18868. rm -f core conftest.err conftest.$ac_objext \
  18869. conftest$ac_exeext conftest.$ac_ext
  18870. LIBS=$ac_check_lib_save_LIBS
  18871. fi
  18872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhl" >&5
  18873. $as_echo "$ac_cv_lib_m_tanhl" >&6; }
  18874. if test "x$ac_cv_lib_m_tanhl" = x""yes; then :
  18875. $as_echo "#define HAVE_TANHL 1" >>confdefs.h
  18876. fi
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5
  18878. $as_echo_n "checking for ctanhf in -lm... " >&6; }
  18879. if test "${ac_cv_lib_m_ctanhf+set}" = set; then :
  18880. $as_echo_n "(cached) " >&6
  18881. else
  18882. ac_check_lib_save_LIBS=$LIBS
  18883. LIBS="-lm $LIBS"
  18884. if test x$gcc_no_link = xyes; then
  18885. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18886. fi
  18887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18888. /* end confdefs.h. */
  18889. /* Override any GCC internal prototype to avoid an error.
  18890. Use char because int might match the return type of a GCC
  18891. builtin and then its argument prototype would still apply. */
  18892. #ifdef __cplusplus
  18893. extern "C"
  18894. #endif
  18895. char ctanhf ();
  18896. int
  18897. main ()
  18898. {
  18899. return ctanhf ();
  18900. ;
  18901. return 0;
  18902. }
  18903. _ACEOF
  18904. if ac_fn_c_try_link "$LINENO"; then :
  18905. ac_cv_lib_m_ctanhf=yes
  18906. else
  18907. ac_cv_lib_m_ctanhf=no
  18908. fi
  18909. rm -f core conftest.err conftest.$ac_objext \
  18910. conftest$ac_exeext conftest.$ac_ext
  18911. LIBS=$ac_check_lib_save_LIBS
  18912. fi
  18913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhf" >&5
  18914. $as_echo "$ac_cv_lib_m_ctanhf" >&6; }
  18915. if test "x$ac_cv_lib_m_ctanhf" = x""yes; then :
  18916. $as_echo "#define HAVE_CTANHF 1" >>confdefs.h
  18917. fi
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5
  18919. $as_echo_n "checking for ctanh in -lm... " >&6; }
  18920. if test "${ac_cv_lib_m_ctanh+set}" = set; then :
  18921. $as_echo_n "(cached) " >&6
  18922. else
  18923. ac_check_lib_save_LIBS=$LIBS
  18924. LIBS="-lm $LIBS"
  18925. if test x$gcc_no_link = xyes; then
  18926. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18927. fi
  18928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18929. /* end confdefs.h. */
  18930. /* Override any GCC internal prototype to avoid an error.
  18931. Use char because int might match the return type of a GCC
  18932. builtin and then its argument prototype would still apply. */
  18933. #ifdef __cplusplus
  18934. extern "C"
  18935. #endif
  18936. char ctanh ();
  18937. int
  18938. main ()
  18939. {
  18940. return ctanh ();
  18941. ;
  18942. return 0;
  18943. }
  18944. _ACEOF
  18945. if ac_fn_c_try_link "$LINENO"; then :
  18946. ac_cv_lib_m_ctanh=yes
  18947. else
  18948. ac_cv_lib_m_ctanh=no
  18949. fi
  18950. rm -f core conftest.err conftest.$ac_objext \
  18951. conftest$ac_exeext conftest.$ac_ext
  18952. LIBS=$ac_check_lib_save_LIBS
  18953. fi
  18954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanh" >&5
  18955. $as_echo "$ac_cv_lib_m_ctanh" >&6; }
  18956. if test "x$ac_cv_lib_m_ctanh" = x""yes; then :
  18957. $as_echo "#define HAVE_CTANH 1" >>confdefs.h
  18958. fi
  18959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5
  18960. $as_echo_n "checking for ctanhl in -lm... " >&6; }
  18961. if test "${ac_cv_lib_m_ctanhl+set}" = set; then :
  18962. $as_echo_n "(cached) " >&6
  18963. else
  18964. ac_check_lib_save_LIBS=$LIBS
  18965. LIBS="-lm $LIBS"
  18966. if test x$gcc_no_link = xyes; then
  18967. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18968. fi
  18969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18970. /* end confdefs.h. */
  18971. /* Override any GCC internal prototype to avoid an error.
  18972. Use char because int might match the return type of a GCC
  18973. builtin and then its argument prototype would still apply. */
  18974. #ifdef __cplusplus
  18975. extern "C"
  18976. #endif
  18977. char ctanhl ();
  18978. int
  18979. main ()
  18980. {
  18981. return ctanhl ();
  18982. ;
  18983. return 0;
  18984. }
  18985. _ACEOF
  18986. if ac_fn_c_try_link "$LINENO"; then :
  18987. ac_cv_lib_m_ctanhl=yes
  18988. else
  18989. ac_cv_lib_m_ctanhl=no
  18990. fi
  18991. rm -f core conftest.err conftest.$ac_objext \
  18992. conftest$ac_exeext conftest.$ac_ext
  18993. LIBS=$ac_check_lib_save_LIBS
  18994. fi
  18995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhl" >&5
  18996. $as_echo "$ac_cv_lib_m_ctanhl" >&6; }
  18997. if test "x$ac_cv_lib_m_ctanhl" = x""yes; then :
  18998. $as_echo "#define HAVE_CTANHL 1" >>confdefs.h
  18999. fi
  19000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5
  19001. $as_echo_n "checking for truncf in -lm... " >&6; }
  19002. if test "${ac_cv_lib_m_truncf+set}" = set; then :
  19003. $as_echo_n "(cached) " >&6
  19004. else
  19005. ac_check_lib_save_LIBS=$LIBS
  19006. LIBS="-lm $LIBS"
  19007. if test x$gcc_no_link = xyes; then
  19008. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19009. fi
  19010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19011. /* end confdefs.h. */
  19012. /* Override any GCC internal prototype to avoid an error.
  19013. Use char because int might match the return type of a GCC
  19014. builtin and then its argument prototype would still apply. */
  19015. #ifdef __cplusplus
  19016. extern "C"
  19017. #endif
  19018. char truncf ();
  19019. int
  19020. main ()
  19021. {
  19022. return truncf ();
  19023. ;
  19024. return 0;
  19025. }
  19026. _ACEOF
  19027. if ac_fn_c_try_link "$LINENO"; then :
  19028. ac_cv_lib_m_truncf=yes
  19029. else
  19030. ac_cv_lib_m_truncf=no
  19031. fi
  19032. rm -f core conftest.err conftest.$ac_objext \
  19033. conftest$ac_exeext conftest.$ac_ext
  19034. LIBS=$ac_check_lib_save_LIBS
  19035. fi
  19036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncf" >&5
  19037. $as_echo "$ac_cv_lib_m_truncf" >&6; }
  19038. if test "x$ac_cv_lib_m_truncf" = x""yes; then :
  19039. $as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
  19040. fi
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
  19042. $as_echo_n "checking for trunc in -lm... " >&6; }
  19043. if test "${ac_cv_lib_m_trunc+set}" = set; then :
  19044. $as_echo_n "(cached) " >&6
  19045. else
  19046. ac_check_lib_save_LIBS=$LIBS
  19047. LIBS="-lm $LIBS"
  19048. if test x$gcc_no_link = xyes; then
  19049. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19050. fi
  19051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19052. /* end confdefs.h. */
  19053. /* Override any GCC internal prototype to avoid an error.
  19054. Use char because int might match the return type of a GCC
  19055. builtin and then its argument prototype would still apply. */
  19056. #ifdef __cplusplus
  19057. extern "C"
  19058. #endif
  19059. char trunc ();
  19060. int
  19061. main ()
  19062. {
  19063. return trunc ();
  19064. ;
  19065. return 0;
  19066. }
  19067. _ACEOF
  19068. if ac_fn_c_try_link "$LINENO"; then :
  19069. ac_cv_lib_m_trunc=yes
  19070. else
  19071. ac_cv_lib_m_trunc=no
  19072. fi
  19073. rm -f core conftest.err conftest.$ac_objext \
  19074. conftest$ac_exeext conftest.$ac_ext
  19075. LIBS=$ac_check_lib_save_LIBS
  19076. fi
  19077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
  19078. $as_echo "$ac_cv_lib_m_trunc" >&6; }
  19079. if test "x$ac_cv_lib_m_trunc" = x""yes; then :
  19080. $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
  19081. fi
  19082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5
  19083. $as_echo_n "checking for truncl in -lm... " >&6; }
  19084. if test "${ac_cv_lib_m_truncl+set}" = set; then :
  19085. $as_echo_n "(cached) " >&6
  19086. else
  19087. ac_check_lib_save_LIBS=$LIBS
  19088. LIBS="-lm $LIBS"
  19089. if test x$gcc_no_link = xyes; then
  19090. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19091. fi
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. /* Override any GCC internal prototype to avoid an error.
  19095. Use char because int might match the return type of a GCC
  19096. builtin and then its argument prototype would still apply. */
  19097. #ifdef __cplusplus
  19098. extern "C"
  19099. #endif
  19100. char truncl ();
  19101. int
  19102. main ()
  19103. {
  19104. return truncl ();
  19105. ;
  19106. return 0;
  19107. }
  19108. _ACEOF
  19109. if ac_fn_c_try_link "$LINENO"; then :
  19110. ac_cv_lib_m_truncl=yes
  19111. else
  19112. ac_cv_lib_m_truncl=no
  19113. fi
  19114. rm -f core conftest.err conftest.$ac_objext \
  19115. conftest$ac_exeext conftest.$ac_ext
  19116. LIBS=$ac_check_lib_save_LIBS
  19117. fi
  19118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncl" >&5
  19119. $as_echo "$ac_cv_lib_m_truncl" >&6; }
  19120. if test "x$ac_cv_lib_m_truncl" = x""yes; then :
  19121. $as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
  19122. fi
  19123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5
  19124. $as_echo_n "checking for erff in -lm... " >&6; }
  19125. if test "${ac_cv_lib_m_erff+set}" = set; then :
  19126. $as_echo_n "(cached) " >&6
  19127. else
  19128. ac_check_lib_save_LIBS=$LIBS
  19129. LIBS="-lm $LIBS"
  19130. if test x$gcc_no_link = xyes; then
  19131. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19132. fi
  19133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19134. /* end confdefs.h. */
  19135. /* Override any GCC internal prototype to avoid an error.
  19136. Use char because int might match the return type of a GCC
  19137. builtin and then its argument prototype would still apply. */
  19138. #ifdef __cplusplus
  19139. extern "C"
  19140. #endif
  19141. char erff ();
  19142. int
  19143. main ()
  19144. {
  19145. return erff ();
  19146. ;
  19147. return 0;
  19148. }
  19149. _ACEOF
  19150. if ac_fn_c_try_link "$LINENO"; then :
  19151. ac_cv_lib_m_erff=yes
  19152. else
  19153. ac_cv_lib_m_erff=no
  19154. fi
  19155. rm -f core conftest.err conftest.$ac_objext \
  19156. conftest$ac_exeext conftest.$ac_ext
  19157. LIBS=$ac_check_lib_save_LIBS
  19158. fi
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erff" >&5
  19160. $as_echo "$ac_cv_lib_m_erff" >&6; }
  19161. if test "x$ac_cv_lib_m_erff" = x""yes; then :
  19162. $as_echo "#define HAVE_ERFF 1" >>confdefs.h
  19163. fi
  19164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5
  19165. $as_echo_n "checking for erf in -lm... " >&6; }
  19166. if test "${ac_cv_lib_m_erf+set}" = set; then :
  19167. $as_echo_n "(cached) " >&6
  19168. else
  19169. ac_check_lib_save_LIBS=$LIBS
  19170. LIBS="-lm $LIBS"
  19171. if test x$gcc_no_link = xyes; then
  19172. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19173. fi
  19174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19175. /* end confdefs.h. */
  19176. /* Override any GCC internal prototype to avoid an error.
  19177. Use char because int might match the return type of a GCC
  19178. builtin and then its argument prototype would still apply. */
  19179. #ifdef __cplusplus
  19180. extern "C"
  19181. #endif
  19182. char erf ();
  19183. int
  19184. main ()
  19185. {
  19186. return erf ();
  19187. ;
  19188. return 0;
  19189. }
  19190. _ACEOF
  19191. if ac_fn_c_try_link "$LINENO"; then :
  19192. ac_cv_lib_m_erf=yes
  19193. else
  19194. ac_cv_lib_m_erf=no
  19195. fi
  19196. rm -f core conftest.err conftest.$ac_objext \
  19197. conftest$ac_exeext conftest.$ac_ext
  19198. LIBS=$ac_check_lib_save_LIBS
  19199. fi
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erf" >&5
  19201. $as_echo "$ac_cv_lib_m_erf" >&6; }
  19202. if test "x$ac_cv_lib_m_erf" = x""yes; then :
  19203. $as_echo "#define HAVE_ERF 1" >>confdefs.h
  19204. fi
  19205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5
  19206. $as_echo_n "checking for erfl in -lm... " >&6; }
  19207. if test "${ac_cv_lib_m_erfl+set}" = set; then :
  19208. $as_echo_n "(cached) " >&6
  19209. else
  19210. ac_check_lib_save_LIBS=$LIBS
  19211. LIBS="-lm $LIBS"
  19212. if test x$gcc_no_link = xyes; then
  19213. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19214. fi
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. /* Override any GCC internal prototype to avoid an error.
  19218. Use char because int might match the return type of a GCC
  19219. builtin and then its argument prototype would still apply. */
  19220. #ifdef __cplusplus
  19221. extern "C"
  19222. #endif
  19223. char erfl ();
  19224. int
  19225. main ()
  19226. {
  19227. return erfl ();
  19228. ;
  19229. return 0;
  19230. }
  19231. _ACEOF
  19232. if ac_fn_c_try_link "$LINENO"; then :
  19233. ac_cv_lib_m_erfl=yes
  19234. else
  19235. ac_cv_lib_m_erfl=no
  19236. fi
  19237. rm -f core conftest.err conftest.$ac_objext \
  19238. conftest$ac_exeext conftest.$ac_ext
  19239. LIBS=$ac_check_lib_save_LIBS
  19240. fi
  19241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfl" >&5
  19242. $as_echo "$ac_cv_lib_m_erfl" >&6; }
  19243. if test "x$ac_cv_lib_m_erfl" = x""yes; then :
  19244. $as_echo "#define HAVE_ERFL 1" >>confdefs.h
  19245. fi
  19246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5
  19247. $as_echo_n "checking for erfcf in -lm... " >&6; }
  19248. if test "${ac_cv_lib_m_erfcf+set}" = set; then :
  19249. $as_echo_n "(cached) " >&6
  19250. else
  19251. ac_check_lib_save_LIBS=$LIBS
  19252. LIBS="-lm $LIBS"
  19253. if test x$gcc_no_link = xyes; then
  19254. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19255. fi
  19256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19257. /* end confdefs.h. */
  19258. /* Override any GCC internal prototype to avoid an error.
  19259. Use char because int might match the return type of a GCC
  19260. builtin and then its argument prototype would still apply. */
  19261. #ifdef __cplusplus
  19262. extern "C"
  19263. #endif
  19264. char erfcf ();
  19265. int
  19266. main ()
  19267. {
  19268. return erfcf ();
  19269. ;
  19270. return 0;
  19271. }
  19272. _ACEOF
  19273. if ac_fn_c_try_link "$LINENO"; then :
  19274. ac_cv_lib_m_erfcf=yes
  19275. else
  19276. ac_cv_lib_m_erfcf=no
  19277. fi
  19278. rm -f core conftest.err conftest.$ac_objext \
  19279. conftest$ac_exeext conftest.$ac_ext
  19280. LIBS=$ac_check_lib_save_LIBS
  19281. fi
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcf" >&5
  19283. $as_echo "$ac_cv_lib_m_erfcf" >&6; }
  19284. if test "x$ac_cv_lib_m_erfcf" = x""yes; then :
  19285. $as_echo "#define HAVE_ERFCF 1" >>confdefs.h
  19286. fi
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5
  19288. $as_echo_n "checking for erfc in -lm... " >&6; }
  19289. if test "${ac_cv_lib_m_erfc+set}" = set; then :
  19290. $as_echo_n "(cached) " >&6
  19291. else
  19292. ac_check_lib_save_LIBS=$LIBS
  19293. LIBS="-lm $LIBS"
  19294. if test x$gcc_no_link = xyes; then
  19295. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19296. fi
  19297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19298. /* end confdefs.h. */
  19299. /* Override any GCC internal prototype to avoid an error.
  19300. Use char because int might match the return type of a GCC
  19301. builtin and then its argument prototype would still apply. */
  19302. #ifdef __cplusplus
  19303. extern "C"
  19304. #endif
  19305. char erfc ();
  19306. int
  19307. main ()
  19308. {
  19309. return erfc ();
  19310. ;
  19311. return 0;
  19312. }
  19313. _ACEOF
  19314. if ac_fn_c_try_link "$LINENO"; then :
  19315. ac_cv_lib_m_erfc=yes
  19316. else
  19317. ac_cv_lib_m_erfc=no
  19318. fi
  19319. rm -f core conftest.err conftest.$ac_objext \
  19320. conftest$ac_exeext conftest.$ac_ext
  19321. LIBS=$ac_check_lib_save_LIBS
  19322. fi
  19323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfc" >&5
  19324. $as_echo "$ac_cv_lib_m_erfc" >&6; }
  19325. if test "x$ac_cv_lib_m_erfc" = x""yes; then :
  19326. $as_echo "#define HAVE_ERFC 1" >>confdefs.h
  19327. fi
  19328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5
  19329. $as_echo_n "checking for erfcl in -lm... " >&6; }
  19330. if test "${ac_cv_lib_m_erfcl+set}" = set; then :
  19331. $as_echo_n "(cached) " >&6
  19332. else
  19333. ac_check_lib_save_LIBS=$LIBS
  19334. LIBS="-lm $LIBS"
  19335. if test x$gcc_no_link = xyes; then
  19336. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19337. fi
  19338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19339. /* end confdefs.h. */
  19340. /* Override any GCC internal prototype to avoid an error.
  19341. Use char because int might match the return type of a GCC
  19342. builtin and then its argument prototype would still apply. */
  19343. #ifdef __cplusplus
  19344. extern "C"
  19345. #endif
  19346. char erfcl ();
  19347. int
  19348. main ()
  19349. {
  19350. return erfcl ();
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_link "$LINENO"; then :
  19356. ac_cv_lib_m_erfcl=yes
  19357. else
  19358. ac_cv_lib_m_erfcl=no
  19359. fi
  19360. rm -f core conftest.err conftest.$ac_objext \
  19361. conftest$ac_exeext conftest.$ac_ext
  19362. LIBS=$ac_check_lib_save_LIBS
  19363. fi
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcl" >&5
  19365. $as_echo "$ac_cv_lib_m_erfcl" >&6; }
  19366. if test "x$ac_cv_lib_m_erfcl" = x""yes; then :
  19367. $as_echo "#define HAVE_ERFCL 1" >>confdefs.h
  19368. fi
  19369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5
  19370. $as_echo_n "checking for j0f in -lm... " >&6; }
  19371. if test "${ac_cv_lib_m_j0f+set}" = set; then :
  19372. $as_echo_n "(cached) " >&6
  19373. else
  19374. ac_check_lib_save_LIBS=$LIBS
  19375. LIBS="-lm $LIBS"
  19376. if test x$gcc_no_link = xyes; then
  19377. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19378. fi
  19379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. /* end confdefs.h. */
  19381. /* Override any GCC internal prototype to avoid an error.
  19382. Use char because int might match the return type of a GCC
  19383. builtin and then its argument prototype would still apply. */
  19384. #ifdef __cplusplus
  19385. extern "C"
  19386. #endif
  19387. char j0f ();
  19388. int
  19389. main ()
  19390. {
  19391. return j0f ();
  19392. ;
  19393. return 0;
  19394. }
  19395. _ACEOF
  19396. if ac_fn_c_try_link "$LINENO"; then :
  19397. ac_cv_lib_m_j0f=yes
  19398. else
  19399. ac_cv_lib_m_j0f=no
  19400. fi
  19401. rm -f core conftest.err conftest.$ac_objext \
  19402. conftest$ac_exeext conftest.$ac_ext
  19403. LIBS=$ac_check_lib_save_LIBS
  19404. fi
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0f" >&5
  19406. $as_echo "$ac_cv_lib_m_j0f" >&6; }
  19407. if test "x$ac_cv_lib_m_j0f" = x""yes; then :
  19408. $as_echo "#define HAVE_J0F 1" >>confdefs.h
  19409. fi
  19410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5
  19411. $as_echo_n "checking for j0 in -lm... " >&6; }
  19412. if test "${ac_cv_lib_m_j0+set}" = set; then :
  19413. $as_echo_n "(cached) " >&6
  19414. else
  19415. ac_check_lib_save_LIBS=$LIBS
  19416. LIBS="-lm $LIBS"
  19417. if test x$gcc_no_link = xyes; then
  19418. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19419. fi
  19420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19421. /* end confdefs.h. */
  19422. /* Override any GCC internal prototype to avoid an error.
  19423. Use char because int might match the return type of a GCC
  19424. builtin and then its argument prototype would still apply. */
  19425. #ifdef __cplusplus
  19426. extern "C"
  19427. #endif
  19428. char j0 ();
  19429. int
  19430. main ()
  19431. {
  19432. return j0 ();
  19433. ;
  19434. return 0;
  19435. }
  19436. _ACEOF
  19437. if ac_fn_c_try_link "$LINENO"; then :
  19438. ac_cv_lib_m_j0=yes
  19439. else
  19440. ac_cv_lib_m_j0=no
  19441. fi
  19442. rm -f core conftest.err conftest.$ac_objext \
  19443. conftest$ac_exeext conftest.$ac_ext
  19444. LIBS=$ac_check_lib_save_LIBS
  19445. fi
  19446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0" >&5
  19447. $as_echo "$ac_cv_lib_m_j0" >&6; }
  19448. if test "x$ac_cv_lib_m_j0" = x""yes; then :
  19449. $as_echo "#define HAVE_J0 1" >>confdefs.h
  19450. fi
  19451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5
  19452. $as_echo_n "checking for j0l in -lm... " >&6; }
  19453. if test "${ac_cv_lib_m_j0l+set}" = set; then :
  19454. $as_echo_n "(cached) " >&6
  19455. else
  19456. ac_check_lib_save_LIBS=$LIBS
  19457. LIBS="-lm $LIBS"
  19458. if test x$gcc_no_link = xyes; then
  19459. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19460. fi
  19461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19462. /* end confdefs.h. */
  19463. /* Override any GCC internal prototype to avoid an error.
  19464. Use char because int might match the return type of a GCC
  19465. builtin and then its argument prototype would still apply. */
  19466. #ifdef __cplusplus
  19467. extern "C"
  19468. #endif
  19469. char j0l ();
  19470. int
  19471. main ()
  19472. {
  19473. return j0l ();
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_link "$LINENO"; then :
  19479. ac_cv_lib_m_j0l=yes
  19480. else
  19481. ac_cv_lib_m_j0l=no
  19482. fi
  19483. rm -f core conftest.err conftest.$ac_objext \
  19484. conftest$ac_exeext conftest.$ac_ext
  19485. LIBS=$ac_check_lib_save_LIBS
  19486. fi
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0l" >&5
  19488. $as_echo "$ac_cv_lib_m_j0l" >&6; }
  19489. if test "x$ac_cv_lib_m_j0l" = x""yes; then :
  19490. $as_echo "#define HAVE_J0L 1" >>confdefs.h
  19491. fi
  19492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5
  19493. $as_echo_n "checking for j1f in -lm... " >&6; }
  19494. if test "${ac_cv_lib_m_j1f+set}" = set; then :
  19495. $as_echo_n "(cached) " >&6
  19496. else
  19497. ac_check_lib_save_LIBS=$LIBS
  19498. LIBS="-lm $LIBS"
  19499. if test x$gcc_no_link = xyes; then
  19500. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19501. fi
  19502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19503. /* end confdefs.h. */
  19504. /* Override any GCC internal prototype to avoid an error.
  19505. Use char because int might match the return type of a GCC
  19506. builtin and then its argument prototype would still apply. */
  19507. #ifdef __cplusplus
  19508. extern "C"
  19509. #endif
  19510. char j1f ();
  19511. int
  19512. main ()
  19513. {
  19514. return j1f ();
  19515. ;
  19516. return 0;
  19517. }
  19518. _ACEOF
  19519. if ac_fn_c_try_link "$LINENO"; then :
  19520. ac_cv_lib_m_j1f=yes
  19521. else
  19522. ac_cv_lib_m_j1f=no
  19523. fi
  19524. rm -f core conftest.err conftest.$ac_objext \
  19525. conftest$ac_exeext conftest.$ac_ext
  19526. LIBS=$ac_check_lib_save_LIBS
  19527. fi
  19528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1f" >&5
  19529. $as_echo "$ac_cv_lib_m_j1f" >&6; }
  19530. if test "x$ac_cv_lib_m_j1f" = x""yes; then :
  19531. $as_echo "#define HAVE_J1F 1" >>confdefs.h
  19532. fi
  19533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5
  19534. $as_echo_n "checking for j1 in -lm... " >&6; }
  19535. if test "${ac_cv_lib_m_j1+set}" = set; then :
  19536. $as_echo_n "(cached) " >&6
  19537. else
  19538. ac_check_lib_save_LIBS=$LIBS
  19539. LIBS="-lm $LIBS"
  19540. if test x$gcc_no_link = xyes; then
  19541. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19542. fi
  19543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19544. /* end confdefs.h. */
  19545. /* Override any GCC internal prototype to avoid an error.
  19546. Use char because int might match the return type of a GCC
  19547. builtin and then its argument prototype would still apply. */
  19548. #ifdef __cplusplus
  19549. extern "C"
  19550. #endif
  19551. char j1 ();
  19552. int
  19553. main ()
  19554. {
  19555. return j1 ();
  19556. ;
  19557. return 0;
  19558. }
  19559. _ACEOF
  19560. if ac_fn_c_try_link "$LINENO"; then :
  19561. ac_cv_lib_m_j1=yes
  19562. else
  19563. ac_cv_lib_m_j1=no
  19564. fi
  19565. rm -f core conftest.err conftest.$ac_objext \
  19566. conftest$ac_exeext conftest.$ac_ext
  19567. LIBS=$ac_check_lib_save_LIBS
  19568. fi
  19569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1" >&5
  19570. $as_echo "$ac_cv_lib_m_j1" >&6; }
  19571. if test "x$ac_cv_lib_m_j1" = x""yes; then :
  19572. $as_echo "#define HAVE_J1 1" >>confdefs.h
  19573. fi
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5
  19575. $as_echo_n "checking for j1l in -lm... " >&6; }
  19576. if test "${ac_cv_lib_m_j1l+set}" = set; then :
  19577. $as_echo_n "(cached) " >&6
  19578. else
  19579. ac_check_lib_save_LIBS=$LIBS
  19580. LIBS="-lm $LIBS"
  19581. if test x$gcc_no_link = xyes; then
  19582. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19583. fi
  19584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19585. /* end confdefs.h. */
  19586. /* Override any GCC internal prototype to avoid an error.
  19587. Use char because int might match the return type of a GCC
  19588. builtin and then its argument prototype would still apply. */
  19589. #ifdef __cplusplus
  19590. extern "C"
  19591. #endif
  19592. char j1l ();
  19593. int
  19594. main ()
  19595. {
  19596. return j1l ();
  19597. ;
  19598. return 0;
  19599. }
  19600. _ACEOF
  19601. if ac_fn_c_try_link "$LINENO"; then :
  19602. ac_cv_lib_m_j1l=yes
  19603. else
  19604. ac_cv_lib_m_j1l=no
  19605. fi
  19606. rm -f core conftest.err conftest.$ac_objext \
  19607. conftest$ac_exeext conftest.$ac_ext
  19608. LIBS=$ac_check_lib_save_LIBS
  19609. fi
  19610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1l" >&5
  19611. $as_echo "$ac_cv_lib_m_j1l" >&6; }
  19612. if test "x$ac_cv_lib_m_j1l" = x""yes; then :
  19613. $as_echo "#define HAVE_J1L 1" >>confdefs.h
  19614. fi
  19615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5
  19616. $as_echo_n "checking for jnf in -lm... " >&6; }
  19617. if test "${ac_cv_lib_m_jnf+set}" = set; then :
  19618. $as_echo_n "(cached) " >&6
  19619. else
  19620. ac_check_lib_save_LIBS=$LIBS
  19621. LIBS="-lm $LIBS"
  19622. if test x$gcc_no_link = xyes; then
  19623. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19624. fi
  19625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19626. /* end confdefs.h. */
  19627. /* Override any GCC internal prototype to avoid an error.
  19628. Use char because int might match the return type of a GCC
  19629. builtin and then its argument prototype would still apply. */
  19630. #ifdef __cplusplus
  19631. extern "C"
  19632. #endif
  19633. char jnf ();
  19634. int
  19635. main ()
  19636. {
  19637. return jnf ();
  19638. ;
  19639. return 0;
  19640. }
  19641. _ACEOF
  19642. if ac_fn_c_try_link "$LINENO"; then :
  19643. ac_cv_lib_m_jnf=yes
  19644. else
  19645. ac_cv_lib_m_jnf=no
  19646. fi
  19647. rm -f core conftest.err conftest.$ac_objext \
  19648. conftest$ac_exeext conftest.$ac_ext
  19649. LIBS=$ac_check_lib_save_LIBS
  19650. fi
  19651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnf" >&5
  19652. $as_echo "$ac_cv_lib_m_jnf" >&6; }
  19653. if test "x$ac_cv_lib_m_jnf" = x""yes; then :
  19654. $as_echo "#define HAVE_JNF 1" >>confdefs.h
  19655. fi
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5
  19657. $as_echo_n "checking for jn in -lm... " >&6; }
  19658. if test "${ac_cv_lib_m_jn+set}" = set; then :
  19659. $as_echo_n "(cached) " >&6
  19660. else
  19661. ac_check_lib_save_LIBS=$LIBS
  19662. LIBS="-lm $LIBS"
  19663. if test x$gcc_no_link = xyes; then
  19664. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19665. fi
  19666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19667. /* end confdefs.h. */
  19668. /* Override any GCC internal prototype to avoid an error.
  19669. Use char because int might match the return type of a GCC
  19670. builtin and then its argument prototype would still apply. */
  19671. #ifdef __cplusplus
  19672. extern "C"
  19673. #endif
  19674. char jn ();
  19675. int
  19676. main ()
  19677. {
  19678. return jn ();
  19679. ;
  19680. return 0;
  19681. }
  19682. _ACEOF
  19683. if ac_fn_c_try_link "$LINENO"; then :
  19684. ac_cv_lib_m_jn=yes
  19685. else
  19686. ac_cv_lib_m_jn=no
  19687. fi
  19688. rm -f core conftest.err conftest.$ac_objext \
  19689. conftest$ac_exeext conftest.$ac_ext
  19690. LIBS=$ac_check_lib_save_LIBS
  19691. fi
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jn" >&5
  19693. $as_echo "$ac_cv_lib_m_jn" >&6; }
  19694. if test "x$ac_cv_lib_m_jn" = x""yes; then :
  19695. $as_echo "#define HAVE_JN 1" >>confdefs.h
  19696. fi
  19697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5
  19698. $as_echo_n "checking for jnl in -lm... " >&6; }
  19699. if test "${ac_cv_lib_m_jnl+set}" = set; then :
  19700. $as_echo_n "(cached) " >&6
  19701. else
  19702. ac_check_lib_save_LIBS=$LIBS
  19703. LIBS="-lm $LIBS"
  19704. if test x$gcc_no_link = xyes; then
  19705. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19706. fi
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. /* Override any GCC internal prototype to avoid an error.
  19710. Use char because int might match the return type of a GCC
  19711. builtin and then its argument prototype would still apply. */
  19712. #ifdef __cplusplus
  19713. extern "C"
  19714. #endif
  19715. char jnl ();
  19716. int
  19717. main ()
  19718. {
  19719. return jnl ();
  19720. ;
  19721. return 0;
  19722. }
  19723. _ACEOF
  19724. if ac_fn_c_try_link "$LINENO"; then :
  19725. ac_cv_lib_m_jnl=yes
  19726. else
  19727. ac_cv_lib_m_jnl=no
  19728. fi
  19729. rm -f core conftest.err conftest.$ac_objext \
  19730. conftest$ac_exeext conftest.$ac_ext
  19731. LIBS=$ac_check_lib_save_LIBS
  19732. fi
  19733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnl" >&5
  19734. $as_echo "$ac_cv_lib_m_jnl" >&6; }
  19735. if test "x$ac_cv_lib_m_jnl" = x""yes; then :
  19736. $as_echo "#define HAVE_JNL 1" >>confdefs.h
  19737. fi
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5
  19739. $as_echo_n "checking for y0f in -lm... " >&6; }
  19740. if test "${ac_cv_lib_m_y0f+set}" = set; then :
  19741. $as_echo_n "(cached) " >&6
  19742. else
  19743. ac_check_lib_save_LIBS=$LIBS
  19744. LIBS="-lm $LIBS"
  19745. if test x$gcc_no_link = xyes; then
  19746. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19747. fi
  19748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19749. /* end confdefs.h. */
  19750. /* Override any GCC internal prototype to avoid an error.
  19751. Use char because int might match the return type of a GCC
  19752. builtin and then its argument prototype would still apply. */
  19753. #ifdef __cplusplus
  19754. extern "C"
  19755. #endif
  19756. char y0f ();
  19757. int
  19758. main ()
  19759. {
  19760. return y0f ();
  19761. ;
  19762. return 0;
  19763. }
  19764. _ACEOF
  19765. if ac_fn_c_try_link "$LINENO"; then :
  19766. ac_cv_lib_m_y0f=yes
  19767. else
  19768. ac_cv_lib_m_y0f=no
  19769. fi
  19770. rm -f core conftest.err conftest.$ac_objext \
  19771. conftest$ac_exeext conftest.$ac_ext
  19772. LIBS=$ac_check_lib_save_LIBS
  19773. fi
  19774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0f" >&5
  19775. $as_echo "$ac_cv_lib_m_y0f" >&6; }
  19776. if test "x$ac_cv_lib_m_y0f" = x""yes; then :
  19777. $as_echo "#define HAVE_Y0F 1" >>confdefs.h
  19778. fi
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5
  19780. $as_echo_n "checking for y0 in -lm... " >&6; }
  19781. if test "${ac_cv_lib_m_y0+set}" = set; then :
  19782. $as_echo_n "(cached) " >&6
  19783. else
  19784. ac_check_lib_save_LIBS=$LIBS
  19785. LIBS="-lm $LIBS"
  19786. if test x$gcc_no_link = xyes; then
  19787. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19788. fi
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. /* Override any GCC internal prototype to avoid an error.
  19792. Use char because int might match the return type of a GCC
  19793. builtin and then its argument prototype would still apply. */
  19794. #ifdef __cplusplus
  19795. extern "C"
  19796. #endif
  19797. char y0 ();
  19798. int
  19799. main ()
  19800. {
  19801. return y0 ();
  19802. ;
  19803. return 0;
  19804. }
  19805. _ACEOF
  19806. if ac_fn_c_try_link "$LINENO"; then :
  19807. ac_cv_lib_m_y0=yes
  19808. else
  19809. ac_cv_lib_m_y0=no
  19810. fi
  19811. rm -f core conftest.err conftest.$ac_objext \
  19812. conftest$ac_exeext conftest.$ac_ext
  19813. LIBS=$ac_check_lib_save_LIBS
  19814. fi
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0" >&5
  19816. $as_echo "$ac_cv_lib_m_y0" >&6; }
  19817. if test "x$ac_cv_lib_m_y0" = x""yes; then :
  19818. $as_echo "#define HAVE_Y0 1" >>confdefs.h
  19819. fi
  19820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5
  19821. $as_echo_n "checking for y0l in -lm... " >&6; }
  19822. if test "${ac_cv_lib_m_y0l+set}" = set; then :
  19823. $as_echo_n "(cached) " >&6
  19824. else
  19825. ac_check_lib_save_LIBS=$LIBS
  19826. LIBS="-lm $LIBS"
  19827. if test x$gcc_no_link = xyes; then
  19828. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19829. fi
  19830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19831. /* end confdefs.h. */
  19832. /* Override any GCC internal prototype to avoid an error.
  19833. Use char because int might match the return type of a GCC
  19834. builtin and then its argument prototype would still apply. */
  19835. #ifdef __cplusplus
  19836. extern "C"
  19837. #endif
  19838. char y0l ();
  19839. int
  19840. main ()
  19841. {
  19842. return y0l ();
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. if ac_fn_c_try_link "$LINENO"; then :
  19848. ac_cv_lib_m_y0l=yes
  19849. else
  19850. ac_cv_lib_m_y0l=no
  19851. fi
  19852. rm -f core conftest.err conftest.$ac_objext \
  19853. conftest$ac_exeext conftest.$ac_ext
  19854. LIBS=$ac_check_lib_save_LIBS
  19855. fi
  19856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0l" >&5
  19857. $as_echo "$ac_cv_lib_m_y0l" >&6; }
  19858. if test "x$ac_cv_lib_m_y0l" = x""yes; then :
  19859. $as_echo "#define HAVE_Y0L 1" >>confdefs.h
  19860. fi
  19861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5
  19862. $as_echo_n "checking for y1f in -lm... " >&6; }
  19863. if test "${ac_cv_lib_m_y1f+set}" = set; then :
  19864. $as_echo_n "(cached) " >&6
  19865. else
  19866. ac_check_lib_save_LIBS=$LIBS
  19867. LIBS="-lm $LIBS"
  19868. if test x$gcc_no_link = xyes; then
  19869. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19870. fi
  19871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19872. /* end confdefs.h. */
  19873. /* Override any GCC internal prototype to avoid an error.
  19874. Use char because int might match the return type of a GCC
  19875. builtin and then its argument prototype would still apply. */
  19876. #ifdef __cplusplus
  19877. extern "C"
  19878. #endif
  19879. char y1f ();
  19880. int
  19881. main ()
  19882. {
  19883. return y1f ();
  19884. ;
  19885. return 0;
  19886. }
  19887. _ACEOF
  19888. if ac_fn_c_try_link "$LINENO"; then :
  19889. ac_cv_lib_m_y1f=yes
  19890. else
  19891. ac_cv_lib_m_y1f=no
  19892. fi
  19893. rm -f core conftest.err conftest.$ac_objext \
  19894. conftest$ac_exeext conftest.$ac_ext
  19895. LIBS=$ac_check_lib_save_LIBS
  19896. fi
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1f" >&5
  19898. $as_echo "$ac_cv_lib_m_y1f" >&6; }
  19899. if test "x$ac_cv_lib_m_y1f" = x""yes; then :
  19900. $as_echo "#define HAVE_Y1F 1" >>confdefs.h
  19901. fi
  19902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5
  19903. $as_echo_n "checking for y1 in -lm... " >&6; }
  19904. if test "${ac_cv_lib_m_y1+set}" = set; then :
  19905. $as_echo_n "(cached) " >&6
  19906. else
  19907. ac_check_lib_save_LIBS=$LIBS
  19908. LIBS="-lm $LIBS"
  19909. if test x$gcc_no_link = xyes; then
  19910. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19911. fi
  19912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19913. /* end confdefs.h. */
  19914. /* Override any GCC internal prototype to avoid an error.
  19915. Use char because int might match the return type of a GCC
  19916. builtin and then its argument prototype would still apply. */
  19917. #ifdef __cplusplus
  19918. extern "C"
  19919. #endif
  19920. char y1 ();
  19921. int
  19922. main ()
  19923. {
  19924. return y1 ();
  19925. ;
  19926. return 0;
  19927. }
  19928. _ACEOF
  19929. if ac_fn_c_try_link "$LINENO"; then :
  19930. ac_cv_lib_m_y1=yes
  19931. else
  19932. ac_cv_lib_m_y1=no
  19933. fi
  19934. rm -f core conftest.err conftest.$ac_objext \
  19935. conftest$ac_exeext conftest.$ac_ext
  19936. LIBS=$ac_check_lib_save_LIBS
  19937. fi
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1" >&5
  19939. $as_echo "$ac_cv_lib_m_y1" >&6; }
  19940. if test "x$ac_cv_lib_m_y1" = x""yes; then :
  19941. $as_echo "#define HAVE_Y1 1" >>confdefs.h
  19942. fi
  19943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5
  19944. $as_echo_n "checking for y1l in -lm... " >&6; }
  19945. if test "${ac_cv_lib_m_y1l+set}" = set; then :
  19946. $as_echo_n "(cached) " >&6
  19947. else
  19948. ac_check_lib_save_LIBS=$LIBS
  19949. LIBS="-lm $LIBS"
  19950. if test x$gcc_no_link = xyes; then
  19951. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19952. fi
  19953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19954. /* end confdefs.h. */
  19955. /* Override any GCC internal prototype to avoid an error.
  19956. Use char because int might match the return type of a GCC
  19957. builtin and then its argument prototype would still apply. */
  19958. #ifdef __cplusplus
  19959. extern "C"
  19960. #endif
  19961. char y1l ();
  19962. int
  19963. main ()
  19964. {
  19965. return y1l ();
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_link "$LINENO"; then :
  19971. ac_cv_lib_m_y1l=yes
  19972. else
  19973. ac_cv_lib_m_y1l=no
  19974. fi
  19975. rm -f core conftest.err conftest.$ac_objext \
  19976. conftest$ac_exeext conftest.$ac_ext
  19977. LIBS=$ac_check_lib_save_LIBS
  19978. fi
  19979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1l" >&5
  19980. $as_echo "$ac_cv_lib_m_y1l" >&6; }
  19981. if test "x$ac_cv_lib_m_y1l" = x""yes; then :
  19982. $as_echo "#define HAVE_Y1L 1" >>confdefs.h
  19983. fi
  19984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5
  19985. $as_echo_n "checking for ynf in -lm... " >&6; }
  19986. if test "${ac_cv_lib_m_ynf+set}" = set; then :
  19987. $as_echo_n "(cached) " >&6
  19988. else
  19989. ac_check_lib_save_LIBS=$LIBS
  19990. LIBS="-lm $LIBS"
  19991. if test x$gcc_no_link = xyes; then
  19992. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19993. fi
  19994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19995. /* end confdefs.h. */
  19996. /* Override any GCC internal prototype to avoid an error.
  19997. Use char because int might match the return type of a GCC
  19998. builtin and then its argument prototype would still apply. */
  19999. #ifdef __cplusplus
  20000. extern "C"
  20001. #endif
  20002. char ynf ();
  20003. int
  20004. main ()
  20005. {
  20006. return ynf ();
  20007. ;
  20008. return 0;
  20009. }
  20010. _ACEOF
  20011. if ac_fn_c_try_link "$LINENO"; then :
  20012. ac_cv_lib_m_ynf=yes
  20013. else
  20014. ac_cv_lib_m_ynf=no
  20015. fi
  20016. rm -f core conftest.err conftest.$ac_objext \
  20017. conftest$ac_exeext conftest.$ac_ext
  20018. LIBS=$ac_check_lib_save_LIBS
  20019. fi
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynf" >&5
  20021. $as_echo "$ac_cv_lib_m_ynf" >&6; }
  20022. if test "x$ac_cv_lib_m_ynf" = x""yes; then :
  20023. $as_echo "#define HAVE_YNF 1" >>confdefs.h
  20024. fi
  20025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5
  20026. $as_echo_n "checking for yn in -lm... " >&6; }
  20027. if test "${ac_cv_lib_m_yn+set}" = set; then :
  20028. $as_echo_n "(cached) " >&6
  20029. else
  20030. ac_check_lib_save_LIBS=$LIBS
  20031. LIBS="-lm $LIBS"
  20032. if test x$gcc_no_link = xyes; then
  20033. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20034. fi
  20035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20036. /* end confdefs.h. */
  20037. /* Override any GCC internal prototype to avoid an error.
  20038. Use char because int might match the return type of a GCC
  20039. builtin and then its argument prototype would still apply. */
  20040. #ifdef __cplusplus
  20041. extern "C"
  20042. #endif
  20043. char yn ();
  20044. int
  20045. main ()
  20046. {
  20047. return yn ();
  20048. ;
  20049. return 0;
  20050. }
  20051. _ACEOF
  20052. if ac_fn_c_try_link "$LINENO"; then :
  20053. ac_cv_lib_m_yn=yes
  20054. else
  20055. ac_cv_lib_m_yn=no
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext \
  20058. conftest$ac_exeext conftest.$ac_ext
  20059. LIBS=$ac_check_lib_save_LIBS
  20060. fi
  20061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_yn" >&5
  20062. $as_echo "$ac_cv_lib_m_yn" >&6; }
  20063. if test "x$ac_cv_lib_m_yn" = x""yes; then :
  20064. $as_echo "#define HAVE_YN 1" >>confdefs.h
  20065. fi
  20066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5
  20067. $as_echo_n "checking for ynl in -lm... " >&6; }
  20068. if test "${ac_cv_lib_m_ynl+set}" = set; then :
  20069. $as_echo_n "(cached) " >&6
  20070. else
  20071. ac_check_lib_save_LIBS=$LIBS
  20072. LIBS="-lm $LIBS"
  20073. if test x$gcc_no_link = xyes; then
  20074. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20075. fi
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. /* Override any GCC internal prototype to avoid an error.
  20079. Use char because int might match the return type of a GCC
  20080. builtin and then its argument prototype would still apply. */
  20081. #ifdef __cplusplus
  20082. extern "C"
  20083. #endif
  20084. char ynl ();
  20085. int
  20086. main ()
  20087. {
  20088. return ynl ();
  20089. ;
  20090. return 0;
  20091. }
  20092. _ACEOF
  20093. if ac_fn_c_try_link "$LINENO"; then :
  20094. ac_cv_lib_m_ynl=yes
  20095. else
  20096. ac_cv_lib_m_ynl=no
  20097. fi
  20098. rm -f core conftest.err conftest.$ac_objext \
  20099. conftest$ac_exeext conftest.$ac_ext
  20100. LIBS=$ac_check_lib_save_LIBS
  20101. fi
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynl" >&5
  20103. $as_echo "$ac_cv_lib_m_ynl" >&6; }
  20104. if test "x$ac_cv_lib_m_ynl" = x""yes; then :
  20105. $as_echo "#define HAVE_YNL 1" >>confdefs.h
  20106. fi
  20107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5
  20108. $as_echo_n "checking for tgamma in -lm... " >&6; }
  20109. if test "${ac_cv_lib_m_tgamma+set}" = set; then :
  20110. $as_echo_n "(cached) " >&6
  20111. else
  20112. ac_check_lib_save_LIBS=$LIBS
  20113. LIBS="-lm $LIBS"
  20114. if test x$gcc_no_link = xyes; then
  20115. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20116. fi
  20117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20118. /* end confdefs.h. */
  20119. /* Override any GCC internal prototype to avoid an error.
  20120. Use char because int might match the return type of a GCC
  20121. builtin and then its argument prototype would still apply. */
  20122. #ifdef __cplusplus
  20123. extern "C"
  20124. #endif
  20125. char tgamma ();
  20126. int
  20127. main ()
  20128. {
  20129. return tgamma ();
  20130. ;
  20131. return 0;
  20132. }
  20133. _ACEOF
  20134. if ac_fn_c_try_link "$LINENO"; then :
  20135. ac_cv_lib_m_tgamma=yes
  20136. else
  20137. ac_cv_lib_m_tgamma=no
  20138. fi
  20139. rm -f core conftest.err conftest.$ac_objext \
  20140. conftest$ac_exeext conftest.$ac_ext
  20141. LIBS=$ac_check_lib_save_LIBS
  20142. fi
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgamma" >&5
  20144. $as_echo "$ac_cv_lib_m_tgamma" >&6; }
  20145. if test "x$ac_cv_lib_m_tgamma" = x""yes; then :
  20146. $as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
  20147. fi
  20148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5
  20149. $as_echo_n "checking for tgammaf in -lm... " >&6; }
  20150. if test "${ac_cv_lib_m_tgammaf+set}" = set; then :
  20151. $as_echo_n "(cached) " >&6
  20152. else
  20153. ac_check_lib_save_LIBS=$LIBS
  20154. LIBS="-lm $LIBS"
  20155. if test x$gcc_no_link = xyes; then
  20156. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20157. fi
  20158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20159. /* end confdefs.h. */
  20160. /* Override any GCC internal prototype to avoid an error.
  20161. Use char because int might match the return type of a GCC
  20162. builtin and then its argument prototype would still apply. */
  20163. #ifdef __cplusplus
  20164. extern "C"
  20165. #endif
  20166. char tgammaf ();
  20167. int
  20168. main ()
  20169. {
  20170. return tgammaf ();
  20171. ;
  20172. return 0;
  20173. }
  20174. _ACEOF
  20175. if ac_fn_c_try_link "$LINENO"; then :
  20176. ac_cv_lib_m_tgammaf=yes
  20177. else
  20178. ac_cv_lib_m_tgammaf=no
  20179. fi
  20180. rm -f core conftest.err conftest.$ac_objext \
  20181. conftest$ac_exeext conftest.$ac_ext
  20182. LIBS=$ac_check_lib_save_LIBS
  20183. fi
  20184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammaf" >&5
  20185. $as_echo "$ac_cv_lib_m_tgammaf" >&6; }
  20186. if test "x$ac_cv_lib_m_tgammaf" = x""yes; then :
  20187. $as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
  20188. fi
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5
  20190. $as_echo_n "checking for tgammal in -lm... " >&6; }
  20191. if test "${ac_cv_lib_m_tgammal+set}" = set; then :
  20192. $as_echo_n "(cached) " >&6
  20193. else
  20194. ac_check_lib_save_LIBS=$LIBS
  20195. LIBS="-lm $LIBS"
  20196. if test x$gcc_no_link = xyes; then
  20197. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20198. fi
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. /* Override any GCC internal prototype to avoid an error.
  20202. Use char because int might match the return type of a GCC
  20203. builtin and then its argument prototype would still apply. */
  20204. #ifdef __cplusplus
  20205. extern "C"
  20206. #endif
  20207. char tgammal ();
  20208. int
  20209. main ()
  20210. {
  20211. return tgammal ();
  20212. ;
  20213. return 0;
  20214. }
  20215. _ACEOF
  20216. if ac_fn_c_try_link "$LINENO"; then :
  20217. ac_cv_lib_m_tgammal=yes
  20218. else
  20219. ac_cv_lib_m_tgammal=no
  20220. fi
  20221. rm -f core conftest.err conftest.$ac_objext \
  20222. conftest$ac_exeext conftest.$ac_ext
  20223. LIBS=$ac_check_lib_save_LIBS
  20224. fi
  20225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammal" >&5
  20226. $as_echo "$ac_cv_lib_m_tgammal" >&6; }
  20227. if test "x$ac_cv_lib_m_tgammal" = x""yes; then :
  20228. $as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
  20229. fi
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5
  20231. $as_echo_n "checking for lgamma in -lm... " >&6; }
  20232. if test "${ac_cv_lib_m_lgamma+set}" = set; then :
  20233. $as_echo_n "(cached) " >&6
  20234. else
  20235. ac_check_lib_save_LIBS=$LIBS
  20236. LIBS="-lm $LIBS"
  20237. if test x$gcc_no_link = xyes; then
  20238. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20239. fi
  20240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20241. /* end confdefs.h. */
  20242. /* Override any GCC internal prototype to avoid an error.
  20243. Use char because int might match the return type of a GCC
  20244. builtin and then its argument prototype would still apply. */
  20245. #ifdef __cplusplus
  20246. extern "C"
  20247. #endif
  20248. char lgamma ();
  20249. int
  20250. main ()
  20251. {
  20252. return lgamma ();
  20253. ;
  20254. return 0;
  20255. }
  20256. _ACEOF
  20257. if ac_fn_c_try_link "$LINENO"; then :
  20258. ac_cv_lib_m_lgamma=yes
  20259. else
  20260. ac_cv_lib_m_lgamma=no
  20261. fi
  20262. rm -f core conftest.err conftest.$ac_objext \
  20263. conftest$ac_exeext conftest.$ac_ext
  20264. LIBS=$ac_check_lib_save_LIBS
  20265. fi
  20266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgamma" >&5
  20267. $as_echo "$ac_cv_lib_m_lgamma" >&6; }
  20268. if test "x$ac_cv_lib_m_lgamma" = x""yes; then :
  20269. $as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
  20270. fi
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5
  20272. $as_echo_n "checking for lgammaf in -lm... " >&6; }
  20273. if test "${ac_cv_lib_m_lgammaf+set}" = set; then :
  20274. $as_echo_n "(cached) " >&6
  20275. else
  20276. ac_check_lib_save_LIBS=$LIBS
  20277. LIBS="-lm $LIBS"
  20278. if test x$gcc_no_link = xyes; then
  20279. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20280. fi
  20281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20282. /* end confdefs.h. */
  20283. /* Override any GCC internal prototype to avoid an error.
  20284. Use char because int might match the return type of a GCC
  20285. builtin and then its argument prototype would still apply. */
  20286. #ifdef __cplusplus
  20287. extern "C"
  20288. #endif
  20289. char lgammaf ();
  20290. int
  20291. main ()
  20292. {
  20293. return lgammaf ();
  20294. ;
  20295. return 0;
  20296. }
  20297. _ACEOF
  20298. if ac_fn_c_try_link "$LINENO"; then :
  20299. ac_cv_lib_m_lgammaf=yes
  20300. else
  20301. ac_cv_lib_m_lgammaf=no
  20302. fi
  20303. rm -f core conftest.err conftest.$ac_objext \
  20304. conftest$ac_exeext conftest.$ac_ext
  20305. LIBS=$ac_check_lib_save_LIBS
  20306. fi
  20307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammaf" >&5
  20308. $as_echo "$ac_cv_lib_m_lgammaf" >&6; }
  20309. if test "x$ac_cv_lib_m_lgammaf" = x""yes; then :
  20310. $as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
  20311. fi
  20312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5
  20313. $as_echo_n "checking for lgammal in -lm... " >&6; }
  20314. if test "${ac_cv_lib_m_lgammal+set}" = set; then :
  20315. $as_echo_n "(cached) " >&6
  20316. else
  20317. ac_check_lib_save_LIBS=$LIBS
  20318. LIBS="-lm $LIBS"
  20319. if test x$gcc_no_link = xyes; then
  20320. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20321. fi
  20322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20323. /* end confdefs.h. */
  20324. /* Override any GCC internal prototype to avoid an error.
  20325. Use char because int might match the return type of a GCC
  20326. builtin and then its argument prototype would still apply. */
  20327. #ifdef __cplusplus
  20328. extern "C"
  20329. #endif
  20330. char lgammal ();
  20331. int
  20332. main ()
  20333. {
  20334. return lgammal ();
  20335. ;
  20336. return 0;
  20337. }
  20338. _ACEOF
  20339. if ac_fn_c_try_link "$LINENO"; then :
  20340. ac_cv_lib_m_lgammal=yes
  20341. else
  20342. ac_cv_lib_m_lgammal=no
  20343. fi
  20344. rm -f core conftest.err conftest.$ac_objext \
  20345. conftest$ac_exeext conftest.$ac_ext
  20346. LIBS=$ac_check_lib_save_LIBS
  20347. fi
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammal" >&5
  20349. $as_echo "$ac_cv_lib_m_lgammal" >&6; }
  20350. if test "x$ac_cv_lib_m_lgammal" = x""yes; then :
  20351. $as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
  20352. fi
  20353. # Check for GFORTRAN_C99_1.1 funcs
  20354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5
  20355. $as_echo_n "checking for cacos in -lm... " >&6; }
  20356. if test "${ac_cv_lib_m_cacos+set}" = set; then :
  20357. $as_echo_n "(cached) " >&6
  20358. else
  20359. ac_check_lib_save_LIBS=$LIBS
  20360. LIBS="-lm $LIBS"
  20361. if test x$gcc_no_link = xyes; then
  20362. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20363. fi
  20364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20365. /* end confdefs.h. */
  20366. /* Override any GCC internal prototype to avoid an error.
  20367. Use char because int might match the return type of a GCC
  20368. builtin and then its argument prototype would still apply. */
  20369. #ifdef __cplusplus
  20370. extern "C"
  20371. #endif
  20372. char cacos ();
  20373. int
  20374. main ()
  20375. {
  20376. return cacos ();
  20377. ;
  20378. return 0;
  20379. }
  20380. _ACEOF
  20381. if ac_fn_c_try_link "$LINENO"; then :
  20382. ac_cv_lib_m_cacos=yes
  20383. else
  20384. ac_cv_lib_m_cacos=no
  20385. fi
  20386. rm -f core conftest.err conftest.$ac_objext \
  20387. conftest$ac_exeext conftest.$ac_ext
  20388. LIBS=$ac_check_lib_save_LIBS
  20389. fi
  20390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5
  20391. $as_echo "$ac_cv_lib_m_cacos" >&6; }
  20392. if test "x$ac_cv_lib_m_cacos" = x""yes; then :
  20393. $as_echo "#define HAVE_CACOS 1" >>confdefs.h
  20394. fi
  20395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5
  20396. $as_echo_n "checking for cacosf in -lm... " >&6; }
  20397. if test "${ac_cv_lib_m_cacosf+set}" = set; then :
  20398. $as_echo_n "(cached) " >&6
  20399. else
  20400. ac_check_lib_save_LIBS=$LIBS
  20401. LIBS="-lm $LIBS"
  20402. if test x$gcc_no_link = xyes; then
  20403. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20404. fi
  20405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20406. /* end confdefs.h. */
  20407. /* Override any GCC internal prototype to avoid an error.
  20408. Use char because int might match the return type of a GCC
  20409. builtin and then its argument prototype would still apply. */
  20410. #ifdef __cplusplus
  20411. extern "C"
  20412. #endif
  20413. char cacosf ();
  20414. int
  20415. main ()
  20416. {
  20417. return cacosf ();
  20418. ;
  20419. return 0;
  20420. }
  20421. _ACEOF
  20422. if ac_fn_c_try_link "$LINENO"; then :
  20423. ac_cv_lib_m_cacosf=yes
  20424. else
  20425. ac_cv_lib_m_cacosf=no
  20426. fi
  20427. rm -f core conftest.err conftest.$ac_objext \
  20428. conftest$ac_exeext conftest.$ac_ext
  20429. LIBS=$ac_check_lib_save_LIBS
  20430. fi
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5
  20432. $as_echo "$ac_cv_lib_m_cacosf" >&6; }
  20433. if test "x$ac_cv_lib_m_cacosf" = x""yes; then :
  20434. $as_echo "#define HAVE_CACOSF 1" >>confdefs.h
  20435. fi
  20436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5
  20437. $as_echo_n "checking for cacosh in -lm... " >&6; }
  20438. if test "${ac_cv_lib_m_cacosh+set}" = set; then :
  20439. $as_echo_n "(cached) " >&6
  20440. else
  20441. ac_check_lib_save_LIBS=$LIBS
  20442. LIBS="-lm $LIBS"
  20443. if test x$gcc_no_link = xyes; then
  20444. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20445. fi
  20446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20447. /* end confdefs.h. */
  20448. /* Override any GCC internal prototype to avoid an error.
  20449. Use char because int might match the return type of a GCC
  20450. builtin and then its argument prototype would still apply. */
  20451. #ifdef __cplusplus
  20452. extern "C"
  20453. #endif
  20454. char cacosh ();
  20455. int
  20456. main ()
  20457. {
  20458. return cacosh ();
  20459. ;
  20460. return 0;
  20461. }
  20462. _ACEOF
  20463. if ac_fn_c_try_link "$LINENO"; then :
  20464. ac_cv_lib_m_cacosh=yes
  20465. else
  20466. ac_cv_lib_m_cacosh=no
  20467. fi
  20468. rm -f core conftest.err conftest.$ac_objext \
  20469. conftest$ac_exeext conftest.$ac_ext
  20470. LIBS=$ac_check_lib_save_LIBS
  20471. fi
  20472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5
  20473. $as_echo "$ac_cv_lib_m_cacosh" >&6; }
  20474. if test "x$ac_cv_lib_m_cacosh" = x""yes; then :
  20475. $as_echo "#define HAVE_CACOSH 1" >>confdefs.h
  20476. fi
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5
  20478. $as_echo_n "checking for cacoshf in -lm... " >&6; }
  20479. if test "${ac_cv_lib_m_cacoshf+set}" = set; then :
  20480. $as_echo_n "(cached) " >&6
  20481. else
  20482. ac_check_lib_save_LIBS=$LIBS
  20483. LIBS="-lm $LIBS"
  20484. if test x$gcc_no_link = xyes; then
  20485. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20486. fi
  20487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20488. /* end confdefs.h. */
  20489. /* Override any GCC internal prototype to avoid an error.
  20490. Use char because int might match the return type of a GCC
  20491. builtin and then its argument prototype would still apply. */
  20492. #ifdef __cplusplus
  20493. extern "C"
  20494. #endif
  20495. char cacoshf ();
  20496. int
  20497. main ()
  20498. {
  20499. return cacoshf ();
  20500. ;
  20501. return 0;
  20502. }
  20503. _ACEOF
  20504. if ac_fn_c_try_link "$LINENO"; then :
  20505. ac_cv_lib_m_cacoshf=yes
  20506. else
  20507. ac_cv_lib_m_cacoshf=no
  20508. fi
  20509. rm -f core conftest.err conftest.$ac_objext \
  20510. conftest$ac_exeext conftest.$ac_ext
  20511. LIBS=$ac_check_lib_save_LIBS
  20512. fi
  20513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5
  20514. $as_echo "$ac_cv_lib_m_cacoshf" >&6; }
  20515. if test "x$ac_cv_lib_m_cacoshf" = x""yes; then :
  20516. $as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
  20517. fi
  20518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5
  20519. $as_echo_n "checking for cacoshl in -lm... " >&6; }
  20520. if test "${ac_cv_lib_m_cacoshl+set}" = set; then :
  20521. $as_echo_n "(cached) " >&6
  20522. else
  20523. ac_check_lib_save_LIBS=$LIBS
  20524. LIBS="-lm $LIBS"
  20525. if test x$gcc_no_link = xyes; then
  20526. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20527. fi
  20528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20529. /* end confdefs.h. */
  20530. /* Override any GCC internal prototype to avoid an error.
  20531. Use char because int might match the return type of a GCC
  20532. builtin and then its argument prototype would still apply. */
  20533. #ifdef __cplusplus
  20534. extern "C"
  20535. #endif
  20536. char cacoshl ();
  20537. int
  20538. main ()
  20539. {
  20540. return cacoshl ();
  20541. ;
  20542. return 0;
  20543. }
  20544. _ACEOF
  20545. if ac_fn_c_try_link "$LINENO"; then :
  20546. ac_cv_lib_m_cacoshl=yes
  20547. else
  20548. ac_cv_lib_m_cacoshl=no
  20549. fi
  20550. rm -f core conftest.err conftest.$ac_objext \
  20551. conftest$ac_exeext conftest.$ac_ext
  20552. LIBS=$ac_check_lib_save_LIBS
  20553. fi
  20554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5
  20555. $as_echo "$ac_cv_lib_m_cacoshl" >&6; }
  20556. if test "x$ac_cv_lib_m_cacoshl" = x""yes; then :
  20557. $as_echo "#define HAVE_CACOSHL 1" >>confdefs.h
  20558. fi
  20559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5
  20560. $as_echo_n "checking for cacosl in -lm... " >&6; }
  20561. if test "${ac_cv_lib_m_cacosl+set}" = set; then :
  20562. $as_echo_n "(cached) " >&6
  20563. else
  20564. ac_check_lib_save_LIBS=$LIBS
  20565. LIBS="-lm $LIBS"
  20566. if test x$gcc_no_link = xyes; then
  20567. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20568. fi
  20569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20570. /* end confdefs.h. */
  20571. /* Override any GCC internal prototype to avoid an error.
  20572. Use char because int might match the return type of a GCC
  20573. builtin and then its argument prototype would still apply. */
  20574. #ifdef __cplusplus
  20575. extern "C"
  20576. #endif
  20577. char cacosl ();
  20578. int
  20579. main ()
  20580. {
  20581. return cacosl ();
  20582. ;
  20583. return 0;
  20584. }
  20585. _ACEOF
  20586. if ac_fn_c_try_link "$LINENO"; then :
  20587. ac_cv_lib_m_cacosl=yes
  20588. else
  20589. ac_cv_lib_m_cacosl=no
  20590. fi
  20591. rm -f core conftest.err conftest.$ac_objext \
  20592. conftest$ac_exeext conftest.$ac_ext
  20593. LIBS=$ac_check_lib_save_LIBS
  20594. fi
  20595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5
  20596. $as_echo "$ac_cv_lib_m_cacosl" >&6; }
  20597. if test "x$ac_cv_lib_m_cacosl" = x""yes; then :
  20598. $as_echo "#define HAVE_CACOSL 1" >>confdefs.h
  20599. fi
  20600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5
  20601. $as_echo_n "checking for casin in -lm... " >&6; }
  20602. if test "${ac_cv_lib_m_casin+set}" = set; then :
  20603. $as_echo_n "(cached) " >&6
  20604. else
  20605. ac_check_lib_save_LIBS=$LIBS
  20606. LIBS="-lm $LIBS"
  20607. if test x$gcc_no_link = xyes; then
  20608. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20609. fi
  20610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20611. /* end confdefs.h. */
  20612. /* Override any GCC internal prototype to avoid an error.
  20613. Use char because int might match the return type of a GCC
  20614. builtin and then its argument prototype would still apply. */
  20615. #ifdef __cplusplus
  20616. extern "C"
  20617. #endif
  20618. char casin ();
  20619. int
  20620. main ()
  20621. {
  20622. return casin ();
  20623. ;
  20624. return 0;
  20625. }
  20626. _ACEOF
  20627. if ac_fn_c_try_link "$LINENO"; then :
  20628. ac_cv_lib_m_casin=yes
  20629. else
  20630. ac_cv_lib_m_casin=no
  20631. fi
  20632. rm -f core conftest.err conftest.$ac_objext \
  20633. conftest$ac_exeext conftest.$ac_ext
  20634. LIBS=$ac_check_lib_save_LIBS
  20635. fi
  20636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5
  20637. $as_echo "$ac_cv_lib_m_casin" >&6; }
  20638. if test "x$ac_cv_lib_m_casin" = x""yes; then :
  20639. $as_echo "#define HAVE_CASIN 1" >>confdefs.h
  20640. fi
  20641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5
  20642. $as_echo_n "checking for casinf in -lm... " >&6; }
  20643. if test "${ac_cv_lib_m_casinf+set}" = set; then :
  20644. $as_echo_n "(cached) " >&6
  20645. else
  20646. ac_check_lib_save_LIBS=$LIBS
  20647. LIBS="-lm $LIBS"
  20648. if test x$gcc_no_link = xyes; then
  20649. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20650. fi
  20651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20652. /* end confdefs.h. */
  20653. /* Override any GCC internal prototype to avoid an error.
  20654. Use char because int might match the return type of a GCC
  20655. builtin and then its argument prototype would still apply. */
  20656. #ifdef __cplusplus
  20657. extern "C"
  20658. #endif
  20659. char casinf ();
  20660. int
  20661. main ()
  20662. {
  20663. return casinf ();
  20664. ;
  20665. return 0;
  20666. }
  20667. _ACEOF
  20668. if ac_fn_c_try_link "$LINENO"; then :
  20669. ac_cv_lib_m_casinf=yes
  20670. else
  20671. ac_cv_lib_m_casinf=no
  20672. fi
  20673. rm -f core conftest.err conftest.$ac_objext \
  20674. conftest$ac_exeext conftest.$ac_ext
  20675. LIBS=$ac_check_lib_save_LIBS
  20676. fi
  20677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5
  20678. $as_echo "$ac_cv_lib_m_casinf" >&6; }
  20679. if test "x$ac_cv_lib_m_casinf" = x""yes; then :
  20680. $as_echo "#define HAVE_CASINF 1" >>confdefs.h
  20681. fi
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5
  20683. $as_echo_n "checking for casinh in -lm... " >&6; }
  20684. if test "${ac_cv_lib_m_casinh+set}" = set; then :
  20685. $as_echo_n "(cached) " >&6
  20686. else
  20687. ac_check_lib_save_LIBS=$LIBS
  20688. LIBS="-lm $LIBS"
  20689. if test x$gcc_no_link = xyes; then
  20690. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20691. fi
  20692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20693. /* end confdefs.h. */
  20694. /* Override any GCC internal prototype to avoid an error.
  20695. Use char because int might match the return type of a GCC
  20696. builtin and then its argument prototype would still apply. */
  20697. #ifdef __cplusplus
  20698. extern "C"
  20699. #endif
  20700. char casinh ();
  20701. int
  20702. main ()
  20703. {
  20704. return casinh ();
  20705. ;
  20706. return 0;
  20707. }
  20708. _ACEOF
  20709. if ac_fn_c_try_link "$LINENO"; then :
  20710. ac_cv_lib_m_casinh=yes
  20711. else
  20712. ac_cv_lib_m_casinh=no
  20713. fi
  20714. rm -f core conftest.err conftest.$ac_objext \
  20715. conftest$ac_exeext conftest.$ac_ext
  20716. LIBS=$ac_check_lib_save_LIBS
  20717. fi
  20718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5
  20719. $as_echo "$ac_cv_lib_m_casinh" >&6; }
  20720. if test "x$ac_cv_lib_m_casinh" = x""yes; then :
  20721. $as_echo "#define HAVE_CASINH 1" >>confdefs.h
  20722. fi
  20723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5
  20724. $as_echo_n "checking for casinhf in -lm... " >&6; }
  20725. if test "${ac_cv_lib_m_casinhf+set}" = set; then :
  20726. $as_echo_n "(cached) " >&6
  20727. else
  20728. ac_check_lib_save_LIBS=$LIBS
  20729. LIBS="-lm $LIBS"
  20730. if test x$gcc_no_link = xyes; then
  20731. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20732. fi
  20733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20734. /* end confdefs.h. */
  20735. /* Override any GCC internal prototype to avoid an error.
  20736. Use char because int might match the return type of a GCC
  20737. builtin and then its argument prototype would still apply. */
  20738. #ifdef __cplusplus
  20739. extern "C"
  20740. #endif
  20741. char casinhf ();
  20742. int
  20743. main ()
  20744. {
  20745. return casinhf ();
  20746. ;
  20747. return 0;
  20748. }
  20749. _ACEOF
  20750. if ac_fn_c_try_link "$LINENO"; then :
  20751. ac_cv_lib_m_casinhf=yes
  20752. else
  20753. ac_cv_lib_m_casinhf=no
  20754. fi
  20755. rm -f core conftest.err conftest.$ac_objext \
  20756. conftest$ac_exeext conftest.$ac_ext
  20757. LIBS=$ac_check_lib_save_LIBS
  20758. fi
  20759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5
  20760. $as_echo "$ac_cv_lib_m_casinhf" >&6; }
  20761. if test "x$ac_cv_lib_m_casinhf" = x""yes; then :
  20762. $as_echo "#define HAVE_CASINHF 1" >>confdefs.h
  20763. fi
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5
  20765. $as_echo_n "checking for casinhl in -lm... " >&6; }
  20766. if test "${ac_cv_lib_m_casinhl+set}" = set; then :
  20767. $as_echo_n "(cached) " >&6
  20768. else
  20769. ac_check_lib_save_LIBS=$LIBS
  20770. LIBS="-lm $LIBS"
  20771. if test x$gcc_no_link = xyes; then
  20772. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20773. fi
  20774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20775. /* end confdefs.h. */
  20776. /* Override any GCC internal prototype to avoid an error.
  20777. Use char because int might match the return type of a GCC
  20778. builtin and then its argument prototype would still apply. */
  20779. #ifdef __cplusplus
  20780. extern "C"
  20781. #endif
  20782. char casinhl ();
  20783. int
  20784. main ()
  20785. {
  20786. return casinhl ();
  20787. ;
  20788. return 0;
  20789. }
  20790. _ACEOF
  20791. if ac_fn_c_try_link "$LINENO"; then :
  20792. ac_cv_lib_m_casinhl=yes
  20793. else
  20794. ac_cv_lib_m_casinhl=no
  20795. fi
  20796. rm -f core conftest.err conftest.$ac_objext \
  20797. conftest$ac_exeext conftest.$ac_ext
  20798. LIBS=$ac_check_lib_save_LIBS
  20799. fi
  20800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5
  20801. $as_echo "$ac_cv_lib_m_casinhl" >&6; }
  20802. if test "x$ac_cv_lib_m_casinhl" = x""yes; then :
  20803. $as_echo "#define HAVE_CASINHL 1" >>confdefs.h
  20804. fi
  20805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5
  20806. $as_echo_n "checking for casinl in -lm... " >&6; }
  20807. if test "${ac_cv_lib_m_casinl+set}" = set; then :
  20808. $as_echo_n "(cached) " >&6
  20809. else
  20810. ac_check_lib_save_LIBS=$LIBS
  20811. LIBS="-lm $LIBS"
  20812. if test x$gcc_no_link = xyes; then
  20813. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20814. fi
  20815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20816. /* end confdefs.h. */
  20817. /* Override any GCC internal prototype to avoid an error.
  20818. Use char because int might match the return type of a GCC
  20819. builtin and then its argument prototype would still apply. */
  20820. #ifdef __cplusplus
  20821. extern "C"
  20822. #endif
  20823. char casinl ();
  20824. int
  20825. main ()
  20826. {
  20827. return casinl ();
  20828. ;
  20829. return 0;
  20830. }
  20831. _ACEOF
  20832. if ac_fn_c_try_link "$LINENO"; then :
  20833. ac_cv_lib_m_casinl=yes
  20834. else
  20835. ac_cv_lib_m_casinl=no
  20836. fi
  20837. rm -f core conftest.err conftest.$ac_objext \
  20838. conftest$ac_exeext conftest.$ac_ext
  20839. LIBS=$ac_check_lib_save_LIBS
  20840. fi
  20841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5
  20842. $as_echo "$ac_cv_lib_m_casinl" >&6; }
  20843. if test "x$ac_cv_lib_m_casinl" = x""yes; then :
  20844. $as_echo "#define HAVE_CASINL 1" >>confdefs.h
  20845. fi
  20846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5
  20847. $as_echo_n "checking for catan in -lm... " >&6; }
  20848. if test "${ac_cv_lib_m_catan+set}" = set; then :
  20849. $as_echo_n "(cached) " >&6
  20850. else
  20851. ac_check_lib_save_LIBS=$LIBS
  20852. LIBS="-lm $LIBS"
  20853. if test x$gcc_no_link = xyes; then
  20854. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20855. fi
  20856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20857. /* end confdefs.h. */
  20858. /* Override any GCC internal prototype to avoid an error.
  20859. Use char because int might match the return type of a GCC
  20860. builtin and then its argument prototype would still apply. */
  20861. #ifdef __cplusplus
  20862. extern "C"
  20863. #endif
  20864. char catan ();
  20865. int
  20866. main ()
  20867. {
  20868. return catan ();
  20869. ;
  20870. return 0;
  20871. }
  20872. _ACEOF
  20873. if ac_fn_c_try_link "$LINENO"; then :
  20874. ac_cv_lib_m_catan=yes
  20875. else
  20876. ac_cv_lib_m_catan=no
  20877. fi
  20878. rm -f core conftest.err conftest.$ac_objext \
  20879. conftest$ac_exeext conftest.$ac_ext
  20880. LIBS=$ac_check_lib_save_LIBS
  20881. fi
  20882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5
  20883. $as_echo "$ac_cv_lib_m_catan" >&6; }
  20884. if test "x$ac_cv_lib_m_catan" = x""yes; then :
  20885. $as_echo "#define HAVE_CATAN 1" >>confdefs.h
  20886. fi
  20887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5
  20888. $as_echo_n "checking for catanf in -lm... " >&6; }
  20889. if test "${ac_cv_lib_m_catanf+set}" = set; then :
  20890. $as_echo_n "(cached) " >&6
  20891. else
  20892. ac_check_lib_save_LIBS=$LIBS
  20893. LIBS="-lm $LIBS"
  20894. if test x$gcc_no_link = xyes; then
  20895. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20896. fi
  20897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20898. /* end confdefs.h. */
  20899. /* Override any GCC internal prototype to avoid an error.
  20900. Use char because int might match the return type of a GCC
  20901. builtin and then its argument prototype would still apply. */
  20902. #ifdef __cplusplus
  20903. extern "C"
  20904. #endif
  20905. char catanf ();
  20906. int
  20907. main ()
  20908. {
  20909. return catanf ();
  20910. ;
  20911. return 0;
  20912. }
  20913. _ACEOF
  20914. if ac_fn_c_try_link "$LINENO"; then :
  20915. ac_cv_lib_m_catanf=yes
  20916. else
  20917. ac_cv_lib_m_catanf=no
  20918. fi
  20919. rm -f core conftest.err conftest.$ac_objext \
  20920. conftest$ac_exeext conftest.$ac_ext
  20921. LIBS=$ac_check_lib_save_LIBS
  20922. fi
  20923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5
  20924. $as_echo "$ac_cv_lib_m_catanf" >&6; }
  20925. if test "x$ac_cv_lib_m_catanf" = x""yes; then :
  20926. $as_echo "#define HAVE_CATANF 1" >>confdefs.h
  20927. fi
  20928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5
  20929. $as_echo_n "checking for catanh in -lm... " >&6; }
  20930. if test "${ac_cv_lib_m_catanh+set}" = set; then :
  20931. $as_echo_n "(cached) " >&6
  20932. else
  20933. ac_check_lib_save_LIBS=$LIBS
  20934. LIBS="-lm $LIBS"
  20935. if test x$gcc_no_link = xyes; then
  20936. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20937. fi
  20938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20939. /* end confdefs.h. */
  20940. /* Override any GCC internal prototype to avoid an error.
  20941. Use char because int might match the return type of a GCC
  20942. builtin and then its argument prototype would still apply. */
  20943. #ifdef __cplusplus
  20944. extern "C"
  20945. #endif
  20946. char catanh ();
  20947. int
  20948. main ()
  20949. {
  20950. return catanh ();
  20951. ;
  20952. return 0;
  20953. }
  20954. _ACEOF
  20955. if ac_fn_c_try_link "$LINENO"; then :
  20956. ac_cv_lib_m_catanh=yes
  20957. else
  20958. ac_cv_lib_m_catanh=no
  20959. fi
  20960. rm -f core conftest.err conftest.$ac_objext \
  20961. conftest$ac_exeext conftest.$ac_ext
  20962. LIBS=$ac_check_lib_save_LIBS
  20963. fi
  20964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5
  20965. $as_echo "$ac_cv_lib_m_catanh" >&6; }
  20966. if test "x$ac_cv_lib_m_catanh" = x""yes; then :
  20967. $as_echo "#define HAVE_CATANH 1" >>confdefs.h
  20968. fi
  20969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5
  20970. $as_echo_n "checking for catanhf in -lm... " >&6; }
  20971. if test "${ac_cv_lib_m_catanhf+set}" = set; then :
  20972. $as_echo_n "(cached) " >&6
  20973. else
  20974. ac_check_lib_save_LIBS=$LIBS
  20975. LIBS="-lm $LIBS"
  20976. if test x$gcc_no_link = xyes; then
  20977. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  20978. fi
  20979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20980. /* end confdefs.h. */
  20981. /* Override any GCC internal prototype to avoid an error.
  20982. Use char because int might match the return type of a GCC
  20983. builtin and then its argument prototype would still apply. */
  20984. #ifdef __cplusplus
  20985. extern "C"
  20986. #endif
  20987. char catanhf ();
  20988. int
  20989. main ()
  20990. {
  20991. return catanhf ();
  20992. ;
  20993. return 0;
  20994. }
  20995. _ACEOF
  20996. if ac_fn_c_try_link "$LINENO"; then :
  20997. ac_cv_lib_m_catanhf=yes
  20998. else
  20999. ac_cv_lib_m_catanhf=no
  21000. fi
  21001. rm -f core conftest.err conftest.$ac_objext \
  21002. conftest$ac_exeext conftest.$ac_ext
  21003. LIBS=$ac_check_lib_save_LIBS
  21004. fi
  21005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5
  21006. $as_echo "$ac_cv_lib_m_catanhf" >&6; }
  21007. if test "x$ac_cv_lib_m_catanhf" = x""yes; then :
  21008. $as_echo "#define HAVE_CATANHF 1" >>confdefs.h
  21009. fi
  21010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5
  21011. $as_echo_n "checking for catanhl in -lm... " >&6; }
  21012. if test "${ac_cv_lib_m_catanhl+set}" = set; then :
  21013. $as_echo_n "(cached) " >&6
  21014. else
  21015. ac_check_lib_save_LIBS=$LIBS
  21016. LIBS="-lm $LIBS"
  21017. if test x$gcc_no_link = xyes; then
  21018. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21019. fi
  21020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21021. /* end confdefs.h. */
  21022. /* Override any GCC internal prototype to avoid an error.
  21023. Use char because int might match the return type of a GCC
  21024. builtin and then its argument prototype would still apply. */
  21025. #ifdef __cplusplus
  21026. extern "C"
  21027. #endif
  21028. char catanhl ();
  21029. int
  21030. main ()
  21031. {
  21032. return catanhl ();
  21033. ;
  21034. return 0;
  21035. }
  21036. _ACEOF
  21037. if ac_fn_c_try_link "$LINENO"; then :
  21038. ac_cv_lib_m_catanhl=yes
  21039. else
  21040. ac_cv_lib_m_catanhl=no
  21041. fi
  21042. rm -f core conftest.err conftest.$ac_objext \
  21043. conftest$ac_exeext conftest.$ac_ext
  21044. LIBS=$ac_check_lib_save_LIBS
  21045. fi
  21046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5
  21047. $as_echo "$ac_cv_lib_m_catanhl" >&6; }
  21048. if test "x$ac_cv_lib_m_catanhl" = x""yes; then :
  21049. $as_echo "#define HAVE_CATANHL 1" >>confdefs.h
  21050. fi
  21051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5
  21052. $as_echo_n "checking for catanl in -lm... " >&6; }
  21053. if test "${ac_cv_lib_m_catanl+set}" = set; then :
  21054. $as_echo_n "(cached) " >&6
  21055. else
  21056. ac_check_lib_save_LIBS=$LIBS
  21057. LIBS="-lm $LIBS"
  21058. if test x$gcc_no_link = xyes; then
  21059. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21060. fi
  21061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21062. /* end confdefs.h. */
  21063. /* Override any GCC internal prototype to avoid an error.
  21064. Use char because int might match the return type of a GCC
  21065. builtin and then its argument prototype would still apply. */
  21066. #ifdef __cplusplus
  21067. extern "C"
  21068. #endif
  21069. char catanl ();
  21070. int
  21071. main ()
  21072. {
  21073. return catanl ();
  21074. ;
  21075. return 0;
  21076. }
  21077. _ACEOF
  21078. if ac_fn_c_try_link "$LINENO"; then :
  21079. ac_cv_lib_m_catanl=yes
  21080. else
  21081. ac_cv_lib_m_catanl=no
  21082. fi
  21083. rm -f core conftest.err conftest.$ac_objext \
  21084. conftest$ac_exeext conftest.$ac_ext
  21085. LIBS=$ac_check_lib_save_LIBS
  21086. fi
  21087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5
  21088. $as_echo "$ac_cv_lib_m_catanl" >&6; }
  21089. if test "x$ac_cv_lib_m_catanl" = x""yes; then :
  21090. $as_echo "#define HAVE_CATANL 1" >>confdefs.h
  21091. fi
  21092. # On AIX, clog is present in libm as __clog
  21093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
  21094. $as_echo_n "checking for __clog in -lm... " >&6; }
  21095. if test "${ac_cv_lib_m___clog+set}" = set; then :
  21096. $as_echo_n "(cached) " >&6
  21097. else
  21098. ac_check_lib_save_LIBS=$LIBS
  21099. LIBS="-lm $LIBS"
  21100. if test x$gcc_no_link = xyes; then
  21101. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21102. fi
  21103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21104. /* end confdefs.h. */
  21105. /* Override any GCC internal prototype to avoid an error.
  21106. Use char because int might match the return type of a GCC
  21107. builtin and then its argument prototype would still apply. */
  21108. #ifdef __cplusplus
  21109. extern "C"
  21110. #endif
  21111. char __clog ();
  21112. int
  21113. main ()
  21114. {
  21115. return __clog ();
  21116. ;
  21117. return 0;
  21118. }
  21119. _ACEOF
  21120. if ac_fn_c_try_link "$LINENO"; then :
  21121. ac_cv_lib_m___clog=yes
  21122. else
  21123. ac_cv_lib_m___clog=no
  21124. fi
  21125. rm -f core conftest.err conftest.$ac_objext \
  21126. conftest$ac_exeext conftest.$ac_ext
  21127. LIBS=$ac_check_lib_save_LIBS
  21128. fi
  21129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
  21130. $as_echo "$ac_cv_lib_m___clog" >&6; }
  21131. if test "x$ac_cv_lib_m___clog" = x""yes; then :
  21132. $as_echo "#define HAVE_CLOG 1" >>confdefs.h
  21133. fi
  21134. # Check for a isfinite macro that works on long doubles.
  21135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isfinite is broken" >&5
  21136. $as_echo_n "checking whether isfinite is broken... " >&6; }
  21137. if test "${libgfor_cv_have_broken_isfinite+set}" = set; then :
  21138. $as_echo_n "(cached) " >&6
  21139. else
  21140. libgfor_check_for_broken_isfinite_save_LIBS=$LIBS
  21141. LIBS="$LIBS -lm"
  21142. if test "$cross_compiling" = yes; then :
  21143. case "${target}" in
  21144. hppa*-*-hpux*) libgfor_cv_have_broken_isfinite=yes ;;
  21145. *) libgfor_cv_have_broken_isfinite=no ;;
  21146. esac
  21147. else
  21148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21149. /* end confdefs.h. */
  21150. #include <math.h>
  21151. #include <float.h>
  21152. int main ()
  21153. {
  21154. #ifdef isfinite
  21155. #ifdef LDBL_MAX
  21156. if (!isfinite(LDBL_MAX)) return 1;
  21157. #endif
  21158. #ifdef DBL_MAX
  21159. if (!isfinite(DBL_MAX)) return 1;
  21160. #endif
  21161. #endif
  21162. return 0;
  21163. }
  21164. _ACEOF
  21165. if ac_fn_c_try_run "$LINENO"; then :
  21166. libgfor_cv_have_broken_isfinite=no
  21167. else
  21168. libgfor_cv_have_broken_isfinite=yes
  21169. fi
  21170. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21171. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21172. fi
  21173. LIBS=$libgfor_check_for_broken_isfinite_save_LIBS
  21174. fi
  21175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_isfinite" >&5
  21176. $as_echo "$libgfor_cv_have_broken_isfinite" >&6; }
  21177. if test x"$libgfor_cv_have_broken_isfinite" = xyes; then
  21178. $as_echo "#define HAVE_BROKEN_ISFINITE 1" >>confdefs.h
  21179. fi
  21180. # Check for a isnan macro that works on long doubles.
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan is broken" >&5
  21182. $as_echo_n "checking whether isnan is broken... " >&6; }
  21183. if test "${libgfor_cv_have_broken_isnan+set}" = set; then :
  21184. $as_echo_n "(cached) " >&6
  21185. else
  21186. libgfor_check_for_broken_isnan_save_LIBS=$LIBS
  21187. LIBS="$LIBS -lm"
  21188. if test "$cross_compiling" = yes; then :
  21189. case "${target}" in
  21190. hppa*-*-hpux*) libgfor_cv_have_broken_isnan=yes ;;
  21191. *) libgfor_cv_have_broken_isnan=no ;;
  21192. esac
  21193. else
  21194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21195. /* end confdefs.h. */
  21196. #include <math.h>
  21197. #include <float.h>
  21198. int main ()
  21199. {
  21200. #ifdef isnan
  21201. #ifdef LDBL_MAX
  21202. {
  21203. long double x;
  21204. x = __builtin_nanl ("");
  21205. if (!isnan(x)) return 1;
  21206. if (isnan(LDBL_MAX)) return 1;
  21207. #ifdef NAN
  21208. x = (long double) NAN;
  21209. if (!isnan(x)) return 1;
  21210. #endif
  21211. }
  21212. #endif
  21213. #ifdef DBL_MAX
  21214. {
  21215. double y;
  21216. y = __builtin_nan ("");
  21217. if (!isnan(y)) return 1;
  21218. if (isnan(DBL_MAX)) return 1;
  21219. #ifdef NAN
  21220. y = (double) NAN;
  21221. if (!isnan(y)) return 1;
  21222. #endif
  21223. }
  21224. #endif
  21225. #endif
  21226. return 0;
  21227. }
  21228. _ACEOF
  21229. if ac_fn_c_try_run "$LINENO"; then :
  21230. libgfor_cv_have_broken_isnan=no
  21231. else
  21232. libgfor_cv_have_broken_isnan=yes
  21233. fi
  21234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21236. fi
  21237. LIBS=$libgfor_check_for_broken_isnan_save_LIBS
  21238. fi
  21239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_isnan" >&5
  21240. $as_echo "$libgfor_cv_have_broken_isnan" >&6; }
  21241. if test x"$libgfor_cv_have_broken_isnan" = xyes; then
  21242. $as_echo "#define HAVE_BROKEN_ISNAN 1" >>confdefs.h
  21243. fi
  21244. # Check for a fpclassify macro that works on long doubles.
  21245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpclassify is broken" >&5
  21246. $as_echo_n "checking whether fpclassify is broken... " >&6; }
  21247. if test "${libgfor_cv_have_broken_fpclassify+set}" = set; then :
  21248. $as_echo_n "(cached) " >&6
  21249. else
  21250. libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS
  21251. LIBS="$LIBS -lm"
  21252. if test "$cross_compiling" = yes; then :
  21253. case "${target}" in
  21254. hppa*-*-hpux*) libgfor_cv_have_broken_fpclassify=yes ;;
  21255. *) libgfor_cv_have_broken_fpclassify=no ;;
  21256. esac
  21257. else
  21258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21259. /* end confdefs.h. */
  21260. #include <math.h>
  21261. #include <float.h>
  21262. int main ()
  21263. {
  21264. #ifdef fpclassify
  21265. #ifdef LDBL_MAX
  21266. if (fpclassify(LDBL_MAX) == FP_NAN
  21267. || fpclassify(LDBL_MAX) == FP_INFINITE) return 1;
  21268. #endif
  21269. #ifdef DBL_MAX
  21270. if (fpclassify(DBL_MAX) == FP_NAN
  21271. || fpclassify(DBL_MAX) == FP_INFINITE) return 1;
  21272. #endif
  21273. #endif
  21274. return 0;
  21275. }
  21276. _ACEOF
  21277. if ac_fn_c_try_run "$LINENO"; then :
  21278. libgfor_cv_have_broken_fpclassify=no
  21279. else
  21280. libgfor_cv_have_broken_fpclassify=yes
  21281. fi
  21282. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21283. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21284. fi
  21285. LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS
  21286. fi
  21287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_fpclassify" >&5
  21288. $as_echo "$libgfor_cv_have_broken_fpclassify" >&6; }
  21289. if test x"$libgfor_cv_have_broken_fpclassify" = xyes; then
  21290. $as_echo "#define HAVE_BROKEN_FPCLASSIFY 1" >>confdefs.h
  21291. fi
  21292. # Check whether the system has a working stat()
  21293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
  21294. $as_echo_n "checking whether the target stat is reliable... " >&6; }
  21295. if test "${libgfor_cv_have_working_stat+set}" = set; then :
  21296. $as_echo_n "(cached) " >&6
  21297. else
  21298. if test "$cross_compiling" = yes; then :
  21299. case "${target}" in
  21300. *mingw*) libgfor_cv_have_working_stat=no ;;
  21301. *) libgfor_cv_have_working_stat=yes;;
  21302. esac
  21303. else
  21304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21305. /* end confdefs.h. */
  21306. #include <stdio.h>
  21307. #include <sys/types.h>
  21308. #include <sys/stat.h>
  21309. #include <unistd.h>
  21310. int main ()
  21311. {
  21312. FILE *f, *g;
  21313. struct stat st1, st2;
  21314. f = fopen ("foo", "w");
  21315. g = fopen ("bar", "w");
  21316. if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
  21317. return 1;
  21318. if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
  21319. return 1;
  21320. fclose(f);
  21321. fclose(g);
  21322. return 0;
  21323. }
  21324. _ACEOF
  21325. if ac_fn_c_try_run "$LINENO"; then :
  21326. libgfor_cv_have_working_stat=yes
  21327. else
  21328. libgfor_cv_have_working_stat=no
  21329. fi
  21330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21331. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21332. fi
  21333. fi
  21334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
  21335. $as_echo "$libgfor_cv_have_working_stat" >&6; }
  21336. if test x"$libgfor_cv_have_working_stat" = xyes; then
  21337. $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
  21338. fi
  21339. # Check whether __mingw_snprintf() is present
  21340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
  21341. $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
  21342. if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
  21343. $as_echo_n "(cached) " >&6
  21344. else
  21345. if test x$gcc_no_link = xyes; then
  21346. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21347. fi
  21348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21349. /* end confdefs.h. */
  21350. #include <stdio.h>
  21351. extern int __mingw_snprintf (char *, size_t, const char *, ...);
  21352. int
  21353. main ()
  21354. {
  21355. __mingw_snprintf (NULL, 0, "%d\n", 1);
  21356. ;
  21357. return 0;
  21358. }
  21359. _ACEOF
  21360. if ac_fn_c_try_link "$LINENO"; then :
  21361. eval "libgfor_cv_have_mingw_snprintf=yes"
  21362. else
  21363. eval "libgfor_cv_have_mingw_snprintf=no"
  21364. fi
  21365. rm -f core conftest.err conftest.$ac_objext \
  21366. conftest$ac_exeext conftest.$ac_ext
  21367. fi
  21368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
  21369. $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
  21370. if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
  21371. $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
  21372. fi
  21373. # Check for a broken powf implementation
  21374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
  21375. $as_echo_n "checking whether powf is broken... " >&6; }
  21376. if test "${libgfor_cv_have_broken_powf+set}" = set; then :
  21377. $as_echo_n "(cached) " >&6
  21378. else
  21379. case "${target}" in
  21380. hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
  21381. *) libgfor_cv_have_broken_powf=no;;
  21382. esac
  21383. fi
  21384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
  21385. $as_echo "$libgfor_cv_have_broken_powf" >&6; }
  21386. if test x"$libgfor_cv_have_broken_powf" = xyes; then
  21387. $as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
  21388. fi
  21389. # Check for GNU libc feenableexcept
  21390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
  21391. $as_echo_n "checking for feenableexcept in -lm... " >&6; }
  21392. if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
  21393. $as_echo_n "(cached) " >&6
  21394. else
  21395. ac_check_lib_save_LIBS=$LIBS
  21396. LIBS="-lm $LIBS"
  21397. if test x$gcc_no_link = xyes; then
  21398. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21399. fi
  21400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21401. /* end confdefs.h. */
  21402. /* Override any GCC internal prototype to avoid an error.
  21403. Use char because int might match the return type of a GCC
  21404. builtin and then its argument prototype would still apply. */
  21405. #ifdef __cplusplus
  21406. extern "C"
  21407. #endif
  21408. char feenableexcept ();
  21409. int
  21410. main ()
  21411. {
  21412. return feenableexcept ();
  21413. ;
  21414. return 0;
  21415. }
  21416. _ACEOF
  21417. if ac_fn_c_try_link "$LINENO"; then :
  21418. ac_cv_lib_m_feenableexcept=yes
  21419. else
  21420. ac_cv_lib_m_feenableexcept=no
  21421. fi
  21422. rm -f core conftest.err conftest.$ac_objext \
  21423. conftest$ac_exeext conftest.$ac_ext
  21424. LIBS=$ac_check_lib_save_LIBS
  21425. fi
  21426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
  21427. $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
  21428. if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
  21429. have_feenableexcept=yes
  21430. $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
  21431. fi
  21432. # Check for SysV fpsetmask
  21433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
  21434. $as_echo_n "checking whether fpsetmask is present... " >&6; }
  21435. if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
  21436. $as_echo_n "(cached) " >&6
  21437. else
  21438. if test x$gcc_no_link = xyes; then
  21439. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21440. fi
  21441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21442. /* end confdefs.h. */
  21443. #if HAVE_FLOATINGPOINT_H
  21444. # include <floatingpoint.h>
  21445. #endif /* HAVE_FLOATINGPOINT_H */
  21446. #if HAVE_IEEEFP_H
  21447. # include <ieeefp.h>
  21448. #endif /* HAVE_IEEEFP_H */
  21449. int
  21450. main ()
  21451. {
  21452. fpsetmask(0);
  21453. ;
  21454. return 0;
  21455. }
  21456. _ACEOF
  21457. if ac_fn_c_try_link "$LINENO"; then :
  21458. eval "libgfor_cv_have_fpsetmask=yes"
  21459. else
  21460. eval "libgfor_cv_have_fpsetmask=no"
  21461. fi
  21462. rm -f core conftest.err conftest.$ac_objext \
  21463. conftest$ac_exeext conftest.$ac_ext
  21464. fi
  21465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
  21466. $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
  21467. if test x"$libgfor_cv_have_fpsetmask" = xyes; then
  21468. $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
  21469. fi
  21470. # Check for AIX fp_trap and fp_enable
  21471. ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
  21472. if test "x$ac_cv_func_fp_trap" = x""yes; then :
  21473. have_fp_trap=yes
  21474. $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
  21475. fi
  21476. ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
  21477. if test "x$ac_cv_func_fp_enable" = x""yes; then :
  21478. have_fp_enable=yes
  21479. $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
  21480. fi
  21481. # Runs configure.host to set up necessary host-dependent shell variables.
  21482. # We then display a message about it, and propagate them through the
  21483. # build chain.
  21484. . ${srcdir}/configure.host
  21485. { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
  21486. $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
  21487. FPU_HOST_HEADER=config/${fpu_host}.h
  21488. # Some targets require additional compiler options for IEEE compatibility.
  21489. IEEE_FLAGS="${ieee_flags}"
  21490. # Check out attribute support.
  21491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  21492. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  21493. if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
  21494. $as_echo_n "(cached) " >&6
  21495. else
  21496. save_CFLAGS="$CFLAGS"
  21497. CFLAGS="$CFLAGS -Werror"
  21498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21499. /* end confdefs.h. */
  21500. void __attribute__((visibility("hidden"))) foo(void) { }
  21501. int
  21502. main ()
  21503. {
  21504. ;
  21505. return 0;
  21506. }
  21507. _ACEOF
  21508. if ac_fn_c_try_compile "$LINENO"; then :
  21509. libgfor_cv_have_attribute_visibility=yes
  21510. else
  21511. libgfor_cv_have_attribute_visibility=no
  21512. fi
  21513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21514. CFLAGS="$save_CFLAGS"
  21515. fi
  21516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
  21517. $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
  21518. if test $libgfor_cv_have_attribute_visibility = yes; then
  21519. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  21520. fi
  21521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  21522. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  21523. if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
  21524. $as_echo_n "(cached) " >&6
  21525. else
  21526. save_CFLAGS="$CFLAGS"
  21527. CFLAGS="$CFLAGS -Werror"
  21528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21529. /* end confdefs.h. */
  21530. void __attribute__((dllexport)) foo(void) { }
  21531. int
  21532. main ()
  21533. {
  21534. ;
  21535. return 0;
  21536. }
  21537. _ACEOF
  21538. if ac_fn_c_try_compile "$LINENO"; then :
  21539. libgfor_cv_have_attribute_dllexport=yes
  21540. else
  21541. libgfor_cv_have_attribute_dllexport=no
  21542. fi
  21543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21544. CFLAGS="$save_CFLAGS"
  21545. fi
  21546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
  21547. $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
  21548. if test $libgfor_cv_have_attribute_dllexport = yes; then
  21549. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  21550. fi
  21551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  21552. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  21553. if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
  21554. $as_echo_n "(cached) " >&6
  21555. else
  21556. if test x$gcc_no_link = xyes; then
  21557. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21558. fi
  21559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21560. /* end confdefs.h. */
  21561. void foo(void) { }
  21562. extern void bar(void) __attribute__((alias("foo")));
  21563. int
  21564. main ()
  21565. {
  21566. bar();
  21567. ;
  21568. return 0;
  21569. }
  21570. _ACEOF
  21571. if ac_fn_c_try_link "$LINENO"; then :
  21572. libgfor_cv_have_attribute_alias=yes
  21573. else
  21574. libgfor_cv_have_attribute_alias=no
  21575. fi
  21576. rm -f core conftest.err conftest.$ac_objext \
  21577. conftest$ac_exeext conftest.$ac_ext
  21578. fi
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
  21580. $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
  21581. if test $libgfor_cv_have_attribute_alias = yes; then
  21582. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  21583. fi
  21584. # Check out sync builtins support.
  21585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
  21586. $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
  21587. if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
  21588. $as_echo_n "(cached) " >&6
  21589. else
  21590. if test x$gcc_no_link = xyes; then
  21591. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  21592. fi
  21593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21594. /* end confdefs.h. */
  21595. int foovar = 0;
  21596. int
  21597. main ()
  21598. {
  21599. if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
  21600. if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
  21601. ;
  21602. return 0;
  21603. }
  21604. _ACEOF
  21605. if ac_fn_c_try_link "$LINENO"; then :
  21606. libgfor_cv_have_sync_fetch_and_add=yes
  21607. else
  21608. libgfor_cv_have_sync_fetch_and_add=no
  21609. fi
  21610. rm -f core conftest.err conftest.$ac_objext \
  21611. conftest$ac_exeext conftest.$ac_ext
  21612. fi
  21613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
  21614. $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
  21615. if test $libgfor_cv_have_sync_fetch_and_add = yes; then
  21616. $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
  21617. fi
  21618. # Check out thread support.
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured target thread model" >&5
  21620. $as_echo_n "checking configured target thread model... " >&6; }
  21621. if test "${libgfor_cv_target_thread_file+set}" = set; then :
  21622. $as_echo_n "(cached) " >&6
  21623. else
  21624. libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  21625. fi
  21626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_target_thread_file" >&5
  21627. $as_echo "$libgfor_cv_target_thread_file" >&6; }
  21628. if test $libgfor_cv_target_thread_file != single; then
  21629. $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
  21630. fi
  21631. # Check out #pragma weak.
  21632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
  21633. $as_echo_n "checking whether pragma weak works... " >&6; }
  21634. if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
  21635. $as_echo_n "(cached) " >&6
  21636. else
  21637. gfor_save_CFLAGS="$CFLAGS"
  21638. CFLAGS="$CFLAGS -Wunknown-pragmas"
  21639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21640. /* end confdefs.h. */
  21641. void foo (void);
  21642. #pragma weak foo
  21643. int
  21644. main ()
  21645. {
  21646. if (foo) foo ();
  21647. ;
  21648. return 0;
  21649. }
  21650. _ACEOF
  21651. if ac_fn_c_try_compile "$LINENO"; then :
  21652. libgfor_cv_have_pragma_weak=yes
  21653. else
  21654. libgfor_cv_have_pragma_weak=no
  21655. fi
  21656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21657. fi
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
  21659. $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
  21660. if test $libgfor_cv_have_pragma_weak = yes; then
  21661. $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
  21662. fi
  21663. case "$host" in
  21664. *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
  21665. $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
  21666. ;;
  21667. esac
  21668. # Various other checks on target
  21669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
  21670. $as_echo_n "checking whether the target can unlink an open file... " >&6; }
  21671. if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
  21672. $as_echo_n "(cached) " >&6
  21673. else
  21674. if test "$cross_compiling" = yes; then :
  21675. case "${target}" in
  21676. *mingw*) libgfor_cv_have_unlink_open_file=no ;;
  21677. *) libgfor_cv_have_unlink_open_file=yes;;
  21678. esac
  21679. else
  21680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21681. /* end confdefs.h. */
  21682. #include <errno.h>
  21683. #include <fcntl.h>
  21684. #include <unistd.h>
  21685. #include <sys/stat.h>
  21686. int main ()
  21687. {
  21688. int fd;
  21689. fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
  21690. if (fd <= 0)
  21691. return 0;
  21692. if (unlink ("testfile") == -1)
  21693. return 1;
  21694. write (fd, "This is a test\n", 15);
  21695. close (fd);
  21696. if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
  21697. return 0;
  21698. else
  21699. return 1;
  21700. }
  21701. _ACEOF
  21702. if ac_fn_c_try_run "$LINENO"; then :
  21703. libgfor_cv_have_unlink_open_file=yes
  21704. else
  21705. libgfor_cv_have_unlink_open_file=no
  21706. fi
  21707. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21708. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21709. fi
  21710. fi
  21711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
  21712. $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
  21713. if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
  21714. $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
  21715. fi
  21716. # Check whether line terminator is LF or CRLF
  21717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
  21718. $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
  21719. if test "${libgfor_cv_have_crlf+set}" = set; then :
  21720. $as_echo_n "(cached) " >&6
  21721. else
  21722. if test "$cross_compiling" = yes; then :
  21723. case "${target}" in
  21724. *mingw*) libgfor_cv_have_crlf=yes ;;
  21725. *) libgfor_cv_have_crlf=no;;
  21726. esac
  21727. else
  21728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21729. /* end confdefs.h. */
  21730. /* This test program should exit with status 0 if system uses a CRLF as
  21731. line terminator, and status 1 otherwise.
  21732. Since it is used to check for mingw systems, and should return 0 in any
  21733. other case, in case of a failure we will not use CRLF. */
  21734. #include <sys/stat.h>
  21735. #include <stdlib.h>
  21736. #include <fcntl.h>
  21737. #include <stdio.h>
  21738. int main ()
  21739. {
  21740. #ifndef O_BINARY
  21741. exit(1);
  21742. #else
  21743. int fd, bytes;
  21744. char buff[5];
  21745. fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
  21746. if (fd < 0)
  21747. exit(1);
  21748. if (write (fd, "\n", 1) < 0)
  21749. perror ("write");
  21750. close (fd);
  21751. if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
  21752. exit(1);
  21753. bytes = read (fd, buff, 5);
  21754. if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
  21755. exit(0);
  21756. else
  21757. exit(1);
  21758. #endif
  21759. }
  21760. _ACEOF
  21761. if ac_fn_c_try_run "$LINENO"; then :
  21762. libgfor_cv_have_crlf=yes
  21763. else
  21764. libgfor_cv_have_crlf=no
  21765. fi
  21766. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21767. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21768. fi
  21769. fi
  21770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
  21771. $as_echo "$libgfor_cv_have_crlf" >&6; }
  21772. if test x"$libgfor_cv_have_crlf" = xyes; then
  21773. $as_echo "#define HAVE_CRLF 1" >>confdefs.h
  21774. fi
  21775. cat >confcache <<\_ACEOF
  21776. # This file is a shell script that caches the results of configure
  21777. # tests run on this system so they can be shared between configure
  21778. # scripts and configure runs, see configure's option --config-cache.
  21779. # It is not useful on other systems. If it contains results you don't
  21780. # want to keep, you may remove or edit it.
  21781. #
  21782. # config.status only pays attention to the cache file if you give it
  21783. # the --recheck option to rerun configure.
  21784. #
  21785. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21786. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21787. # following values.
  21788. _ACEOF
  21789. # The following way of writing the cache mishandles newlines in values,
  21790. # but we know of no workaround that is simple, portable, and efficient.
  21791. # So, we kill variables containing newlines.
  21792. # Ultrix sh set writes to stderr and can't be redirected directly,
  21793. # and sets the high bit in the cache file unless we assign to the vars.
  21794. (
  21795. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21796. eval ac_val=\$$ac_var
  21797. case $ac_val in #(
  21798. *${as_nl}*)
  21799. case $ac_var in #(
  21800. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21801. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21802. esac
  21803. case $ac_var in #(
  21804. _ | IFS | as_nl) ;; #(
  21805. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21806. *) { eval $ac_var=; unset $ac_var;} ;;
  21807. esac ;;
  21808. esac
  21809. done
  21810. (set) 2>&1 |
  21811. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21812. *${as_nl}ac_space=\ *)
  21813. # `set' does not quote correctly, so add quotes: double-quote
  21814. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21815. sed -n \
  21816. "s/'/'\\\\''/g;
  21817. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21818. ;; #(
  21819. *)
  21820. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21821. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21822. ;;
  21823. esac |
  21824. sort
  21825. ) |
  21826. sed '
  21827. /^ac_cv_env_/b end
  21828. t clear
  21829. :clear
  21830. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21831. t end
  21832. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21833. :end' >>confcache
  21834. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21835. if test -w "$cache_file"; then
  21836. test "x$cache_file" != "x/dev/null" &&
  21837. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21838. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21839. cat confcache >$cache_file
  21840. else
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21842. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21843. fi
  21844. fi
  21845. rm -f confcache
  21846. if test ${multilib} = yes; then
  21847. multilib_arg="--enable-multilib"
  21848. else
  21849. multilib_arg=
  21850. fi
  21851. # Write our Makefile.
  21852. ac_config_files="$ac_config_files Makefile"
  21853. cat >confcache <<\_ACEOF
  21854. # This file is a shell script that caches the results of configure
  21855. # tests run on this system so they can be shared between configure
  21856. # scripts and configure runs, see configure's option --config-cache.
  21857. # It is not useful on other systems. If it contains results you don't
  21858. # want to keep, you may remove or edit it.
  21859. #
  21860. # config.status only pays attention to the cache file if you give it
  21861. # the --recheck option to rerun configure.
  21862. #
  21863. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21864. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21865. # following values.
  21866. _ACEOF
  21867. # The following way of writing the cache mishandles newlines in values,
  21868. # but we know of no workaround that is simple, portable, and efficient.
  21869. # So, we kill variables containing newlines.
  21870. # Ultrix sh set writes to stderr and can't be redirected directly,
  21871. # and sets the high bit in the cache file unless we assign to the vars.
  21872. (
  21873. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21874. eval ac_val=\$$ac_var
  21875. case $ac_val in #(
  21876. *${as_nl}*)
  21877. case $ac_var in #(
  21878. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21879. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21880. esac
  21881. case $ac_var in #(
  21882. _ | IFS | as_nl) ;; #(
  21883. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21884. *) { eval $ac_var=; unset $ac_var;} ;;
  21885. esac ;;
  21886. esac
  21887. done
  21888. (set) 2>&1 |
  21889. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21890. *${as_nl}ac_space=\ *)
  21891. # `set' does not quote correctly, so add quotes: double-quote
  21892. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21893. sed -n \
  21894. "s/'/'\\\\''/g;
  21895. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21896. ;; #(
  21897. *)
  21898. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21899. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21900. ;;
  21901. esac |
  21902. sort
  21903. ) |
  21904. sed '
  21905. /^ac_cv_env_/b end
  21906. t clear
  21907. :clear
  21908. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21909. t end
  21910. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21911. :end' >>confcache
  21912. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21913. if test -w "$cache_file"; then
  21914. test "x$cache_file" != "x/dev/null" &&
  21915. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21916. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21917. cat confcache >$cache_file
  21918. else
  21919. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21920. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21921. fi
  21922. fi
  21923. rm -f confcache
  21924. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21925. # Let make expand exec_prefix.
  21926. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21927. DEFS=-DHAVE_CONFIG_H
  21928. ac_libobjs=
  21929. ac_ltlibobjs=
  21930. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21931. # 1. Remove the extension, and $U if already installed.
  21932. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21933. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21934. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21935. # will be set to the directory where LIBOBJS objects are built.
  21936. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21937. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21938. done
  21939. LIBOBJS=$ac_libobjs
  21940. LTLIBOBJS=$ac_ltlibobjs
  21941. if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
  21942. as_fn_error "conditional \"onestep\" was never defined.
  21943. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21944. fi
  21945. if test -n "$EXEEXT"; then
  21946. am__EXEEXT_TRUE=
  21947. am__EXEEXT_FALSE='#'
  21948. else
  21949. am__EXEEXT_TRUE='#'
  21950. am__EXEEXT_FALSE=
  21951. fi
  21952. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21953. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  21954. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21955. fi
  21956. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21957. as_fn_error "conditional \"AMDEP\" was never defined.
  21958. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21959. fi
  21960. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21961. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  21962. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21963. fi
  21964. if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
  21965. as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
  21966. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21967. fi
  21968. : ${CONFIG_STATUS=./config.status}
  21969. ac_write_fail=0
  21970. ac_clean_files_save=$ac_clean_files
  21971. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21972. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21973. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21974. as_write_fail=0
  21975. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21976. #! $SHELL
  21977. # Generated by $as_me.
  21978. # Run this file to recreate the current configuration.
  21979. # Compiler output produced by configure, useful for debugging
  21980. # configure, is in config.log if it exists.
  21981. debug=false
  21982. ac_cs_recheck=false
  21983. ac_cs_silent=false
  21984. SHELL=\${CONFIG_SHELL-$SHELL}
  21985. export SHELL
  21986. _ASEOF
  21987. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21988. ## -------------------- ##
  21989. ## M4sh Initialization. ##
  21990. ## -------------------- ##
  21991. # Be more Bourne compatible
  21992. DUALCASE=1; export DUALCASE # for MKS sh
  21993. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21994. emulate sh
  21995. NULLCMD=:
  21996. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21997. # is contrary to our usage. Disable this feature.
  21998. alias -g '${1+"$@"}'='"$@"'
  21999. setopt NO_GLOB_SUBST
  22000. else
  22001. case `(set -o) 2>/dev/null` in #(
  22002. *posix*) :
  22003. set -o posix ;; #(
  22004. *) :
  22005. ;;
  22006. esac
  22007. fi
  22008. as_nl='
  22009. '
  22010. export as_nl
  22011. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22012. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22013. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22014. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22015. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22016. # but without wasting forks for bash or zsh.
  22017. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22018. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22019. as_echo='print -r --'
  22020. as_echo_n='print -rn --'
  22021. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22022. as_echo='printf %s\n'
  22023. as_echo_n='printf %s'
  22024. else
  22025. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22026. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22027. as_echo_n='/usr/ucb/echo -n'
  22028. else
  22029. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22030. as_echo_n_body='eval
  22031. arg=$1;
  22032. case $arg in #(
  22033. *"$as_nl"*)
  22034. expr "X$arg" : "X\\(.*\\)$as_nl";
  22035. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22036. esac;
  22037. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22038. '
  22039. export as_echo_n_body
  22040. as_echo_n='sh -c $as_echo_n_body as_echo'
  22041. fi
  22042. export as_echo_body
  22043. as_echo='sh -c $as_echo_body as_echo'
  22044. fi
  22045. # The user is always right.
  22046. if test "${PATH_SEPARATOR+set}" != set; then
  22047. PATH_SEPARATOR=:
  22048. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22049. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22050. PATH_SEPARATOR=';'
  22051. }
  22052. fi
  22053. # IFS
  22054. # We need space, tab and new line, in precisely that order. Quoting is
  22055. # there to prevent editors from complaining about space-tab.
  22056. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22057. # splitting by setting IFS to empty value.)
  22058. IFS=" "" $as_nl"
  22059. # Find who we are. Look in the path if we contain no directory separator.
  22060. case $0 in #((
  22061. *[\\/]* ) as_myself=$0 ;;
  22062. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22063. for as_dir in $PATH
  22064. do
  22065. IFS=$as_save_IFS
  22066. test -z "$as_dir" && as_dir=.
  22067. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22068. done
  22069. IFS=$as_save_IFS
  22070. ;;
  22071. esac
  22072. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22073. # in which case we are not to be found in the path.
  22074. if test "x$as_myself" = x; then
  22075. as_myself=$0
  22076. fi
  22077. if test ! -f "$as_myself"; then
  22078. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22079. exit 1
  22080. fi
  22081. # Unset variables that we do not need and which cause bugs (e.g. in
  22082. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22083. # suppresses any "Segmentation fault" message there. '((' could
  22084. # trigger a bug in pdksh 5.2.14.
  22085. for as_var in BASH_ENV ENV MAIL MAILPATH
  22086. do eval test x\${$as_var+set} = xset \
  22087. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22088. done
  22089. PS1='$ '
  22090. PS2='> '
  22091. PS4='+ '
  22092. # NLS nuisances.
  22093. LC_ALL=C
  22094. export LC_ALL
  22095. LANGUAGE=C
  22096. export LANGUAGE
  22097. # CDPATH.
  22098. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22099. # as_fn_error ERROR [LINENO LOG_FD]
  22100. # ---------------------------------
  22101. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22102. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22103. # script with status $?, using 1 if that was 0.
  22104. as_fn_error ()
  22105. {
  22106. as_status=$?; test $as_status -eq 0 && as_status=1
  22107. if test "$3"; then
  22108. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22109. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  22110. fi
  22111. $as_echo "$as_me: error: $1" >&2
  22112. as_fn_exit $as_status
  22113. } # as_fn_error
  22114. # as_fn_set_status STATUS
  22115. # -----------------------
  22116. # Set $? to STATUS, without forking.
  22117. as_fn_set_status ()
  22118. {
  22119. return $1
  22120. } # as_fn_set_status
  22121. # as_fn_exit STATUS
  22122. # -----------------
  22123. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22124. as_fn_exit ()
  22125. {
  22126. set +e
  22127. as_fn_set_status $1
  22128. exit $1
  22129. } # as_fn_exit
  22130. # as_fn_unset VAR
  22131. # ---------------
  22132. # Portably unset VAR.
  22133. as_fn_unset ()
  22134. {
  22135. { eval $1=; unset $1;}
  22136. }
  22137. as_unset=as_fn_unset
  22138. # as_fn_append VAR VALUE
  22139. # ----------------------
  22140. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22141. # advantage of any shell optimizations that allow amortized linear growth over
  22142. # repeated appends, instead of the typical quadratic growth present in naive
  22143. # implementations.
  22144. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22145. eval 'as_fn_append ()
  22146. {
  22147. eval $1+=\$2
  22148. }'
  22149. else
  22150. as_fn_append ()
  22151. {
  22152. eval $1=\$$1\$2
  22153. }
  22154. fi # as_fn_append
  22155. # as_fn_arith ARG...
  22156. # ------------------
  22157. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22158. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22159. # must be portable across $(()) and expr.
  22160. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22161. eval 'as_fn_arith ()
  22162. {
  22163. as_val=$(( $* ))
  22164. }'
  22165. else
  22166. as_fn_arith ()
  22167. {
  22168. as_val=`expr "$@" || test $? -eq 1`
  22169. }
  22170. fi # as_fn_arith
  22171. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22172. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22173. as_expr=expr
  22174. else
  22175. as_expr=false
  22176. fi
  22177. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22178. as_basename=basename
  22179. else
  22180. as_basename=false
  22181. fi
  22182. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22183. as_dirname=dirname
  22184. else
  22185. as_dirname=false
  22186. fi
  22187. as_me=`$as_basename -- "$0" ||
  22188. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22189. X"$0" : 'X\(//\)$' \| \
  22190. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22191. $as_echo X/"$0" |
  22192. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22193. s//\1/
  22194. q
  22195. }
  22196. /^X\/\(\/\/\)$/{
  22197. s//\1/
  22198. q
  22199. }
  22200. /^X\/\(\/\).*/{
  22201. s//\1/
  22202. q
  22203. }
  22204. s/.*/./; q'`
  22205. # Avoid depending upon Character Ranges.
  22206. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22207. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22208. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22209. as_cr_digits='0123456789'
  22210. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22211. ECHO_C= ECHO_N= ECHO_T=
  22212. case `echo -n x` in #(((((
  22213. -n*)
  22214. case `echo 'xy\c'` in
  22215. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22216. xy) ECHO_C='\c';;
  22217. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22218. ECHO_T=' ';;
  22219. esac;;
  22220. *)
  22221. ECHO_N='-n';;
  22222. esac
  22223. rm -f conf$$ conf$$.exe conf$$.file
  22224. if test -d conf$$.dir; then
  22225. rm -f conf$$.dir/conf$$.file
  22226. else
  22227. rm -f conf$$.dir
  22228. mkdir conf$$.dir 2>/dev/null
  22229. fi
  22230. if (echo >conf$$.file) 2>/dev/null; then
  22231. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22232. as_ln_s='ln -s'
  22233. # ... but there are two gotchas:
  22234. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22235. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22236. # In both cases, we have to default to `cp -p'.
  22237. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22238. as_ln_s='cp -p'
  22239. elif ln conf$$.file conf$$ 2>/dev/null; then
  22240. as_ln_s=ln
  22241. else
  22242. as_ln_s='cp -p'
  22243. fi
  22244. else
  22245. as_ln_s='cp -p'
  22246. fi
  22247. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22248. rmdir conf$$.dir 2>/dev/null
  22249. # as_fn_mkdir_p
  22250. # -------------
  22251. # Create "$as_dir" as a directory, including parents if necessary.
  22252. as_fn_mkdir_p ()
  22253. {
  22254. case $as_dir in #(
  22255. -*) as_dir=./$as_dir;;
  22256. esac
  22257. test -d "$as_dir" || eval $as_mkdir_p || {
  22258. as_dirs=
  22259. while :; do
  22260. case $as_dir in #(
  22261. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22262. *) as_qdir=$as_dir;;
  22263. esac
  22264. as_dirs="'$as_qdir' $as_dirs"
  22265. as_dir=`$as_dirname -- "$as_dir" ||
  22266. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22267. X"$as_dir" : 'X\(//\)[^/]' \| \
  22268. X"$as_dir" : 'X\(//\)$' \| \
  22269. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22270. $as_echo X"$as_dir" |
  22271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22272. s//\1/
  22273. q
  22274. }
  22275. /^X\(\/\/\)[^/].*/{
  22276. s//\1/
  22277. q
  22278. }
  22279. /^X\(\/\/\)$/{
  22280. s//\1/
  22281. q
  22282. }
  22283. /^X\(\/\).*/{
  22284. s//\1/
  22285. q
  22286. }
  22287. s/.*/./; q'`
  22288. test -d "$as_dir" && break
  22289. done
  22290. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22291. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  22292. } # as_fn_mkdir_p
  22293. if mkdir -p . 2>/dev/null; then
  22294. as_mkdir_p='mkdir -p "$as_dir"'
  22295. else
  22296. test -d ./-p && rmdir ./-p
  22297. as_mkdir_p=false
  22298. fi
  22299. if test -x / >/dev/null 2>&1; then
  22300. as_test_x='test -x'
  22301. else
  22302. if ls -dL / >/dev/null 2>&1; then
  22303. as_ls_L_option=L
  22304. else
  22305. as_ls_L_option=
  22306. fi
  22307. as_test_x='
  22308. eval sh -c '\''
  22309. if test -d "$1"; then
  22310. test -d "$1/.";
  22311. else
  22312. case $1 in #(
  22313. -*)set "./$1";;
  22314. esac;
  22315. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  22316. ???[sx]*):;;*)false;;esac;fi
  22317. '\'' sh
  22318. '
  22319. fi
  22320. as_executable_p=$as_test_x
  22321. # Sed expression to map a string onto a valid CPP name.
  22322. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22323. # Sed expression to map a string onto a valid variable name.
  22324. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22325. exec 6>&1
  22326. ## ----------------------------------- ##
  22327. ## Main body of $CONFIG_STATUS script. ##
  22328. ## ----------------------------------- ##
  22329. _ASEOF
  22330. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22331. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22332. # Save the log message, to keep $0 and so on meaningful, and to
  22333. # report actual input values of CONFIG_FILES etc. instead of their
  22334. # values after options handling.
  22335. ac_log="
  22336. This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
  22337. generated by GNU Autoconf 2.64. Invocation command line was
  22338. CONFIG_FILES = $CONFIG_FILES
  22339. CONFIG_HEADERS = $CONFIG_HEADERS
  22340. CONFIG_LINKS = $CONFIG_LINKS
  22341. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22342. $ $0 $@
  22343. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22344. "
  22345. _ACEOF
  22346. case $ac_config_files in *"
  22347. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22348. esac
  22349. case $ac_config_headers in *"
  22350. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22351. esac
  22352. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22353. # Files that config.status was made for.
  22354. config_files="$ac_config_files"
  22355. config_headers="$ac_config_headers"
  22356. config_commands="$ac_config_commands"
  22357. _ACEOF
  22358. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22359. ac_cs_usage="\
  22360. \`$as_me' instantiates files and other configuration actions
  22361. from templates according to the current configuration. Unless the files
  22362. and actions are specified as TAGs, all are instantiated by default.
  22363. Usage: $0 [OPTION]... [TAG]...
  22364. -h, --help print this help, then exit
  22365. -V, --version print version number and configuration settings, then exit
  22366. -q, --quiet, --silent
  22367. do not print progress messages
  22368. -d, --debug don't remove temporary files
  22369. --recheck update $as_me by reconfiguring in the same conditions
  22370. --file=FILE[:TEMPLATE]
  22371. instantiate the configuration file FILE
  22372. --header=FILE[:TEMPLATE]
  22373. instantiate the configuration header FILE
  22374. Configuration files:
  22375. $config_files
  22376. Configuration headers:
  22377. $config_headers
  22378. Configuration commands:
  22379. $config_commands
  22380. Report bugs to the package provider.
  22381. GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
  22382. General help using GNU software: <http://www.gnu.org/gethelp/>."
  22383. _ACEOF
  22384. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22385. ac_cs_version="\\
  22386. GNU Fortran Runtime Library config.status 0.3
  22387. configured by $0, generated by GNU Autoconf 2.64,
  22388. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22389. Copyright (C) 2009 Free Software Foundation, Inc.
  22390. This config.status script is free software; the Free Software Foundation
  22391. gives unlimited permission to copy, distribute and modify it."
  22392. ac_pwd='$ac_pwd'
  22393. srcdir='$srcdir'
  22394. INSTALL='$INSTALL'
  22395. MKDIR_P='$MKDIR_P'
  22396. AWK='$AWK'
  22397. test -n "\$AWK" || AWK=awk
  22398. _ACEOF
  22399. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22400. # The default lists apply if the user does not specify any file.
  22401. ac_need_defaults=:
  22402. while test $# != 0
  22403. do
  22404. case $1 in
  22405. --*=*)
  22406. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22407. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22408. ac_shift=:
  22409. ;;
  22410. *)
  22411. ac_option=$1
  22412. ac_optarg=$2
  22413. ac_shift=shift
  22414. ;;
  22415. esac
  22416. case $ac_option in
  22417. # Handling of the options.
  22418. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22419. ac_cs_recheck=: ;;
  22420. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22421. $as_echo "$ac_cs_version"; exit ;;
  22422. --debug | --debu | --deb | --de | --d | -d )
  22423. debug=: ;;
  22424. --file | --fil | --fi | --f )
  22425. $ac_shift
  22426. case $ac_optarg in
  22427. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22428. esac
  22429. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22430. ac_need_defaults=false;;
  22431. --header | --heade | --head | --hea )
  22432. $ac_shift
  22433. case $ac_optarg in
  22434. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22435. esac
  22436. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22437. ac_need_defaults=false;;
  22438. --he | --h)
  22439. # Conflict between --help and --header
  22440. as_fn_error "ambiguous option: \`$1'
  22441. Try \`$0 --help' for more information.";;
  22442. --help | --hel | -h )
  22443. $as_echo "$ac_cs_usage"; exit ;;
  22444. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22445. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22446. ac_cs_silent=: ;;
  22447. # This is an error.
  22448. -*) as_fn_error "unrecognized option: \`$1'
  22449. Try \`$0 --help' for more information." ;;
  22450. *) as_fn_append ac_config_targets " $1"
  22451. ac_need_defaults=false ;;
  22452. esac
  22453. shift
  22454. done
  22455. ac_configure_extra_args=
  22456. if $ac_cs_silent; then
  22457. exec 6>/dev/null
  22458. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22459. fi
  22460. _ACEOF
  22461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22462. if \$ac_cs_recheck; then
  22463. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22464. shift
  22465. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22466. CONFIG_SHELL='$SHELL'
  22467. export CONFIG_SHELL
  22468. exec "\$@"
  22469. fi
  22470. _ACEOF
  22471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22472. exec 5>>config.log
  22473. {
  22474. echo
  22475. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22476. ## Running $as_me. ##
  22477. _ASBOX
  22478. $as_echo "$ac_log"
  22479. } >&5
  22480. _ACEOF
  22481. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22482. #
  22483. # INIT-COMMANDS
  22484. #
  22485. srcdir="$srcdir"
  22486. host="$host"
  22487. target="$target"
  22488. with_multisubdir="$with_multisubdir"
  22489. with_multisrctop="$with_multisrctop"
  22490. with_target_subdir="$with_target_subdir"
  22491. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  22492. multi_basedir="$multi_basedir"
  22493. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  22494. CC="$CC"
  22495. CXX="$CXX"
  22496. GFORTRAN="$GFORTRAN"
  22497. GCJ="$GCJ"
  22498. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22499. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22500. # if CDPATH is set.
  22501. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22502. sed_quote_subst='$sed_quote_subst'
  22503. double_quote_subst='$double_quote_subst'
  22504. delay_variable_subst='$delay_variable_subst'
  22505. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22506. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22507. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22508. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22509. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22510. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22511. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22512. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22513. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22514. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22515. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22516. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22517. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22518. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22519. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22520. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22521. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22522. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22523. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22524. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22525. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22526. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22527. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22528. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22529. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22530. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22531. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22532. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22533. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22534. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22535. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22536. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22537. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22538. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22539. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22540. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22541. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22542. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22543. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22544. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22545. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22546. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22547. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22548. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22549. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22550. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22551. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22552. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22553. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22554. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22555. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22556. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22557. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22558. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22559. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22560. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22561. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22562. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22563. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22564. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22565. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22566. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22567. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22568. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22569. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22570. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22571. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22572. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22573. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22574. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22575. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22576. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22577. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22578. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22579. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22580. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22581. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22582. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22583. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22584. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22585. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  22586. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22587. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22588. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22589. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22590. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22591. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22592. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22593. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22594. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  22595. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22596. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22597. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22598. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22599. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22600. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22601. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22602. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22603. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22604. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22605. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22606. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22607. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22608. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22609. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22610. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22611. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22612. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22613. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22614. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22615. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22616. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22617. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22618. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22619. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22620. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22621. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22622. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22623. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22624. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22625. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22626. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22627. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22628. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22629. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22630. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22631. LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
  22632. reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
  22633. reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22634. old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22635. compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
  22636. GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
  22637. lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
  22638. lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
  22639. lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
  22640. lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
  22641. lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
  22642. archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
  22643. enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
  22644. export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  22645. whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  22646. compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
  22647. old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22648. old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22649. archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22650. archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22651. module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22652. module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22653. with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
  22654. allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  22655. no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  22656. hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  22657. hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
  22658. hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
  22659. hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
  22660. hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
  22661. hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
  22662. hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
  22663. hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
  22664. inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
  22665. link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
  22666. fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
  22667. always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
  22668. export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22669. exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  22670. include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  22671. prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
  22672. file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
  22673. hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
  22674. compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
  22675. predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
  22676. postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
  22677. predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
  22678. postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
  22679. compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
  22680. LTCC='$LTCC'
  22681. LTCFLAGS='$LTCFLAGS'
  22682. compiler='$compiler_DEFAULT'
  22683. # A function that is used when there is no print builtin or printf.
  22684. func_fallback_echo ()
  22685. {
  22686. eval 'cat <<_LTECHO_EOF
  22687. \$1
  22688. _LTECHO_EOF'
  22689. }
  22690. # Quote evaled strings.
  22691. for var in SHELL \
  22692. ECHO \
  22693. SED \
  22694. GREP \
  22695. EGREP \
  22696. FGREP \
  22697. LD \
  22698. NM \
  22699. LN_S \
  22700. lt_SP2NL \
  22701. lt_NL2SP \
  22702. reload_flag \
  22703. OBJDUMP \
  22704. deplibs_check_method \
  22705. file_magic_cmd \
  22706. AR \
  22707. AR_FLAGS \
  22708. STRIP \
  22709. RANLIB \
  22710. CC \
  22711. CFLAGS \
  22712. compiler \
  22713. lt_cv_sys_global_symbol_pipe \
  22714. lt_cv_sys_global_symbol_to_cdecl \
  22715. lt_cv_sys_global_symbol_to_c_name_address \
  22716. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22717. lt_prog_compiler_no_builtin_flag \
  22718. lt_prog_compiler_wl \
  22719. lt_prog_compiler_pic \
  22720. lt_prog_compiler_static \
  22721. lt_cv_prog_compiler_c_o \
  22722. need_locks \
  22723. DSYMUTIL \
  22724. NMEDIT \
  22725. LIPO \
  22726. OTOOL \
  22727. OTOOL64 \
  22728. shrext_cmds \
  22729. export_dynamic_flag_spec \
  22730. whole_archive_flag_spec \
  22731. compiler_needs_object \
  22732. with_gnu_ld \
  22733. allow_undefined_flag \
  22734. no_undefined_flag \
  22735. hardcode_libdir_flag_spec \
  22736. hardcode_libdir_flag_spec_ld \
  22737. hardcode_libdir_separator \
  22738. fix_srcfile_path \
  22739. exclude_expsyms \
  22740. include_expsyms \
  22741. file_list_spec \
  22742. variables_saved_for_relink \
  22743. libname_spec \
  22744. library_names_spec \
  22745. soname_spec \
  22746. install_override_mode \
  22747. finish_eval \
  22748. old_striplib \
  22749. striplib \
  22750. compiler_lib_search_dirs \
  22751. predep_objects \
  22752. postdep_objects \
  22753. predeps \
  22754. postdeps \
  22755. compiler_lib_search_path \
  22756. LD_FC \
  22757. reload_flag_FC \
  22758. compiler_FC \
  22759. lt_prog_compiler_no_builtin_flag_FC \
  22760. lt_prog_compiler_wl_FC \
  22761. lt_prog_compiler_pic_FC \
  22762. lt_prog_compiler_static_FC \
  22763. lt_cv_prog_compiler_c_o_FC \
  22764. export_dynamic_flag_spec_FC \
  22765. whole_archive_flag_spec_FC \
  22766. compiler_needs_object_FC \
  22767. with_gnu_ld_FC \
  22768. allow_undefined_flag_FC \
  22769. no_undefined_flag_FC \
  22770. hardcode_libdir_flag_spec_FC \
  22771. hardcode_libdir_flag_spec_ld_FC \
  22772. hardcode_libdir_separator_FC \
  22773. fix_srcfile_path_FC \
  22774. exclude_expsyms_FC \
  22775. include_expsyms_FC \
  22776. file_list_spec_FC \
  22777. compiler_lib_search_dirs_FC \
  22778. predep_objects_FC \
  22779. postdep_objects_FC \
  22780. predeps_FC \
  22781. postdeps_FC \
  22782. compiler_lib_search_path_FC; do
  22783. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22784. *[\\\\\\\`\\"\\\$]*)
  22785. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22786. ;;
  22787. *)
  22788. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22789. ;;
  22790. esac
  22791. done
  22792. # Double-quote double-evaled strings.
  22793. for var in reload_cmds \
  22794. old_postinstall_cmds \
  22795. old_postuninstall_cmds \
  22796. old_archive_cmds \
  22797. extract_expsyms_cmds \
  22798. old_archive_from_new_cmds \
  22799. old_archive_from_expsyms_cmds \
  22800. archive_cmds \
  22801. archive_expsym_cmds \
  22802. module_cmds \
  22803. module_expsym_cmds \
  22804. export_symbols_cmds \
  22805. prelink_cmds \
  22806. postinstall_cmds \
  22807. postuninstall_cmds \
  22808. finish_cmds \
  22809. sys_lib_search_path_spec \
  22810. sys_lib_dlsearch_path_spec \
  22811. reload_cmds_FC \
  22812. old_archive_cmds_FC \
  22813. old_archive_from_new_cmds_FC \
  22814. old_archive_from_expsyms_cmds_FC \
  22815. archive_cmds_FC \
  22816. archive_expsym_cmds_FC \
  22817. module_cmds_FC \
  22818. module_expsym_cmds_FC \
  22819. export_symbols_cmds_FC \
  22820. prelink_cmds_FC; do
  22821. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22822. *[\\\\\\\`\\"\\\$]*)
  22823. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22824. ;;
  22825. *)
  22826. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22827. ;;
  22828. esac
  22829. done
  22830. ac_aux_dir='$ac_aux_dir'
  22831. xsi_shell='$xsi_shell'
  22832. lt_shell_append='$lt_shell_append'
  22833. # See if we are running on zsh, and set the options which allow our
  22834. # commands through without removal of \ escapes INIT.
  22835. if test -n "\${ZSH_VERSION+set}" ; then
  22836. setopt NO_GLOB_SUBST
  22837. fi
  22838. PACKAGE='$PACKAGE'
  22839. VERSION='$VERSION'
  22840. TIMESTAMP='$TIMESTAMP'
  22841. RM='$RM'
  22842. ofile='$ofile'
  22843. GCC="$GCC"
  22844. CC="$CC"
  22845. acx_cv_header_stdint="$acx_cv_header_stdint"
  22846. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  22847. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  22848. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  22849. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  22850. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  22851. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  22852. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  22853. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  22854. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  22855. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  22856. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  22857. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  22858. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  22859. _ACEOF
  22860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22861. # Handling of arguments.
  22862. for ac_config_target in $ac_config_targets
  22863. do
  22864. case $ac_config_target in
  22865. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22866. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  22867. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22868. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22869. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  22870. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22871. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22872. esac
  22873. done
  22874. # If the user did not use the arguments to specify the items to instantiate,
  22875. # then the envvar interface is used. Set only those that are not.
  22876. # We use the long form for the default assignment because of an extremely
  22877. # bizarre bug on SunOS 4.1.3.
  22878. if $ac_need_defaults; then
  22879. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22880. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22881. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22882. fi
  22883. # Have a temporary directory for convenience. Make it in the build tree
  22884. # simply because there is no reason against having it here, and in addition,
  22885. # creating and moving files from /tmp can sometimes cause problems.
  22886. # Hook for its removal unless debugging.
  22887. # Note that there is a small window in which the directory will not be cleaned:
  22888. # after its creation but before its name has been assigned to `$tmp'.
  22889. $debug ||
  22890. {
  22891. tmp=
  22892. trap 'exit_status=$?
  22893. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22894. ' 0
  22895. trap 'as_fn_exit 1' 1 2 13 15
  22896. }
  22897. # Create a (secure) tmp directory for tmp files.
  22898. {
  22899. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22900. test -n "$tmp" && test -d "$tmp"
  22901. } ||
  22902. {
  22903. tmp=./conf$$-$RANDOM
  22904. (umask 077 && mkdir "$tmp")
  22905. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  22906. # Set up the scripts for CONFIG_FILES section.
  22907. # No need to generate them if there are no CONFIG_FILES.
  22908. # This happens for instance with `./config.status config.h'.
  22909. if test -n "$CONFIG_FILES"; then
  22910. ac_cr=`echo X | tr X '\015'`
  22911. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22912. # But we know of no other shell where ac_cr would be empty at this
  22913. # point, so we can use a bashism as a fallback.
  22914. if test "x$ac_cr" = x; then
  22915. eval ac_cr=\$\'\\r\'
  22916. fi
  22917. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22918. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22919. ac_cs_awk_cr='\r'
  22920. else
  22921. ac_cs_awk_cr=$ac_cr
  22922. fi
  22923. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22924. _ACEOF
  22925. {
  22926. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22927. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22928. echo "_ACEOF"
  22929. } >conf$$subs.sh ||
  22930. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22931. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22932. ac_delim='%!_!# '
  22933. for ac_last_try in false false false false false :; do
  22934. . ./conf$$subs.sh ||
  22935. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22936. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22937. if test $ac_delim_n = $ac_delim_num; then
  22938. break
  22939. elif $ac_last_try; then
  22940. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22941. else
  22942. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22943. fi
  22944. done
  22945. rm -f conf$$subs.sh
  22946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22947. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22948. _ACEOF
  22949. sed -n '
  22950. h
  22951. s/^/S["/; s/!.*/"]=/
  22952. p
  22953. g
  22954. s/^[^!]*!//
  22955. :repl
  22956. t repl
  22957. s/'"$ac_delim"'$//
  22958. t delim
  22959. :nl
  22960. h
  22961. s/\(.\{148\}\).*/\1/
  22962. t more1
  22963. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22964. p
  22965. n
  22966. b repl
  22967. :more1
  22968. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22969. p
  22970. g
  22971. s/.\{148\}//
  22972. t nl
  22973. :delim
  22974. h
  22975. s/\(.\{148\}\).*/\1/
  22976. t more2
  22977. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22978. p
  22979. b
  22980. :more2
  22981. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22982. p
  22983. g
  22984. s/.\{148\}//
  22985. t delim
  22986. ' <conf$$subs.awk | sed '
  22987. /^[^""]/{
  22988. N
  22989. s/\n//
  22990. }
  22991. ' >>$CONFIG_STATUS || ac_write_fail=1
  22992. rm -f conf$$subs.awk
  22993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22994. _ACAWK
  22995. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  22996. for (key in S) S_is_set[key] = 1
  22997. FS = ""
  22998. }
  22999. {
  23000. line = $ 0
  23001. nfields = split(line, field, "@")
  23002. substed = 0
  23003. len = length(field[1])
  23004. for (i = 2; i < nfields; i++) {
  23005. key = field[i]
  23006. keylen = length(key)
  23007. if (S_is_set[key]) {
  23008. value = S[key]
  23009. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23010. len += length(value) + length(field[++i])
  23011. substed = 1
  23012. } else
  23013. len += 1 + keylen
  23014. }
  23015. print line
  23016. }
  23017. _ACAWK
  23018. _ACEOF
  23019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23020. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23021. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23022. else
  23023. cat
  23024. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23025. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  23026. _ACEOF
  23027. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23028. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23029. # trailing colons and then remove the whole line if VPATH becomes empty
  23030. # (actually we leave an empty line to preserve line numbers).
  23031. if test "x$srcdir" = x.; then
  23032. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23033. s/:*\$(srcdir):*/:/
  23034. s/:*\${srcdir}:*/:/
  23035. s/:*@srcdir@:*/:/
  23036. s/^\([^=]*=[ ]*\):*/\1/
  23037. s/:*$//
  23038. s/^[^=]*=[ ]*$//
  23039. }'
  23040. fi
  23041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23042. fi # test -n "$CONFIG_FILES"
  23043. # Set up the scripts for CONFIG_HEADERS section.
  23044. # No need to generate them if there are no CONFIG_HEADERS.
  23045. # This happens for instance with `./config.status Makefile'.
  23046. if test -n "$CONFIG_HEADERS"; then
  23047. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23048. BEGIN {
  23049. _ACEOF
  23050. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23051. # here-document in config.status, that substitutes the proper values into
  23052. # config.h.in to produce config.h.
  23053. # Create a delimiter string that does not exist in confdefs.h, to ease
  23054. # handling of long lines.
  23055. ac_delim='%!_!# '
  23056. for ac_last_try in false false :; do
  23057. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23058. if test -z "$ac_t"; then
  23059. break
  23060. elif $ac_last_try; then
  23061. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  23062. else
  23063. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23064. fi
  23065. done
  23066. # For the awk script, D is an array of macro values keyed by name,
  23067. # likewise P contains macro parameters if any. Preserve backslash
  23068. # newline sequences.
  23069. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23070. sed -n '
  23071. s/.\{148\}/&'"$ac_delim"'/g
  23072. t rset
  23073. :rset
  23074. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23075. t def
  23076. d
  23077. :def
  23078. s/\\$//
  23079. t bsnl
  23080. s/["\\]/\\&/g
  23081. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23082. D["\1"]=" \3"/p
  23083. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23084. d
  23085. :bsnl
  23086. s/["\\]/\\&/g
  23087. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23088. D["\1"]=" \3\\\\\\n"\\/p
  23089. t cont
  23090. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23091. t cont
  23092. d
  23093. :cont
  23094. n
  23095. s/.\{148\}/&'"$ac_delim"'/g
  23096. t clear
  23097. :clear
  23098. s/\\$//
  23099. t bsnlc
  23100. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23101. d
  23102. :bsnlc
  23103. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23104. b cont
  23105. ' <confdefs.h | sed '
  23106. s/'"$ac_delim"'/"\\\
  23107. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23109. for (key in D) D_is_set[key] = 1
  23110. FS = ""
  23111. }
  23112. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23113. line = \$ 0
  23114. split(line, arg, " ")
  23115. if (arg[1] == "#") {
  23116. defundef = arg[2]
  23117. mac1 = arg[3]
  23118. } else {
  23119. defundef = substr(arg[1], 2)
  23120. mac1 = arg[2]
  23121. }
  23122. split(mac1, mac2, "(") #)
  23123. macro = mac2[1]
  23124. prefix = substr(line, 1, index(line, defundef) - 1)
  23125. if (D_is_set[macro]) {
  23126. # Preserve the white space surrounding the "#".
  23127. print prefix "define", macro P[macro] D[macro]
  23128. next
  23129. } else {
  23130. # Replace #undef with comments. This is necessary, for example,
  23131. # in the case of _POSIX_SOURCE, which is predefined and required
  23132. # on some systems where configure will not decide to define it.
  23133. if (defundef == "undef") {
  23134. print "/*", prefix defundef, macro, "*/"
  23135. next
  23136. }
  23137. }
  23138. }
  23139. { print }
  23140. _ACAWK
  23141. _ACEOF
  23142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23143. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  23144. fi # test -n "$CONFIG_HEADERS"
  23145. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23146. shift
  23147. for ac_tag
  23148. do
  23149. case $ac_tag in
  23150. :[FHLC]) ac_mode=$ac_tag; continue;;
  23151. esac
  23152. case $ac_mode$ac_tag in
  23153. :[FHL]*:*);;
  23154. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23155. :[FH]-) ac_tag=-:-;;
  23156. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23157. esac
  23158. ac_save_IFS=$IFS
  23159. IFS=:
  23160. set x $ac_tag
  23161. IFS=$ac_save_IFS
  23162. shift
  23163. ac_file=$1
  23164. shift
  23165. case $ac_mode in
  23166. :L) ac_source=$1;;
  23167. :[FH])
  23168. ac_file_inputs=
  23169. for ac_f
  23170. do
  23171. case $ac_f in
  23172. -) ac_f="$tmp/stdin";;
  23173. *) # Look for the file first in the build tree, then in the source tree
  23174. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23175. # because $ac_f cannot contain `:'.
  23176. test -f "$ac_f" ||
  23177. case $ac_f in
  23178. [\\/$]*) false;;
  23179. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23180. esac ||
  23181. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23182. esac
  23183. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23184. as_fn_append ac_file_inputs " '$ac_f'"
  23185. done
  23186. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23187. # use $as_me), people would be surprised to read:
  23188. # /* config.h. Generated by config.status. */
  23189. configure_input='Generated from '`
  23190. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23191. `' by configure.'
  23192. if test x"$ac_file" != x-; then
  23193. configure_input="$ac_file. $configure_input"
  23194. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23195. $as_echo "$as_me: creating $ac_file" >&6;}
  23196. fi
  23197. # Neutralize special characters interpreted by sed in replacement strings.
  23198. case $configure_input in #(
  23199. *\&* | *\|* | *\\* )
  23200. ac_sed_conf_input=`$as_echo "$configure_input" |
  23201. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23202. *) ac_sed_conf_input=$configure_input;;
  23203. esac
  23204. case $ac_tag in
  23205. *:-:* | *:-) cat >"$tmp/stdin" \
  23206. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  23207. esac
  23208. ;;
  23209. esac
  23210. ac_dir=`$as_dirname -- "$ac_file" ||
  23211. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23212. X"$ac_file" : 'X\(//\)[^/]' \| \
  23213. X"$ac_file" : 'X\(//\)$' \| \
  23214. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23215. $as_echo X"$ac_file" |
  23216. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23217. s//\1/
  23218. q
  23219. }
  23220. /^X\(\/\/\)[^/].*/{
  23221. s//\1/
  23222. q
  23223. }
  23224. /^X\(\/\/\)$/{
  23225. s//\1/
  23226. q
  23227. }
  23228. /^X\(\/\).*/{
  23229. s//\1/
  23230. q
  23231. }
  23232. s/.*/./; q'`
  23233. as_dir="$ac_dir"; as_fn_mkdir_p
  23234. ac_builddir=.
  23235. case "$ac_dir" in
  23236. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23237. *)
  23238. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23239. # A ".." for each directory in $ac_dir_suffix.
  23240. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23241. case $ac_top_builddir_sub in
  23242. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23243. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23244. esac ;;
  23245. esac
  23246. ac_abs_top_builddir=$ac_pwd
  23247. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23248. # for backward compatibility:
  23249. ac_top_builddir=$ac_top_build_prefix
  23250. case $srcdir in
  23251. .) # We are building in place.
  23252. ac_srcdir=.
  23253. ac_top_srcdir=$ac_top_builddir_sub
  23254. ac_abs_top_srcdir=$ac_pwd ;;
  23255. [\\/]* | ?:[\\/]* ) # Absolute name.
  23256. ac_srcdir=$srcdir$ac_dir_suffix;
  23257. ac_top_srcdir=$srcdir
  23258. ac_abs_top_srcdir=$srcdir ;;
  23259. *) # Relative name.
  23260. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23261. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23262. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23263. esac
  23264. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23265. case $ac_mode in
  23266. :F)
  23267. #
  23268. # CONFIG_FILE
  23269. #
  23270. case $INSTALL in
  23271. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23272. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23273. esac
  23274. ac_MKDIR_P=$MKDIR_P
  23275. case $MKDIR_P in
  23276. [\\/$]* | ?:[\\/]* ) ;;
  23277. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23278. esac
  23279. _ACEOF
  23280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23281. # If the template does not know about datarootdir, expand it.
  23282. # FIXME: This hack should be removed a few years after 2.60.
  23283. ac_datarootdir_hack=; ac_datarootdir_seen=
  23284. ac_sed_dataroot='
  23285. /datarootdir/ {
  23286. p
  23287. q
  23288. }
  23289. /@datadir@/p
  23290. /@docdir@/p
  23291. /@infodir@/p
  23292. /@localedir@/p
  23293. /@mandir@/p'
  23294. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23295. *datarootdir*) ac_datarootdir_seen=yes;;
  23296. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23298. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23299. _ACEOF
  23300. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23301. ac_datarootdir_hack='
  23302. s&@datadir@&$datadir&g
  23303. s&@docdir@&$docdir&g
  23304. s&@infodir@&$infodir&g
  23305. s&@localedir@&$localedir&g
  23306. s&@mandir@&$mandir&g
  23307. s&\\\${datarootdir}&$datarootdir&g' ;;
  23308. esac
  23309. _ACEOF
  23310. # Neutralize VPATH when `$srcdir' = `.'.
  23311. # Shell code in configure.ac might set extrasub.
  23312. # FIXME: do we really want to maintain this feature?
  23313. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23314. ac_sed_extra="$ac_vpsub
  23315. $extrasub
  23316. _ACEOF
  23317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23318. :t
  23319. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23320. s|@configure_input@|$ac_sed_conf_input|;t t
  23321. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23322. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23323. s&@srcdir@&$ac_srcdir&;t t
  23324. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23325. s&@top_srcdir@&$ac_top_srcdir&;t t
  23326. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23327. s&@builddir@&$ac_builddir&;t t
  23328. s&@abs_builddir@&$ac_abs_builddir&;t t
  23329. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23330. s&@INSTALL@&$ac_INSTALL&;t t
  23331. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23332. $ac_datarootdir_hack
  23333. "
  23334. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23335. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23336. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23337. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23338. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23340. which seems to be undefined. Please make sure it is defined." >&5
  23341. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23342. which seems to be undefined. Please make sure it is defined." >&2;}
  23343. rm -f "$tmp/stdin"
  23344. case $ac_file in
  23345. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23346. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23347. esac \
  23348. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23349. ;;
  23350. :H)
  23351. #
  23352. # CONFIG_HEADER
  23353. #
  23354. if test x"$ac_file" != x-; then
  23355. {
  23356. $as_echo "/* $configure_input */" \
  23357. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23358. } >"$tmp/config.h" \
  23359. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23360. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23361. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23362. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23363. else
  23364. rm -f "$ac_file"
  23365. mv "$tmp/config.h" "$ac_file" \
  23366. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23367. fi
  23368. else
  23369. $as_echo "/* $configure_input */" \
  23370. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23371. || as_fn_error "could not create -" "$LINENO" 5
  23372. fi
  23373. # Compute "$ac_file"'s index in $config_headers.
  23374. _am_arg="$ac_file"
  23375. _am_stamp_count=1
  23376. for _am_header in $config_headers :; do
  23377. case $_am_header in
  23378. $_am_arg | $_am_arg:* )
  23379. break ;;
  23380. * )
  23381. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23382. esac
  23383. done
  23384. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23385. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23386. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23387. X"$_am_arg" : 'X\(//\)$' \| \
  23388. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23389. $as_echo X"$_am_arg" |
  23390. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23391. s//\1/
  23392. q
  23393. }
  23394. /^X\(\/\/\)[^/].*/{
  23395. s//\1/
  23396. q
  23397. }
  23398. /^X\(\/\/\)$/{
  23399. s//\1/
  23400. q
  23401. }
  23402. /^X\(\/\).*/{
  23403. s//\1/
  23404. q
  23405. }
  23406. s/.*/./; q'`/stamp-h$_am_stamp_count
  23407. ;;
  23408. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23409. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23410. ;;
  23411. esac
  23412. case $ac_file$ac_mode in
  23413. "default-1":C)
  23414. # Only add multilib support code if we just rebuilt the top-level
  23415. # Makefile.
  23416. case " $CONFIG_FILES " in
  23417. *" Makefile "*)
  23418. ac_file=Makefile . ${multi_basedir}/config-ml.in
  23419. ;;
  23420. esac ;;
  23421. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23422. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23423. # are listed without --file. Let's play safe and only enable the eval
  23424. # if we detect the quoting.
  23425. case $CONFIG_FILES in
  23426. *\'*) eval set x "$CONFIG_FILES" ;;
  23427. *) set x $CONFIG_FILES ;;
  23428. esac
  23429. shift
  23430. for mf
  23431. do
  23432. # Strip MF so we end up with the name of the file.
  23433. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23434. # Check whether this is an Automake generated Makefile or not.
  23435. # We used to match only the files named `Makefile.in', but
  23436. # some people rename them; so instead we look at the file content.
  23437. # Grep'ing the first line is not enough: some people post-process
  23438. # each Makefile.in and add a new line on top of each file to say so.
  23439. # Grep'ing the whole file is not good either: AIX grep has a line
  23440. # limit of 2048, but all sed's we know have understand at least 4000.
  23441. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23442. dirpart=`$as_dirname -- "$mf" ||
  23443. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23444. X"$mf" : 'X\(//\)[^/]' \| \
  23445. X"$mf" : 'X\(//\)$' \| \
  23446. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23447. $as_echo X"$mf" |
  23448. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23449. s//\1/
  23450. q
  23451. }
  23452. /^X\(\/\/\)[^/].*/{
  23453. s//\1/
  23454. q
  23455. }
  23456. /^X\(\/\/\)$/{
  23457. s//\1/
  23458. q
  23459. }
  23460. /^X\(\/\).*/{
  23461. s//\1/
  23462. q
  23463. }
  23464. s/.*/./; q'`
  23465. else
  23466. continue
  23467. fi
  23468. # Extract the definition of DEPDIR, am__include, and am__quote
  23469. # from the Makefile without running `make'.
  23470. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23471. test -z "$DEPDIR" && continue
  23472. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23473. test -z "am__include" && continue
  23474. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23475. # When using ansi2knr, U may be empty or an underscore; expand it
  23476. U=`sed -n 's/^U = //p' < "$mf"`
  23477. # Find all dependency output files, they are included files with
  23478. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23479. # simplest approach to changing $(DEPDIR) to its actual value in the
  23480. # expansion.
  23481. for file in `sed -n "
  23482. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23483. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23484. # Make sure the directory exists.
  23485. test -f "$dirpart/$file" && continue
  23486. fdir=`$as_dirname -- "$file" ||
  23487. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23488. X"$file" : 'X\(//\)[^/]' \| \
  23489. X"$file" : 'X\(//\)$' \| \
  23490. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23491. $as_echo X"$file" |
  23492. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23493. s//\1/
  23494. q
  23495. }
  23496. /^X\(\/\/\)[^/].*/{
  23497. s//\1/
  23498. q
  23499. }
  23500. /^X\(\/\/\)$/{
  23501. s//\1/
  23502. q
  23503. }
  23504. /^X\(\/\).*/{
  23505. s//\1/
  23506. q
  23507. }
  23508. s/.*/./; q'`
  23509. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23510. # echo "creating $dirpart/$file"
  23511. echo '# dummy' > "$dirpart/$file"
  23512. done
  23513. done
  23514. }
  23515. ;;
  23516. "libtool":C)
  23517. # See if we are running on zsh, and set the options which allow our
  23518. # commands through without removal of \ escapes.
  23519. if test -n "${ZSH_VERSION+set}" ; then
  23520. setopt NO_GLOB_SUBST
  23521. fi
  23522. cfgfile="${ofile}T"
  23523. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23524. $RM "$cfgfile"
  23525. cat <<_LT_EOF >> "$cfgfile"
  23526. #! $SHELL
  23527. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23528. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23529. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23530. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23531. #
  23532. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23533. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  23534. # Written by Gordon Matzigkeit, 1996
  23535. #
  23536. # This file is part of GNU Libtool.
  23537. #
  23538. # GNU Libtool is free software; you can redistribute it and/or
  23539. # modify it under the terms of the GNU General Public License as
  23540. # published by the Free Software Foundation; either version 2 of
  23541. # the License, or (at your option) any later version.
  23542. #
  23543. # As a special exception to the GNU General Public License,
  23544. # if you distribute this file as part of a program or library that
  23545. # is built using GNU Libtool, you may include this file under the
  23546. # same distribution terms that you use for the rest of that program.
  23547. #
  23548. # GNU Libtool is distributed in the hope that it will be useful,
  23549. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23550. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23551. # GNU General Public License for more details.
  23552. #
  23553. # You should have received a copy of the GNU General Public License
  23554. # along with GNU Libtool; see the file COPYING. If not, a copy
  23555. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23556. # obtained by writing to the Free Software Foundation, Inc.,
  23557. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23558. # The names of the tagged configurations supported by this script.
  23559. available_tags="FC "
  23560. # ### BEGIN LIBTOOL CONFIG
  23561. # Which release of libtool.m4 was used?
  23562. macro_version=$macro_version
  23563. macro_revision=$macro_revision
  23564. # Whether or not to build shared libraries.
  23565. build_libtool_libs=$enable_shared
  23566. # Whether or not to build static libraries.
  23567. build_old_libs=$enable_static
  23568. # What type of objects to build.
  23569. pic_mode=$pic_mode
  23570. # Whether or not to optimize for fast installation.
  23571. fast_install=$enable_fast_install
  23572. # Shell to use when invoking shell scripts.
  23573. SHELL=$lt_SHELL
  23574. # An echo program that protects backslashes.
  23575. ECHO=$lt_ECHO
  23576. # The host system.
  23577. host_alias=$host_alias
  23578. host=$host
  23579. host_os=$host_os
  23580. # The build system.
  23581. build_alias=$build_alias
  23582. build=$build
  23583. build_os=$build_os
  23584. # A sed program that does not truncate output.
  23585. SED=$lt_SED
  23586. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23587. Xsed="\$SED -e 1s/^X//"
  23588. # A grep program that handles long lines.
  23589. GREP=$lt_GREP
  23590. # An ERE matcher.
  23591. EGREP=$lt_EGREP
  23592. # A literal string matcher.
  23593. FGREP=$lt_FGREP
  23594. # A BSD- or MS-compatible name lister.
  23595. NM=$lt_NM
  23596. # Whether we need soft or hard links.
  23597. LN_S=$lt_LN_S
  23598. # What is the maximum length of a command?
  23599. max_cmd_len=$max_cmd_len
  23600. # Object file suffix (normally "o").
  23601. objext=$ac_objext
  23602. # Executable file suffix (normally "").
  23603. exeext=$exeext
  23604. # whether the shell understands "unset".
  23605. lt_unset=$lt_unset
  23606. # turn spaces into newlines.
  23607. SP2NL=$lt_lt_SP2NL
  23608. # turn newlines into spaces.
  23609. NL2SP=$lt_lt_NL2SP
  23610. # An object symbol dumper.
  23611. OBJDUMP=$lt_OBJDUMP
  23612. # Method to check whether dependent libraries are shared objects.
  23613. deplibs_check_method=$lt_deplibs_check_method
  23614. # Command to use when deplibs_check_method == "file_magic".
  23615. file_magic_cmd=$lt_file_magic_cmd
  23616. # The archiver.
  23617. AR=$lt_AR
  23618. AR_FLAGS=$lt_AR_FLAGS
  23619. # A symbol stripping program.
  23620. STRIP=$lt_STRIP
  23621. # Commands used to install an old-style archive.
  23622. RANLIB=$lt_RANLIB
  23623. old_postinstall_cmds=$lt_old_postinstall_cmds
  23624. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23625. # Whether to use a lock for old archive extraction.
  23626. lock_old_archive_extraction=$lock_old_archive_extraction
  23627. # A C compiler.
  23628. LTCC=$lt_CC
  23629. # LTCC compiler flags.
  23630. LTCFLAGS=$lt_CFLAGS
  23631. # Take the output of nm and produce a listing of raw symbols and C names.
  23632. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23633. # Transform the output of nm in a proper C declaration.
  23634. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23635. # Transform the output of nm in a C name address pair.
  23636. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23637. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23638. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23639. # The name of the directory that contains temporary libtool files.
  23640. objdir=$objdir
  23641. # Used to examine libraries when file_magic_cmd begins with "file".
  23642. MAGIC_CMD=$MAGIC_CMD
  23643. # Must we lock files when doing compilation?
  23644. need_locks=$lt_need_locks
  23645. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23646. DSYMUTIL=$lt_DSYMUTIL
  23647. # Tool to change global to local symbols on Mac OS X.
  23648. NMEDIT=$lt_NMEDIT
  23649. # Tool to manipulate fat objects and archives on Mac OS X.
  23650. LIPO=$lt_LIPO
  23651. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23652. OTOOL=$lt_OTOOL
  23653. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23654. OTOOL64=$lt_OTOOL64
  23655. # Old archive suffix (normally "a").
  23656. libext=$libext
  23657. # Shared library suffix (normally ".so").
  23658. shrext_cmds=$lt_shrext_cmds
  23659. # The commands to extract the exported symbol list from a shared archive.
  23660. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23661. # Variables whose values should be saved in libtool wrapper scripts and
  23662. # restored at link time.
  23663. variables_saved_for_relink=$lt_variables_saved_for_relink
  23664. # Do we need the "lib" prefix for modules?
  23665. need_lib_prefix=$need_lib_prefix
  23666. # Do we need a version for libraries?
  23667. need_version=$need_version
  23668. # Library versioning type.
  23669. version_type=$version_type
  23670. # Shared library runtime path variable.
  23671. runpath_var=$runpath_var
  23672. # Shared library path variable.
  23673. shlibpath_var=$shlibpath_var
  23674. # Is shlibpath searched before the hard-coded library search path?
  23675. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23676. # Format of library name prefix.
  23677. libname_spec=$lt_libname_spec
  23678. # List of archive names. First name is the real one, the rest are links.
  23679. # The last name is the one that the linker finds with -lNAME
  23680. library_names_spec=$lt_library_names_spec
  23681. # The coded name of the library, if different from the real name.
  23682. soname_spec=$lt_soname_spec
  23683. # Permission mode override for installation of shared libraries.
  23684. install_override_mode=$lt_install_override_mode
  23685. # Command to use after installation of a shared archive.
  23686. postinstall_cmds=$lt_postinstall_cmds
  23687. # Command to use after uninstallation of a shared archive.
  23688. postuninstall_cmds=$lt_postuninstall_cmds
  23689. # Commands used to finish a libtool library installation in a directory.
  23690. finish_cmds=$lt_finish_cmds
  23691. # As "finish_cmds", except a single script fragment to be evaled but
  23692. # not shown.
  23693. finish_eval=$lt_finish_eval
  23694. # Whether we should hardcode library paths into libraries.
  23695. hardcode_into_libs=$hardcode_into_libs
  23696. # Compile-time system search path for libraries.
  23697. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23698. # Run-time system search path for libraries.
  23699. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23700. # Whether dlopen is supported.
  23701. dlopen_support=$enable_dlopen
  23702. # Whether dlopen of programs is supported.
  23703. dlopen_self=$enable_dlopen_self
  23704. # Whether dlopen of statically linked programs is supported.
  23705. dlopen_self_static=$enable_dlopen_self_static
  23706. # Commands to strip libraries.
  23707. old_striplib=$lt_old_striplib
  23708. striplib=$lt_striplib
  23709. # The linker used to build libraries.
  23710. LD=$lt_LD
  23711. # How to create reloadable object files.
  23712. reload_flag=$lt_reload_flag
  23713. reload_cmds=$lt_reload_cmds
  23714. # Commands used to build an old-style archive.
  23715. old_archive_cmds=$lt_old_archive_cmds
  23716. # A language specific compiler.
  23717. CC=$lt_compiler
  23718. # Is the compiler the GNU compiler?
  23719. with_gcc=$GCC
  23720. # Compiler flag to turn off builtin functions.
  23721. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23722. # How to pass a linker flag through the compiler.
  23723. wl=$lt_lt_prog_compiler_wl
  23724. # Additional compiler flags for building library objects.
  23725. pic_flag=$lt_lt_prog_compiler_pic
  23726. # Compiler flag to prevent dynamic linking.
  23727. link_static_flag=$lt_lt_prog_compiler_static
  23728. # Does compiler simultaneously support -c and -o options?
  23729. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23730. # Whether or not to add -lc for building shared libraries.
  23731. build_libtool_need_lc=$archive_cmds_need_lc
  23732. # Whether or not to disallow shared libs when runtime libs are static.
  23733. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23734. # Compiler flag to allow reflexive dlopens.
  23735. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23736. # Compiler flag to generate shared objects directly from archives.
  23737. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23738. # Whether the compiler copes with passing no objects directly.
  23739. compiler_needs_object=$lt_compiler_needs_object
  23740. # Create an old-style archive from a shared archive.
  23741. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23742. # Create a temporary old-style archive to link instead of a shared archive.
  23743. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23744. # Commands used to build a shared archive.
  23745. archive_cmds=$lt_archive_cmds
  23746. archive_expsym_cmds=$lt_archive_expsym_cmds
  23747. # Commands used to build a loadable module if different from building
  23748. # a shared archive.
  23749. module_cmds=$lt_module_cmds
  23750. module_expsym_cmds=$lt_module_expsym_cmds
  23751. # Whether we are building with GNU ld or not.
  23752. with_gnu_ld=$lt_with_gnu_ld
  23753. # Flag that allows shared libraries with undefined symbols to be built.
  23754. allow_undefined_flag=$lt_allow_undefined_flag
  23755. # Flag that enforces no undefined symbols.
  23756. no_undefined_flag=$lt_no_undefined_flag
  23757. # Flag to hardcode \$libdir into a binary during linking.
  23758. # This must work even if \$libdir does not exist
  23759. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23760. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23761. # during linking. This must work even if \$libdir does not exist.
  23762. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23763. # Whether we need a single "-rpath" flag with a separated argument.
  23764. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23765. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23766. # DIR into the resulting binary.
  23767. hardcode_direct=$hardcode_direct
  23768. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23769. # DIR into the resulting binary and the resulting library dependency is
  23770. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23771. # library is relocated.
  23772. hardcode_direct_absolute=$hardcode_direct_absolute
  23773. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23774. # into the resulting binary.
  23775. hardcode_minus_L=$hardcode_minus_L
  23776. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23777. # into the resulting binary.
  23778. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23779. # Set to "yes" if building a shared library automatically hardcodes DIR
  23780. # into the library and all subsequent libraries and executables linked
  23781. # against it.
  23782. hardcode_automatic=$hardcode_automatic
  23783. # Set to yes if linker adds runtime paths of dependent libraries
  23784. # to runtime path list.
  23785. inherit_rpath=$inherit_rpath
  23786. # Whether libtool must link a program against all its dependency libraries.
  23787. link_all_deplibs=$link_all_deplibs
  23788. # Fix the shell variable \$srcfile for the compiler.
  23789. fix_srcfile_path=$lt_fix_srcfile_path
  23790. # Set to "yes" if exported symbols are required.
  23791. always_export_symbols=$always_export_symbols
  23792. # The commands to list exported symbols.
  23793. export_symbols_cmds=$lt_export_symbols_cmds
  23794. # Symbols that should not be listed in the preloaded symbols.
  23795. exclude_expsyms=$lt_exclude_expsyms
  23796. # Symbols that must always be exported.
  23797. include_expsyms=$lt_include_expsyms
  23798. # Commands necessary for linking programs (against libraries) with templates.
  23799. prelink_cmds=$lt_prelink_cmds
  23800. # Specify filename containing input files.
  23801. file_list_spec=$lt_file_list_spec
  23802. # How to hardcode a shared library path into an executable.
  23803. hardcode_action=$hardcode_action
  23804. # The directories searched by this compiler when creating a shared library.
  23805. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23806. # Dependencies to place before and after the objects being linked to
  23807. # create a shared library.
  23808. predep_objects=$lt_predep_objects
  23809. postdep_objects=$lt_postdep_objects
  23810. predeps=$lt_predeps
  23811. postdeps=$lt_postdeps
  23812. # The library search path used internally by the compiler when linking
  23813. # a shared library.
  23814. compiler_lib_search_path=$lt_compiler_lib_search_path
  23815. # ### END LIBTOOL CONFIG
  23816. _LT_EOF
  23817. case $host_os in
  23818. aix3*)
  23819. cat <<\_LT_EOF >> "$cfgfile"
  23820. # AIX sometimes has problems with the GCC collect2 program. For some
  23821. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23822. # vanish in a puff of smoke.
  23823. if test "X${COLLECT_NAMES+set}" != Xset; then
  23824. COLLECT_NAMES=
  23825. export COLLECT_NAMES
  23826. fi
  23827. _LT_EOF
  23828. ;;
  23829. esac
  23830. ltmain="$ac_aux_dir/ltmain.sh"
  23831. # We use sed instead of cat because bash on DJGPP gets confused if
  23832. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23833. # text mode, it properly converts lines to CR/LF. This bash problem
  23834. # is reportedly fixed, but why not run on old versions too?
  23835. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23836. || (rm -f "$cfgfile"; exit 1)
  23837. case $xsi_shell in
  23838. yes)
  23839. cat << \_LT_EOF >> "$cfgfile"
  23840. # func_dirname file append nondir_replacement
  23841. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23842. # otherwise set result to NONDIR_REPLACEMENT.
  23843. func_dirname ()
  23844. {
  23845. case ${1} in
  23846. */*) func_dirname_result="${1%/*}${2}" ;;
  23847. * ) func_dirname_result="${3}" ;;
  23848. esac
  23849. }
  23850. # func_basename file
  23851. func_basename ()
  23852. {
  23853. func_basename_result="${1##*/}"
  23854. }
  23855. # func_dirname_and_basename file append nondir_replacement
  23856. # perform func_basename and func_dirname in a single function
  23857. # call:
  23858. # dirname: Compute the dirname of FILE. If nonempty,
  23859. # add APPEND to the result, otherwise set result
  23860. # to NONDIR_REPLACEMENT.
  23861. # value returned in "$func_dirname_result"
  23862. # basename: Compute filename of FILE.
  23863. # value retuned in "$func_basename_result"
  23864. # Implementation must be kept synchronized with func_dirname
  23865. # and func_basename. For efficiency, we do not delegate to
  23866. # those functions but instead duplicate the functionality here.
  23867. func_dirname_and_basename ()
  23868. {
  23869. case ${1} in
  23870. */*) func_dirname_result="${1%/*}${2}" ;;
  23871. * ) func_dirname_result="${3}" ;;
  23872. esac
  23873. func_basename_result="${1##*/}"
  23874. }
  23875. # func_stripname prefix suffix name
  23876. # strip PREFIX and SUFFIX off of NAME.
  23877. # PREFIX and SUFFIX must not contain globbing or regex special
  23878. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23879. # dot (in which case that matches only a dot).
  23880. func_stripname ()
  23881. {
  23882. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23883. # positional parameters, so assign one to ordinary parameter first.
  23884. func_stripname_result=${3}
  23885. func_stripname_result=${func_stripname_result#"${1}"}
  23886. func_stripname_result=${func_stripname_result%"${2}"}
  23887. }
  23888. # func_opt_split
  23889. func_opt_split ()
  23890. {
  23891. func_opt_split_opt=${1%%=*}
  23892. func_opt_split_arg=${1#*=}
  23893. }
  23894. # func_lo2o object
  23895. func_lo2o ()
  23896. {
  23897. case ${1} in
  23898. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23899. *) func_lo2o_result=${1} ;;
  23900. esac
  23901. }
  23902. # func_xform libobj-or-source
  23903. func_xform ()
  23904. {
  23905. func_xform_result=${1%.*}.lo
  23906. }
  23907. # func_arith arithmetic-term...
  23908. func_arith ()
  23909. {
  23910. func_arith_result=$(( $* ))
  23911. }
  23912. # func_len string
  23913. # STRING may not start with a hyphen.
  23914. func_len ()
  23915. {
  23916. func_len_result=${#1}
  23917. }
  23918. _LT_EOF
  23919. ;;
  23920. *) # Bourne compatible functions.
  23921. cat << \_LT_EOF >> "$cfgfile"
  23922. # func_dirname file append nondir_replacement
  23923. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23924. # otherwise set result to NONDIR_REPLACEMENT.
  23925. func_dirname ()
  23926. {
  23927. # Extract subdirectory from the argument.
  23928. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  23929. if test "X$func_dirname_result" = "X${1}"; then
  23930. func_dirname_result="${3}"
  23931. else
  23932. func_dirname_result="$func_dirname_result${2}"
  23933. fi
  23934. }
  23935. # func_basename file
  23936. func_basename ()
  23937. {
  23938. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  23939. }
  23940. # func_stripname prefix suffix name
  23941. # strip PREFIX and SUFFIX off of NAME.
  23942. # PREFIX and SUFFIX must not contain globbing or regex special
  23943. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23944. # dot (in which case that matches only a dot).
  23945. # func_strip_suffix prefix name
  23946. func_stripname ()
  23947. {
  23948. case ${2} in
  23949. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  23950. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  23951. esac
  23952. }
  23953. # sed scripts:
  23954. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  23955. my_sed_long_arg='1s/^-[^=]*=//'
  23956. # func_opt_split
  23957. func_opt_split ()
  23958. {
  23959. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  23960. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  23961. }
  23962. # func_lo2o object
  23963. func_lo2o ()
  23964. {
  23965. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  23966. }
  23967. # func_xform libobj-or-source
  23968. func_xform ()
  23969. {
  23970. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  23971. }
  23972. # func_arith arithmetic-term...
  23973. func_arith ()
  23974. {
  23975. func_arith_result=`expr "$@"`
  23976. }
  23977. # func_len string
  23978. # STRING may not start with a hyphen.
  23979. func_len ()
  23980. {
  23981. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  23982. }
  23983. _LT_EOF
  23984. esac
  23985. case $lt_shell_append in
  23986. yes)
  23987. cat << \_LT_EOF >> "$cfgfile"
  23988. # func_append var value
  23989. # Append VALUE to the end of shell variable VAR.
  23990. func_append ()
  23991. {
  23992. eval "$1+=\$2"
  23993. }
  23994. _LT_EOF
  23995. ;;
  23996. *)
  23997. cat << \_LT_EOF >> "$cfgfile"
  23998. # func_append var value
  23999. # Append VALUE to the end of shell variable VAR.
  24000. func_append ()
  24001. {
  24002. eval "$1=\$$1\$2"
  24003. }
  24004. _LT_EOF
  24005. ;;
  24006. esac
  24007. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24008. || (rm -f "$cfgfile"; exit 1)
  24009. mv -f "$cfgfile" "$ofile" ||
  24010. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24011. chmod +x "$ofile"
  24012. cat <<_LT_EOF >> "$ofile"
  24013. # ### BEGIN LIBTOOL TAG CONFIG: FC
  24014. # The linker used to build libraries.
  24015. LD=$lt_LD_FC
  24016. # How to create reloadable object files.
  24017. reload_flag=$lt_reload_flag_FC
  24018. reload_cmds=$lt_reload_cmds_FC
  24019. # Commands used to build an old-style archive.
  24020. old_archive_cmds=$lt_old_archive_cmds_FC
  24021. # A language specific compiler.
  24022. CC=$lt_compiler_FC
  24023. # Is the compiler the GNU compiler?
  24024. with_gcc=$GCC_FC
  24025. # Compiler flag to turn off builtin functions.
  24026. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
  24027. # How to pass a linker flag through the compiler.
  24028. wl=$lt_lt_prog_compiler_wl_FC
  24029. # Additional compiler flags for building library objects.
  24030. pic_flag=$lt_lt_prog_compiler_pic_FC
  24031. # Compiler flag to prevent dynamic linking.
  24032. link_static_flag=$lt_lt_prog_compiler_static_FC
  24033. # Does compiler simultaneously support -c and -o options?
  24034. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
  24035. # Whether or not to add -lc for building shared libraries.
  24036. build_libtool_need_lc=$archive_cmds_need_lc_FC
  24037. # Whether or not to disallow shared libs when runtime libs are static.
  24038. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
  24039. # Compiler flag to allow reflexive dlopens.
  24040. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
  24041. # Compiler flag to generate shared objects directly from archives.
  24042. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
  24043. # Whether the compiler copes with passing no objects directly.
  24044. compiler_needs_object=$lt_compiler_needs_object_FC
  24045. # Create an old-style archive from a shared archive.
  24046. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
  24047. # Create a temporary old-style archive to link instead of a shared archive.
  24048. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
  24049. # Commands used to build a shared archive.
  24050. archive_cmds=$lt_archive_cmds_FC
  24051. archive_expsym_cmds=$lt_archive_expsym_cmds_FC
  24052. # Commands used to build a loadable module if different from building
  24053. # a shared archive.
  24054. module_cmds=$lt_module_cmds_FC
  24055. module_expsym_cmds=$lt_module_expsym_cmds_FC
  24056. # Whether we are building with GNU ld or not.
  24057. with_gnu_ld=$lt_with_gnu_ld_FC
  24058. # Flag that allows shared libraries with undefined symbols to be built.
  24059. allow_undefined_flag=$lt_allow_undefined_flag_FC
  24060. # Flag that enforces no undefined symbols.
  24061. no_undefined_flag=$lt_no_undefined_flag_FC
  24062. # Flag to hardcode \$libdir into a binary during linking.
  24063. # This must work even if \$libdir does not exist
  24064. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
  24065. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24066. # during linking. This must work even if \$libdir does not exist.
  24067. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
  24068. # Whether we need a single "-rpath" flag with a separated argument.
  24069. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
  24070. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24071. # DIR into the resulting binary.
  24072. hardcode_direct=$hardcode_direct_FC
  24073. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24074. # DIR into the resulting binary and the resulting library dependency is
  24075. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24076. # library is relocated.
  24077. hardcode_direct_absolute=$hardcode_direct_absolute_FC
  24078. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24079. # into the resulting binary.
  24080. hardcode_minus_L=$hardcode_minus_L_FC
  24081. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24082. # into the resulting binary.
  24083. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
  24084. # Set to "yes" if building a shared library automatically hardcodes DIR
  24085. # into the library and all subsequent libraries and executables linked
  24086. # against it.
  24087. hardcode_automatic=$hardcode_automatic_FC
  24088. # Set to yes if linker adds runtime paths of dependent libraries
  24089. # to runtime path list.
  24090. inherit_rpath=$inherit_rpath_FC
  24091. # Whether libtool must link a program against all its dependency libraries.
  24092. link_all_deplibs=$link_all_deplibs_FC
  24093. # Fix the shell variable \$srcfile for the compiler.
  24094. fix_srcfile_path=$lt_fix_srcfile_path_FC
  24095. # Set to "yes" if exported symbols are required.
  24096. always_export_symbols=$always_export_symbols_FC
  24097. # The commands to list exported symbols.
  24098. export_symbols_cmds=$lt_export_symbols_cmds_FC
  24099. # Symbols that should not be listed in the preloaded symbols.
  24100. exclude_expsyms=$lt_exclude_expsyms_FC
  24101. # Symbols that must always be exported.
  24102. include_expsyms=$lt_include_expsyms_FC
  24103. # Commands necessary for linking programs (against libraries) with templates.
  24104. prelink_cmds=$lt_prelink_cmds_FC
  24105. # Specify filename containing input files.
  24106. file_list_spec=$lt_file_list_spec_FC
  24107. # How to hardcode a shared library path into an executable.
  24108. hardcode_action=$hardcode_action_FC
  24109. # The directories searched by this compiler when creating a shared library.
  24110. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
  24111. # Dependencies to place before and after the objects being linked to
  24112. # create a shared library.
  24113. predep_objects=$lt_predep_objects_FC
  24114. postdep_objects=$lt_postdep_objects_FC
  24115. predeps=$lt_predeps_FC
  24116. postdeps=$lt_postdeps_FC
  24117. # The library search path used internally by the compiler when linking
  24118. # a shared library.
  24119. compiler_lib_search_path=$lt_compiler_lib_search_path_FC
  24120. # ### END LIBTOOL TAG CONFIG: FC
  24121. _LT_EOF
  24122. ;;
  24123. "gstdint.h":C)
  24124. if test "$GCC" = yes; then
  24125. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  24126. else
  24127. echo "/* generated for $CC */" > tmp-stdint.h
  24128. fi
  24129. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24130. #ifndef GCC_GENERATED_STDINT_H
  24131. #define GCC_GENERATED_STDINT_H 1
  24132. #include <sys/types.h>
  24133. EOF
  24134. if test "$acx_cv_header_stdint" != stdint.h; then
  24135. echo "#include <stddef.h>" >> tmp-stdint.h
  24136. fi
  24137. if test "$acx_cv_header_stdint" != stddef.h; then
  24138. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  24139. fi
  24140. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24141. /* glibc uses these symbols as guards to prevent redefinitions. */
  24142. #ifdef __int8_t_defined
  24143. #define _INT8_T
  24144. #define _INT16_T
  24145. #define _INT32_T
  24146. #endif
  24147. #ifdef __uint32_t_defined
  24148. #define _UINT32_T
  24149. #endif
  24150. EOF
  24151. # ----------------- done header, emit basic int types -------------
  24152. if test "$acx_cv_header_stdint" = stddef.h; then
  24153. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24154. #ifndef _UINT8_T
  24155. #define _UINT8_T
  24156. #ifndef __uint8_t_defined
  24157. #define __uint8_t_defined
  24158. #ifndef uint8_t
  24159. typedef unsigned $acx_cv_type_int8_t uint8_t;
  24160. #endif
  24161. #endif
  24162. #endif
  24163. #ifndef _UINT16_T
  24164. #define _UINT16_T
  24165. #ifndef __uint16_t_defined
  24166. #define __uint16_t_defined
  24167. #ifndef uint16_t
  24168. typedef unsigned $acx_cv_type_int16_t uint16_t;
  24169. #endif
  24170. #endif
  24171. #endif
  24172. #ifndef _UINT32_T
  24173. #define _UINT32_T
  24174. #ifndef __uint32_t_defined
  24175. #define __uint32_t_defined
  24176. #ifndef uint32_t
  24177. typedef unsigned $acx_cv_type_int32_t uint32_t;
  24178. #endif
  24179. #endif
  24180. #endif
  24181. #ifndef _INT8_T
  24182. #define _INT8_T
  24183. #ifndef __int8_t_defined
  24184. #define __int8_t_defined
  24185. #ifndef int8_t
  24186. typedef $acx_cv_type_int8_t int8_t;
  24187. #endif
  24188. #endif
  24189. #endif
  24190. #ifndef _INT16_T
  24191. #define _INT16_T
  24192. #ifndef __int16_t_defined
  24193. #define __int16_t_defined
  24194. #ifndef int16_t
  24195. typedef $acx_cv_type_int16_t int16_t;
  24196. #endif
  24197. #endif
  24198. #endif
  24199. #ifndef _INT32_T
  24200. #define _INT32_T
  24201. #ifndef __int32_t_defined
  24202. #define __int32_t_defined
  24203. #ifndef int32_t
  24204. typedef $acx_cv_type_int32_t int32_t;
  24205. #endif
  24206. #endif
  24207. #endif
  24208. EOF
  24209. elif test "$ac_cv_type_u_int32_t" = yes; then
  24210. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24211. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  24212. #ifndef _INT8_T
  24213. #define _INT8_T
  24214. #endif
  24215. #ifndef _INT16_T
  24216. #define _INT16_T
  24217. #endif
  24218. #ifndef _INT32_T
  24219. #define _INT32_T
  24220. #endif
  24221. #ifndef _UINT8_T
  24222. #define _UINT8_T
  24223. #ifndef __uint8_t_defined
  24224. #define __uint8_t_defined
  24225. #ifndef uint8_t
  24226. typedef u_int8_t uint8_t;
  24227. #endif
  24228. #endif
  24229. #endif
  24230. #ifndef _UINT16_T
  24231. #define _UINT16_T
  24232. #ifndef __uint16_t_defined
  24233. #define __uint16_t_defined
  24234. #ifndef uint16_t
  24235. typedef u_int16_t uint16_t;
  24236. #endif
  24237. #endif
  24238. #endif
  24239. #ifndef _UINT32_T
  24240. #define _UINT32_T
  24241. #ifndef __uint32_t_defined
  24242. #define __uint32_t_defined
  24243. #ifndef uint32_t
  24244. typedef u_int32_t uint32_t;
  24245. #endif
  24246. #endif
  24247. #endif
  24248. EOF
  24249. else
  24250. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24251. /* Some systems have guard macros to prevent redefinitions, define them. */
  24252. #ifndef _INT8_T
  24253. #define _INT8_T
  24254. #endif
  24255. #ifndef _INT16_T
  24256. #define _INT16_T
  24257. #endif
  24258. #ifndef _INT32_T
  24259. #define _INT32_T
  24260. #endif
  24261. #ifndef _UINT8_T
  24262. #define _UINT8_T
  24263. #endif
  24264. #ifndef _UINT16_T
  24265. #define _UINT16_T
  24266. #endif
  24267. #ifndef _UINT32_T
  24268. #define _UINT32_T
  24269. #endif
  24270. EOF
  24271. fi
  24272. # ------------- done basic int types, emit int64_t types ------------
  24273. if test "$ac_cv_type_uint64_t" = yes; then
  24274. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24275. /* system headers have good uint64_t and int64_t */
  24276. #ifndef _INT64_T
  24277. #define _INT64_T
  24278. #endif
  24279. #ifndef _UINT64_T
  24280. #define _UINT64_T
  24281. #endif
  24282. EOF
  24283. elif test "$ac_cv_type_u_int64_t" = yes; then
  24284. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24285. /* system headers have an u_int64_t (and int64_t) */
  24286. #ifndef _INT64_T
  24287. #define _INT64_T
  24288. #endif
  24289. #ifndef _UINT64_T
  24290. #define _UINT64_T
  24291. #ifndef __uint64_t_defined
  24292. #define __uint64_t_defined
  24293. #ifndef uint64_t
  24294. typedef u_int64_t uint64_t;
  24295. #endif
  24296. #endif
  24297. #endif
  24298. EOF
  24299. elif test -n "$acx_cv_type_int64_t"; then
  24300. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24301. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  24302. #ifndef _INT64_T
  24303. #define _INT64_T
  24304. #ifndef int64_t
  24305. typedef $acx_cv_type_int64_t int64_t;
  24306. #endif
  24307. #endif
  24308. #ifndef _UINT64_T
  24309. #define _UINT64_T
  24310. #ifndef __uint64_t_defined
  24311. #define __uint64_t_defined
  24312. #ifndef uint64_t
  24313. typedef unsigned $acx_cv_type_int64_t uint64_t;
  24314. #endif
  24315. #endif
  24316. #endif
  24317. EOF
  24318. else
  24319. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24320. /* some common heuristics for int64_t, using compiler-specific tests */
  24321. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  24322. #ifndef _INT64_T
  24323. #define _INT64_T
  24324. #ifndef __int64_t_defined
  24325. #ifndef int64_t
  24326. typedef long long int64_t;
  24327. #endif
  24328. #endif
  24329. #endif
  24330. #ifndef _UINT64_T
  24331. #define _UINT64_T
  24332. #ifndef uint64_t
  24333. typedef unsigned long long uint64_t;
  24334. #endif
  24335. #endif
  24336. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  24337. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  24338. does not implement __extension__. But that compiler doesn't define
  24339. __GNUC_MINOR__. */
  24340. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  24341. # define __extension__
  24342. # endif
  24343. # ifndef _INT64_T
  24344. # define _INT64_T
  24345. # ifndef int64_t
  24346. __extension__ typedef long long int64_t;
  24347. # endif
  24348. # endif
  24349. # ifndef _UINT64_T
  24350. # define _UINT64_T
  24351. # ifndef uint64_t
  24352. __extension__ typedef unsigned long long uint64_t;
  24353. # endif
  24354. # endif
  24355. #elif !defined __STRICT_ANSI__
  24356. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  24357. # ifndef _INT64_T
  24358. # define _INT64_T
  24359. # ifndef int64_t
  24360. typedef __int64 int64_t;
  24361. # endif
  24362. # endif
  24363. # ifndef _UINT64_T
  24364. # define _UINT64_T
  24365. # ifndef uint64_t
  24366. typedef unsigned __int64 uint64_t;
  24367. # endif
  24368. # endif
  24369. # endif /* compiler */
  24370. #endif /* ANSI version */
  24371. EOF
  24372. fi
  24373. # ------------- done int64_t types, emit intptr types ------------
  24374. if test "$ac_cv_type_uintptr_t" != yes; then
  24375. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24376. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  24377. #ifndef __uintptr_t_defined
  24378. #ifndef uintptr_t
  24379. typedef u$acx_cv_type_intptr_t uintptr_t;
  24380. #endif
  24381. #endif
  24382. #ifndef __intptr_t_defined
  24383. #ifndef intptr_t
  24384. typedef $acx_cv_type_intptr_t intptr_t;
  24385. #endif
  24386. #endif
  24387. EOF
  24388. fi
  24389. # ------------- done intptr types, emit int_least types ------------
  24390. if test "$ac_cv_type_int_least32_t" != yes; then
  24391. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24392. /* Define int_least types */
  24393. typedef int8_t int_least8_t;
  24394. typedef int16_t int_least16_t;
  24395. typedef int32_t int_least32_t;
  24396. #ifdef _INT64_T
  24397. typedef int64_t int_least64_t;
  24398. #endif
  24399. typedef uint8_t uint_least8_t;
  24400. typedef uint16_t uint_least16_t;
  24401. typedef uint32_t uint_least32_t;
  24402. #ifdef _UINT64_T
  24403. typedef uint64_t uint_least64_t;
  24404. #endif
  24405. EOF
  24406. fi
  24407. # ------------- done intptr types, emit int_fast types ------------
  24408. if test "$ac_cv_type_int_fast32_t" != yes; then
  24409. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24410. /* Define int_fast types. short is often slow */
  24411. typedef int8_t int_fast8_t;
  24412. typedef int int_fast16_t;
  24413. typedef int32_t int_fast32_t;
  24414. #ifdef _INT64_T
  24415. typedef int64_t int_fast64_t;
  24416. #endif
  24417. typedef uint8_t uint_fast8_t;
  24418. typedef unsigned int uint_fast16_t;
  24419. typedef uint32_t uint_fast32_t;
  24420. #ifdef _UINT64_T
  24421. typedef uint64_t uint_fast64_t;
  24422. #endif
  24423. EOF
  24424. fi
  24425. if test "$ac_cv_type_uintmax_t" != yes; then
  24426. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24427. /* Define intmax based on what we found */
  24428. #ifndef intmax_t
  24429. #ifdef _INT64_T
  24430. typedef int64_t intmax_t;
  24431. #else
  24432. typedef long intmax_t;
  24433. #endif
  24434. #endif
  24435. #ifndef uintmax_t
  24436. #ifdef _UINT64_T
  24437. typedef uint64_t uintmax_t;
  24438. #else
  24439. typedef unsigned long uintmax_t;
  24440. #endif
  24441. #endif
  24442. EOF
  24443. fi
  24444. sed 's/^ *//' >> tmp-stdint.h <<EOF
  24445. #endif /* GCC_GENERATED_STDINT_H */
  24446. EOF
  24447. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  24448. rm -f tmp-stdint.h
  24449. else
  24450. mv -f tmp-stdint.h gstdint.h
  24451. fi
  24452. ;;
  24453. esac
  24454. done # for ac_tag
  24455. as_fn_exit 0
  24456. _ACEOF
  24457. ac_clean_files=$ac_clean_files_save
  24458. test $ac_write_fail = 0 ||
  24459. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24460. # configure is writing to config.log, and then calls config.status.
  24461. # config.status does its own redirection, appending to config.log.
  24462. # Unfortunately, on DOS this fails, as config.log is still kept open
  24463. # by configure, so config.status won't be able to write to it; its
  24464. # output is simply discarded. So we exec the FD to /dev/null,
  24465. # effectively closing config.log, so it can be properly (re)opened and
  24466. # appended to by config.status. When coming back to configure, we
  24467. # need to make the FD available again.
  24468. if test "$no_create" != yes; then
  24469. ac_cs_success=:
  24470. ac_config_status_args=
  24471. test "$silent" = yes &&
  24472. ac_config_status_args="$ac_config_status_args --quiet"
  24473. exec 5>/dev/null
  24474. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24475. exec 5>>config.log
  24476. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24477. # would make configure fail if this is the last instruction.
  24478. $ac_cs_success || as_fn_exit $?
  24479. fi
  24480. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24482. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24483. fi