/Modules/_ctypes/libffi/configure

http://unladen-swallow.googlecode.com/ · Shell · 24420 lines · 19548 code · 2185 blank · 2687 comment · 1704 complexity · a0cecb7eb9cff7722ada11afa5804163 MD5 · raw file

Large files are truncated click here to view the full file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for libffi 3.0.5.
  4. #
  5. # Report bugs to <http://gcc.gnu.org/bugs.html>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  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. # Zsh 3.x and 4.x performs 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*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  514. echo_test_string=`eval $cmd` &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='libffi'
  630. PACKAGE_TARNAME='libffi'
  631. PACKAGE_VERSION='3.0.5'
  632. PACKAGE_STRING='libffi 3.0.5'
  633. PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. build
  707. build_cpu
  708. build_vendor
  709. build_os
  710. host
  711. host_cpu
  712. host_vendor
  713. host_os
  714. target
  715. target_cpu
  716. target_vendor
  717. target_os
  718. INSTALL_PROGRAM
  719. INSTALL_SCRIPT
  720. INSTALL_DATA
  721. am__isrc
  722. CYGPATH_W
  723. PACKAGE
  724. VERSION
  725. ACLOCAL
  726. AUTOCONF
  727. AUTOMAKE
  728. AUTOHEADER
  729. MAKEINFO
  730. install_sh
  731. STRIP
  732. INSTALL_STRIP_PROGRAM
  733. mkdir_p
  734. AWK
  735. SET_MAKE
  736. am__leading_dot
  737. AMTAR
  738. am__tar
  739. am__untar
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. CPPFLAGS
  744. ac_ct_CC
  745. EXEEXT
  746. OBJEXT
  747. DEPDIR
  748. am__include
  749. am__quote
  750. AMDEP_TRUE
  751. AMDEP_FALSE
  752. AMDEPBACKSLASH
  753. CCDEPMODE
  754. am__fastdepCC_TRUE
  755. am__fastdepCC_FALSE
  756. CCAS
  757. CCASFLAGS
  758. CCASDEPMODE
  759. am__fastdepCCAS_TRUE
  760. am__fastdepCCAS_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. MAINTAINER_MODE_TRUE
  781. MAINTAINER_MODE_FALSE
  782. MAINT
  783. TESTSUBDIR_TRUE
  784. TESTSUBDIR_FALSE
  785. AM_RUNTESTFLAGS
  786. MIPS_TRUE
  787. MIPS_FALSE
  788. SPARC_TRUE
  789. SPARC_FALSE
  790. X86_TRUE
  791. X86_FALSE
  792. X86_FREEBSD_TRUE
  793. X86_FREEBSD_FALSE
  794. X86_WIN32_TRUE
  795. X86_WIN32_FALSE
  796. X86_DARWIN_TRUE
  797. X86_DARWIN_FALSE
  798. ALPHA_TRUE
  799. ALPHA_FALSE
  800. IA64_TRUE
  801. IA64_FALSE
  802. M32R_TRUE
  803. M32R_FALSE
  804. M68K_TRUE
  805. M68K_FALSE
  806. POWERPC_TRUE
  807. POWERPC_FALSE
  808. POWERPC_AIX_TRUE
  809. POWERPC_AIX_FALSE
  810. POWERPC_DARWIN_TRUE
  811. POWERPC_DARWIN_FALSE
  812. POWERPC_FREEBSD_TRUE
  813. POWERPC_FREEBSD_FALSE
  814. ARM_TRUE
  815. ARM_FALSE
  816. LIBFFI_CRIS_TRUE
  817. LIBFFI_CRIS_FALSE
  818. FRV_TRUE
  819. FRV_FALSE
  820. S390_TRUE
  821. S390_FALSE
  822. X86_64_TRUE
  823. X86_64_FALSE
  824. SH_TRUE
  825. SH_FALSE
  826. SH64_TRUE
  827. SH64_FALSE
  828. PA_LINUX_TRUE
  829. PA_LINUX_FALSE
  830. PA_HPUX_TRUE
  831. PA_HPUX_FALSE
  832. PA64_HPUX_TRUE
  833. PA64_HPUX_FALSE
  834. ALLOCA
  835. HAVE_LONG_DOUBLE
  836. TARGET
  837. TARGETDIR
  838. toolexecdir
  839. toolexeclibdir
  840. LIBOBJS
  841. LTLIBOBJS'
  842. ac_subst_files=''
  843. ac_precious_vars='build_alias
  844. host_alias
  845. target_alias
  846. CCAS
  847. CCASFLAGS
  848. CPP
  849. CPPFLAGS
  850. CXX
  851. CXXFLAGS
  852. LDFLAGS
  853. LIBS
  854. CCC
  855. CXXCPP
  856. F77
  857. FFLAGS'
  858. # Initialize some variables set by options.
  859. ac_init_help=
  860. ac_init_version=false
  861. # The variables have the same names as the options, with
  862. # dashes changed to underlines.
  863. cache_file=/dev/null
  864. exec_prefix=NONE
  865. no_create=
  866. no_recursion=
  867. prefix=NONE
  868. program_prefix=NONE
  869. program_suffix=NONE
  870. program_transform_name=s,x,x,
  871. silent=
  872. site=
  873. srcdir=
  874. verbose=
  875. x_includes=NONE
  876. x_libraries=NONE
  877. # Installation directory options.
  878. # These are left unexpanded so users can "make install exec_prefix=/foo"
  879. # and all the variables that are supposed to be based on exec_prefix
  880. # by default will actually change.
  881. # Use braces instead of parens because sh, perl, etc. also accept them.
  882. # (The list follows the same order as the GNU Coding Standards.)
  883. bindir='${exec_prefix}/bin'
  884. sbindir='${exec_prefix}/sbin'
  885. libexecdir='${exec_prefix}/libexec'
  886. datarootdir='${prefix}/share'
  887. datadir='${datarootdir}'
  888. sysconfdir='${prefix}/etc'
  889. sharedstatedir='${prefix}/com'
  890. localstatedir='${prefix}/var'
  891. includedir='${prefix}/include'
  892. oldincludedir='/usr/include'
  893. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  894. infodir='${datarootdir}/info'
  895. htmldir='${docdir}'
  896. dvidir='${docdir}'
  897. pdfdir='${docdir}'
  898. psdir='${docdir}'
  899. libdir='${exec_prefix}/lib'
  900. localedir='${datarootdir}/locale'
  901. mandir='${datarootdir}/man'
  902. ac_prev=
  903. ac_dashdash=
  904. for ac_option
  905. do
  906. # If the previous option needs an argument, assign it.
  907. if test -n "$ac_prev"; then
  908. eval $ac_prev=\$ac_option
  909. ac_prev=
  910. continue
  911. fi
  912. case $ac_option in
  913. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  914. *) ac_optarg=yes ;;
  915. esac
  916. # Accept the important Cygnus configure options, so we can diagnose typos.
  917. case $ac_dashdash$ac_option in
  918. --)
  919. ac_dashdash=yes ;;
  920. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  921. ac_prev=bindir ;;
  922. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  923. bindir=$ac_optarg ;;
  924. -build | --build | --buil | --bui | --bu)
  925. ac_prev=build_alias ;;
  926. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  927. build_alias=$ac_optarg ;;
  928. -cache-file | --cache-file | --cache-fil | --cache-fi \
  929. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  930. ac_prev=cache_file ;;
  931. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  932. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  933. cache_file=$ac_optarg ;;
  934. --config-cache | -C)
  935. cache_file=config.cache ;;
  936. -datadir | --datadir | --datadi | --datad)
  937. ac_prev=datadir ;;
  938. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  939. datadir=$ac_optarg ;;
  940. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  941. | --dataroo | --dataro | --datar)
  942. ac_prev=datarootdir ;;
  943. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  944. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  945. datarootdir=$ac_optarg ;;
  946. -disable-* | --disable-*)
  947. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  950. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  951. { (exit 1); exit 1; }; }
  952. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  953. eval enable_$ac_feature=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  966. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  967. { (exit 1); exit 1; }; }
  968. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  969. eval enable_$ac_feature=\$ac_optarg ;;
  970. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  971. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  972. | --exec | --exe | --ex)
  973. ac_prev=exec_prefix ;;
  974. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  975. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  976. | --exec=* | --exe=* | --ex=*)
  977. exec_prefix=$ac_optarg ;;
  978. -gas | --gas | --ga | --g)
  979. # Obsolete; use --with-gas.
  980. with_gas=yes ;;
  981. -help | --help | --hel | --he | -h)
  982. ac_init_help=long ;;
  983. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  984. ac_init_help=recursive ;;
  985. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  986. ac_init_help=short ;;
  987. -host | --host | --hos | --ho)
  988. ac_prev=host_alias ;;
  989. -host=* | --host=* | --hos=* | --ho=*)
  990. host_alias=$ac_optarg ;;
  991. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  992. ac_prev=htmldir ;;
  993. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  994. | --ht=*)
  995. htmldir=$ac_optarg ;;
  996. -includedir | --includedir | --includedi | --included | --include \
  997. | --includ | --inclu | --incl | --inc)
  998. ac_prev=includedir ;;
  999. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1000. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1001. includedir=$ac_optarg ;;
  1002. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1003. ac_prev=infodir ;;
  1004. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1005. infodir=$ac_optarg ;;
  1006. -libdir | --libdir | --libdi | --libd)
  1007. ac_prev=libdir ;;
  1008. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1009. libdir=$ac_optarg ;;
  1010. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1011. | --libexe | --libex | --libe)
  1012. ac_prev=libexecdir ;;
  1013. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1014. | --libexe=* | --libex=* | --libe=*)
  1015. libexecdir=$ac_optarg ;;
  1016. -localedir | --localedir | --localedi | --localed | --locale)
  1017. ac_prev=localedir ;;
  1018. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1019. localedir=$ac_optarg ;;
  1020. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1021. | --localstate | --localstat | --localsta | --localst | --locals)
  1022. ac_prev=localstatedir ;;
  1023. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1024. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1025. localstatedir=$ac_optarg ;;
  1026. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1027. ac_prev=mandir ;;
  1028. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1029. mandir=$ac_optarg ;;
  1030. -nfp | --nfp | --nf)
  1031. # Obsolete; use --without-fp.
  1032. with_fp=no ;;
  1033. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1034. | --no-cr | --no-c | -n)
  1035. no_create=yes ;;
  1036. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1037. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1038. no_recursion=yes ;;
  1039. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1040. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1041. | --oldin | --oldi | --old | --ol | --o)
  1042. ac_prev=oldincludedir ;;
  1043. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1044. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1045. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1046. oldincludedir=$ac_optarg ;;
  1047. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1048. ac_prev=prefix ;;
  1049. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1050. prefix=$ac_optarg ;;
  1051. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1052. | --program-pre | --program-pr | --program-p)
  1053. ac_prev=program_prefix ;;
  1054. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1055. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1056. program_prefix=$ac_optarg ;;
  1057. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1058. | --program-suf | --program-su | --program-s)
  1059. ac_prev=program_suffix ;;
  1060. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1061. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1062. program_suffix=$ac_optarg ;;
  1063. -program-transform-name | --program-transform-name \
  1064. | --program-transform-nam | --program-transform-na \
  1065. | --program-transform-n | --program-transform- \
  1066. | --program-transform | --program-transfor \
  1067. | --program-transfo | --program-transf \
  1068. | --program-trans | --program-tran \
  1069. | --progr-tra | --program-tr | --program-t)
  1070. ac_prev=program_transform_name ;;
  1071. -program-transform-name=* | --program-transform-name=* \
  1072. | --program-transform-nam=* | --program-transform-na=* \
  1073. | --program-transform-n=* | --program-transform-=* \
  1074. | --program-transform=* | --program-transfor=* \
  1075. | --program-transfo=* | --program-transf=* \
  1076. | --program-trans=* | --program-tran=* \
  1077. | --progr-tra=* | --program-tr=* | --program-t=*)
  1078. program_transform_name=$ac_optarg ;;
  1079. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1080. ac_prev=pdfdir ;;
  1081. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1082. pdfdir=$ac_optarg ;;
  1083. -psdir | --psdir | --psdi | --psd | --ps)
  1084. ac_prev=psdir ;;
  1085. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1086. psdir=$ac_optarg ;;
  1087. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1088. | -silent | --silent | --silen | --sile | --sil)
  1089. silent=yes ;;
  1090. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1091. ac_prev=sbindir ;;
  1092. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1093. | --sbi=* | --sb=*)
  1094. sbindir=$ac_optarg ;;
  1095. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1096. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1097. | --sharedst | --shareds | --shared | --share | --shar \
  1098. | --sha | --sh)
  1099. ac_prev=sharedstatedir ;;
  1100. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1101. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1102. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1103. | --sha=* | --sh=*)
  1104. sharedstatedir=$ac_optarg ;;
  1105. -site | --site | --sit)
  1106. ac_prev=site ;;
  1107. -site=* | --site=* | --sit=*)
  1108. site=$ac_optarg ;;
  1109. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1110. ac_prev=srcdir ;;
  1111. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1112. srcdir=$ac_optarg ;;
  1113. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1114. | --syscon | --sysco | --sysc | --sys | --sy)
  1115. ac_prev=sysconfdir ;;
  1116. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1117. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1118. sysconfdir=$ac_optarg ;;
  1119. -target | --target | --targe | --targ | --tar | --ta | --t)
  1120. ac_prev=target_alias ;;
  1121. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1122. target_alias=$ac_optarg ;;
  1123. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1124. verbose=yes ;;
  1125. -version | --version | --versio | --versi | --vers | -V)
  1126. ac_init_version=: ;;
  1127. -with-* | --with-*)
  1128. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1131. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1132. { (exit 1); exit 1; }; }
  1133. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1134. eval with_$ac_package=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1139. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1140. { (exit 1); exit 1; }; }
  1141. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1142. eval with_$ac_package=no ;;
  1143. --x)
  1144. # Obsolete; use --with-x.
  1145. with_x=yes ;;
  1146. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1147. | --x-incl | --x-inc | --x-in | --x-i)
  1148. ac_prev=x_includes ;;
  1149. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1150. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1151. x_includes=$ac_optarg ;;
  1152. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1153. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1154. ac_prev=x_libraries ;;
  1155. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1156. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1157. x_libraries=$ac_optarg ;;
  1158. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1159. Try \`$0 --help' for more information." >&2
  1160. { (exit 1); exit 1; }; }
  1161. ;;
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1166. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1167. { (exit 1); exit 1; }; }
  1168. eval $ac_envvar=\$ac_optarg
  1169. export $ac_envvar ;;
  1170. *)
  1171. # FIXME: should be removed in autoconf 3.0.
  1172. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1173. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1174. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1175. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1176. ;;
  1177. esac
  1178. done
  1179. if test -n "$ac_prev"; then
  1180. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1181. { echo "$as_me: error: missing argument to $ac_option" >&2
  1182. { (exit 1); exit 1; }; }
  1183. fi
  1184. # Be sure to have absolute directory names.
  1185. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1186. datadir sysconfdir sharedstatedir localstatedir includedir \
  1187. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1188. libdir localedir mandir
  1189. do
  1190. eval ac_val=\$$ac_var
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1196. { (exit 1); exit 1; }; }
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1209. If a cross compiler is detected then cross compile mode will be used." >&2
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. { echo "$as_me: error: Working directory cannot be determined" >&2
  1221. { (exit 1); exit 1; }; }
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1224. { (exit 1); exit 1; }; }
  1225. # Find the source files, if location was not specified.
  1226. if test -z "$srcdir"; then
  1227. ac_srcdir_defaulted=yes
  1228. # Try the directory containing this script, then the parent directory.
  1229. ac_confdir=`$as_dirname -- "$0" ||
  1230. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1231. X"$0" : 'X\(//\)[^/]' \| \
  1232. X"$0" : 'X\(//\)$' \| \
  1233. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1234. echo X"$0" |
  1235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)[^/].*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\/\)$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\).*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. s/.*/./; q'`
  1252. srcdir=$ac_confdir
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. srcdir=..
  1255. fi
  1256. else
  1257. ac_srcdir_defaulted=no
  1258. fi
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1261. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1262. { (exit 1); exit 1; }; }
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1267. { (exit 1); exit 1; }; }
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures libffi 3.0.5 to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. Program names:
  1340. --program-prefix=PREFIX prepend PREFIX to installed program names
  1341. --program-suffix=SUFFIX append SUFFIX to installed program names
  1342. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1343. System types:
  1344. --build=BUILD configure for building on BUILD [guessed]
  1345. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1346. --target=TARGET configure for building compilers for TARGET [HOST]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of libffi 3.0.5:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1356. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1357. --disable-dependency-tracking speeds up one-time build
  1358. --enable-dependency-tracking do not reject slow dependency extractors
  1359. --enable-shared[=PKGS] build shared libraries [default=yes]
  1360. --enable-static[=PKGS] build static libraries [default=yes]
  1361. --enable-fast-install[=PKGS]
  1362. optimize for fast installation [default=yes]
  1363. --disable-libtool-lock avoid locking (might break parallel builds)
  1364. --enable-maintainer-mode enable make rules and dependencies not useful
  1365. (and sometimes confusing) to the casual installer
  1366. --enable-debug debugging mode
  1367. --disable-structs omit code for struct support
  1368. --disable-raw-api make the raw api unavailable
  1369. --enable-purify-safety purify-safe mode
  1370. Optional Packages:
  1371. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1372. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1373. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1374. --with-pic try to use only PIC/non-PIC objects [default=use
  1375. both]
  1376. --with-tags[=TAGS] include additional configurations [automatic]
  1377. Some influential environment variables:
  1378. CC C compiler command
  1379. CFLAGS C compiler flags
  1380. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1381. nonstandard directory <lib dir>
  1382. LIBS libraries to pass to the linker, e.g. -l<library>
  1383. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1384. you have headers in a nonstandard directory <include dir>
  1385. CCAS assembler compiler command (defaults to CC)
  1386. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1387. CPP C preprocessor
  1388. CXX C++ compiler command
  1389. CXXFLAGS C++ compiler flags
  1390. CXXCPP C++ preprocessor
  1391. F77 Fortran 77 compiler command
  1392. FFLAGS Fortran 77 compiler flags
  1393. Use these variables to override the choices made by `configure' or to help
  1394. it to find libraries and programs with nonstandard names/locations.
  1395. Report bugs to <http://gcc.gnu.org/bugs.html>.
  1396. _ACEOF
  1397. ac_status=$?
  1398. fi
  1399. if test "$ac_init_help" = "recursive"; then
  1400. # If there are subdirs, report their specific --help.
  1401. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1402. test -d "$ac_dir" || continue
  1403. ac_builddir=.
  1404. case "$ac_dir" in
  1405. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1406. *)
  1407. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1408. # A ".." for each directory in $ac_dir_suffix.
  1409. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1410. case $ac_top_builddir_sub in
  1411. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1413. esac ;;
  1414. esac
  1415. ac_abs_top_builddir=$ac_pwd
  1416. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1417. # for backward compatibility:
  1418. ac_top_builddir=$ac_top_build_prefix
  1419. case $srcdir in
  1420. .) # We are building in place.
  1421. ac_srcdir=.
  1422. ac_top_srcdir=$ac_top_builddir_sub
  1423. ac_abs_top_srcdir=$ac_pwd ;;
  1424. [\\/]* | ?:[\\/]* ) # Absolute name.
  1425. ac_srcdir=$srcdir$ac_dir_suffix;
  1426. ac_top_srcdir=$srcdir
  1427. ac_abs_top_srcdir=$srcdir ;;
  1428. *) # Relative name.
  1429. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1430. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1431. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1432. esac
  1433. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1434. cd "$ac_dir" || { ac_status=$?; continue; }
  1435. # Check for guested configure.
  1436. if test -f "$ac_srcdir/configure.gnu"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1439. elif test -f "$ac_srcdir/configure"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure" --help=recursive
  1442. else
  1443. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1444. fi || ac_status=$?
  1445. cd "$ac_pwd" || { ac_status=$?; break; }
  1446. done
  1447. fi
  1448. test -n "$ac_init_help" && exit $ac_status
  1449. if $ac_init_version; then
  1450. cat <<\_ACEOF
  1451. libffi configure 3.0.5
  1452. generated by GNU Autoconf 2.61
  1453. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1454. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1455. This configure script is free software; the Free Software Foundation
  1456. gives unlimited permission to copy, distribute and modify it.
  1457. _ACEOF
  1458. exit
  1459. fi
  1460. cat >config.log <<_ACEOF
  1461. This file contains any messages produced by compilers while
  1462. running configure, to aid debugging if configure makes a mistake.
  1463. It was created by libffi $as_me 3.0.5, which was
  1464. generated by GNU Autoconf 2.61. Invocation command line was
  1465. $ $0 $@
  1466. _ACEOF
  1467. exec 5>>config.log
  1468. {
  1469. cat <<_ASUNAME
  1470. ## --------- ##
  1471. ## Platform. ##
  1472. ## --------- ##
  1473. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1474. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1475. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1476. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1477. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1478. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1479. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1480. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1481. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1482. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1483. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1484. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1485. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1486. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1487. _ASUNAME
  1488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1489. for as_dir in $PATH
  1490. do
  1491. IFS=$as_save_IFS
  1492. test -z "$as_dir" && as_dir=.
  1493. echo "PATH: $as_dir"
  1494. done
  1495. IFS=$as_save_IFS
  1496. } >&5
  1497. cat >&5 <<_ACEOF
  1498. ## ----------- ##
  1499. ## Core tests. ##
  1500. ## ----------- ##
  1501. _ACEOF
  1502. # Keep a trace of the command line.
  1503. # Strip out --no-create and --no-recursion so they do not pile up.
  1504. # Strip out --silent because we don't want to record it for future runs.
  1505. # Also quote any args containing shell meta-characters.
  1506. # Make two passes to allow for proper duplicate-argument suppression.
  1507. ac_configure_args=
  1508. ac_configure_args0=
  1509. ac_configure_args1=
  1510. ac_must_keep_next=false
  1511. for ac_pass in 1 2
  1512. do
  1513. for ac_arg
  1514. do
  1515. case $ac_arg in
  1516. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1517. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1518. | -silent | --silent | --silen | --sile | --sil)
  1519. continue ;;
  1520. *\'*)
  1521. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1522. esac
  1523. case $ac_pass in
  1524. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1525. 2)
  1526. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1527. if test $ac_must_keep_next = true; then
  1528. ac_must_keep_next=false # Got value, back to normal.
  1529. else
  1530. case $ac_arg in
  1531. *=* | --config-cache | -C | -disable-* | --disable-* \
  1532. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1533. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1534. | -with-* | --with-* | -without-* | --without-* | --x)
  1535. case "$ac_configure_args0 " in
  1536. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1537. esac
  1538. ;;
  1539. -* ) ac_must_keep_next=true ;;
  1540. esac
  1541. fi
  1542. ac_configure_args="$ac_configure_args '$ac_arg'"
  1543. ;;
  1544. esac
  1545. done
  1546. done
  1547. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1548. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1549. # When interrupted or exit'd, cleanup temporary files, and complete
  1550. # config.log. We remove comments because anyway the quotes in there
  1551. # would cause problems or look ugly.
  1552. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1553. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1554. trap 'exit_status=$?
  1555. # Save into config.log some information that might help in debugging.
  1556. {
  1557. echo
  1558. cat <<\_ASBOX
  1559. ## ---------------- ##
  1560. ## Cache variables. ##
  1561. ## ---------------- ##
  1562. _ASBOX
  1563. echo
  1564. # The following way of writing the cache mishandles newlines in values,
  1565. (
  1566. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in #(
  1569. *${as_nl}*)
  1570. case $ac_var in #(
  1571. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1572. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1573. esac
  1574. case $ac_var in #(
  1575. _ | IFS | as_nl) ;; #(
  1576. *) $as_unset $ac_var ;;
  1577. esac ;;
  1578. esac
  1579. done
  1580. (set) 2>&1 |
  1581. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1582. *${as_nl}ac_space=\ *)
  1583. sed -n \
  1584. "s/'\''/'\''\\\\'\'''\''/g;
  1585. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1586. ;; #(
  1587. *)
  1588. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1589. ;;
  1590. esac |
  1591. sort
  1592. )
  1593. echo
  1594. cat <<\_ASBOX
  1595. ## ----------------- ##
  1596. ## Output variables. ##
  1597. ## ----------------- ##
  1598. _ASBOX
  1599. echo
  1600. for ac_var in $ac_subst_vars
  1601. do
  1602. eval ac_val=\$$ac_var
  1603. case $ac_val in
  1604. *\'\''*) ac_val