Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 278.72 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for naev 0.5.-1.
  4. #
  5. # Report bugs to <bobbens@gmail.com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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.  
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28.  
  29. fi
  30.  
  31.  
  32.  
  33.  
  34. # PATH needs CR
  35. # Avoid depending upon Character Ranges.
  36. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39. as_cr_digits='0123456789'
  40. as_cr_alnum=$as_cr_Letters$as_cr_digits
  41.  
  42. as_nl='
  43. '
  44. export as_nl
  45. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. PATH_SEPARATOR=:
  77. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79. PATH_SEPARATOR=';'
  80. }
  81. fi
  82.  
  83. # Support unset when possible.
  84. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  85. as_unset=unset
  86. else
  87. as_unset=false
  88. fi
  89.  
  90.  
  91. # IFS
  92. # We need space, tab and new line, in precisely that order. Quoting is
  93. # there to prevent editors from complaining about space-tab.
  94. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  95. # splitting by setting IFS to empty value.)
  96. IFS=" "" $as_nl"
  97.  
  98. # Find who we are. Look in the path if we contain no directory separator.
  99. case $0 in
  100. *[\\/]* ) as_myself=$0 ;;
  101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  102. for as_dir in $PATH
  103. do
  104. IFS=$as_save_IFS
  105. test -z "$as_dir" && as_dir=.
  106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  107. done
  108. IFS=$as_save_IFS
  109.  
  110. ;;
  111. esac
  112. # We did not find ourselves, most probably we were run as `sh COMMAND'
  113. # in which case we are not to be found in the path.
  114. if test "x$as_myself" = x; then
  115. as_myself=$0
  116. fi
  117. if test ! -f "$as_myself"; then
  118. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  119. { (exit 1); exit 1; }
  120. fi
  121.  
  122. # Work around bugs in pre-3.0 UWIN ksh.
  123. for as_var in ENV MAIL MAILPATH
  124. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  125. done
  126. PS1='$ '
  127. PS2='> '
  128. PS4='+ '
  129.  
  130. # NLS nuisances.
  131. LC_ALL=C
  132. export LC_ALL
  133. LANGUAGE=C
  134. export LANGUAGE
  135.  
  136. # Required to use basename.
  137. if expr a : '\(a\)' >/dev/null 2>&1 &&
  138. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  139. as_expr=expr
  140. else
  141. as_expr=false
  142. fi
  143.  
  144. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  145. as_basename=basename
  146. else
  147. as_basename=false
  148. fi
  149.  
  150.  
  151. # Name of the executable.
  152. as_me=`$as_basename -- "$0" ||
  153. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  154. X"$0" : 'X\(//\)$' \| \
  155. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  156. $as_echo X/"$0" |
  157. sed '/^.*\/\([^/][^/]*\)\/*$/{
  158. s//\1/
  159. q
  160. }
  161. /^X\/\(\/\/\)$/{
  162. s//\1/
  163. q
  164. }
  165. /^X\/\(\/\).*/{
  166. s//\1/
  167. q
  168. }
  169. s/.*/./; q'`
  170.  
  171. # CDPATH.
  172. $as_unset CDPATH
  173.  
  174.  
  175. if test "x$CONFIG_SHELL" = x; then
  176. if (eval ":") 2>/dev/null; then
  177. as_have_required=yes
  178. else
  179. as_have_required=no
  180. fi
  181.  
  182. if test $as_have_required = yes && (eval ":
  183. (as_func_return () {
  184. (exit \$1)
  185. }
  186. as_func_success () {
  187. as_func_return 0
  188. }
  189. as_func_failure () {
  190. as_func_return 1
  191. }
  192. as_func_ret_success () {
  193. return 0
  194. }
  195. as_func_ret_failure () {
  196. return 1
  197. }
  198.  
  199. exitcode=0
  200. if as_func_success; then
  201. :
  202. else
  203. exitcode=1
  204. echo as_func_success failed.
  205. fi
  206.  
  207. if as_func_failure; then
  208. exitcode=1
  209. echo as_func_failure succeeded.
  210. fi
  211.  
  212. if as_func_ret_success; then
  213. :
  214. else
  215. exitcode=1
  216. echo as_func_ret_success failed.
  217. fi
  218.  
  219. if as_func_ret_failure; then
  220. exitcode=1
  221. echo as_func_ret_failure succeeded.
  222. fi
  223.  
  224. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  225. :
  226. else
  227. exitcode=1
  228. echo positional parameters were not saved.
  229. fi
  230.  
  231. test \$exitcode = 0) || { (exit 1); exit 1; }
  232.  
  233. (
  234. as_lineno_1=\$LINENO
  235. as_lineno_2=\$LINENO
  236. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  237. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  238. ") 2> /dev/null; then
  239. :
  240. else
  241. as_candidate_shells=
  242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  243. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  244. do
  245. IFS=$as_save_IFS
  246. test -z "$as_dir" && as_dir=.
  247. case $as_dir in
  248. /*)
  249. for as_base in sh bash ksh sh5; do
  250. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  251. done;;
  252. esac
  253. done
  254. IFS=$as_save_IFS
  255.  
  256.  
  257. for as_shell in $as_candidate_shells $SHELL; do
  258. # Try only shells that exist, to save several forks.
  259. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  260. { ("$as_shell") 2> /dev/null <<\_ASEOF
  261. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  262. emulate sh
  263. NULLCMD=:
  264. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  265. # is contrary to our usage. Disable this feature.
  266. alias -g '${1+"$@"}'='"$@"'
  267. setopt NO_GLOB_SUBST
  268. else
  269. case `(set -o) 2>/dev/null` in
  270. *posix*) set -o posix ;;
  271. esac
  272.  
  273. fi
  274.  
  275.  
  276. :
  277. _ASEOF
  278. }; then
  279. CONFIG_SHELL=$as_shell
  280. as_have_required=yes
  281. if { "$as_shell" 2> /dev/null <<\_ASEOF
  282. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  283. emulate sh
  284. NULLCMD=:
  285. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  286. # is contrary to our usage. Disable this feature.
  287. alias -g '${1+"$@"}'='"$@"'
  288. setopt NO_GLOB_SUBST
  289. else
  290. case `(set -o) 2>/dev/null` in
  291. *posix*) set -o posix ;;
  292. esac
  293.  
  294. fi
  295.  
  296.  
  297. :
  298. (as_func_return () {
  299. (exit $1)
  300. }
  301. as_func_success () {
  302. as_func_return 0
  303. }
  304. as_func_failure () {
  305. as_func_return 1
  306. }
  307. as_func_ret_success () {
  308. return 0
  309. }
  310. as_func_ret_failure () {
  311. return 1
  312. }
  313.  
  314. exitcode=0
  315. if as_func_success; then
  316. :
  317. else
  318. exitcode=1
  319. echo as_func_success failed.
  320. fi
  321.  
  322. if as_func_failure; then
  323. exitcode=1
  324. echo as_func_failure succeeded.
  325. fi
  326.  
  327. if as_func_ret_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_ret_success failed.
  332. fi
  333.  
  334. if as_func_ret_failure; then
  335. exitcode=1
  336. echo as_func_ret_failure succeeded.
  337. fi
  338.  
  339. if ( set x; as_func_ret_success y && test x = "$1" ); then
  340. :
  341. else
  342. exitcode=1
  343. echo positional parameters were not saved.
  344. fi
  345.  
  346. test $exitcode = 0) || { (exit 1); exit 1; }
  347.  
  348. (
  349. as_lineno_1=$LINENO
  350. as_lineno_2=$LINENO
  351. test "x$as_lineno_1" != "x$as_lineno_2" &&
  352. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  353.  
  354. _ASEOF
  355. }; then
  356. break
  357. fi
  358.  
  359. fi
  360.  
  361. done
  362.  
  363. if test "x$CONFIG_SHELL" != x; then
  364. for as_var in BASH_ENV ENV
  365. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  366. done
  367. export CONFIG_SHELL
  368. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  369. fi
  370.  
  371.  
  372. if test $as_have_required = no; then
  373. echo This script requires a shell more modern than all the
  374. echo shells that I found on your system. Please install a
  375. echo modern shell, or manually run the script under such a
  376. echo shell if you do have one.
  377. { (exit 1); exit 1; }
  378. fi
  379.  
  380.  
  381. fi
  382.  
  383. fi
  384.  
  385.  
  386.  
  387. (eval "as_func_return () {
  388. (exit \$1)
  389. }
  390. as_func_success () {
  391. as_func_return 0
  392. }
  393. as_func_failure () {
  394. as_func_return 1
  395. }
  396. as_func_ret_success () {
  397. return 0
  398. }
  399. as_func_ret_failure () {
  400. return 1
  401. }
  402.  
  403. exitcode=0
  404. if as_func_success; then
  405. :
  406. else
  407. exitcode=1
  408. echo as_func_success failed.
  409. fi
  410.  
  411. if as_func_failure; then
  412. exitcode=1
  413. echo as_func_failure succeeded.
  414. fi
  415.  
  416. if as_func_ret_success; then
  417. :
  418. else
  419. exitcode=1
  420. echo as_func_ret_success failed.
  421. fi
  422.  
  423. if as_func_ret_failure; then
  424. exitcode=1
  425. echo as_func_ret_failure succeeded.
  426. fi
  427.  
  428. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  429. :
  430. else
  431. exitcode=1
  432. echo positional parameters were not saved.
  433. fi
  434.  
  435. test \$exitcode = 0") || {
  436. echo No shell found that supports shell functions.
  437. echo Please tell bug-autoconf@gnu.org about your system,
  438. echo including any error possibly output before this message.
  439. echo This can help us improve future autoconf versions.
  440. echo Configuration will now proceed without shell functions.
  441. }
  442.  
  443.  
  444.  
  445. as_lineno_1=$LINENO
  446. as_lineno_2=$LINENO
  447. test "x$as_lineno_1" != "x$as_lineno_2" &&
  448. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  449.  
  450. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  451. # uniformly replaced by the line number. The first 'sed' inserts a
  452. # line-number line after each line using $LINENO; the second 'sed'
  453. # does the real work. The second script uses 'N' to pair each
  454. # line-number line with the line containing $LINENO, and appends
  455. # trailing '-' during substitution so that $LINENO is not a special
  456. # case at line end.
  457. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  458. # scripts with optimization help from Paolo Bonzini. Blame Lee
  459. # E. McMahon (1931-1989) for sed's syntax. :-)
  460. sed -n '
  461. p
  462. /[$]LINENO/=
  463. ' <$as_myself |
  464. sed '
  465. s/[$]LINENO.*/&-/
  466. t lineno
  467. b
  468. :lineno
  469. N
  470. :loop
  471. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  472. t loop
  473. s/-\n.*//
  474. ' >$as_me.lineno &&
  475. chmod +x "$as_me.lineno" ||
  476. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  477. { (exit 1); exit 1; }; }
  478.  
  479. # Don't try to exec as it changes $[0], causing all sort of problems
  480. # (the dirname of $[0] is not the place where we might find the
  481. # original and so on. Autoconf is especially sensitive to this).
  482. . "./$as_me.lineno"
  483. # Exit status is that of the last command.
  484. exit
  485. }
  486.  
  487.  
  488. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  489. as_dirname=dirname
  490. else
  491. as_dirname=false
  492. fi
  493.  
  494. ECHO_C= ECHO_N= ECHO_T=
  495. case `echo -n x` in
  496. -n*)
  497. case `echo 'x\c'` in
  498. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  499. *) ECHO_C='\c';;
  500. esac;;
  501. *)
  502. ECHO_N='-n';;
  503. esac
  504. if expr a : '\(a\)' >/dev/null 2>&1 &&
  505. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  506. as_expr=expr
  507. else
  508. as_expr=false
  509. fi
  510.  
  511. rm -f conf$$ conf$$.exe conf$$.file
  512. if test -d conf$$.dir; then
  513. rm -f conf$$.dir/conf$$.file
  514. else
  515. rm -f conf$$.dir
  516. mkdir conf$$.dir 2>/dev/null
  517. fi
  518. if (echo >conf$$.file) 2>/dev/null; then
  519. if ln -s conf$$.file conf$$ 2>/dev/null; then
  520. as_ln_s='ln -s'
  521. # ... but there are two gotchas:
  522. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  523. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  524. # In both cases, we have to default to `cp -p'.
  525. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  526. as_ln_s='cp -p'
  527. elif ln conf$$.file conf$$ 2>/dev/null; then
  528. as_ln_s=ln
  529. else
  530. as_ln_s='cp -p'
  531. fi
  532. else
  533. as_ln_s='cp -p'
  534. fi
  535. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  536. rmdir conf$$.dir 2>/dev/null
  537.  
  538. if mkdir -p . 2>/dev/null; then
  539. as_mkdir_p=:
  540. else
  541. test -d ./-p && rmdir ./-p
  542. as_mkdir_p=false
  543. fi
  544.  
  545. if test -x / >/dev/null 2>&1; then
  546. as_test_x='test -x'
  547. else
  548. if ls -dL / >/dev/null 2>&1; then
  549. as_ls_L_option=L
  550. else
  551. as_ls_L_option=
  552. fi
  553. as_test_x='
  554. eval sh -c '\''
  555. if test -d "$1"; then
  556. test -d "$1/.";
  557. else
  558. case $1 in
  559. -*)set "./$1";;
  560. esac;
  561. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  562. ???[sx]*):;;*)false;;esac;fi
  563. '\'' sh
  564. '
  565. fi
  566. as_executable_p=$as_test_x
  567.  
  568. # Sed expression to map a string onto a valid CPP name.
  569. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  570.  
  571. # Sed expression to map a string onto a valid variable name.
  572. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  573.  
  574.  
  575.  
  576. exec 7<&0 </dev/null 6>&1
  577.  
  578. # Name of the host.
  579. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  580. # so uname gets run too.
  581. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  582.  
  583. #
  584. # Initializations.
  585. #
  586. ac_default_prefix=/usr/local
  587. ac_clean_files=
  588. ac_config_libobj_dir=.
  589. LIBOBJS=
  590. cross_compiling=no
  591. subdirs=
  592. MFLAGS=
  593. MAKEFLAGS=
  594. SHELL=${CONFIG_SHELL-/bin/sh}
  595.  
  596. # Identity of this package.
  597. PACKAGE_NAME='naev'
  598. PACKAGE_TARNAME='naev'
  599. PACKAGE_VERSION='0.5.-1'
  600. PACKAGE_STRING='naev 0.5.-1'
  601. PACKAGE_BUGREPORT='bobbens@gmail.com'
  602.  
  603. ac_unique_file="src/naev.c"
  604. # Factoring default headers for most tests.
  605. ac_includes_default="\
  606. #include <stdio.h>
  607. #ifdef HAVE_SYS_TYPES_H
  608. # include <sys/types.h>
  609. #endif
  610. #ifdef HAVE_SYS_STAT_H
  611. # include <sys/stat.h>
  612. #endif
  613. #ifdef STDC_HEADERS
  614. # include <stdlib.h>
  615. # include <stddef.h>
  616. #else
  617. # ifdef HAVE_STDLIB_H
  618. # include <stdlib.h>
  619. # endif
  620. #endif
  621. #ifdef HAVE_STRING_H
  622. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  623. # include <memory.h>
  624. # endif
  625. # include <string.h>
  626. #endif
  627. #ifdef HAVE_STRINGS_H
  628. # include <strings.h>
  629. #endif
  630. #ifdef HAVE_INTTYPES_H
  631. # include <inttypes.h>
  632. #endif
  633. #ifdef HAVE_STDINT_H
  634. # include <stdint.h>
  635. #endif
  636. #ifdef HAVE_UNISTD_H
  637. # include <unistd.h>
  638. #endif"
  639.  
  640. ac_subst_vars='LTLIBOBJS
  641. LIBOBJS
  642. Q
  643. V
  644. MCS
  645. OBJC
  646. F77
  647. FC
  648. CXX
  649. SED
  650. AM_MAKEFLAGS
  651. MAKEFLAGS
  652. shavedir
  653. HAVE_SDLIMAGE_FALSE
  654. HAVE_SDLIMAGE_TRUE
  655. HAVE_DOCS_FALSE
  656. HAVE_DOCS_TRUE
  657. HAVE_UTILS_FALSE
  658. HAVE_UTILS_TRUE
  659. HAVE_LUADOC_FALSE
  660. HAVE_LUADOC_TRUE
  661. HAVE_DOXYGEN_FALSE
  662. HAVE_DOXYGEN_TRUE
  663. HAVE_WINDRES_FALSE
  664. HAVE_WINDRES_TRUE
  665. WINDRES
  666. PACK_LIBS
  667. PACK_CFLAGS
  668. LIBLUA_CFLAGS
  669. NAEV_DEPENDENCIES
  670. NAEV_LIBS
  671. NAEV_CFLAGS
  672. GLOBAL_LIBS
  673. GLOBAL_CFLAGS
  674. OPENGL_LIBS
  675. OPENGL_CFLAGS
  676. OPENAL_LIBS
  677. OPENAL_CFLAGS
  678. PNG_LIBS
  679. PNG_CFLAGS
  680. VORBISFILE_LIBS
  681. VORBISFILE_CFLAGS
  682. FREETYPE_LIBS
  683. FREETYPE_CFLAGS
  684. XML_LIBS
  685. XML_CFLAGS
  686. SDL_LIBS
  687. SDL_CFLAGS
  688. SDL_CONFIG
  689. prefsdir
  690. ndata_path
  691. EGREP
  692. GREP
  693. CPP
  694. host_os
  695. host_vendor
  696. host_cpu
  697. host
  698. build_os
  699. build_vendor
  700. build_cpu
  701. build
  702. GIT
  703. LUADOC
  704. DOXYGEN
  705. CUT
  706. PKG_CONFIG
  707. RANLIB
  708. LN_S
  709. am__fastdepCC_FALSE
  710. am__fastdepCC_TRUE
  711. CCDEPMODE
  712. AMDEPBACKSLASH
  713. AMDEP_FALSE
  714. AMDEP_TRUE
  715. am__quote
  716. am__include
  717. DEPDIR
  718. OBJEXT
  719. EXEEXT
  720. ac_ct_CC
  721. CPPFLAGS
  722. LDFLAGS
  723. CFLAGS
  724. CC
  725. am__untar
  726. am__tar
  727. AMTAR
  728. am__leading_dot
  729. SET_MAKE
  730. AWK
  731. mkdir_p
  732. MKDIR_P
  733. INSTALL_STRIP_PROGRAM
  734. STRIP
  735. install_sh
  736. MAKEINFO
  737. AUTOHEADER
  738. AUTOMAKE
  739. AUTOCONF
  740. ACLOCAL
  741. VERSION
  742. PACKAGE
  743. CYGPATH_W
  744. am__isrc
  745. INSTALL_DATA
  746. INSTALL_SCRIPT
  747. INSTALL_PROGRAM
  748. target_alias
  749. host_alias
  750. build_alias
  751. LIBS
  752. ECHO_T
  753. ECHO_N
  754. ECHO_C
  755. DEFS
  756. mandir
  757. localedir
  758. libdir
  759. psdir
  760. pdfdir
  761. dvidir
  762. htmldir
  763. infodir
  764. docdir
  765. oldincludedir
  766. includedir
  767. localstatedir
  768. sharedstatedir
  769. sysconfdir
  770. datadir
  771. datarootdir
  772. libexecdir
  773. sbindir
  774. bindir
  775. program_transform_name
  776. prefix
  777. exec_prefix
  778. PACKAGE_BUGREPORT
  779. PACKAGE_STRING
  780. PACKAGE_VERSION
  781. PACKAGE_TARNAME
  782. PACKAGE_NAME
  783. PATH_SEPARATOR
  784. SHELL'
  785. ac_subst_files=''
  786. ac_user_opts='
  787. enable_option_checking
  788. enable_dependency_tracking
  789. enable_debug
  790. with_openal
  791. with_sdlmixer
  792. with_ndata_path
  793. with_preferences_dir
  794. with_sdl_prefix
  795. with_sdl_exec_prefix
  796. enable_sdltest
  797. enable_shave
  798. '
  799. ac_precious_vars='build_alias
  800. host_alias
  801. target_alias
  802. CC
  803. CFLAGS
  804. LDFLAGS
  805. LIBS
  806. CPPFLAGS
  807. PKG_CONFIG
  808. CPP
  809. XML_CFLAGS
  810. XML_LIBS
  811. FREETYPE_CFLAGS
  812. FREETYPE_LIBS
  813. VORBISFILE_CFLAGS
  814. VORBISFILE_LIBS
  815. PNG_CFLAGS
  816. PNG_LIBS'
  817.  
  818.  
  819. # Initialize some variables set by options.
  820. ac_init_help=
  821. ac_init_version=false
  822. ac_unrecognized_opts=
  823. ac_unrecognized_sep=
  824. # The variables have the same names as the options, with
  825. # dashes changed to underlines.
  826. cache_file=/dev/null
  827. exec_prefix=NONE
  828. no_create=
  829. no_recursion=
  830. prefix=NONE
  831. program_prefix=NONE
  832. program_suffix=NONE
  833. program_transform_name=s,x,x,
  834. silent=
  835. site=
  836. srcdir=
  837. verbose=
  838. x_includes=NONE
  839. x_libraries=NONE
  840.  
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866.  
  867. ac_prev=
  868. ac_dashdash=
  869. for ac_option
  870. do
  871. # If the previous option needs an argument, assign it.
  872. if test -n "$ac_prev"; then
  873. eval $ac_prev=\$ac_option
  874. ac_prev=
  875. continue
  876. fi
  877.  
  878. case $ac_option in
  879. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  880. *) ac_optarg=yes ;;
  881. esac
  882.  
  883. # Accept the important Cygnus configure options, so we can diagnose typos.
  884.  
  885. case $ac_dashdash$ac_option in
  886. --)
  887. ac_dashdash=yes ;;
  888.  
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893.  
  894. -build | --build | --buil | --bui | --bu)
  895. ac_prev=build_alias ;;
  896. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  897. build_alias=$ac_optarg ;;
  898.  
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905.  
  906. --config-cache | -C)
  907. cache_file=config.cache ;;
  908.  
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913.  
  914. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  915. | --dataroo | --dataro | --datar)
  916. ac_prev=datarootdir ;;
  917. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  918. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  919. datarootdir=$ac_optarg ;;
  920.  
  921. -disable-* | --disable-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  926. { (exit 1); exit 1; }; }
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937.  
  938. -docdir | --docdir | --docdi | --doc | --do)
  939. ac_prev=docdir ;;
  940. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  941. docdir=$ac_optarg ;;
  942.  
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947.  
  948. -enable-* | --enable-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  953. { (exit 1); exit 1; }; }
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=\$ac_optarg ;;
  964.  
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973.  
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977.  
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984.  
  985. -host | --host | --hos | --ho)
  986. ac_prev=host_alias ;;
  987. -host=* | --host=* | --hos=* | --ho=*)
  988. host_alias=$ac_optarg ;;
  989.  
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995.  
  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.  
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007.  
  1008. -libdir | --libdir | --libdi | --libd)
  1009. ac_prev=libdir ;;
  1010. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1011. libdir=$ac_optarg ;;
  1012.  
  1013. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1014. | --libexe | --libex | --libe)
  1015. ac_prev=libexecdir ;;
  1016. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1017. | --libexe=* | --libex=* | --libe=*)
  1018. libexecdir=$ac_optarg ;;
  1019.  
  1020. -localedir | --localedir | --localedi | --localed | --locale)
  1021. ac_prev=localedir ;;
  1022. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1023. localedir=$ac_optarg ;;
  1024.  
  1025. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1026. | --localstate | --localstat | --localsta | --localst | --locals)
  1027. ac_prev=localstatedir ;;
  1028. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1029. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1030. localstatedir=$ac_optarg ;;
  1031.  
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. mandir=$ac_optarg ;;
  1036.  
  1037. -nfp | --nfp | --nf)
  1038. # Obsolete; use --without-fp.
  1039. with_fp=no ;;
  1040.  
  1041. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1042. | --no-cr | --no-c | -n)
  1043. no_create=yes ;;
  1044.  
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048.  
  1049. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1050. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1051. | --oldin | --oldi | --old | --ol | --o)
  1052. ac_prev=oldincludedir ;;
  1053. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1054. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1055. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1056. oldincludedir=$ac_optarg ;;
  1057.  
  1058. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1059. ac_prev=prefix ;;
  1060. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1061. prefix=$ac_optarg ;;
  1062.  
  1063. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1064. | --program-pre | --program-pr | --program-p)
  1065. ac_prev=program_prefix ;;
  1066. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1067. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1068. program_prefix=$ac_optarg ;;
  1069.  
  1070. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1071. | --program-suf | --program-su | --program-s)
  1072. ac_prev=program_suffix ;;
  1073. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1074. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1075. program_suffix=$ac_optarg ;;
  1076.  
  1077. -program-transform-name | --program-transform-name \
  1078. | --program-transform-nam | --program-transform-na \
  1079. | --program-transform-n | --program-transform- \
  1080. | --program-transform | --program-transfor \
  1081. | --program-transfo | --program-transf \
  1082. | --program-trans | --program-tran \
  1083. | --progr-tra | --program-tr | --program-t)
  1084. ac_prev=program_transform_name ;;
  1085. -program-transform-name=* | --program-transform-name=* \
  1086. | --program-transform-nam=* | --program-transform-na=* \
  1087. | --program-transform-n=* | --program-transform-=* \
  1088. | --program-transform=* | --program-transfor=* \
  1089. | --program-transfo=* | --program-transf=* \
  1090. | --program-trans=* | --program-tran=* \
  1091. | --progr-tra=* | --program-tr=* | --program-t=*)
  1092. program_transform_name=$ac_optarg ;;
  1093.  
  1094. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1095. ac_prev=pdfdir ;;
  1096. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1097. pdfdir=$ac_optarg ;;
  1098.  
  1099. -psdir | --psdir | --psdi | --psd | --ps)
  1100. ac_prev=psdir ;;
  1101. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1102. psdir=$ac_optarg ;;
  1103.  
  1104. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1105. | -silent | --silent | --silen | --sile | --sil)
  1106. silent=yes ;;
  1107.  
  1108. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1109. ac_prev=sbindir ;;
  1110. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1111. | --sbi=* | --sb=*)
  1112. sbindir=$ac_optarg ;;
  1113.  
  1114. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1115. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1116. | --sharedst | --shareds | --shared | --share | --shar \
  1117. | --sha | --sh)
  1118. ac_prev=sharedstatedir ;;
  1119. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1120. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1121. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1122. | --sha=* | --sh=*)
  1123. sharedstatedir=$ac_optarg ;;
  1124.  
  1125. -site | --site | --sit)
  1126. ac_prev=site ;;
  1127. -site=* | --site=* | --sit=*)
  1128. site=$ac_optarg ;;
  1129.  
  1130. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1131. ac_prev=srcdir ;;
  1132. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1133. srcdir=$ac_optarg ;;
  1134.  
  1135. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1136. | --syscon | --sysco | --sysc | --sys | --sy)
  1137. ac_prev=sysconfdir ;;
  1138. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1139. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1140. sysconfdir=$ac_optarg ;;
  1141.  
  1142. -target | --target | --targe | --targ | --tar | --ta | --t)
  1143. ac_prev=target_alias ;;
  1144. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1145. target_alias=$ac_optarg ;;
  1146.  
  1147. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1148. verbose=yes ;;
  1149.  
  1150. -version | --version | --versio | --versi | --vers | -V)
  1151. ac_init_version=: ;;
  1152.  
  1153. -with-* | --with-*)
  1154. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1155. # Reject names that are not valid shell variable names.
  1156. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1157. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1158. { (exit 1); exit 1; }; }
  1159. ac_useropt_orig=$ac_useropt
  1160. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1161. case $ac_user_opts in
  1162. *"
  1163. "with_$ac_useropt"
  1164. "*) ;;
  1165. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1166. ac_unrecognized_sep=', ';;
  1167. esac
  1168. eval with_$ac_useropt=\$ac_optarg ;;
  1169.  
  1170. -without-* | --without-*)
  1171. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1172. # Reject names that are not valid shell variable names.
  1173. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1174. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1175. { (exit 1); exit 1; }; }
  1176. ac_useropt_orig=$ac_useropt
  1177. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1178. case $ac_user_opts in
  1179. *"
  1180. "with_$ac_useropt"
  1181. "*) ;;
  1182. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1183. ac_unrecognized_sep=', ';;
  1184. esac
  1185. eval with_$ac_useropt=no ;;
  1186.  
  1187. --x)
  1188. # Obsolete; use --with-x.
  1189. with_x=yes ;;
  1190.  
  1191. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1192. | --x-incl | --x-inc | --x-in | --x-i)
  1193. ac_prev=x_includes ;;
  1194. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1195. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1196. x_includes=$ac_optarg ;;
  1197.  
  1198. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1199. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1200. ac_prev=x_libraries ;;
  1201. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1202. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1203. x_libraries=$ac_optarg ;;
  1204.  
  1205. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1206. Try \`$0 --help' for more information." >&2
  1207. { (exit 1); exit 1; }; }
  1208. ;;
  1209.  
  1210. *=*)
  1211. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1214. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1215. { (exit 1); exit 1; }; }
  1216. eval $ac_envvar=\$ac_optarg
  1217. export $ac_envvar ;;
  1218.  
  1219. *)
  1220. # FIXME: should be removed in autoconf 3.0.
  1221. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1222. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1223. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1224. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1225. ;;
  1226.  
  1227. esac
  1228. done
  1229.  
  1230. if test -n "$ac_prev"; then
  1231. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1232. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1233. { (exit 1); exit 1; }; }
  1234. fi
  1235.  
  1236. if test -n "$ac_unrecognized_opts"; then
  1237. case $enable_option_checking in
  1238. no) ;;
  1239. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1240. { (exit 1); exit 1; }; } ;;
  1241. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1242. esac
  1243. fi
  1244.  
  1245. # Check all directory arguments for consistency.
  1246. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1247. datadir sysconfdir sharedstatedir localstatedir includedir \
  1248. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1249. libdir localedir mandir
  1250. do
  1251. eval ac_val=\$$ac_var
  1252. # Remove trailing slashes.
  1253. case $ac_val in
  1254. */ )
  1255. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1256. eval $ac_var=\$ac_val;;
  1257. esac
  1258. # Be sure to have absolute directory names.
  1259. case $ac_val in
  1260. [\\/$]* | ?:[\\/]* ) continue;;
  1261. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1262. esac
  1263. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1264. { (exit 1); exit 1; }; }
  1265. done
  1266.  
  1267. # There might be people who depend on the old broken behavior: `$host'
  1268. # used to hold the argument of --host etc.
  1269. # FIXME: To remove some day.
  1270. build=$build_alias
  1271. host=$host_alias
  1272. target=$target_alias
  1273.  
  1274. # FIXME: To remove some day.
  1275. if test "x$host_alias" != x; then
  1276. if test "x$build_alias" = x; then
  1277. cross_compiling=maybe
  1278. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1279. If a cross compiler is detected then cross compile mode will be used." >&2
  1280. elif test "x$build_alias" != "x$host_alias"; then
  1281. cross_compiling=yes
  1282. fi
  1283. fi
  1284.  
  1285. ac_tool_prefix=
  1286. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1287.  
  1288. test "$silent" = yes && exec 6>/dev/null
  1289.  
  1290.  
  1291. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1292. ac_ls_di=`ls -di .` &&
  1293. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1294. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1295. { (exit 1); exit 1; }; }
  1296. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1297. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1298. { (exit 1); exit 1; }; }
  1299.  
  1300.  
  1301. # Find the source files, if location was not specified.
  1302. if test -z "$srcdir"; then
  1303. ac_srcdir_defaulted=yes
  1304. # Try the directory containing this script, then the parent directory.
  1305. ac_confdir=`$as_dirname -- "$as_myself" ||
  1306. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1307. X"$as_myself" : 'X\(//\)[^/]' \| \
  1308. X"$as_myself" : 'X\(//\)$' \| \
  1309. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1310. $as_echo X"$as_myself" |
  1311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1312. s//\1/
  1313. q
  1314. }
  1315. /^X\(\/\/\)[^/].*/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\/\)$/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\).*/{
  1324. s//\1/
  1325. q
  1326. }
  1327. s/.*/./; q'`
  1328. srcdir=$ac_confdir
  1329. if test ! -r "$srcdir/$ac_unique_file"; then
  1330. srcdir=..
  1331. fi
  1332. else
  1333. ac_srcdir_defaulted=no
  1334. fi
  1335. if test ! -r "$srcdir/$ac_unique_file"; then
  1336. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1337. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1338. { (exit 1); exit 1; }; }
  1339. fi
  1340. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1341. ac_abs_confdir=`(
  1342. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1343. { (exit 1); exit 1; }; }
  1344. pwd)`
  1345. # When building in place, set srcdir=.
  1346. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1347. srcdir=.
  1348. fi
  1349. # Remove unnecessary trailing slashes from srcdir.
  1350. # Double slashes in file names in object file debugging info
  1351. # mess up M-x gdb in Emacs.
  1352. case $srcdir in
  1353. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1354. esac
  1355. for ac_var in $ac_precious_vars; do
  1356. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1357. eval ac_env_${ac_var}_value=\$${ac_var}
  1358. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1359. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1360. done
  1361.  
  1362. #
  1363. # Report the --help message.
  1364. #
  1365. if test "$ac_init_help" = "long"; then
  1366. # Omit some internal or obsolete options to make the list less imposing.
  1367. # This message is too long to be a string in the A/UX 3.1 sh.
  1368. cat <<_ACEOF
  1369. \`configure' configures naev 0.5.-1 to adapt to many kinds of systems.
  1370.  
  1371. Usage: $0 [OPTION]... [VAR=VALUE]...
  1372.  
  1373. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1374. VAR=VALUE. See below for descriptions of some of the useful variables.
  1375.  
  1376. Defaults for the options are specified in brackets.
  1377.  
  1378. Configuration:
  1379. -h, --help display this help and exit
  1380. --help=short display options specific to this package
  1381. --help=recursive display the short help of all the included packages
  1382. -V, --version display version information and exit
  1383. -q, --quiet, --silent do not print \`checking...' messages
  1384. --cache-file=FILE cache test results in FILE [disabled]
  1385. -C, --config-cache alias for \`--cache-file=config.cache'
  1386. -n, --no-create do not create output files
  1387. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1388.  
  1389. Installation directories:
  1390. --prefix=PREFIX install architecture-independent files in PREFIX
  1391. [$ac_default_prefix]
  1392. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1393. [PREFIX]
  1394.  
  1395. By default, \`make install' will install all the files in
  1396. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1397. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1398. for instance \`--prefix=\$HOME'.
  1399.  
  1400. For better control, use the options below.
  1401.  
  1402. Fine tuning of the installation directories:
  1403. --bindir=DIR user executables [EPREFIX/bin]
  1404. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1405. --libexecdir=DIR program executables [EPREFIX/libexec]
  1406. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1407. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1408. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1409. --libdir=DIR object code libraries [EPREFIX/lib]
  1410. --includedir=DIR C header files [PREFIX/include]
  1411. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1412. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1413. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1414. --infodir=DIR info documentation [DATAROOTDIR/info]
  1415. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1416. --mandir=DIR man documentation [DATAROOTDIR/man]
  1417. --docdir=DIR documentation root [DATAROOTDIR/doc/naev]
  1418. --htmldir=DIR html documentation [DOCDIR]
  1419. --dvidir=DIR dvi documentation [DOCDIR]
  1420. --pdfdir=DIR pdf documentation [DOCDIR]
  1421. --psdir=DIR ps documentation [DOCDIR]
  1422. _ACEOF
  1423.  
  1424. cat <<\_ACEOF
  1425.  
  1426. Program names:
  1427. --program-prefix=PREFIX prepend PREFIX to installed program names
  1428. --program-suffix=SUFFIX append SUFFIX to installed program names
  1429. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1430.  
  1431. System types:
  1432. --build=BUILD configure for building on BUILD [guessed]
  1433. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1434. _ACEOF
  1435. fi
  1436.  
  1437. if test -n "$ac_init_help"; then
  1438. case $ac_init_help in
  1439. short | recursive ) echo "Configuration of naev 0.5.-1:";;
  1440. esac
  1441. cat <<\_ACEOF
  1442.  
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --disable-dependency-tracking speeds up one-time build
  1448. --enable-dependency-tracking do not reject slow dependency extractors
  1449. --enable-debug=[no|yes|paranoid]
  1450. enable debug mode (default: yes)
  1451. --disable-sdltest Do not try to compile and run a test SDL program
  1452. --enable-shave use shave to make the build pretty [default=yes]
  1453.  
  1454. Optional Packages:
  1455. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1456. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1457. --with-openal use the OpenAL sound backend (default: yes)
  1458. --with-sdlmixer use the SDL_mixer sound backend (default: yes)
  1459. --with-ndata-path=PATH path to the ndata file
  1460. --with-preferences-dir=DIR
  1461. preferences directory
  1462. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1463. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1464.  
  1465. Some influential environment variables:
  1466. CC C compiler command
  1467. CFLAGS C compiler flags
  1468. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1469. nonstandard directory <lib dir>
  1470. LIBS libraries to pass to the linker, e.g. -l<library>
  1471. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1472. you have headers in a nonstandard directory <include dir>
  1473. PKG_CONFIG path to pkg-config utility
  1474. CPP C preprocessor
  1475. XML_CFLAGS C compiler flags for XML, overriding pkg-config
  1476. XML_LIBS linker flags for XML, overriding pkg-config
  1477. FREETYPE_CFLAGS
  1478. C compiler flags for FREETYPE, overriding pkg-config
  1479. FREETYPE_LIBS
  1480. linker flags for FREETYPE, overriding pkg-config
  1481. VORBISFILE_CFLAGS
  1482. C compiler flags for VORBISFILE, overriding pkg-config
  1483. VORBISFILE_LIBS
  1484. linker flags for VORBISFILE, overriding pkg-config
  1485. PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
  1486. PNG_LIBS linker flags for PNG, overriding pkg-config
  1487.  
  1488. Use these variables to override the choices made by `configure' or to help
  1489. it to find libraries and programs with nonstandard names/locations.
  1490.  
  1491. Report bugs to <bobbens@gmail.com>.
  1492. _ACEOF
  1493. ac_status=$?
  1494. fi
  1495.  
  1496. if test "$ac_init_help" = "recursive"; then
  1497. # If there are subdirs, report their specific --help.
  1498. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1499. test -d "$ac_dir" ||
  1500. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1501. continue
  1502. ac_builddir=.
  1503.  
  1504. case "$ac_dir" in
  1505. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1506. *)
  1507. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1508. # A ".." for each directory in $ac_dir_suffix.
  1509. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1510. case $ac_top_builddir_sub in
  1511. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1512. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1513. esac ;;
  1514. esac
  1515. ac_abs_top_builddir=$ac_pwd
  1516. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1517. # for backward compatibility:
  1518. ac_top_builddir=$ac_top_build_prefix
  1519.  
  1520. case $srcdir in
  1521. .) # We are building in place.
  1522. ac_srcdir=.
  1523. ac_top_srcdir=$ac_top_builddir_sub
  1524. ac_abs_top_srcdir=$ac_pwd ;;
  1525. [\\/]* | ?:[\\/]* ) # Absolute name.
  1526. ac_srcdir=$srcdir$ac_dir_suffix;
  1527. ac_top_srcdir=$srcdir
  1528. ac_abs_top_srcdir=$srcdir ;;
  1529. *) # Relative name.
  1530. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1531. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1532. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1533. esac
  1534. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1535.  
  1536. cd "$ac_dir" || { ac_status=$?; continue; }
  1537. # Check for guested configure.
  1538. if test -f "$ac_srcdir/configure.gnu"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1541. elif test -f "$ac_srcdir/configure"; then
  1542. echo &&
  1543. $SHELL "$ac_srcdir/configure" --help=recursive
  1544. else
  1545. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1546. fi || ac_status=$?
  1547. cd "$ac_pwd" || { ac_status=$?; break; }
  1548. done
  1549. fi
  1550.  
  1551. test -n "$ac_init_help" && exit $ac_status
  1552. if $ac_init_version; then
  1553. cat <<\_ACEOF
  1554. naev configure 0.5.-1
  1555. generated by GNU Autoconf 2.63
  1556.  
  1557. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1558. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1559. This configure script is free software; the Free Software Foundation
  1560. gives unlimited permission to copy, distribute and modify it.
  1561. _ACEOF
  1562. exit
  1563. fi
  1564. cat >config.log <<_ACEOF
  1565. This file contains any messages produced by compilers while
  1566. running configure, to aid debugging if configure makes a mistake.
  1567.  
  1568. It was created by naev $as_me 0.5.-1, which was
  1569. generated by GNU Autoconf 2.63. Invocation command line was
  1570.  
  1571. $ $0 $@
  1572.  
  1573. _ACEOF
  1574. exec 5>>config.log
  1575. {
  1576. cat <<_ASUNAME
  1577. ## --------- ##
  1578. ## Platform. ##
  1579. ## --------- ##
  1580.  
  1581. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1582. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1583. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1584. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1585. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1586.  
  1587. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1588. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1589.  
  1590. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1591. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1592. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1593. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1594. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1595. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1596. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1597.  
  1598. _ASUNAME
  1599.  
  1600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1601. for as_dir in $PATH
  1602. do
  1603. IFS=$as_save_IFS
  1604. test -z "$as_dir" && as_dir=.
  1605. $as_echo "PATH: $as_dir"
  1606. done
  1607. IFS=$as_save_IFS
  1608.  
  1609. } >&5
  1610.  
  1611. cat >&5 <<_ACEOF
  1612.  
  1613.  
  1614. ## ----------- ##
  1615. ## Core tests. ##
  1616. ## ----------- ##
  1617.  
  1618. _ACEOF
  1619.  
  1620.  
  1621. # Keep a trace of the command line.
  1622. # Strip out --no-create and --no-recursion so they do not pile up.
  1623. # Strip out --silent because we don't want to record it for future runs.
  1624. # Also quote any args containing shell meta-characters.
  1625. # Make two passes to allow for proper duplicate-argument suppression.
  1626. ac_configure_args=
  1627. ac_configure_args0=
  1628. ac_configure_args1=
  1629. ac_must_keep_next=false
  1630. for ac_pass in 1 2
  1631. do
  1632. for ac_arg
  1633. do
  1634. case $ac_arg in
  1635. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1636. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1637. | -silent | --silent | --silen | --sile | --sil)
  1638. continue ;;
  1639. *\'*)
  1640. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1641. esac
  1642. case $ac_pass in
  1643. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1644. 2)
  1645. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1646. if test $ac_must_keep_next = true; then
  1647. ac_must_keep_next=false # Got value, back to normal.
  1648. else
  1649. case $ac_arg in
  1650. *=* | --config-cache | -C | -disable-* | --disable-* \
  1651. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1652. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1653. | -with-* | --with-* | -without-* | --without-* | --x)
  1654. case "$ac_configure_args0 " in
  1655. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1656. esac
  1657. ;;
  1658. -* ) ac_must_keep_next=true ;;
  1659. esac
  1660. fi
  1661. ac_configure_args="$ac_configure_args '$ac_arg'"
  1662. ;;
  1663. esac
  1664. done
  1665. done
  1666. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1667. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1668.  
  1669. # When interrupted or exit'd, cleanup temporary files, and complete
  1670. # config.log. We remove comments because anyway the quotes in there
  1671. # would cause problems or look ugly.
  1672. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1673. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1674. trap 'exit_status=$?
  1675. # Save into config.log some information that might help in debugging.
  1676. {
  1677. echo
  1678.  
  1679. cat <<\_ASBOX
  1680. ## ---------------- ##
  1681. ## Cache variables. ##
  1682. ## ---------------- ##
  1683. _ASBOX
  1684. echo
  1685. # The following way of writing the cache mishandles newlines in values,
  1686. (
  1687. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1688. eval ac_val=\$$ac_var
  1689. case $ac_val in #(
  1690. *${as_nl}*)
  1691. case $ac_var in #(
  1692. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1693. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1694. esac
  1695. case $ac_var in #(
  1696. _ | IFS | as_nl) ;; #(
  1697. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1698. *) $as_unset $ac_var ;;
  1699. esac ;;
  1700. esac
  1701. done
  1702. (set) 2>&1 |
  1703. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1704. *${as_nl}ac_space=\ *)
  1705. sed -n \
  1706. "s/'\''/'\''\\\\'\'''\''/g;
  1707. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1708. ;; #(
  1709. *)
  1710. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1711. ;;
  1712. esac |
  1713. sort
  1714. )
  1715. echo
  1716.  
  1717. cat <<\_ASBOX
  1718. ## ----------------- ##
  1719. ## Output variables. ##
  1720. ## ----------------- ##
  1721. _ASBOX
  1722. echo
  1723. for ac_var in $ac_subst_vars
  1724. do
  1725. eval ac_val=\$$ac_var
  1726. case $ac_val in
  1727. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1728. esac
  1729. $as_echo "$ac_var='\''$ac_val'\''"
  1730. done | sort
  1731. echo
  1732.  
  1733. if test -n "$ac_subst_files"; then
  1734. cat <<\_ASBOX
  1735. ## ------------------- ##
  1736. ## File substitutions. ##
  1737. ## ------------------- ##
  1738. _ASBOX
  1739. echo
  1740. for ac_var in $ac_subst_files
  1741. do
  1742. eval ac_val=\$$ac_var
  1743. case $ac_val in
  1744. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1745. esac
  1746. $as_echo "$ac_var='\''$ac_val'\''"
  1747. done | sort
  1748. echo
  1749. fi
  1750.  
  1751. if test -s confdefs.h; then
  1752. cat <<\_ASBOX
  1753. ## ----------- ##
  1754. ## confdefs.h. ##
  1755. ## ----------- ##
  1756. _ASBOX
  1757. echo
  1758. cat confdefs.h
  1759. echo
  1760. fi
  1761. test "$ac_signal" != 0 &&
  1762. $as_echo "$as_me: caught signal $ac_signal"
  1763. $as_echo "$as_me: exit $exit_status"
  1764. } >&5
  1765. rm -f core *.core core.conftest.* &&
  1766. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1767. exit $exit_status
  1768. ' 0
  1769. for ac_signal in 1 2 13 15; do
  1770. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1771. done
  1772. ac_signal=0
  1773.  
  1774. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1775. rm -f -r conftest* confdefs.h
  1776.  
  1777. # Predefined preprocessor variables.
  1778.  
  1779. cat >>confdefs.h <<_ACEOF
  1780. #define PACKAGE_NAME "$PACKAGE_NAME"
  1781. _ACEOF
  1782.  
  1783.  
  1784. cat >>confdefs.h <<_ACEOF
  1785. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1786. _ACEOF
  1787.  
  1788.  
  1789. cat >>confdefs.h <<_ACEOF
  1790. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1791. _ACEOF
  1792.  
  1793.  
  1794. cat >>confdefs.h <<_ACEOF
  1795. #define PACKAGE_STRING "$PACKAGE_STRING"
  1796. _ACEOF
  1797.  
  1798.  
  1799. cat >>confdefs.h <<_ACEOF
  1800. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1801. _ACEOF
  1802.  
  1803.  
  1804. # Let the site file select an alternate cache file if it wants to.
  1805. # Prefer an explicitly selected file to automatically selected ones.
  1806. ac_site_file1=NONE
  1807. ac_site_file2=NONE
  1808. if test -n "$CONFIG_SITE"; then
  1809. ac_site_file1=$CONFIG_SITE
  1810. elif test "x$prefix" != xNONE; then
  1811. ac_site_file1=$prefix/share/config.site
  1812. ac_site_file2=$prefix/etc/config.site
  1813. else
  1814. ac_site_file1=$ac_default_prefix/share/config.site
  1815. ac_site_file2=$ac_default_prefix/etc/config.site
  1816. fi
  1817. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1818. do
  1819. test "x$ac_site_file" = xNONE && continue
  1820. if test -r "$ac_site_file"; then
  1821. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1822. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1823. sed 's/^/| /' "$ac_site_file" >&5
  1824. . "$ac_site_file"
  1825. fi
  1826. done
  1827.  
  1828. if test -r "$cache_file"; then
  1829. # Some versions of bash will fail to source /dev/null (special
  1830. # files actually), so we avoid doing that.
  1831. if test -f "$cache_file"; then
  1832. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1833. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1834. case $cache_file in
  1835. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1836. *) . "./$cache_file";;
  1837. esac
  1838. fi
  1839. else
  1840. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1841. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1842. >$cache_file
  1843. fi
  1844.  
  1845. # Check that the precious variables saved in the cache have kept the same
  1846. # value.
  1847. ac_cache_corrupted=false
  1848. for ac_var in $ac_precious_vars; do
  1849. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1850. eval ac_new_set=\$ac_env_${ac_var}_set
  1851. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1852. eval ac_new_val=\$ac_env_${ac_var}_value
  1853. case $ac_old_set,$ac_new_set in
  1854. set,)
  1855. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1856. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1857. ac_cache_corrupted=: ;;
  1858. ,set)
  1859. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1860. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1861. ac_cache_corrupted=: ;;
  1862. ,);;
  1863. *)
  1864. if test "x$ac_old_val" != "x$ac_new_val"; then
  1865. # differences in whitespace do not lead to failure.
  1866. ac_old_val_w=`echo x $ac_old_val`
  1867. ac_new_val_w=`echo x $ac_new_val`
  1868. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1869. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1870. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1871. ac_cache_corrupted=:
  1872. else
  1873. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1874. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1875. eval $ac_var=\$ac_old_val
  1876. fi
  1877. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1878. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1879. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1880. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1881. fi;;
  1882. esac
  1883. # Pass precious variables to config.status.
  1884. if test "$ac_new_set" = set; then
  1885. case $ac_new_val in
  1886. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1887. *) ac_arg=$ac_var=$ac_new_val ;;
  1888. esac
  1889. case " $ac_configure_args " in
  1890. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1891. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1892. esac
  1893. fi
  1894. done
  1895. if $ac_cache_corrupted; then
  1896. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1897. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1898. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1899. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1900. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1901. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1902. { (exit 1); exit 1; }; }
  1903. fi
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929. ac_ext=c
  1930. ac_cpp='$CPP $CPPFLAGS'
  1931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1934.  
  1935.  
  1936.  
  1937. ac_config_headers="$ac_config_headers src/config.h"
  1938.  
  1939.  
  1940. ac_aux_dir=
  1941. for ac_dir in build "$srcdir"/build; do
  1942. if test -f "$ac_dir/install-sh"; then
  1943. ac_aux_dir=$ac_dir
  1944. ac_install_sh="$ac_aux_dir/install-sh -c"
  1945. break
  1946. elif test -f "$ac_dir/install.sh"; then
  1947. ac_aux_dir=$ac_dir
  1948. ac_install_sh="$ac_aux_dir/install.sh -c"
  1949. break
  1950. elif test -f "$ac_dir/shtool"; then
  1951. ac_aux_dir=$ac_dir
  1952. ac_install_sh="$ac_aux_dir/shtool install -c"
  1953. break
  1954. fi
  1955. done
  1956. if test -z "$ac_aux_dir"; then
  1957. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
  1958. $as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
  1959. { (exit 1); exit 1; }; }
  1960. fi
  1961.  
  1962. # These three variables are undocumented and unsupported,
  1963. # and are intended to be withdrawn in a future Autoconf release.
  1964. # They can cause serious problems if a builder's source tree is in a directory
  1965. # whose full name contains unusual characters.
  1966. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1967. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1968. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1969.  
  1970.  
  1971.  
  1972. am__api_version='1.10'
  1973.  
  1974. # Find a good install program. We prefer a C program (faster),
  1975. # so one script is as good as another. But avoid the broken or
  1976. # incompatible versions:
  1977. # SysV /etc/install, /usr/sbin/install
  1978. # SunOS /usr/etc/install
  1979. # IRIX /sbin/install
  1980. # AIX /bin/install
  1981. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1982. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1983. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1984. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1985. # OS/2's system install, which has a completely different semantic
  1986. # ./install, which can be erroneously created by make from ./install.sh.
  1987. # Reject install programs that cannot install multiple files.
  1988. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1989. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1990. if test -z "$INSTALL"; then
  1991. if test "${ac_cv_path_install+set}" = set; then
  1992. $as_echo_n "(cached) " >&6
  1993. else
  1994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1995. for as_dir in $PATH
  1996. do
  1997. IFS=$as_save_IFS
  1998. test -z "$as_dir" && as_dir=.
  1999. # Account for people who put trailing slashes in PATH elements.
  2000. case $as_dir/ in
  2001. ./ | .// | /cC/* | \
  2002. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2003. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2004. /usr/ucb/* ) ;;
  2005. *)
  2006. # OSF1 and SCO ODT 3.0 have their own names for install.
  2007. # Don't use installbsd from OSF since it installs stuff as root
  2008. # by default.
  2009. for ac_prog in ginstall scoinst install; do
  2010. for ac_exec_ext in '' $ac_executable_extensions; do
  2011. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2012. if test $ac_prog = install &&
  2013. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2014. # AIX install. It has an incompatible calling convention.
  2015. :
  2016. elif test $ac_prog = install &&
  2017. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2018. # program-specific install script used by HP pwplus--don't use.
  2019. :
  2020. else
  2021. rm -rf conftest.one conftest.two conftest.dir
  2022. echo one > conftest.one
  2023. echo two > conftest.two
  2024. mkdir conftest.dir
  2025. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2026. test -s conftest.one && test -s conftest.two &&
  2027. test -s conftest.dir/conftest.one &&
  2028. test -s conftest.dir/conftest.two
  2029. then
  2030. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2031. break 3
  2032. fi
  2033. fi
  2034. fi
  2035. done
  2036. done
  2037. ;;
  2038. esac
  2039.  
  2040. done
  2041. IFS=$as_save_IFS
  2042.  
  2043. rm -rf conftest.one conftest.two conftest.dir
  2044.  
  2045. fi
  2046. if test "${ac_cv_path_install+set}" = set; then
  2047. INSTALL=$ac_cv_path_install
  2048. else
  2049. # As a last resort, use the slow shell script. Don't cache a
  2050. # value for INSTALL within a source directory, because that will
  2051. # break other packages using the cache if that directory is
  2052. # removed, or if the value is a relative name.
  2053. INSTALL=$ac_install_sh
  2054. fi
  2055. fi
  2056. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2057. $as_echo "$INSTALL" >&6; }
  2058.  
  2059. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2060. # It thinks the first close brace ends the variable substitution.
  2061. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2062.  
  2063. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2064.  
  2065. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2066.  
  2067. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2068. $as_echo_n "checking whether build environment is sane... " >&6; }
  2069. # Just in case
  2070. sleep 1
  2071. echo timestamp > conftest.file
  2072. # Do `set' in a subshell so we don't clobber the current shell's
  2073. # arguments. Must try -L first in case configure is actually a
  2074. # symlink; some systems play weird games with the mod time of symlinks
  2075. # (eg FreeBSD returns the mod time of the symlink's containing
  2076. # directory).
  2077. if (
  2078. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2079. if test "$*" = "X"; then
  2080. # -L didn't work.
  2081. set X `ls -t $srcdir/configure conftest.file`
  2082. fi
  2083. rm -f conftest.file
  2084. if test "$*" != "X $srcdir/configure conftest.file" \
  2085. && test "$*" != "X conftest.file $srcdir/configure"; then
  2086.  
  2087. # If neither matched, then we have a broken ls. This can happen
  2088. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2089. # broken ls alias from the environment. This has actually
  2090. # happened. Such a system could not be considered "sane".
  2091. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2092. alias in your environment" >&5
  2093. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2094. alias in your environment" >&2;}
  2095. { (exit 1); exit 1; }; }
  2096. fi
  2097.  
  2098. test "$2" = conftest.file
  2099. )
  2100. then
  2101. # Ok.
  2102. :
  2103. else
  2104. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2105. Check your system clock" >&5
  2106. $as_echo "$as_me: error: newly created file is older than distributed files!
  2107. Check your system clock" >&2;}
  2108. { (exit 1); exit 1; }; }
  2109. fi
  2110. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2111. $as_echo "yes" >&6; }
  2112. test "$program_prefix" != NONE &&
  2113. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2114. # Use a double $ so make ignores it.
  2115. test "$program_suffix" != NONE &&
  2116. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2117. # Double any \ or $.
  2118. # By default was `s,x,x', remove it if useless.
  2119. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2120. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2121.  
  2122. # expand $ac_aux_dir to an absolute path
  2123. am_aux_dir=`cd $ac_aux_dir && pwd`
  2124.  
  2125. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2126. # Use eval to expand $SHELL
  2127. if eval "$MISSING --run true"; then
  2128. am_missing_run="$MISSING --run "
  2129. else
  2130. am_missing_run=
  2131. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2132. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2133. fi
  2134.  
  2135. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2136. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2137. if test -z "$MKDIR_P"; then
  2138. if test "${ac_cv_path_mkdir+set}" = set; then
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2143. do
  2144. IFS=$as_save_IFS
  2145. test -z "$as_dir" && as_dir=.
  2146. for ac_prog in mkdir gmkdir; do
  2147. for ac_exec_ext in '' $ac_executable_extensions; do
  2148. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2149. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2150. 'mkdir (GNU coreutils) '* | \
  2151. 'mkdir (coreutils) '* | \
  2152. 'mkdir (fileutils) '4.1*)
  2153. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2154. break 3;;
  2155. esac
  2156. done
  2157. done
  2158. done
  2159. IFS=$as_save_IFS
  2160.  
  2161. fi
  2162.  
  2163. if test "${ac_cv_path_mkdir+set}" = set; then
  2164. MKDIR_P="$ac_cv_path_mkdir -p"
  2165. else
  2166. # As a last resort, use the slow shell script. Don't cache a
  2167. # value for MKDIR_P within a source directory, because that will
  2168. # break other packages using the cache if that directory is
  2169. # removed, or if the value is a relative name.
  2170. test -d ./--version && rmdir ./--version
  2171. MKDIR_P="$ac_install_sh -d"
  2172. fi
  2173. fi
  2174. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2175. $as_echo "$MKDIR_P" >&6; }
  2176.  
  2177. mkdir_p="$MKDIR_P"
  2178. case $mkdir_p in
  2179. [\\/$]* | ?:[\\/]*) ;;
  2180. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2181. esac
  2182.  
  2183. for ac_prog in gawk mawk nawk awk
  2184. do
  2185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2186. set dummy $ac_prog; ac_word=$2
  2187. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2188. $as_echo_n "checking for $ac_word... " >&6; }
  2189. if test "${ac_cv_prog_AWK+set}" = set; then
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. if test -n "$AWK"; then
  2193. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. for ac_exec_ext in '' $ac_executable_extensions; do
  2201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2202. ac_cv_prog_AWK="$ac_prog"
  2203. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2204. break 2
  2205. fi
  2206. done
  2207. done
  2208. IFS=$as_save_IFS
  2209.  
  2210. fi
  2211. fi
  2212. AWK=$ac_cv_prog_AWK
  2213. if test -n "$AWK"; then
  2214. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2215. $as_echo "$AWK" >&6; }
  2216. else
  2217. { $as_echo "$as_me:$LINENO: result: no" >&5
  2218. $as_echo "no" >&6; }
  2219. fi
  2220.  
  2221.  
  2222. test -n "$AWK" && break
  2223. done
  2224.  
  2225. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2226. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2227. set x ${MAKE-make}
  2228. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2229. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2230. $as_echo_n "(cached) " >&6
  2231. else
  2232. cat >conftest.make <<\_ACEOF
  2233. SHELL = /bin/sh
  2234. all:
  2235. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2236. _ACEOF
  2237. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2238. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2239. *@@@%%%=?*=@@@%%%*)
  2240. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2241. *)
  2242. eval ac_cv_prog_make_${ac_make}_set=no;;
  2243. esac
  2244. rm -f conftest.make
  2245. fi
  2246. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2247. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2248. $as_echo "yes" >&6; }
  2249. SET_MAKE=
  2250. else
  2251. { $as_echo "$as_me:$LINENO: result: no" >&5
  2252. $as_echo "no" >&6; }
  2253. SET_MAKE="MAKE=${MAKE-make}"
  2254. fi
  2255.  
  2256. rm -rf .tst 2>/dev/null
  2257. mkdir .tst 2>/dev/null
  2258. if test -d .tst; then
  2259. am__leading_dot=.
  2260. else
  2261. am__leading_dot=_
  2262. fi
  2263. rmdir .tst 2>/dev/null
  2264.  
  2265. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2266. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2267. # is not polluted with repeated "-I."
  2268. am__isrc=' -I$(srcdir)'
  2269. # test to see if srcdir already configured
  2270. if test -f $srcdir/config.status; then
  2271. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2272. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2273. { (exit 1); exit 1; }; }
  2274. fi
  2275. fi
  2276.  
  2277. # test whether we have cygpath
  2278. if test -z "$CYGPATH_W"; then
  2279. if (cygpath --version) >/dev/null 2>/dev/null; then
  2280. CYGPATH_W='cygpath -w'
  2281. else
  2282. CYGPATH_W=echo
  2283. fi
  2284. fi
  2285.  
  2286.  
  2287. # Define the identity of the package.
  2288. PACKAGE='naev'
  2289. VERSION='0.5.-1'
  2290.  
  2291.  
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE "$PACKAGE"
  2294. _ACEOF
  2295.  
  2296.  
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define VERSION "$VERSION"
  2299. _ACEOF
  2300.  
  2301. # Some tools Automake needs.
  2302.  
  2303. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2304.  
  2305.  
  2306. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2307.  
  2308.  
  2309. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2310.  
  2311.  
  2312. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2313.  
  2314.  
  2315. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2316.  
  2317. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2318.  
  2319. # Installed binaries are usually stripped using `strip' when the user
  2320. # run `make install-strip'. However `strip' might not be the right
  2321. # tool to use in cross-compilation environments, therefore Automake
  2322. # will honor the `STRIP' environment variable to overrule this program.
  2323. if test "$cross_compiling" != no; then
  2324. if test -n "$ac_tool_prefix"; then
  2325. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2326. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2327. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2328. $as_echo_n "checking for $ac_word... " >&6; }
  2329. if test "${ac_cv_prog_STRIP+set}" = set; then
  2330. $as_echo_n "(cached) " >&6
  2331. else
  2332. if test -n "$STRIP"; then
  2333. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2334. else
  2335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2336. for as_dir in $PATH
  2337. do
  2338. IFS=$as_save_IFS
  2339. test -z "$as_dir" && as_dir=.
  2340. for ac_exec_ext in '' $ac_executable_extensions; do
  2341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2342. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2343. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349.  
  2350. fi
  2351. fi
  2352. STRIP=$ac_cv_prog_STRIP
  2353. if test -n "$STRIP"; then
  2354. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2355. $as_echo "$STRIP" >&6; }
  2356. else
  2357. { $as_echo "$as_me:$LINENO: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360.  
  2361.  
  2362. fi
  2363. if test -z "$ac_cv_prog_STRIP"; then
  2364. ac_ct_STRIP=$STRIP
  2365. # Extract the first word of "strip", so it can be a program name with args.
  2366. set dummy strip; ac_word=$2
  2367. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2368. $as_echo_n "checking for $ac_word... " >&6; }
  2369. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2370. $as_echo_n "(cached) " >&6
  2371. else
  2372. if test -n "$ac_ct_STRIP"; then
  2373. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2374. else
  2375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2376. for as_dir in $PATH
  2377. do
  2378. IFS=$as_save_IFS
  2379. test -z "$as_dir" && as_dir=.
  2380. for ac_exec_ext in '' $ac_executable_extensions; do
  2381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2382. ac_cv_prog_ac_ct_STRIP="strip"
  2383. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2384. break 2
  2385. fi
  2386. done
  2387. done
  2388. IFS=$as_save_IFS
  2389.  
  2390. fi
  2391. fi
  2392. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2393. if test -n "$ac_ct_STRIP"; then
  2394. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2395. $as_echo "$ac_ct_STRIP" >&6; }
  2396. else
  2397. { $as_echo "$as_me:$LINENO: result: no" >&5
  2398. $as_echo "no" >&6; }
  2399. fi
  2400.  
  2401. if test "x$ac_ct_STRIP" = x; then
  2402. STRIP=":"
  2403. else
  2404. case $cross_compiling:$ac_tool_warned in
  2405. yes:)
  2406. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2408. ac_tool_warned=yes ;;
  2409. esac
  2410. STRIP=$ac_ct_STRIP
  2411. fi
  2412. else
  2413. STRIP="$ac_cv_prog_STRIP"
  2414. fi
  2415.  
  2416. fi
  2417. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2418.  
  2419. # We need awk for the "check" target. The system "awk" is bad on
  2420. # some platforms.
  2421. # Always define AMTAR for backward compatibility.
  2422.  
  2423. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2424.  
  2425. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432. # M4 defines __unix__ to be the empty string on UNIX-like systems. This
  2433. # causes AC_DEFINE to fail if it is used to define __unix__. This seems to
  2434. # fix the problem.
  2435.  
  2436.  
  2437. #
  2438. # Utility functions
  2439. #
  2440.  
  2441. # If A='$B' and B='hello', then "expand_variable A" will cause A='hello'
  2442. expand_variable()
  2443. {
  2444. while true; do
  2445. eval local value=\$$1
  2446. eval "$1=\"$value\""
  2447. echo "$value" | grep -qE '(^|^\\)\$' || break
  2448. done
  2449. }
  2450.  
  2451. # Temporarily changes the value of a variable, until it is restored later.
  2452. # $1: name of variable
  2453. # $2: temporary value
  2454.  
  2455.  
  2456. # Restores the saved variable.
  2457. # $1: name of variable
  2458.  
  2459.  
  2460. #
  2461. # Checks for variables
  2462. #
  2463.  
  2464. # Fix missing prefix
  2465. if test "$prefix" = "NONE"; then
  2466.  
  2467. prefix="$ac_default_prefix"
  2468.  
  2469. fi
  2470.  
  2471. if test "$exec_prefix" = "NONE"; then
  2472.  
  2473. exec_prefix="$prefix"
  2474.  
  2475. fi
  2476.  
  2477.  
  2478. # Check if we have custom CFLAGS
  2479. if test -n "$CFLAGS"; then
  2480. have_custom_cflags=yes
  2481. else
  2482. have_custom_cflags=no
  2483. fi
  2484.  
  2485.  
  2486. #
  2487. # Checks for programs.
  2488. #
  2489. ac_ext=c
  2490. ac_cpp='$CPP $CPPFLAGS'
  2491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2494. if test -n "$ac_tool_prefix"; then
  2495. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2496. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2497. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2498. $as_echo_n "checking for $ac_word... " >&6; }
  2499. if test "${ac_cv_prog_CC+set}" = set; then
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. if test -n "$CC"; then
  2503. ac_cv_prog_CC="$CC" # Let the user override the test.
  2504. else
  2505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2506. for as_dir in $PATH
  2507. do
  2508. IFS=$as_save_IFS
  2509. test -z "$as_dir" && as_dir=.
  2510. for ac_exec_ext in '' $ac_executable_extensions; do
  2511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2512. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2513. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2514. break 2
  2515. fi
  2516. done
  2517. done
  2518. IFS=$as_save_IFS
  2519.  
  2520. fi
  2521. fi
  2522. CC=$ac_cv_prog_CC
  2523. if test -n "$CC"; then
  2524. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2525. $as_echo "$CC" >&6; }
  2526. else
  2527. { $as_echo "$as_me:$LINENO: result: no" >&5
  2528. $as_echo "no" >&6; }
  2529. fi
  2530.  
  2531.  
  2532. fi
  2533. if test -z "$ac_cv_prog_CC"; then
  2534. ac_ct_CC=$CC
  2535. # Extract the first word of "gcc", so it can be a program name with args.
  2536. set dummy gcc; ac_word=$2
  2537. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2538. $as_echo_n "checking for $ac_word... " >&6; }
  2539. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. if test -n "$ac_ct_CC"; then
  2543. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2544. else
  2545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH
  2547. do
  2548. IFS=$as_save_IFS
  2549. test -z "$as_dir" && as_dir=.
  2550. for ac_exec_ext in '' $ac_executable_extensions; do
  2551. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2552. ac_cv_prog_ac_ct_CC="gcc"
  2553. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2554. break 2
  2555. fi
  2556. done
  2557. done
  2558. IFS=$as_save_IFS
  2559.  
  2560. fi
  2561. fi
  2562. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2563. if test -n "$ac_ct_CC"; then
  2564. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2565. $as_echo "$ac_ct_CC" >&6; }
  2566. else
  2567. { $as_echo "$as_me:$LINENO: result: no" >&5
  2568. $as_echo "no" >&6; }
  2569. fi
  2570.  
  2571. if test "x$ac_ct_CC" = x; then
  2572. CC=""
  2573. else
  2574. case $cross_compiling:$ac_tool_warned in
  2575. yes:)
  2576. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2578. ac_tool_warned=yes ;;
  2579. esac
  2580. CC=$ac_ct_CC
  2581. fi
  2582. else
  2583. CC="$ac_cv_prog_CC"
  2584. fi
  2585.  
  2586. if test -z "$CC"; then
  2587. if test -n "$ac_tool_prefix"; then
  2588. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2589. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2590. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2591. $as_echo_n "checking for $ac_word... " >&6; }
  2592. if test "${ac_cv_prog_CC+set}" = set; then
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if test -n "$CC"; then
  2596. ac_cv_prog_CC="$CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2605. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2606. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612.  
  2613. fi
  2614. fi
  2615. CC=$ac_cv_prog_CC
  2616. if test -n "$CC"; then
  2617. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2618. $as_echo "$CC" >&6; }
  2619. else
  2620. { $as_echo "$as_me:$LINENO: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623.  
  2624.  
  2625. fi
  2626. fi
  2627. if test -z "$CC"; then
  2628. # Extract the first word of "cc", so it can be a program name with args.
  2629. set dummy cc; ac_word=$2
  2630. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if test "${ac_cv_prog_CC+set}" = set; then
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$CC"; then
  2636. ac_cv_prog_CC="$CC" # Let the user override the test.
  2637. else
  2638. ac_prog_rejected=no
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. for ac_exec_ext in '' $ac_executable_extensions; do
  2645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2646. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2647. ac_prog_rejected=yes
  2648. continue
  2649. fi
  2650. ac_cv_prog_CC="cc"
  2651. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2652. break 2
  2653. fi
  2654. done
  2655. done
  2656. IFS=$as_save_IFS
  2657.  
  2658. if test $ac_prog_rejected = yes; then
  2659. # We found a bogon in the path, so make sure we never use it.
  2660. set dummy $ac_cv_prog_CC
  2661. shift
  2662. if test $# != 0; then
  2663. # We chose a different compiler from the bogus one.
  2664. # However, it has the same basename, so the bogon will be chosen
  2665. # first if we set CC to just the basename; use the full file name.
  2666. shift
  2667. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2668. fi
  2669. fi
  2670. fi
  2671. fi
  2672. CC=$ac_cv_prog_CC
  2673. if test -n "$CC"; then
  2674. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2675. $as_echo "$CC" >&6; }
  2676. else
  2677. { $as_echo "$as_me:$LINENO: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680.  
  2681.  
  2682. fi
  2683. if test -z "$CC"; then
  2684. if test -n "$ac_tool_prefix"; then
  2685. for ac_prog in cl.exe
  2686. do
  2687. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2688. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2689. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2690. $as_echo_n "checking for $ac_word... " >&6; }
  2691. if test "${ac_cv_prog_CC+set}" = set; then
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$CC"; then
  2695. ac_cv_prog_CC="$CC" # Let the user override the test.
  2696. else
  2697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2698. for as_dir in $PATH
  2699. do
  2700. IFS=$as_save_IFS
  2701. test -z "$as_dir" && as_dir=.
  2702. for ac_exec_ext in '' $ac_executable_extensions; do
  2703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2704. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2705. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2706. break 2
  2707. fi
  2708. done
  2709. done
  2710. IFS=$as_save_IFS
  2711.  
  2712. fi
  2713. fi
  2714. CC=$ac_cv_prog_CC
  2715. if test -n "$CC"; then
  2716. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2717. $as_echo "$CC" >&6; }
  2718. else
  2719. { $as_echo "$as_me:$LINENO: result: no" >&5
  2720. $as_echo "no" >&6; }
  2721. fi
  2722.  
  2723.  
  2724. test -n "$CC" && break
  2725. done
  2726. fi
  2727. if test -z "$CC"; then
  2728. ac_ct_CC=$CC
  2729. for ac_prog in cl.exe
  2730. do
  2731. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2732. set dummy $ac_prog; ac_word=$2
  2733. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2734. $as_echo_n "checking for $ac_word... " >&6; }
  2735. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. if test -n "$ac_ct_CC"; then
  2739. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2740. else
  2741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2742. for as_dir in $PATH
  2743. do
  2744. IFS=$as_save_IFS
  2745. test -z "$as_dir" && as_dir=.
  2746. for ac_exec_ext in '' $ac_executable_extensions; do
  2747. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2748. ac_cv_prog_ac_ct_CC="$ac_prog"
  2749. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. IFS=$as_save_IFS
  2755.  
  2756. fi
  2757. fi
  2758. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2759. if test -n "$ac_ct_CC"; then
  2760. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2761. $as_echo "$ac_ct_CC" >&6; }
  2762. else
  2763. { $as_echo "$as_me:$LINENO: result: no" >&5
  2764. $as_echo "no" >&6; }
  2765. fi
  2766.  
  2767.  
  2768. test -n "$ac_ct_CC" && break
  2769. done
  2770.  
  2771. if test "x$ac_ct_CC" = x; then
  2772. CC=""
  2773. else
  2774. case $cross_compiling:$ac_tool_warned in
  2775. yes:)
  2776. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2778. ac_tool_warned=yes ;;
  2779. esac
  2780. CC=$ac_ct_CC
  2781. fi
  2782. fi
  2783.  
  2784. fi
  2785.  
  2786.  
  2787. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2789. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2790. See \`config.log' for more details." >&5
  2791. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2792. See \`config.log' for more details." >&2;}
  2793. { (exit 1); exit 1; }; }; }
  2794.  
  2795. # Provide some information about the compiler.
  2796. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2797. set X $ac_compile
  2798. ac_compiler=$2
  2799. { (ac_try="$ac_compiler --version >&5"
  2800. case "(($ac_try" in
  2801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2802. *) ac_try_echo=$ac_try;;
  2803. esac
  2804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2805. $as_echo "$ac_try_echo") >&5
  2806. (eval "$ac_compiler --version >&5") 2>&5
  2807. ac_status=$?
  2808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }
  2810. { (ac_try="$ac_compiler -v >&5"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2816. $as_echo "$ac_try_echo") >&5
  2817. (eval "$ac_compiler -v >&5") 2>&5
  2818. ac_status=$?
  2819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); }
  2821. { (ac_try="$ac_compiler -V >&5"
  2822. case "(($ac_try" in
  2823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2824. *) ac_try_echo=$ac_try;;
  2825. esac
  2826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2827. $as_echo "$ac_try_echo") >&5
  2828. (eval "$ac_compiler -V >&5") 2>&5
  2829. ac_status=$?
  2830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); }
  2832.  
  2833. cat >conftest.$ac_ext <<_ACEOF
  2834. /* confdefs.h. */
  2835. _ACEOF
  2836. cat confdefs.h >>conftest.$ac_ext
  2837. cat >>conftest.$ac_ext <<_ACEOF
  2838. /* end confdefs.h. */
  2839.  
  2840. int
  2841. main ()
  2842. {
  2843.  
  2844. ;
  2845. return 0;
  2846. }
  2847. _ACEOF
  2848. ac_clean_files_save=$ac_clean_files
  2849. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2850. # Try to create an executable without -o first, disregard a.out.
  2851. # It will help us diagnose broken compilers, and finding out an intuition
  2852. # of exeext.
  2853. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2854. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2855. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2856.  
  2857. # The possible output files:
  2858. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2859.  
  2860. ac_rmfiles=
  2861. for ac_file in $ac_files
  2862. do
  2863. case $ac_file in
  2864. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2865. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2866. esac
  2867. done
  2868. rm -f $ac_rmfiles
  2869.  
  2870. if { (ac_try="$ac_link_default"
  2871. case "(($ac_try" in
  2872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873. *) ac_try_echo=$ac_try;;
  2874. esac
  2875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2876. $as_echo "$ac_try_echo") >&5
  2877. (eval "$ac_link_default") 2>&5
  2878. ac_status=$?
  2879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2880. (exit $ac_status); }; then
  2881. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2882. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2883. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2884. # so that the user can short-circuit this test for compilers unknown to
  2885. # Autoconf.
  2886. for ac_file in $ac_files ''
  2887. do
  2888. test -f "$ac_file" || continue
  2889. case $ac_file in
  2890. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2891. ;;
  2892. [ab].out )
  2893. # We found the default executable, but exeext='' is most
  2894. # certainly right.
  2895. break;;
  2896. *.* )
  2897. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2898. then :; else
  2899. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2900. fi
  2901. # We set ac_cv_exeext here because the later test for it is not
  2902. # safe: cross compilers may not add the suffix if given an `-o'
  2903. # argument, so we may need to know it at that point already.
  2904. # Even if this section looks crufty: it has the advantage of
  2905. # actually working.
  2906. break;;
  2907. * )
  2908. break;;
  2909. esac
  2910. done
  2911. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2912.  
  2913. else
  2914. ac_file=''
  2915. fi
  2916.  
  2917. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2918. $as_echo "$ac_file" >&6; }
  2919. if test -z "$ac_file"; then
  2920. $as_echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922.  
  2923. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2925. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2926. See \`config.log' for more details." >&5
  2927. $as_echo "$as_me: error: C compiler cannot create executables
  2928. See \`config.log' for more details." >&2;}
  2929. { (exit 77); exit 77; }; }; }
  2930. fi
  2931.  
  2932. ac_exeext=$ac_cv_exeext
  2933.  
  2934. # Check that the compiler produces executables we can run. If not, either
  2935. # the compiler is broken, or we cross compile.
  2936. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2937. $as_echo_n "checking whether the C compiler works... " >&6; }
  2938. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2939. # If not cross compiling, check that we can run a simple program.
  2940. if test "$cross_compiling" != yes; then
  2941. if { ac_try='./$ac_file'
  2942. { (case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo") >&5
  2948. (eval "$ac_try") 2>&5
  2949. ac_status=$?
  2950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2951. (exit $ac_status); }; }; then
  2952. cross_compiling=no
  2953. else
  2954. if test "$cross_compiling" = maybe; then
  2955. cross_compiling=yes
  2956. else
  2957. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2959. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2960. If you meant to cross compile, use \`--host'.
  2961. See \`config.log' for more details." >&5
  2962. $as_echo "$as_me: error: cannot run C compiled programs.
  2963. If you meant to cross compile, use \`--host'.
  2964. See \`config.log' for more details." >&2;}
  2965. { (exit 1); exit 1; }; }; }
  2966. fi
  2967. fi
  2968. fi
  2969. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2970. $as_echo "yes" >&6; }
  2971.  
  2972. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2973. ac_clean_files=$ac_clean_files_save
  2974. # Check that the compiler produces executables we can run. If not, either
  2975. # the compiler is broken, or we cross compile.
  2976. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2977. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2978. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2979. $as_echo "$cross_compiling" >&6; }
  2980.  
  2981. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2982. $as_echo_n "checking for suffix of executables... " >&6; }
  2983. if { (ac_try="$ac_link"
  2984. case "(($ac_try" in
  2985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2986. *) ac_try_echo=$ac_try;;
  2987. esac
  2988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2989. $as_echo "$ac_try_echo") >&5
  2990. (eval "$ac_link") 2>&5
  2991. ac_status=$?
  2992. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2993. (exit $ac_status); }; then
  2994. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2995. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2996. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2997. # `rm'.
  2998. for ac_file in conftest.exe conftest conftest.*; do
  2999. test -f "$ac_file" || continue
  3000. case $ac_file in
  3001. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3002. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3003. break;;
  3004. * ) break;;
  3005. esac
  3006. done
  3007. else
  3008. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3010. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3011. See \`config.log' for more details." >&5
  3012. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3013. See \`config.log' for more details." >&2;}
  3014. { (exit 1); exit 1; }; }; }
  3015. fi
  3016.  
  3017. rm -f conftest$ac_cv_exeext
  3018. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3019. $as_echo "$ac_cv_exeext" >&6; }
  3020.  
  3021. rm -f conftest.$ac_ext
  3022. EXEEXT=$ac_cv_exeext
  3023. ac_exeext=$EXEEXT
  3024. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3025. $as_echo_n "checking for suffix of object files... " >&6; }
  3026. if test "${ac_cv_objext+set}" = set; then
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. cat >conftest.$ac_ext <<_ACEOF
  3030. /* confdefs.h. */
  3031. _ACEOF
  3032. cat confdefs.h >>conftest.$ac_ext
  3033. cat >>conftest.$ac_ext <<_ACEOF
  3034. /* end confdefs.h. */
  3035.  
  3036. int
  3037. main ()
  3038. {
  3039.  
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. rm -f conftest.o conftest.obj
  3045. if { (ac_try="$ac_compile"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo") >&5
  3052. (eval "$ac_compile") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. (exit $ac_status); }; then
  3056. for ac_file in conftest.o conftest.obj conftest.*; do
  3057. test -f "$ac_file" || continue;
  3058. case $ac_file in
  3059. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3060. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3061. break;;
  3062. esac
  3063. done
  3064. else
  3065. $as_echo "$as_me: failed program was:" >&5
  3066. sed 's/^/| /' conftest.$ac_ext >&5
  3067.  
  3068. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3070. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3071. See \`config.log' for more details." >&5
  3072. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3073. See \`config.log' for more details." >&2;}
  3074. { (exit 1); exit 1; }; }; }
  3075. fi
  3076.  
  3077. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3078. fi
  3079. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3080. $as_echo "$ac_cv_objext" >&6; }
  3081. OBJEXT=$ac_cv_objext
  3082. ac_objext=$OBJEXT
  3083. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3084. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3085. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. cat >conftest.$ac_ext <<_ACEOF
  3089. /* confdefs.h. */
  3090. _ACEOF
  3091. cat confdefs.h >>conftest.$ac_ext
  3092. cat >>conftest.$ac_ext <<_ACEOF
  3093. /* end confdefs.h. */
  3094.  
  3095. int
  3096. main ()
  3097. {
  3098. #ifndef __GNUC__
  3099. choke me
  3100. #endif
  3101.  
  3102. ;
  3103. return 0;
  3104. }
  3105. _ACEOF
  3106. rm -f conftest.$ac_objext
  3107. if { (ac_try="$ac_compile"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo") >&5
  3114. (eval "$ac_compile") 2>conftest.er1
  3115. ac_status=$?
  3116. grep -v '^ *+' conftest.er1 >conftest.err
  3117. rm -f conftest.er1
  3118. cat conftest.err >&5
  3119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3120. (exit $ac_status); } && {
  3121. test -z "$ac_c_werror_flag" ||
  3122. test ! -s conftest.err
  3123. } && test -s conftest.$ac_objext; then
  3124. ac_compiler_gnu=yes
  3125. else
  3126. $as_echo "$as_me: failed program was:" >&5
  3127. sed 's/^/| /' conftest.$ac_ext >&5
  3128.  
  3129. ac_compiler_gnu=no
  3130. fi
  3131.  
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3134.  
  3135. fi
  3136. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3137. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3138. if test $ac_compiler_gnu = yes; then
  3139. GCC=yes
  3140. else
  3141. GCC=
  3142. fi
  3143. ac_test_CFLAGS=${CFLAGS+set}
  3144. ac_save_CFLAGS=$CFLAGS
  3145. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3146. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3147. if test "${ac_cv_prog_cc_g+set}" = set; then
  3148. $as_echo_n "(cached) " >&6
  3149. else
  3150. ac_save_c_werror_flag=$ac_c_werror_flag
  3151. ac_c_werror_flag=yes
  3152. ac_cv_prog_cc_g=no
  3153. CFLAGS="-g"
  3154. cat >conftest.$ac_ext <<_ACEOF
  3155. /* confdefs.h. */
  3156. _ACEOF
  3157. cat confdefs.h >>conftest.$ac_ext
  3158. cat >>conftest.$ac_ext <<_ACEOF
  3159. /* end confdefs.h. */
  3160.  
  3161. int
  3162. main ()
  3163. {
  3164.  
  3165. ;
  3166. return 0;
  3167. }
  3168. _ACEOF
  3169. rm -f conftest.$ac_objext
  3170. if { (ac_try="$ac_compile"
  3171. case "(($ac_try" in
  3172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3173. *) ac_try_echo=$ac_try;;
  3174. esac
  3175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3176. $as_echo "$ac_try_echo") >&5
  3177. (eval "$ac_compile") 2>conftest.er1
  3178. ac_status=$?
  3179. grep -v '^ *+' conftest.er1 >conftest.err
  3180. rm -f conftest.er1
  3181. cat conftest.err >&5
  3182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3183. (exit $ac_status); } && {
  3184. test -z "$ac_c_werror_flag" ||
  3185. test ! -s conftest.err
  3186. } && test -s conftest.$ac_objext; then
  3187. ac_cv_prog_cc_g=yes
  3188. else
  3189. $as_echo "$as_me: failed program was:" >&5
  3190. sed 's/^/| /' conftest.$ac_ext >&5
  3191.  
  3192. CFLAGS=""
  3193. cat >conftest.$ac_ext <<_ACEOF
  3194. /* confdefs.h. */
  3195. _ACEOF
  3196. cat confdefs.h >>conftest.$ac_ext
  3197. cat >>conftest.$ac_ext <<_ACEOF
  3198. /* end confdefs.h. */
  3199.  
  3200. int
  3201. main ()
  3202. {
  3203.  
  3204. ;
  3205. return 0;
  3206. }
  3207. _ACEOF
  3208. rm -f conftest.$ac_objext
  3209. if { (ac_try="$ac_compile"
  3210. case "(($ac_try" in
  3211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3212. *) ac_try_echo=$ac_try;;
  3213. esac
  3214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3215. $as_echo "$ac_try_echo") >&5
  3216. (eval "$ac_compile") 2>conftest.er1
  3217. ac_status=$?
  3218. grep -v '^ *+' conftest.er1 >conftest.err
  3219. rm -f conftest.er1
  3220. cat conftest.err >&5
  3221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3222. (exit $ac_status); } && {
  3223. test -z "$ac_c_werror_flag" ||
  3224. test ! -s conftest.err
  3225. } && test -s conftest.$ac_objext; then
  3226. :
  3227. else
  3228. $as_echo "$as_me: failed program was:" >&5
  3229. sed 's/^/| /' conftest.$ac_ext >&5
  3230.  
  3231. ac_c_werror_flag=$ac_save_c_werror_flag
  3232. CFLAGS="-g"
  3233. cat >conftest.$ac_ext <<_ACEOF
  3234. /* confdefs.h. */
  3235. _ACEOF
  3236. cat confdefs.h >>conftest.$ac_ext
  3237. cat >>conftest.$ac_ext <<_ACEOF
  3238. /* end confdefs.h. */
  3239.  
  3240. int
  3241. main ()
  3242. {
  3243.  
  3244. ;
  3245. return 0;
  3246. }
  3247. _ACEOF
  3248. rm -f conftest.$ac_objext
  3249. if { (ac_try="$ac_compile"
  3250. case "(($ac_try" in
  3251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3252. *) ac_try_echo=$ac_try;;
  3253. esac
  3254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3255. $as_echo "$ac_try_echo") >&5
  3256. (eval "$ac_compile") 2>conftest.er1
  3257. ac_status=$?
  3258. grep -v '^ *+' conftest.er1 >conftest.err
  3259. rm -f conftest.er1
  3260. cat conftest.err >&5
  3261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); } && {
  3263. test -z "$ac_c_werror_flag" ||
  3264. test ! -s conftest.err
  3265. } && test -s conftest.$ac_objext; then
  3266. ac_cv_prog_cc_g=yes
  3267. else
  3268. $as_echo "$as_me: failed program was:" >&5
  3269. sed 's/^/| /' conftest.$ac_ext >&5
  3270.  
  3271.  
  3272. fi
  3273.  
  3274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3275. fi
  3276.  
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. fi
  3279.  
  3280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3281. ac_c_werror_flag=$ac_save_c_werror_flag
  3282. fi
  3283. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3284. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3285. if test "$ac_test_CFLAGS" = set; then
  3286. CFLAGS=$ac_save_CFLAGS
  3287. elif test $ac_cv_prog_cc_g = yes; then
  3288. if test "$GCC" = yes; then
  3289. CFLAGS="-g -O2"
  3290. else
  3291. CFLAGS="-g"
  3292. fi
  3293. else
  3294. if test "$GCC" = yes; then
  3295. CFLAGS="-O2"
  3296. else
  3297. CFLAGS=
  3298. fi
  3299. fi
  3300. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3301. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3302. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. ac_cv_prog_cc_c89=no
  3306. ac_save_CC=$CC
  3307. cat >conftest.$ac_ext <<_ACEOF
  3308. /* confdefs.h. */
  3309. _ACEOF
  3310. cat confdefs.h >>conftest.$ac_ext
  3311. cat >>conftest.$ac_ext <<_ACEOF
  3312. /* end confdefs.h. */
  3313. #include <stdarg.h>
  3314. #include <stdio.h>
  3315. #include <sys/types.h>
  3316. #include <sys/stat.h>
  3317. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3318. struct buf { int x; };
  3319. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3320. static char *e (p, i)
  3321. char **p;
  3322. int i;
  3323. {
  3324. return p[i];
  3325. }
  3326. static char *f (char * (*g) (char **, int), char **p, ...)
  3327. {
  3328. char *s;
  3329. va_list v;
  3330. va_start (v,p);
  3331. s = g (p, va_arg (v,int));
  3332. va_end (v);
  3333. return s;
  3334. }
  3335.  
  3336. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3337. function prototypes and stuff, but not '\xHH' hex character constants.
  3338. These don't provoke an error unfortunately, instead are silently treated
  3339. as 'x'. The following induces an error, until -std is added to get
  3340. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3341. array size at least. It's necessary to write '\x00'==0 to get something
  3342. that's true only with -std. */
  3343. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3344.  
  3345. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3346. inside strings and character constants. */
  3347. #define FOO(x) 'x'
  3348. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3349.  
  3350. int test (int i, double x);
  3351. struct s1 {int (*f) (int a);};
  3352. struct s2 {int (*f) (double a);};
  3353. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3354. int argc;
  3355. char **argv;
  3356. int
  3357. main ()
  3358. {
  3359. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3365. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3366. do
  3367. CC="$ac_save_CC $ac_arg"
  3368. rm -f conftest.$ac_objext
  3369. if { (ac_try="$ac_compile"
  3370. case "(($ac_try" in
  3371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3372. *) ac_try_echo=$ac_try;;
  3373. esac
  3374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3375. $as_echo "$ac_try_echo") >&5
  3376. (eval "$ac_compile") 2>conftest.er1
  3377. ac_status=$?
  3378. grep -v '^ *+' conftest.er1 >conftest.err
  3379. rm -f conftest.er1
  3380. cat conftest.err >&5
  3381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); } && {
  3383. test -z "$ac_c_werror_flag" ||
  3384. test ! -s conftest.err
  3385. } && test -s conftest.$ac_objext; then
  3386. ac_cv_prog_cc_c89=$ac_arg
  3387. else
  3388. $as_echo "$as_me: failed program was:" >&5
  3389. sed 's/^/| /' conftest.$ac_ext >&5
  3390.  
  3391.  
  3392. fi
  3393.  
  3394. rm -f core conftest.err conftest.$ac_objext
  3395. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3396. done
  3397. rm -f conftest.$ac_ext
  3398. CC=$ac_save_CC
  3399.  
  3400. fi
  3401. # AC_CACHE_VAL
  3402. case "x$ac_cv_prog_cc_c89" in
  3403. x)
  3404. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3405. $as_echo "none needed" >&6; } ;;
  3406. xno)
  3407. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3408. $as_echo "unsupported" >&6; } ;;
  3409. *)
  3410. CC="$CC $ac_cv_prog_cc_c89"
  3411. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3412. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3413. esac
  3414.  
  3415.  
  3416. ac_ext=c
  3417. ac_cpp='$CPP $CPPFLAGS'
  3418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3421. DEPDIR="${am__leading_dot}deps"
  3422.  
  3423. ac_config_commands="$ac_config_commands depfiles"
  3424.  
  3425.  
  3426. am_make=${MAKE-make}
  3427. cat > confinc << 'END'
  3428. am__doit:
  3429. @echo done
  3430. .PHONY: am__doit
  3431. END
  3432. # If we don't find an include directive, just comment out the code.
  3433. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3434. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3435. am__include="#"
  3436. am__quote=
  3437. _am_result=none
  3438. # First try GNU make style include.
  3439. echo "include confinc" > confmf
  3440. # We grep out `Entering directory' and `Leaving directory'
  3441. # messages which can occur if `w' ends up in MAKEFLAGS.
  3442. # In particular we don't look at `^make:' because GNU make might
  3443. # be invoked under some other name (usually "gmake"), in which
  3444. # case it prints its new name instead of `make'.
  3445. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3446. am__include=include
  3447. am__quote=
  3448. _am_result=GNU
  3449. fi
  3450. # Now try BSD make style include.
  3451. if test "$am__include" = "#"; then
  3452. echo '.include "confinc"' > confmf
  3453. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3454. am__include=.include
  3455. am__quote="\""
  3456. _am_result=BSD
  3457. fi
  3458. fi
  3459.  
  3460.  
  3461. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3462. $as_echo "$_am_result" >&6; }
  3463. rm -f confinc confmf
  3464.  
  3465. # Check whether --enable-dependency-tracking was given.
  3466. if test "${enable_dependency_tracking+set}" = set; then
  3467. enableval=$enable_dependency_tracking;
  3468. fi
  3469.  
  3470. if test "x$enable_dependency_tracking" != xno; then
  3471. am_depcomp="$ac_aux_dir/depcomp"
  3472. AMDEPBACKSLASH='\'
  3473. fi
  3474. if test "x$enable_dependency_tracking" != xno; then
  3475. AMDEP_TRUE=
  3476. AMDEP_FALSE='#'
  3477. else
  3478. AMDEP_TRUE='#'
  3479. AMDEP_FALSE=
  3480. fi
  3481.  
  3482.  
  3483.  
  3484. depcc="$CC" am_compiler_list=
  3485.  
  3486. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3487. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3488. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3489. $as_echo_n "(cached) " >&6
  3490. else
  3491. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3492. # We make a subdir and do the tests there. Otherwise we can end up
  3493. # making bogus files that we don't know about and never remove. For
  3494. # instance it was reported that on HP-UX the gcc test will end up
  3495. # making a dummy file named `D' -- because `-MD' means `put the output
  3496. # in D'.
  3497. mkdir conftest.dir
  3498. # Copy depcomp to subdir because otherwise we won't find it if we're
  3499. # using a relative directory.
  3500. cp "$am_depcomp" conftest.dir
  3501. cd conftest.dir
  3502. # We will build objects and dependencies in a subdirectory because
  3503. # it helps to detect inapplicable dependency modes. For instance
  3504. # both Tru64's cc and ICC support -MD to output dependencies as a
  3505. # side effect of compilation, but ICC will put the dependencies in
  3506. # the current directory while Tru64 will put them in the object
  3507. # directory.
  3508. mkdir sub
  3509.  
  3510. am_cv_CC_dependencies_compiler_type=none
  3511. if test "$am_compiler_list" = ""; then
  3512. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3513. fi
  3514. for depmode in $am_compiler_list; do
  3515. # Setup a source with many dependencies, because some compilers
  3516. # like to wrap large dependency lists on column 80 (with \), and
  3517. # we should not choose a depcomp mode which is confused by this.
  3518. #
  3519. # We need to recreate these files for each test, as the compiler may
  3520. # overwrite some of them when testing with obscure command lines.
  3521. # This happens at least with the AIX C compiler.
  3522. : > sub/conftest.c
  3523. for i in 1 2 3 4 5 6; do
  3524. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3525. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3526. # Solaris 8's {/usr,}/bin/sh.
  3527. touch sub/conftst$i.h
  3528. done
  3529. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3530.  
  3531. case $depmode in
  3532. nosideeffect)
  3533. # after this tag, mechanisms are not by side-effect, so they'll
  3534. # only be used when explicitly requested
  3535. if test "x$enable_dependency_tracking" = xyes; then
  3536. continue
  3537. else
  3538. break
  3539. fi
  3540. ;;
  3541. none) break ;;
  3542. esac
  3543. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3544. # mode. It turns out that the SunPro C++ compiler does not properly
  3545. # handle `-M -o', and we need to detect this.
  3546. if depmode=$depmode \
  3547. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3548. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3549. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3550. >/dev/null 2>conftest.err &&
  3551. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3552. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3553. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3554. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3555. # icc doesn't choke on unknown options, it will just issue warnings
  3556. # or remarks (even with -Werror). So we grep stderr for any message
  3557. # that says an option was ignored or not supported.
  3558. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3559. # icc: Command line warning: ignoring option '-M'; no argument required
  3560. # The diagnosis changed in icc 8.0:
  3561. # icc: Command line remark: option '-MP' not supported
  3562. if (grep 'ignoring option' conftest.err ||
  3563. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3564. am_cv_CC_dependencies_compiler_type=$depmode
  3565. break
  3566. fi
  3567. fi
  3568. done
  3569.  
  3570. cd ..
  3571. rm -rf conftest.dir
  3572. else
  3573. am_cv_CC_dependencies_compiler_type=none
  3574. fi
  3575.  
  3576. fi
  3577. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3578. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3579. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3580.  
  3581. if
  3582. test "x$enable_dependency_tracking" != xno \
  3583. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3584. am__fastdepCC_TRUE=
  3585. am__fastdepCC_FALSE='#'
  3586. else
  3587. am__fastdepCC_TRUE='#'
  3588. am__fastdepCC_FALSE=
  3589. fi
  3590.  
  3591.  
  3592. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3593. $as_echo_n "checking whether ln -s works... " >&6; }
  3594. LN_S=$as_ln_s
  3595. if test "$LN_S" = "ln -s"; then
  3596. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3597. $as_echo "yes" >&6; }
  3598. else
  3599. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3600. $as_echo "no, using $LN_S" >&6; }
  3601. fi
  3602.  
  3603. if test -n "$ac_tool_prefix"; then
  3604. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3605. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3606. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3607. $as_echo_n "checking for $ac_word... " >&6; }
  3608. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3609. $as_echo_n "(cached) " >&6
  3610. else
  3611. if test -n "$RANLIB"; then
  3612. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3613. else
  3614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3615. for as_dir in $PATH
  3616. do
  3617. IFS=$as_save_IFS
  3618. test -z "$as_dir" && as_dir=.
  3619. for ac_exec_ext in '' $ac_executable_extensions; do
  3620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3621. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3622. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3623. break 2
  3624. fi
  3625. done
  3626. done
  3627. IFS=$as_save_IFS
  3628.  
  3629. fi
  3630. fi
  3631. RANLIB=$ac_cv_prog_RANLIB
  3632. if test -n "$RANLIB"; then
  3633. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  3634. $as_echo "$RANLIB" >&6; }
  3635. else
  3636. { $as_echo "$as_me:$LINENO: result: no" >&5
  3637. $as_echo "no" >&6; }
  3638. fi
  3639.  
  3640.  
  3641. fi
  3642. if test -z "$ac_cv_prog_RANLIB"; then
  3643. ac_ct_RANLIB=$RANLIB
  3644. # Extract the first word of "ranlib", so it can be a program name with args.
  3645. set dummy ranlib; ac_word=$2
  3646. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3647. $as_echo_n "checking for $ac_word... " >&6; }
  3648. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3649. $as_echo_n "(cached) " >&6
  3650. else
  3651. if test -n "$ac_ct_RANLIB"; then
  3652. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3653. else
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3661. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3662. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3663. break 2
  3664. fi
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668.  
  3669. fi
  3670. fi
  3671. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3672. if test -n "$ac_ct_RANLIB"; then
  3673. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3674. $as_echo "$ac_ct_RANLIB" >&6; }
  3675. else
  3676. { $as_echo "$as_me:$LINENO: result: no" >&5
  3677. $as_echo "no" >&6; }
  3678. fi
  3679.  
  3680. if test "x$ac_ct_RANLIB" = x; then
  3681. RANLIB=":"
  3682. else
  3683. case $cross_compiling:$ac_tool_warned in
  3684. yes:)
  3685. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3687. ac_tool_warned=yes ;;
  3688. esac
  3689. RANLIB=$ac_ct_RANLIB
  3690. fi
  3691. else
  3692. RANLIB="$ac_cv_prog_RANLIB"
  3693. fi
  3694.  
  3695.  
  3696.  
  3697. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3698. if test -n "$ac_tool_prefix"; then
  3699. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3700. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3701. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3702. $as_echo_n "checking for $ac_word... " >&6; }
  3703. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. case $PKG_CONFIG in
  3707. [\\/]* | ?:[\\/]*)
  3708. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3709. ;;
  3710. *)
  3711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3712. for as_dir in $PATH
  3713. do
  3714. IFS=$as_save_IFS
  3715. test -z "$as_dir" && as_dir=.
  3716. for ac_exec_ext in '' $ac_executable_extensions; do
  3717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3718. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3719. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3720. break 2
  3721. fi
  3722. done
  3723. done
  3724. IFS=$as_save_IFS
  3725.  
  3726. ;;
  3727. esac
  3728. fi
  3729. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3730. if test -n "$PKG_CONFIG"; then
  3731. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  3732. $as_echo "$PKG_CONFIG" >&6; }
  3733. else
  3734. { $as_echo "$as_me:$LINENO: result: no" >&5
  3735. $as_echo "no" >&6; }
  3736. fi
  3737.  
  3738.  
  3739. fi
  3740. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3741. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3742. # Extract the first word of "pkg-config", so it can be a program name with args.
  3743. set dummy pkg-config; ac_word=$2
  3744. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3745. $as_echo_n "checking for $ac_word... " >&6; }
  3746. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. case $ac_pt_PKG_CONFIG in
  3750. [\\/]* | ?:[\\/]*)
  3751. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3752. ;;
  3753. *)
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3761. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3762. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768.  
  3769. ;;
  3770. esac
  3771. fi
  3772. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3773. if test -n "$ac_pt_PKG_CONFIG"; then
  3774. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  3775. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3776. else
  3777. { $as_echo "$as_me:$LINENO: result: no" >&5
  3778. $as_echo "no" >&6; }
  3779. fi
  3780.  
  3781. if test "x$ac_pt_PKG_CONFIG" = x; then
  3782. PKG_CONFIG=""
  3783. else
  3784. case $cross_compiling:$ac_tool_warned in
  3785. yes:)
  3786. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3788. ac_tool_warned=yes ;;
  3789. esac
  3790. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3791. fi
  3792. else
  3793. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3794. fi
  3795.  
  3796. fi
  3797. if test -n "$PKG_CONFIG"; then
  3798. _pkg_min_version=0.9.0
  3799. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  3800. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3801. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3802. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3803. $as_echo "yes" >&6; }
  3804. else
  3805. { $as_echo "$as_me:$LINENO: result: no" >&5
  3806. $as_echo "no" >&6; }
  3807. PKG_CONFIG=""
  3808. fi
  3809.  
  3810. fi
  3811.  
  3812. # Extract the first word of "cut", so it can be a program name with args.
  3813. set dummy cut; ac_word=$2
  3814. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if test "${ac_cv_prog_CUT+set}" = set; then
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$CUT"; then
  3820. ac_cv_prog_CUT="$CUT" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3829. ac_cv_prog_CUT="cut"
  3830. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836.  
  3837. fi
  3838. fi
  3839. CUT=$ac_cv_prog_CUT
  3840. if test -n "$CUT"; then
  3841. { $as_echo "$as_me:$LINENO: result: $CUT" >&5
  3842. $as_echo "$CUT" >&6; }
  3843. else
  3844. { $as_echo "$as_me:$LINENO: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847.  
  3848.  
  3849. if test -z "$CUT"; then
  3850.  
  3851. { { $as_echo "$as_me:$LINENO: error: cut not found" >&5
  3852. $as_echo "$as_me: error: cut not found" >&2;}
  3853. { (exit 1); exit 1; }; }
  3854.  
  3855. fi
  3856.  
  3857.  
  3858. # Extract the first word of "doxygen", so it can be a program name with args.
  3859. set dummy doxygen; ac_word=$2
  3860. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3861. $as_echo_n "checking for $ac_word... " >&6; }
  3862. if test "${ac_cv_prog_DOXYGEN+set}" = set; then
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. if test -n "$DOXYGEN"; then
  3866. ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  3867. else
  3868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3869. for as_dir in $PATH
  3870. do
  3871. IFS=$as_save_IFS
  3872. test -z "$as_dir" && as_dir=.
  3873. for ac_exec_ext in '' $ac_executable_extensions; do
  3874. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3875. ac_cv_prog_DOXYGEN="doxygen"
  3876. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3877. break 2
  3878. fi
  3879. done
  3880. done
  3881. IFS=$as_save_IFS
  3882.  
  3883. fi
  3884. fi
  3885. DOXYGEN=$ac_cv_prog_DOXYGEN
  3886. if test -n "$DOXYGEN"; then
  3887. { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
  3888. $as_echo "$DOXYGEN" >&6; }
  3889. else
  3890. { $as_echo "$as_me:$LINENO: result: no" >&5
  3891. $as_echo "no" >&6; }
  3892. fi
  3893.  
  3894.  
  3895. # Extract the first word of "luadoc", so it can be a program name with args.
  3896. set dummy luadoc; ac_word=$2
  3897. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3898. $as_echo_n "checking for $ac_word... " >&6; }
  3899. if test "${ac_cv_prog_LUADOC+set}" = set; then
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. if test -n "$LUADOC"; then
  3903. ac_cv_prog_LUADOC="$LUADOC" # Let the user override the test.
  3904. else
  3905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3906. for as_dir in $PATH
  3907. do
  3908. IFS=$as_save_IFS
  3909. test -z "$as_dir" && as_dir=.
  3910. for ac_exec_ext in '' $ac_executable_extensions; do
  3911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3912. ac_cv_prog_LUADOC="luadoc"
  3913. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3914. break 2
  3915. fi
  3916. done
  3917. done
  3918. IFS=$as_save_IFS
  3919.  
  3920. fi
  3921. fi
  3922. LUADOC=$ac_cv_prog_LUADOC
  3923. if test -n "$LUADOC"; then
  3924. { $as_echo "$as_me:$LINENO: result: $LUADOC" >&5
  3925. $as_echo "$LUADOC" >&6; }
  3926. else
  3927. { $as_echo "$as_me:$LINENO: result: no" >&5
  3928. $as_echo "no" >&6; }
  3929. fi
  3930.  
  3931.  
  3932. # Extract the first word of "git", so it can be a program name with args.
  3933. set dummy git; ac_word=$2
  3934. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3935. $as_echo_n "checking for $ac_word... " >&6; }
  3936. if test "${ac_cv_prog_GIT+set}" = set; then
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. if test -n "$GIT"; then
  3940. ac_cv_prog_GIT="$GIT" # Let the user override the test.
  3941. else
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_exec_ext in '' $ac_executable_extensions; do
  3948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3949. ac_cv_prog_GIT="git"
  3950. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3951. break 2
  3952. fi
  3953. done
  3954. done
  3955. IFS=$as_save_IFS
  3956.  
  3957. fi
  3958. fi
  3959. GIT=$ac_cv_prog_GIT
  3960. if test -n "$GIT"; then
  3961. { $as_echo "$as_me:$LINENO: result: $GIT" >&5
  3962. $as_echo "$GIT" >&6; }
  3963. else
  3964. { $as_echo "$as_me:$LINENO: result: no" >&5
  3965. $as_echo "no" >&6; }
  3966. fi
  3967.  
  3968.  
  3969.  
  3970. #
  3971. # Checks for build environment
  3972. #
  3973. { $as_echo "$as_me:$LINENO: checking whether we are building utils" >&5
  3974. $as_echo_n "checking whether we are building utils... " >&6; }
  3975. if test -d "$srcdir/utils"; then
  3976.  
  3977. have_utils=yes
  3978.  
  3979. else
  3980.  
  3981. have_utils=no
  3982.  
  3983. fi
  3984.  
  3985. { $as_echo "$as_me:$LINENO: result: $have_utils" >&5
  3986. $as_echo "$have_utils" >&6; }
  3987.  
  3988. { $as_echo "$as_me:$LINENO: checking whether we have docs" >&5
  3989. $as_echo_n "checking whether we have docs... " >&6; }
  3990. if test -d "$srcdir/docs"; then
  3991.  
  3992. have_docs=yes
  3993.  
  3994. else
  3995.  
  3996. have_docs=no
  3997.  
  3998. fi
  3999.  
  4000. { $as_echo "$as_me:$LINENO: result: $have_docs" >&5
  4001. $as_echo "$have_docs" >&6; }
  4002.  
  4003. #
  4004. # Platform checks
  4005. #
  4006. # Make sure we can run config.sub.
  4007. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4008. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4009. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4010. { (exit 1); exit 1; }; }
  4011.  
  4012. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  4013. $as_echo_n "checking build system type... " >&6; }
  4014. if test "${ac_cv_build+set}" = set; then
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. ac_build_alias=$build_alias
  4018. test "x$ac_build_alias" = x &&
  4019. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4020. test "x$ac_build_alias" = x &&
  4021. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4022. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4023. { (exit 1); exit 1; }; }
  4024. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4025. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4026. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4027. { (exit 1); exit 1; }; }
  4028.  
  4029. fi
  4030. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4031. $as_echo "$ac_cv_build" >&6; }
  4032. case $ac_cv_build in
  4033. *-*-*) ;;
  4034. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4035. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  4036. { (exit 1); exit 1; }; };;
  4037. esac
  4038. build=$ac_cv_build
  4039. ac_save_IFS=$IFS; IFS='-'
  4040. set x $ac_cv_build
  4041. shift
  4042. build_cpu=$1
  4043. build_vendor=$2
  4044. shift; shift
  4045. # Remember, the first character of IFS is used to create $*,
  4046. # except with old shells:
  4047. build_os=$*
  4048. IFS=$ac_save_IFS
  4049. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4050.  
  4051.  
  4052. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  4053. $as_echo_n "checking host system type... " >&6; }
  4054. if test "${ac_cv_host+set}" = set; then
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. if test "x$host_alias" = x; then
  4058. ac_cv_host=$ac_cv_build
  4059. else
  4060. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4061. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4062. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4063. { (exit 1); exit 1; }; }
  4064. fi
  4065.  
  4066. fi
  4067. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4068. $as_echo "$ac_cv_host" >&6; }
  4069. case $ac_cv_host in
  4070. *-*-*) ;;
  4071. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4072. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  4073. { (exit 1); exit 1; }; };;
  4074. esac
  4075. host=$ac_cv_host
  4076. ac_save_IFS=$IFS; IFS='-'
  4077. set x $ac_cv_host
  4078. shift
  4079. host_cpu=$1
  4080. host_vendor=$2
  4081. shift; shift
  4082. # Remember, the first character of IFS is used to create $*,
  4083. # except with old shells:
  4084. host_os=$*
  4085. IFS=$ac_save_IFS
  4086. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4087.  
  4088.  
  4089.  
  4090. { $as_echo "$as_me:$LINENO: checking if we need a __unix__ define" >&5
  4091. $as_echo_n "checking if we need a __unix__ define... " >&6; }
  4092.  
  4093. cat >conftest.$ac_ext <<_ACEOF
  4094.  
  4095. #ifndef __unix__
  4096. # if defined __APPLE__ /* add other known platforms here */
  4097. # error should have __unix__ but don't
  4098. # endif
  4099. #endif
  4100.  
  4101. _ACEOF
  4102. rm -f conftest.$ac_objext
  4103. if { (ac_try="$ac_compile"
  4104. case "(($ac_try" in
  4105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4106. *) ac_try_echo=$ac_try;;
  4107. esac
  4108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4109. $as_echo "$ac_try_echo") >&5
  4110. (eval "$ac_compile") 2>conftest.er1
  4111. ac_status=$?
  4112. grep -v '^ *+' conftest.er1 >conftest.err
  4113. rm -f conftest.er1
  4114. cat conftest.err >&5
  4115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4116. (exit $ac_status); } && {
  4117. test -z "$ac_c_werror_flag" ||
  4118. test ! -s conftest.err
  4119. } && test -s conftest.$ac_objext; then
  4120. { $as_echo "$as_me:$LINENO: result: no" >&5
  4121. $as_echo "no" >&6; }
  4122. else
  4123. $as_echo "$as_me: failed program was:" >&5
  4124. sed 's/^/| /' conftest.$ac_ext >&5
  4125.  
  4126.  
  4127. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4128. $as_echo "yes" >&6; }
  4129.  
  4130. cat >>confdefs.h <<\_ACEOF
  4131. #define __unix__ 1
  4132. _ACEOF
  4133.  
  4134.  
  4135. fi
  4136.  
  4137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4138.  
  4139. #
  4140. # Checks for command-line arguments
  4141. #
  4142.  
  4143. # --enable-debug
  4144. { $as_echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
  4145. $as_echo_n "checking whether to enable debug mode... " >&6; }
  4146. # Check whether --enable-debug was given.
  4147. if test "${enable_debug+set}" = set; then
  4148. enableval=$enable_debug;
  4149. case "$enableval" in
  4150. no)
  4151. enable_debug=no
  4152. ;;
  4153. paranoid)
  4154. enable_debug=paranoid
  4155. ;;
  4156. *)
  4157. enable_debug=yes
  4158. ;;
  4159. esac
  4160.  
  4161. else
  4162.  
  4163. enable_debug=yes
  4164.  
  4165. fi
  4166.  
  4167. { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
  4168. $as_echo "$enable_debug" >&6; }
  4169.  
  4170. ac_ext=c
  4171. ac_cpp='$CPP $CPPFLAGS'
  4172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4175. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4176. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4177. # On Suns, sometimes $CPP names a directory.
  4178. if test -n "$CPP" && test -d "$CPP"; then
  4179. CPP=
  4180. fi
  4181. if test -z "$CPP"; then
  4182. if test "${ac_cv_prog_CPP+set}" = set; then
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. # Double quotes because CPP needs to be expanded
  4186. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4187. do
  4188. ac_preproc_ok=false
  4189. for ac_c_preproc_warn_flag in '' yes
  4190. do
  4191. # Use a header file that comes with gcc, so configuring glibc
  4192. # with a fresh cross-compiler works.
  4193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4194. # <limits.h> exists even on freestanding compilers.
  4195. # On the NeXT, cc -E runs the code through the compiler's parser,
  4196. # not just through cpp. "Syntax error" is here to catch this case.
  4197. cat >conftest.$ac_ext <<_ACEOF
  4198. /* confdefs.h. */
  4199. _ACEOF
  4200. cat confdefs.h >>conftest.$ac_ext
  4201. cat >>conftest.$ac_ext <<_ACEOF
  4202. /* end confdefs.h. */
  4203. #ifdef __STDC__
  4204. # include <limits.h>
  4205. #else
  4206. # include <assert.h>
  4207. #endif
  4208. Syntax error
  4209. _ACEOF
  4210. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4211. case "(($ac_try" in
  4212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4213. *) ac_try_echo=$ac_try;;
  4214. esac
  4215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4216. $as_echo "$ac_try_echo") >&5
  4217. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4218. ac_status=$?
  4219. grep -v '^ *+' conftest.er1 >conftest.err
  4220. rm -f conftest.er1
  4221. cat conftest.err >&5
  4222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); } >/dev/null && {
  4224. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4225. test ! -s conftest.err
  4226. }; then
  4227. :
  4228. else
  4229. $as_echo "$as_me: failed program was:" >&5
  4230. sed 's/^/| /' conftest.$ac_ext >&5
  4231.  
  4232. # Broken: fails on valid input.
  4233. continue
  4234. fi
  4235.  
  4236. rm -f conftest.err conftest.$ac_ext
  4237.  
  4238. # OK, works on sane cases. Now check whether nonexistent headers
  4239. # can be detected and how.
  4240. cat >conftest.$ac_ext <<_ACEOF
  4241. /* confdefs.h. */
  4242. _ACEOF
  4243. cat confdefs.h >>conftest.$ac_ext
  4244. cat >>conftest.$ac_ext <<_ACEOF
  4245. /* end confdefs.h. */
  4246. #include <ac_nonexistent.h>
  4247. _ACEOF
  4248. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4249. case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4254. $as_echo "$ac_try_echo") >&5
  4255. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4256. ac_status=$?
  4257. grep -v '^ *+' conftest.er1 >conftest.err
  4258. rm -f conftest.er1
  4259. cat conftest.err >&5
  4260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); } >/dev/null && {
  4262. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4263. test ! -s conftest.err
  4264. }; then
  4265. # Broken: success on invalid input.
  4266. continue
  4267. else
  4268. $as_echo "$as_me: failed program was:" >&5
  4269. sed 's/^/| /' conftest.$ac_ext >&5
  4270.  
  4271. # Passes both tests.
  4272. ac_preproc_ok=:
  4273. break
  4274. fi
  4275.  
  4276. rm -f conftest.err conftest.$ac_ext
  4277.  
  4278. done
  4279. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4280. rm -f conftest.err conftest.$ac_ext
  4281. if $ac_preproc_ok; then
  4282. break
  4283. fi
  4284.  
  4285. done
  4286. ac_cv_prog_CPP=$CPP
  4287.  
  4288. fi
  4289. CPP=$ac_cv_prog_CPP
  4290. else
  4291. ac_cv_prog_CPP=$CPP
  4292. fi
  4293. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  4294. $as_echo "$CPP" >&6; }
  4295. ac_preproc_ok=false
  4296. for ac_c_preproc_warn_flag in '' yes
  4297. do
  4298. # Use a header file that comes with gcc, so configuring glibc
  4299. # with a fresh cross-compiler works.
  4300. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4301. # <limits.h> exists even on freestanding compilers.
  4302. # On the NeXT, cc -E runs the code through the compiler's parser,
  4303. # not just through cpp. "Syntax error" is here to catch this case.
  4304. cat >conftest.$ac_ext <<_ACEOF
  4305. /* confdefs.h. */
  4306. _ACEOF
  4307. cat confdefs.h >>conftest.$ac_ext
  4308. cat >>conftest.$ac_ext <<_ACEOF
  4309. /* end confdefs.h. */
  4310. #ifdef __STDC__
  4311. # include <limits.h>
  4312. #else
  4313. # include <assert.h>
  4314. #endif
  4315. Syntax error
  4316. _ACEOF
  4317. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4318. case "(($ac_try" in
  4319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4320. *) ac_try_echo=$ac_try;;
  4321. esac
  4322. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4323. $as_echo "$ac_try_echo") >&5
  4324. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4325. ac_status=$?
  4326. grep -v '^ *+' conftest.er1 >conftest.err
  4327. rm -f conftest.er1
  4328. cat conftest.err >&5
  4329. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4330. (exit $ac_status); } >/dev/null && {
  4331. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4332. test ! -s conftest.err
  4333. }; then
  4334. :
  4335. else
  4336. $as_echo "$as_me: failed program was:" >&5
  4337. sed 's/^/| /' conftest.$ac_ext >&5
  4338.  
  4339. # Broken: fails on valid input.
  4340. continue
  4341. fi
  4342.  
  4343. rm -f conftest.err conftest.$ac_ext
  4344.  
  4345. # OK, works on sane cases. Now check whether nonexistent headers
  4346. # can be detected and how.
  4347. cat >conftest.$ac_ext <<_ACEOF
  4348. /* confdefs.h. */
  4349. _ACEOF
  4350. cat confdefs.h >>conftest.$ac_ext
  4351. cat >>conftest.$ac_ext <<_ACEOF
  4352. /* end confdefs.h. */
  4353. #include <ac_nonexistent.h>
  4354. _ACEOF
  4355. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4356. case "(($ac_try" in
  4357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4358. *) ac_try_echo=$ac_try;;
  4359. esac
  4360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4361. $as_echo "$ac_try_echo") >&5
  4362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4363. ac_status=$?
  4364. grep -v '^ *+' conftest.er1 >conftest.err
  4365. rm -f conftest.er1
  4366. cat conftest.err >&5
  4367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4368. (exit $ac_status); } >/dev/null && {
  4369. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4370. test ! -s conftest.err
  4371. }; then
  4372. # Broken: success on invalid input.
  4373. continue
  4374. else
  4375. $as_echo "$as_me: failed program was:" >&5
  4376. sed 's/^/| /' conftest.$ac_ext >&5
  4377.  
  4378. # Passes both tests.
  4379. ac_preproc_ok=:
  4380. break
  4381. fi
  4382.  
  4383. rm -f conftest.err conftest.$ac_ext
  4384.  
  4385. done
  4386. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4387. rm -f conftest.err conftest.$ac_ext
  4388. if $ac_preproc_ok; then
  4389. :
  4390. else
  4391. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4392. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4393. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4394. See \`config.log' for more details." >&5
  4395. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4396. See \`config.log' for more details." >&2;}
  4397. { (exit 1); exit 1; }; }; }
  4398. fi
  4399.  
  4400. ac_ext=c
  4401. ac_cpp='$CPP $CPPFLAGS'
  4402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4405.  
  4406.  
  4407. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4408. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4409. if test "${ac_cv_path_GREP+set}" = set; then
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -z "$GREP"; then
  4413. ac_path_GREP_found=false
  4414. # Loop through the user's path and test for each of PROGNAME-LIST
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_prog in grep ggrep; do
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4423. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4424. # Check for GNU ac_path_GREP and select it if it is found.
  4425. # Check for GNU $ac_path_GREP
  4426. case `"$ac_path_GREP" --version 2>&1` in
  4427. *GNU*)
  4428. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4429. *)
  4430. ac_count=0
  4431. $as_echo_n 0123456789 >"conftest.in"
  4432. while :
  4433. do
  4434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4435. mv "conftest.tmp" "conftest.in"
  4436. cp "conftest.in" "conftest.nl"
  4437. $as_echo 'GREP' >> "conftest.nl"
  4438. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4440. ac_count=`expr $ac_count + 1`
  4441. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4442. # Best one so far, save it but keep looking for a better one
  4443. ac_cv_path_GREP="$ac_path_GREP"
  4444. ac_path_GREP_max=$ac_count
  4445. fi
  4446. # 10*(2^10) chars as input seems more than enough
  4447. test $ac_count -gt 10 && break
  4448. done
  4449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4450. esac
  4451.  
  4452. $ac_path_GREP_found && break 3
  4453. done
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. if test -z "$ac_cv_path_GREP"; then
  4458. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4459. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4460. { (exit 1); exit 1; }; }
  4461. fi
  4462. else
  4463. ac_cv_path_GREP=$GREP
  4464. fi
  4465.  
  4466. fi
  4467. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4468. $as_echo "$ac_cv_path_GREP" >&6; }
  4469. GREP="$ac_cv_path_GREP"
  4470.  
  4471.  
  4472. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4473. $as_echo_n "checking for egrep... " >&6; }
  4474. if test "${ac_cv_path_EGREP+set}" = set; then
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4478. then ac_cv_path_EGREP="$GREP -E"
  4479. else
  4480. if test -z "$EGREP"; then
  4481. ac_path_EGREP_found=false
  4482. # Loop through the user's path and test for each of PROGNAME-LIST
  4483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4484. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4485. do
  4486. IFS=$as_save_IFS
  4487. test -z "$as_dir" && as_dir=.
  4488. for ac_prog in egrep; do
  4489. for ac_exec_ext in '' $ac_executable_extensions; do
  4490. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4491. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4492. # Check for GNU ac_path_EGREP and select it if it is found.
  4493. # Check for GNU $ac_path_EGREP
  4494. case `"$ac_path_EGREP" --version 2>&1` in
  4495. *GNU*)
  4496. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4497. *)
  4498. ac_count=0
  4499. $as_echo_n 0123456789 >"conftest.in"
  4500. while :
  4501. do
  4502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4503. mv "conftest.tmp" "conftest.in"
  4504. cp "conftest.in" "conftest.nl"
  4505. $as_echo 'EGREP' >> "conftest.nl"
  4506. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4508. ac_count=`expr $ac_count + 1`
  4509. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4510. # Best one so far, save it but keep looking for a better one
  4511. ac_cv_path_EGREP="$ac_path_EGREP"
  4512. ac_path_EGREP_max=$ac_count
  4513. fi
  4514. # 10*(2^10) chars as input seems more than enough
  4515. test $ac_count -gt 10 && break
  4516. done
  4517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4518. esac
  4519.  
  4520. $ac_path_EGREP_found && break 3
  4521. done
  4522. done
  4523. done
  4524. IFS=$as_save_IFS
  4525. if test -z "$ac_cv_path_EGREP"; then
  4526. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4527. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4528. { (exit 1); exit 1; }; }
  4529. fi
  4530. else
  4531. ac_cv_path_EGREP=$EGREP
  4532. fi
  4533.  
  4534. fi
  4535. fi
  4536. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4537. $as_echo "$ac_cv_path_EGREP" >&6; }
  4538. EGREP="$ac_cv_path_EGREP"
  4539.  
  4540.  
  4541. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4542. $as_echo_n "checking for ANSI C header files... " >&6; }
  4543. if test "${ac_cv_header_stdc+set}" = set; then
  4544. $as_echo_n "(cached) " >&6
  4545. else
  4546. cat >conftest.$ac_ext <<_ACEOF
  4547. /* confdefs.h. */
  4548. _ACEOF
  4549. cat confdefs.h >>conftest.$ac_ext
  4550. cat >>conftest.$ac_ext <<_ACEOF
  4551. /* end confdefs.h. */
  4552. #include <stdlib.h>
  4553. #include <stdarg.h>
  4554. #include <string.h>
  4555. #include <float.h>
  4556.  
  4557. int
  4558. main ()
  4559. {
  4560.  
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. rm -f conftest.$ac_objext
  4566. if { (ac_try="$ac_compile"
  4567. case "(($ac_try" in
  4568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4569. *) ac_try_echo=$ac_try;;
  4570. esac
  4571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4572. $as_echo "$ac_try_echo") >&5
  4573. (eval "$ac_compile") 2>conftest.er1
  4574. ac_status=$?
  4575. grep -v '^ *+' conftest.er1 >conftest.err
  4576. rm -f conftest.er1
  4577. cat conftest.err >&5
  4578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4579. (exit $ac_status); } && {
  4580. test -z "$ac_c_werror_flag" ||
  4581. test ! -s conftest.err
  4582. } && test -s conftest.$ac_objext; then
  4583. ac_cv_header_stdc=yes
  4584. else
  4585. $as_echo "$as_me: failed program was:" >&5
  4586. sed 's/^/| /' conftest.$ac_ext >&5
  4587.  
  4588. ac_cv_header_stdc=no
  4589. fi
  4590.  
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592.  
  4593. if test $ac_cv_header_stdc = yes; then
  4594. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <string.h>
  4602.  
  4603. _ACEOF
  4604. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4605. $EGREP "memchr" >/dev/null 2>&1; then
  4606. :
  4607. else
  4608. ac_cv_header_stdc=no
  4609. fi
  4610. rm -f conftest*
  4611.  
  4612. fi
  4613.  
  4614. if test $ac_cv_header_stdc = yes; then
  4615. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4616. cat >conftest.$ac_ext <<_ACEOF
  4617. /* confdefs.h. */
  4618. _ACEOF
  4619. cat confdefs.h >>conftest.$ac_ext
  4620. cat >>conftest.$ac_ext <<_ACEOF
  4621. /* end confdefs.h. */
  4622. #include <stdlib.h>
  4623.  
  4624. _ACEOF
  4625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4626. $EGREP "free" >/dev/null 2>&1; then
  4627. :
  4628. else
  4629. ac_cv_header_stdc=no
  4630. fi
  4631. rm -f conftest*
  4632.  
  4633. fi
  4634.  
  4635. if test $ac_cv_header_stdc = yes; then
  4636. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4637. if test "$cross_compiling" = yes; then
  4638. :
  4639. else
  4640. cat >conftest.$ac_ext <<_ACEOF
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. #include <ctype.h>
  4647. #include <stdlib.h>
  4648. #if ((' ' & 0x0FF) == 0x020)
  4649. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4650. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4651. #else
  4652. # define ISLOWER(c) \
  4653. (('a' <= (c) && (c) <= 'i') \
  4654. || ('j' <= (c) && (c) <= 'r') \
  4655. || ('s' <= (c) && (c) <= 'z'))
  4656. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4657. #endif
  4658.  
  4659. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4660. int
  4661. main ()
  4662. {
  4663. int i;
  4664. for (i = 0; i < 256; i++)
  4665. if (XOR (islower (i), ISLOWER (i))
  4666. || toupper (i) != TOUPPER (i))
  4667. return 2;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. rm -f conftest$ac_exeext
  4672. if { (ac_try="$ac_link"
  4673. case "(($ac_try" in
  4674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4675. *) ac_try_echo=$ac_try;;
  4676. esac
  4677. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4678. $as_echo "$ac_try_echo") >&5
  4679. (eval "$ac_link") 2>&5
  4680. ac_status=$?
  4681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4682. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4683. { (case "(($ac_try" in
  4684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4685. *) ac_try_echo=$ac_try;;
  4686. esac
  4687. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4688. $as_echo "$ac_try_echo") >&5
  4689. (eval "$ac_try") 2>&5
  4690. ac_status=$?
  4691. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); }; }; then
  4693. :
  4694. else
  4695. $as_echo "$as_me: program exited with status $ac_status" >&5
  4696. $as_echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698.  
  4699. ( exit $ac_status )
  4700. ac_cv_header_stdc=no
  4701. fi
  4702. rm -rf conftest.dSYM
  4703. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4704. fi
  4705.  
  4706.  
  4707. fi
  4708. fi
  4709. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4710. $as_echo "$ac_cv_header_stdc" >&6; }
  4711. if test $ac_cv_header_stdc = yes; then
  4712.  
  4713. cat >>confdefs.h <<\_ACEOF
  4714. #define STDC_HEADERS 1
  4715. _ACEOF
  4716.  
  4717. fi
  4718.  
  4719. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4720.  
  4721.  
  4722.  
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4730. inttypes.h stdint.h unistd.h
  4731. do
  4732. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4733. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4734. $as_echo_n "checking for $ac_header... " >&6; }
  4735. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. cat >conftest.$ac_ext <<_ACEOF
  4739. /* confdefs.h. */
  4740. _ACEOF
  4741. cat confdefs.h >>conftest.$ac_ext
  4742. cat >>conftest.$ac_ext <<_ACEOF
  4743. /* end confdefs.h. */
  4744. $ac_includes_default
  4745.  
  4746. #include <$ac_header>
  4747. _ACEOF
  4748. rm -f conftest.$ac_objext
  4749. if { (ac_try="$ac_compile"
  4750. case "(($ac_try" in
  4751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4752. *) ac_try_echo=$ac_try;;
  4753. esac
  4754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4755. $as_echo "$ac_try_echo") >&5
  4756. (eval "$ac_compile") 2>conftest.er1
  4757. ac_status=$?
  4758. grep -v '^ *+' conftest.er1 >conftest.err
  4759. rm -f conftest.er1
  4760. cat conftest.err >&5
  4761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4762. (exit $ac_status); } && {
  4763. test -z "$ac_c_werror_flag" ||
  4764. test ! -s conftest.err
  4765. } && test -s conftest.$ac_objext; then
  4766. eval "$as_ac_Header=yes"
  4767. else
  4768. $as_echo "$as_me: failed program was:" >&5
  4769. sed 's/^/| /' conftest.$ac_ext >&5
  4770.  
  4771. eval "$as_ac_Header=no"
  4772. fi
  4773.  
  4774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4775. fi
  4776. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4777. $as_echo "$as_val"'`
  4778. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4779. $as_echo "$ac_res" >&6; }
  4780. as_val=`eval 'as_val=${'$as_ac_Header'}
  4781. $as_echo "$as_val"'`
  4782. if test "x$as_val" = x""yes; then
  4783. cat >>confdefs.h <<_ACEOF
  4784. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4785. _ACEOF
  4786.  
  4787. fi
  4788.  
  4789. done
  4790.  
  4791.  
  4792. if test "$enable_debug" != "no"; then
  4793.  
  4794. if test "$have_custom_cflags" = "no"; then
  4795.  
  4796. # Undo the default CFLAGS set by autoconf
  4797. if test "$ac_cv_prog_cc_g" = "yes"; then
  4798.  
  4799. CFLAGS="-g -W -Wall -Wextra -Wunused -Wshadow -Wpointer-arith -Wmissing-prototypes -Winline -Wcast-align -Wmissing-declarations -Wredundant-decls -Wno-long-long"
  4800.  
  4801. else
  4802.  
  4803. CFLAGS=
  4804.  
  4805. fi
  4806.  
  4807.  
  4808. fi
  4809.  
  4810. case "$host" in
  4811. *-linux-gnu)
  4812. { $as_echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
  4813. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  4814. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. ac_check_lib_save_LIBS=$LIBS
  4818. LIBS="-lbfd $LIBS"
  4819. cat >conftest.$ac_ext <<_ACEOF
  4820. /* confdefs.h. */
  4821. _ACEOF
  4822. cat confdefs.h >>conftest.$ac_ext
  4823. cat >>conftest.$ac_ext <<_ACEOF
  4824. /* end confdefs.h. */
  4825.  
  4826. /* Override any GCC internal prototype to avoid an error.
  4827. Use char because int might match the return type of a GCC
  4828. builtin and then its argument prototype would still apply. */
  4829. #ifdef __cplusplus
  4830. extern "C"
  4831. #endif
  4832. char bfd_init ();
  4833. int
  4834. main ()
  4835. {
  4836. return bfd_init ();
  4837. ;
  4838. return 0;
  4839. }
  4840. _ACEOF
  4841. rm -f conftest.$ac_objext conftest$ac_exeext
  4842. if { (ac_try="$ac_link"
  4843. case "(($ac_try" in
  4844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4845. *) ac_try_echo=$ac_try;;
  4846. esac
  4847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4848. $as_echo "$ac_try_echo") >&5
  4849. (eval "$ac_link") 2>conftest.er1
  4850. ac_status=$?
  4851. grep -v '^ *+' conftest.er1 >conftest.err
  4852. rm -f conftest.er1
  4853. cat conftest.err >&5
  4854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855. (exit $ac_status); } && {
  4856. test -z "$ac_c_werror_flag" ||
  4857. test ! -s conftest.err
  4858. } && test -s conftest$ac_exeext && {
  4859. test "$cross_compiling" = yes ||
  4860. $as_test_x conftest$ac_exeext
  4861. }; then
  4862. ac_cv_lib_bfd_bfd_init=yes
  4863. else
  4864. $as_echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866.  
  4867. ac_cv_lib_bfd_bfd_init=no
  4868. fi
  4869.  
  4870. rm -rf conftest.dSYM
  4871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4872. conftest$ac_exeext conftest.$ac_ext
  4873. LIBS=$ac_check_lib_save_LIBS
  4874. fi
  4875. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
  4876. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  4877. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then
  4878.  
  4879.  
  4880. for ac_header in bfd.h
  4881. do
  4882. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4884. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4885. $as_echo_n "checking for $ac_header... " >&6; }
  4886. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4887. $as_echo_n "(cached) " >&6
  4888. fi
  4889. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4890. $as_echo "$as_val"'`
  4891. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4892. $as_echo "$ac_res" >&6; }
  4893. else
  4894. # Is the header compilable?
  4895. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4896. $as_echo_n "checking $ac_header usability... " >&6; }
  4897. cat >conftest.$ac_ext <<_ACEOF
  4898. /* confdefs.h. */
  4899. _ACEOF
  4900. cat confdefs.h >>conftest.$ac_ext
  4901. cat >>conftest.$ac_ext <<_ACEOF
  4902. /* end confdefs.h. */
  4903. $ac_includes_default
  4904. #include <$ac_header>
  4905. _ACEOF
  4906. rm -f conftest.$ac_objext
  4907. if { (ac_try="$ac_compile"
  4908. case "(($ac_try" in
  4909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4910. *) ac_try_echo=$ac_try;;
  4911. esac
  4912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4913. $as_echo "$ac_try_echo") >&5
  4914. (eval "$ac_compile") 2>conftest.er1
  4915. ac_status=$?
  4916. grep -v '^ *+' conftest.er1 >conftest.err
  4917. rm -f conftest.er1
  4918. cat conftest.err >&5
  4919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4920. (exit $ac_status); } && {
  4921. test -z "$ac_c_werror_flag" ||
  4922. test ! -s conftest.err
  4923. } && test -s conftest.$ac_objext; then
  4924. ac_header_compiler=yes
  4925. else
  4926. $as_echo "$as_me: failed program was:" >&5
  4927. sed 's/^/| /' conftest.$ac_ext >&5
  4928.  
  4929. ac_header_compiler=no
  4930. fi
  4931.  
  4932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4933. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4934. $as_echo "$ac_header_compiler" >&6; }
  4935.  
  4936. # Is the header present?
  4937. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4938. $as_echo_n "checking $ac_header presence... " >&6; }
  4939. cat >conftest.$ac_ext <<_ACEOF
  4940. /* confdefs.h. */
  4941. _ACEOF
  4942. cat confdefs.h >>conftest.$ac_ext
  4943. cat >>conftest.$ac_ext <<_ACEOF
  4944. /* end confdefs.h. */
  4945. #include <$ac_header>
  4946. _ACEOF
  4947. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4948. case "(($ac_try" in
  4949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4950. *) ac_try_echo=$ac_try;;
  4951. esac
  4952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4953. $as_echo "$ac_try_echo") >&5
  4954. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4955. ac_status=$?
  4956. grep -v '^ *+' conftest.er1 >conftest.err
  4957. rm -f conftest.er1
  4958. cat conftest.err >&5
  4959. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960. (exit $ac_status); } >/dev/null && {
  4961. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4962. test ! -s conftest.err
  4963. }; then
  4964. ac_header_preproc=yes
  4965. else
  4966. $as_echo "$as_me: failed program was:" >&5
  4967. sed 's/^/| /' conftest.$ac_ext >&5
  4968.  
  4969. ac_header_preproc=no
  4970. fi
  4971.  
  4972. rm -f conftest.err conftest.$ac_ext
  4973. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4974. $as_echo "$ac_header_preproc" >&6; }
  4975.  
  4976. # So? What about this header?
  4977. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4978. yes:no: )
  4979. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4980. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4981. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4982. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4983. ac_header_preproc=yes
  4984. ;;
  4985. no:yes:* )
  4986. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4987. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4988. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4989. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4990. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4991. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4992. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4993. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4994. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4995. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4996. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4997. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4998. ( cat <<\_ASBOX
  4999. ## -------------------------------- ##
  5000. ## Report this to bobbens@gmail.com ##
  5001. ## -------------------------------- ##
  5002. _ASBOX
  5003. ) | sed "s/^/$as_me: WARNING: /" >&2
  5004. ;;
  5005. esac
  5006. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5007. $as_echo_n "checking for $ac_header... " >&6; }
  5008. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5009. $as_echo_n "(cached) " >&6
  5010. else
  5011. eval "$as_ac_Header=\$ac_header_preproc"
  5012. fi
  5013. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5014. $as_echo "$as_val"'`
  5015. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5016. $as_echo "$ac_res" >&6; }
  5017.  
  5018. fi
  5019. as_val=`eval 'as_val=${'$as_ac_Header'}
  5020. $as_echo "$as_val"'`
  5021. if test "x$as_val" = x""yes; then
  5022. cat >>confdefs.h <<_ACEOF
  5023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5024. _ACEOF
  5025.  
  5026. have_bfd=yes
  5027.  
  5028. else
  5029.  
  5030. { $as_echo "$as_me:$LINENO: WARNING: debug mode is enabled but bfd.h is missing; disabling" >&5
  5031. $as_echo "$as_me: WARNING: debug mode is enabled but bfd.h is missing; disabling" >&2;}
  5032. have_bfd=no
  5033.  
  5034. fi
  5035.  
  5036. done
  5037.  
  5038.  
  5039. else
  5040.  
  5041. { $as_echo "$as_me:$LINENO: WARNING: debug mode is enabled but libbfd is missing; disabling" >&5
  5042. $as_echo "$as_me: WARNING: debug mode is enabled but libbfd is missing; disabling" >&2;}
  5043. have_bfd=no
  5044.  
  5045. fi
  5046.  
  5047. ;;
  5048. esac
  5049.  
  5050. fi
  5051.  
  5052.  
  5053. # --with-openal
  5054. { $as_echo "$as_me:$LINENO: checking whether to use OpenAL" >&5
  5055. $as_echo_n "checking whether to use OpenAL... " >&6; }
  5056.  
  5057. # Check whether --with-openal was given.
  5058. if test "${with_openal+set}" = set; then
  5059. withval=$with_openal;
  5060. if test "$withval" = "yes"; then
  5061.  
  5062. with_openal=yes
  5063.  
  5064. else
  5065.  
  5066. with_openal=no
  5067.  
  5068. fi
  5069.  
  5070.  
  5071. else
  5072.  
  5073. with_openal=yes
  5074.  
  5075. fi
  5076.  
  5077. { $as_echo "$as_me:$LINENO: result: $with_openal" >&5
  5078. $as_echo "$with_openal" >&6; }
  5079.  
  5080. # --with-sdlmixer
  5081. { $as_echo "$as_me:$LINENO: checking whether to use SDL_mixer" >&5
  5082. $as_echo_n "checking whether to use SDL_mixer... " >&6; }
  5083.  
  5084. # Check whether --with-sdlmixer was given.
  5085. if test "${with_sdlmixer+set}" = set; then
  5086. withval=$with_sdlmixer;
  5087. if test "$withval" = "yes"; then
  5088.  
  5089. with_sdlmixer=yes
  5090.  
  5091. else
  5092.  
  5093. with_sdlmixer=no
  5094.  
  5095. fi
  5096.  
  5097.  
  5098. else
  5099.  
  5100. with_sdlmixer=yes
  5101.  
  5102. fi
  5103.  
  5104. { $as_echo "$as_me:$LINENO: result: $with_sdlmixer" >&5
  5105. $as_echo "$with_sdlmixer" >&6; }
  5106.  
  5107. # --with-ndata
  5108. ndata_path="$datadir/$PACKAGE_NAME/ndata"
  5109. expand_variable ndata_path
  5110.  
  5111. { $as_echo "$as_me:$LINENO: checking for path to ndata" >&5
  5112. $as_echo_n "checking for path to ndata... " >&6; }
  5113.  
  5114. # Check whether --with-ndata-path was given.
  5115. if test "${with_ndata_path+set}" = set; then
  5116. withval=$with_ndata_path; ndata_path="$withval"
  5117. fi
  5118.  
  5119. { $as_echo "$as_me:$LINENO: result: $ndata_path" >&5
  5120. $as_echo "$ndata_path" >&6; }
  5121. if test -z "$ndata_path" || test "$ndata_path" = "yes"; then
  5122.  
  5123. { { $as_echo "$as_me:$LINENO: error: The data path must be explicitly specified" >&5
  5124. $as_echo "$as_me: error: The data path must be explicitly specified" >&2;}
  5125. { (exit 1); exit 1; }; }
  5126.  
  5127. fi
  5128.  
  5129.  
  5130.  
  5131. # --with-preferences-dir
  5132. prefsdir=".$PACKAGE_NAME"
  5133. expand_variable prefsdir
  5134.  
  5135. { $as_echo "$as_me:$LINENO: checking for preferences directory" >&5
  5136. $as_echo_n "checking for preferences directory... " >&6; }
  5137.  
  5138. # Check whether --with-preferences-dir was given.
  5139. if test "${with_preferences_dir+set}" = set; then
  5140. withval=$with_preferences_dir; prefsdir="$withval"
  5141. fi
  5142.  
  5143. { $as_echo "$as_me:$LINENO: result: $prefsdir" >&5
  5144. $as_echo "$prefsdir" >&6; }
  5145. if test -z "$prefsdir" || test "$prefsdir" = "yes"; then
  5146.  
  5147. { { $as_echo "$as_me:$LINENO: error: The preferences directory must be explicitly specified" >&5
  5148. $as_echo "$as_me: error: The preferences directory must be explicitly specified" >&2;}
  5149. { (exit 1); exit 1; }; }
  5150.  
  5151. fi
  5152.  
  5153.  
  5154.  
  5155. #
  5156. # Checks for libraries.
  5157. #
  5158.  
  5159. # SDL
  5160.  
  5161. # Check whether --with-sdl-prefix was given.
  5162. if test "${with_sdl_prefix+set}" = set; then
  5163. withval=$with_sdl_prefix; sdl_prefix="$withval"
  5164. else
  5165. sdl_prefix=""
  5166. fi
  5167.  
  5168.  
  5169. # Check whether --with-sdl-exec-prefix was given.
  5170. if test "${with_sdl_exec_prefix+set}" = set; then
  5171. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  5172. else
  5173. sdl_exec_prefix=""
  5174. fi
  5175.  
  5176. # Check whether --enable-sdltest was given.
  5177. if test "${enable_sdltest+set}" = set; then
  5178. enableval=$enable_sdltest;
  5179. else
  5180. enable_sdltest=yes
  5181. fi
  5182.  
  5183.  
  5184. if test x$sdl_exec_prefix != x ; then
  5185. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  5186. if test x${SDL_CONFIG+set} != xset ; then
  5187. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  5188. fi
  5189. fi
  5190. if test x$sdl_prefix != x ; then
  5191. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  5192. if test x${SDL_CONFIG+set} != xset ; then
  5193. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  5194. fi
  5195. fi
  5196.  
  5197. as_save_PATH="$PATH"
  5198. if test "x$prefix" != xNONE; then
  5199. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  5200. fi
  5201. # Extract the first word of "sdl-config", so it can be a program name with args.
  5202. set dummy sdl-config; ac_word=$2
  5203. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5204. $as_echo_n "checking for $ac_word... " >&6; }
  5205. if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. case $SDL_CONFIG in
  5209. [\\/]* | ?:[\\/]*)
  5210. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  5211. ;;
  5212. *)
  5213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5214. for as_dir in $PATH
  5215. do
  5216. IFS=$as_save_IFS
  5217. test -z "$as_dir" && as_dir=.
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5220. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5221. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5222. break 2
  5223. fi
  5224. done
  5225. done
  5226. IFS=$as_save_IFS
  5227.  
  5228. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  5229. ;;
  5230. esac
  5231. fi
  5232. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  5233. if test -n "$SDL_CONFIG"; then
  5234. { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  5235. $as_echo "$SDL_CONFIG" >&6; }
  5236. else
  5237. { $as_echo "$as_me:$LINENO: result: no" >&5
  5238. $as_echo "no" >&6; }
  5239. fi
  5240.  
  5241.  
  5242. PATH="$as_save_PATH"
  5243. min_sdl_version=0.11.0
  5244. { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  5245. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  5246. no_sdl=""
  5247. if test "$SDL_CONFIG" = "no" ; then
  5248. no_sdl=yes
  5249. else
  5250. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  5251. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  5252.  
  5253. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  5254. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5255. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  5256. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5257. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  5258. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5259. if test "x$enable_sdltest" = "xyes" ; then
  5260. ac_save_CFLAGS="$CFLAGS"
  5261. ac_save_CXXFLAGS="$CXXFLAGS"
  5262. ac_save_LIBS="$LIBS"
  5263. CFLAGS="$CFLAGS $SDL_CFLAGS"
  5264. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  5265. LIBS="$LIBS $SDL_LIBS"
  5266. rm -f conf.sdltest
  5267. if test "$cross_compiling" = yes; then
  5268. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5269. else
  5270. cat >conftest.$ac_ext <<_ACEOF
  5271. /* confdefs.h. */
  5272. _ACEOF
  5273. cat confdefs.h >>conftest.$ac_ext
  5274. cat >>conftest.$ac_ext <<_ACEOF
  5275. /* end confdefs.h. */
  5276.  
  5277. #include <stdio.h>
  5278. #include <stdlib.h>
  5279. #include <string.h>
  5280. #include "SDL.h"
  5281.  
  5282. char*
  5283. my_strdup (char *str)
  5284. {
  5285. char *new_str;
  5286.  
  5287. if (str)
  5288. {
  5289. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  5290. strcpy (new_str, str);
  5291. }
  5292. else
  5293. new_str = NULL;
  5294.  
  5295. return new_str;
  5296. }
  5297.  
  5298. int main (int argc, char *argv[])
  5299. {
  5300. int major, minor, micro;
  5301. char *tmp_version;
  5302.  
  5303. /* This hangs on some systems (?)
  5304. system ("touch conf.sdltest");
  5305. */
  5306. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  5307.  
  5308. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5309. tmp_version = my_strdup("$min_sdl_version");
  5310. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5311. printf("%s, bad version string\n", "$min_sdl_version");
  5312. exit(1);
  5313. }
  5314.  
  5315. if (($sdl_major_version > major) ||
  5316. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  5317. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  5318. {
  5319. return 0;
  5320. }
  5321. else
  5322. {
  5323. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  5324. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  5325. printf("*** best to upgrade to the required version.\n");
  5326. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  5327. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  5328. printf("*** config.cache before re-running configure\n");
  5329. return 1;
  5330. }
  5331. }
  5332.  
  5333.  
  5334. _ACEOF
  5335. rm -f conftest$ac_exeext
  5336. if { (ac_try="$ac_link"
  5337. case "(($ac_try" in
  5338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5339. *) ac_try_echo=$ac_try;;
  5340. esac
  5341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5342. $as_echo "$ac_try_echo") >&5
  5343. (eval "$ac_link") 2>&5
  5344. ac_status=$?
  5345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5347. { (case "(($ac_try" in
  5348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5349. *) ac_try_echo=$ac_try;;
  5350. esac
  5351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5352. $as_echo "$ac_try_echo") >&5
  5353. (eval "$ac_try") 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); }; }; then
  5357. :
  5358. else
  5359. $as_echo "$as_me: program exited with status $ac_status" >&5
  5360. $as_echo "$as_me: failed program was:" >&5
  5361. sed 's/^/| /' conftest.$ac_ext >&5
  5362.  
  5363. ( exit $ac_status )
  5364. no_sdl=yes
  5365. fi
  5366. rm -rf conftest.dSYM
  5367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5368. fi
  5369.  
  5370.  
  5371. CFLAGS="$ac_save_CFLAGS"
  5372. CXXFLAGS="$ac_save_CXXFLAGS"
  5373. LIBS="$ac_save_LIBS"
  5374. fi
  5375. fi
  5376. if test "x$no_sdl" = x ; then
  5377. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5378. $as_echo "yes" >&6; }
  5379. :
  5380. else
  5381. { $as_echo "$as_me:$LINENO: result: no" >&5
  5382. $as_echo "no" >&6; }
  5383. if test "$SDL_CONFIG" = "no" ; then
  5384. echo "*** The sdl-config script installed by SDL could not be found"
  5385. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  5386. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  5387. echo "*** full path to sdl-config."
  5388. else
  5389. if test -f conf.sdltest ; then
  5390. :
  5391. else
  5392. echo "*** Could not run SDL test program, checking why..."
  5393. CFLAGS="$CFLAGS $SDL_CFLAGS"
  5394. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  5395. LIBS="$LIBS $SDL_LIBS"
  5396. cat >conftest.$ac_ext <<_ACEOF
  5397. /* confdefs.h. */
  5398. _ACEOF
  5399. cat confdefs.h >>conftest.$ac_ext
  5400. cat >>conftest.$ac_ext <<_ACEOF
  5401. /* end confdefs.h. */
  5402.  
  5403. #include <stdio.h>
  5404. #include "SDL.h"
  5405.  
  5406. int main(int argc, char *argv[])
  5407. { return 0; }
  5408. #undef main
  5409. #define main K_and_R_C_main
  5410.  
  5411. int
  5412. main ()
  5413. {
  5414. return 0;
  5415. ;
  5416. return 0;
  5417. }
  5418. _ACEOF
  5419. rm -f conftest.$ac_objext conftest$ac_exeext
  5420. if { (ac_try="$ac_link"
  5421. case "(($ac_try" in
  5422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5423. *) ac_try_echo=$ac_try;;
  5424. esac
  5425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5426. $as_echo "$ac_try_echo") >&5
  5427. (eval "$ac_link") 2>conftest.er1
  5428. ac_status=$?
  5429. grep -v '^ *+' conftest.er1 >conftest.err
  5430. rm -f conftest.er1
  5431. cat conftest.err >&5
  5432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); } && {
  5434. test -z "$ac_c_werror_flag" ||
  5435. test ! -s conftest.err
  5436. } && test -s conftest$ac_exeext && {
  5437. test "$cross_compiling" = yes ||
  5438. $as_test_x conftest$ac_exeext
  5439. }; then
  5440. echo "*** The test program compiled, but did not run. This usually means"
  5441. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  5442. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  5443. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5444. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5445. echo "*** is required on your system"
  5446. echo "***"
  5447. echo "*** If you have an old version installed, it is best to remove it, although"
  5448. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5449. else
  5450. $as_echo "$as_me: failed program was:" >&5
  5451. sed 's/^/| /' conftest.$ac_ext >&5
  5452.  
  5453. echo "*** The test program failed to compile or link. See the file config.log for the"
  5454. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  5455. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  5456. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  5457. fi
  5458.  
  5459. rm -rf conftest.dSYM
  5460. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5461. conftest$ac_exeext conftest.$ac_ext
  5462. CFLAGS="$ac_save_CFLAGS"
  5463. CXXFLAGS="$ac_save_CXXFLAGS"
  5464. LIBS="$ac_save_LIBS"
  5465. fi
  5466. fi
  5467. SDL_CFLAGS=""
  5468. SDL_LIBS=""
  5469. :
  5470. fi
  5471.  
  5472.  
  5473. rm -f conf.sdltest
  5474.  
  5475. if test -z "$SDL_CFLAGS" && test -z "$SDL_LIBS"; then
  5476.  
  5477. { { $as_echo "$as_me:$LINENO: error: SDL not found" >&5
  5478. $as_echo "$as_me: error: SDL not found" >&2;}
  5479. { (exit 1); exit 1; }; }
  5480.  
  5481. fi
  5482.  
  5483.  
  5484. # libxml2
  5485.  
  5486. pkg_failed=no
  5487. { $as_echo "$as_me:$LINENO: checking for XML" >&5
  5488. $as_echo_n "checking for XML... " >&6; }
  5489.  
  5490. if test -n "$XML_CFLAGS"; then
  5491. pkg_cv_XML_CFLAGS="$XML_CFLAGS"
  5492. elif test -n "$PKG_CONFIG"; then
  5493. if test -n "$PKG_CONFIG" && \
  5494. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
  5495. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  5496. ac_status=$?
  5497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5498. (exit $ac_status); }; then
  5499. pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  5500. else
  5501. pkg_failed=yes
  5502. fi
  5503. else
  5504. pkg_failed=untried
  5505. fi
  5506. if test -n "$XML_LIBS"; then
  5507. pkg_cv_XML_LIBS="$XML_LIBS"
  5508. elif test -n "$PKG_CONFIG"; then
  5509. if test -n "$PKG_CONFIG" && \
  5510. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
  5511. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  5512. ac_status=$?
  5513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5514. (exit $ac_status); }; then
  5515. pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  5516. else
  5517. pkg_failed=yes
  5518. fi
  5519. else
  5520. pkg_failed=untried
  5521. fi
  5522.  
  5523.  
  5524.  
  5525. if test $pkg_failed = yes; then
  5526.  
  5527. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5528. _pkg_short_errors_supported=yes
  5529. else
  5530. _pkg_short_errors_supported=no
  5531. fi
  5532. if test $_pkg_short_errors_supported = yes; then
  5533. XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
  5534. else
  5535. XML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
  5536. fi
  5537. # Put the nasty error message in config.log where it belongs
  5538. echo "$XML_PKG_ERRORS" >&5
  5539.  
  5540. { $as_echo "$as_me:$LINENO: result: no" >&5
  5541. $as_echo "no" >&6; }
  5542.  
  5543. { { $as_echo "$as_me:$LINENO: error: libxml-2.0 not found" >&5
  5544. $as_echo "$as_me: error: libxml-2.0 not found" >&2;}
  5545. { (exit 1); exit 1; }; }
  5546.  
  5547. elif test $pkg_failed = untried; then
  5548.  
  5549. { { $as_echo "$as_me:$LINENO: error: libxml-2.0 not found" >&5
  5550. $as_echo "$as_me: error: libxml-2.0 not found" >&2;}
  5551. { (exit 1); exit 1; }; }
  5552.  
  5553. else
  5554. XML_CFLAGS=$pkg_cv_XML_CFLAGS
  5555. XML_LIBS=$pkg_cv_XML_LIBS
  5556. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5557. $as_echo "yes" >&6; }
  5558. :
  5559. fi
  5560.  
  5561. # FreeType
  5562.  
  5563. pkg_failed=no
  5564. { $as_echo "$as_me:$LINENO: checking for FREETYPE" >&5
  5565. $as_echo_n "checking for FREETYPE... " >&6; }
  5566.  
  5567. if test -n "$FREETYPE_CFLAGS"; then
  5568. pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
  5569. elif test -n "$PKG_CONFIG"; then
  5570. if test -n "$PKG_CONFIG" && \
  5571. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
  5572. ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  5573. ac_status=$?
  5574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5575. (exit $ac_status); }; then
  5576. pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
  5577. else
  5578. pkg_failed=yes
  5579. fi
  5580. else
  5581. pkg_failed=untried
  5582. fi
  5583. if test -n "$FREETYPE_LIBS"; then
  5584. pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
  5585. elif test -n "$PKG_CONFIG"; then
  5586. if test -n "$PKG_CONFIG" && \
  5587. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
  5588. ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  5589. ac_status=$?
  5590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5591. (exit $ac_status); }; then
  5592. pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
  5593. else
  5594. pkg_failed=yes
  5595. fi
  5596. else
  5597. pkg_failed=untried
  5598. fi
  5599.  
  5600.  
  5601.  
  5602. if test $pkg_failed = yes; then
  5603.  
  5604. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5605. _pkg_short_errors_supported=yes
  5606. else
  5607. _pkg_short_errors_supported=no
  5608. fi
  5609. if test $_pkg_short_errors_supported = yes; then
  5610. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
  5611. else
  5612. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
  5613. fi
  5614. # Put the nasty error message in config.log where it belongs
  5615. echo "$FREETYPE_PKG_ERRORS" >&5
  5616.  
  5617. { $as_echo "$as_me:$LINENO: result: no" >&5
  5618. $as_echo "no" >&6; }
  5619.  
  5620. { { $as_echo "$as_me:$LINENO: error: freetype2 not found" >&5
  5621. $as_echo "$as_me: error: freetype2 not found" >&2;}
  5622. { (exit 1); exit 1; }; }
  5623.  
  5624. elif test $pkg_failed = untried; then
  5625.  
  5626. { { $as_echo "$as_me:$LINENO: error: freetype2 not found" >&5
  5627. $as_echo "$as_me: error: freetype2 not found" >&2;}
  5628. { (exit 1); exit 1; }; }
  5629.  
  5630. else
  5631. FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
  5632. FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
  5633. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5634. $as_echo "yes" >&6; }
  5635. :
  5636. fi
  5637.  
  5638. # vorbisfile
  5639.  
  5640. pkg_failed=no
  5641. { $as_echo "$as_me:$LINENO: checking for VORBISFILE" >&5
  5642. $as_echo_n "checking for VORBISFILE... " >&6; }
  5643.  
  5644. if test -n "$VORBISFILE_CFLAGS"; then
  5645. pkg_cv_VORBISFILE_CFLAGS="$VORBISFILE_CFLAGS"
  5646. elif test -n "$PKG_CONFIG"; then
  5647. if test -n "$PKG_CONFIG" && \
  5648. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisfile\"") >&5
  5649. ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5
  5650. ac_status=$?
  5651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5652. (exit $ac_status); }; then
  5653. pkg_cv_VORBISFILE_CFLAGS=`$PKG_CONFIG --cflags "vorbisfile" 2>/dev/null`
  5654. else
  5655. pkg_failed=yes
  5656. fi
  5657. else
  5658. pkg_failed=untried
  5659. fi
  5660. if test -n "$VORBISFILE_LIBS"; then
  5661. pkg_cv_VORBISFILE_LIBS="$VORBISFILE_LIBS"
  5662. elif test -n "$PKG_CONFIG"; then
  5663. if test -n "$PKG_CONFIG" && \
  5664. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisfile\"") >&5
  5665. ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5
  5666. ac_status=$?
  5667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5668. (exit $ac_status); }; then
  5669. pkg_cv_VORBISFILE_LIBS=`$PKG_CONFIG --libs "vorbisfile" 2>/dev/null`
  5670. else
  5671. pkg_failed=yes
  5672. fi
  5673. else
  5674. pkg_failed=untried
  5675. fi
  5676.  
  5677.  
  5678.  
  5679. if test $pkg_failed = yes; then
  5680.  
  5681. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5682. _pkg_short_errors_supported=yes
  5683. else
  5684. _pkg_short_errors_supported=no
  5685. fi
  5686. if test $_pkg_short_errors_supported = yes; then
  5687. VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "vorbisfile" 2>&1`
  5688. else
  5689. VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "vorbisfile" 2>&1`
  5690. fi
  5691. # Put the nasty error message in config.log where it belongs
  5692. echo "$VORBISFILE_PKG_ERRORS" >&5
  5693.  
  5694. { $as_echo "$as_me:$LINENO: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696.  
  5697. { { $as_echo "$as_me:$LINENO: error: vorbisfile not found" >&5
  5698. $as_echo "$as_me: error: vorbisfile not found" >&2;}
  5699. { (exit 1); exit 1; }; }
  5700.  
  5701. elif test $pkg_failed = untried; then
  5702.  
  5703. { { $as_echo "$as_me:$LINENO: error: vorbisfile not found" >&5
  5704. $as_echo "$as_me: error: vorbisfile not found" >&2;}
  5705. { (exit 1); exit 1; }; }
  5706.  
  5707. else
  5708. VORBISFILE_CFLAGS=$pkg_cv_VORBISFILE_CFLAGS
  5709. VORBISFILE_LIBS=$pkg_cv_VORBISFILE_LIBS
  5710. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5711. $as_echo "yes" >&6; }
  5712. :
  5713. fi
  5714.  
  5715. # libpng
  5716.  
  5717. pkg_failed=no
  5718. { $as_echo "$as_me:$LINENO: checking for PNG" >&5
  5719. $as_echo_n "checking for PNG... " >&6; }
  5720.  
  5721. if test -n "$PNG_CFLAGS"; then
  5722. pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
  5723. elif test -n "$PKG_CONFIG"; then
  5724. if test -n "$PKG_CONFIG" && \
  5725. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  5726. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  5727. ac_status=$?
  5728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5729. (exit $ac_status); }; then
  5730. pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
  5731. else
  5732. pkg_failed=yes
  5733. fi
  5734. else
  5735. pkg_failed=untried
  5736. fi
  5737. if test -n "$PNG_LIBS"; then
  5738. pkg_cv_PNG_LIBS="$PNG_LIBS"
  5739. elif test -n "$PKG_CONFIG"; then
  5740. if test -n "$PKG_CONFIG" && \
  5741. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  5742. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  5743. ac_status=$?
  5744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); }; then
  5746. pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
  5747. else
  5748. pkg_failed=yes
  5749. fi
  5750. else
  5751. pkg_failed=untried
  5752. fi
  5753.  
  5754.  
  5755.  
  5756. if test $pkg_failed = yes; then
  5757.  
  5758. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5759. _pkg_short_errors_supported=yes
  5760. else
  5761. _pkg_short_errors_supported=no
  5762. fi
  5763. if test $_pkg_short_errors_supported = yes; then
  5764. PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
  5765. else
  5766. PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
  5767. fi
  5768. # Put the nasty error message in config.log where it belongs
  5769. echo "$PNG_PKG_ERRORS" >&5
  5770.  
  5771. { $as_echo "$as_me:$LINENO: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773.  
  5774. { { $as_echo "$as_me:$LINENO: error: libpng not found" >&5
  5775. $as_echo "$as_me: error: libpng not found" >&2;}
  5776. { (exit 1); exit 1; }; }
  5777.  
  5778. elif test $pkg_failed = untried; then
  5779.  
  5780. { { $as_echo "$as_me:$LINENO: error: libpng not found" >&5
  5781. $as_echo "$as_me: error: libpng not found" >&2;}
  5782. { (exit 1); exit 1; }; }
  5783.  
  5784. else
  5785. PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
  5786. PNG_LIBS=$pkg_cv_PNG_LIBS
  5787. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5788. $as_echo "yes" >&6; }
  5789. :
  5790. fi
  5791.  
  5792. # OpenAL
  5793. if test "$with_openal" = "yes"; then
  5794.  
  5795.  
  5796. OPENAL_CFLAGS=
  5797. OPENAL_LIBS=
  5798.  
  5799. # First check for headers
  5800. for header in "AL/al.h" "OpenAL/al.h"; do
  5801. as_ac_Header=`$as_echo "ac_cv_header_$header" | $as_tr_sh`
  5802. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5803. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  5804. $as_echo_n "checking for $header... " >&6; }
  5805. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5806. $as_echo_n "(cached) " >&6
  5807. fi
  5808. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5809. $as_echo "$as_val"'`
  5810. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5811. $as_echo "$ac_res" >&6; }
  5812. else
  5813. # Is the header compilable?
  5814. { $as_echo "$as_me:$LINENO: checking $header usability" >&5
  5815. $as_echo_n "checking $header usability... " >&6; }
  5816. cat >conftest.$ac_ext <<_ACEOF
  5817. /* confdefs.h. */
  5818. _ACEOF
  5819. cat confdefs.h >>conftest.$ac_ext
  5820. cat >>conftest.$ac_ext <<_ACEOF
  5821. /* end confdefs.h. */
  5822. $ac_includes_default
  5823. #include <$header>
  5824. _ACEOF
  5825. rm -f conftest.$ac_objext
  5826. if { (ac_try="$ac_compile"
  5827. case "(($ac_try" in
  5828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5829. *) ac_try_echo=$ac_try;;
  5830. esac
  5831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5832. $as_echo "$ac_try_echo") >&5
  5833. (eval "$ac_compile") 2>conftest.er1
  5834. ac_status=$?
  5835. grep -v '^ *+' conftest.er1 >conftest.err
  5836. rm -f conftest.er1
  5837. cat conftest.err >&5
  5838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); } && {
  5840. test -z "$ac_c_werror_flag" ||
  5841. test ! -s conftest.err
  5842. } && test -s conftest.$ac_objext; then
  5843. ac_header_compiler=yes
  5844. else
  5845. $as_echo "$as_me: failed program was:" >&5
  5846. sed 's/^/| /' conftest.$ac_ext >&5
  5847.  
  5848. ac_header_compiler=no
  5849. fi
  5850.  
  5851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5852. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5853. $as_echo "$ac_header_compiler" >&6; }
  5854.  
  5855. # Is the header present?
  5856. { $as_echo "$as_me:$LINENO: checking $header presence" >&5
  5857. $as_echo_n "checking $header presence... " >&6; }
  5858. cat >conftest.$ac_ext <<_ACEOF
  5859. /* confdefs.h. */
  5860. _ACEOF
  5861. cat confdefs.h >>conftest.$ac_ext
  5862. cat >>conftest.$ac_ext <<_ACEOF
  5863. /* end confdefs.h. */
  5864. #include <$header>
  5865. _ACEOF
  5866. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5867. case "(($ac_try" in
  5868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5869. *) ac_try_echo=$ac_try;;
  5870. esac
  5871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5872. $as_echo "$ac_try_echo") >&5
  5873. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5874. ac_status=$?
  5875. grep -v '^ *+' conftest.er1 >conftest.err
  5876. rm -f conftest.er1
  5877. cat conftest.err >&5
  5878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); } >/dev/null && {
  5880. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5881. test ! -s conftest.err
  5882. }; then
  5883. ac_header_preproc=yes
  5884. else
  5885. $as_echo "$as_me: failed program was:" >&5
  5886. sed 's/^/| /' conftest.$ac_ext >&5
  5887.  
  5888. ac_header_preproc=no
  5889. fi
  5890.  
  5891. rm -f conftest.err conftest.$ac_ext
  5892. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5893. $as_echo "$ac_header_preproc" >&6; }
  5894.  
  5895. # So? What about this header?
  5896. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5897. yes:no: )
  5898. { $as_echo "$as_me:$LINENO: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&5
  5899. $as_echo "$as_me: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5900. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the compiler's result" >&5
  5901. $as_echo "$as_me: WARNING: $header: proceeding with the compiler's result" >&2;}
  5902. ac_header_preproc=yes
  5903. ;;
  5904. no:yes:* )
  5905. { $as_echo "$as_me:$LINENO: WARNING: $header: present but cannot be compiled" >&5
  5906. $as_echo "$as_me: WARNING: $header: present but cannot be compiled" >&2;}
  5907. { $as_echo "$as_me:$LINENO: WARNING: $header: check for missing prerequisite headers?" >&5
  5908. $as_echo "$as_me: WARNING: $header: check for missing prerequisite headers?" >&2;}
  5909. { $as_echo "$as_me:$LINENO: WARNING: $header: see the Autoconf documentation" >&5
  5910. $as_echo "$as_me: WARNING: $header: see the Autoconf documentation" >&2;}
  5911. { $as_echo "$as_me:$LINENO: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&5
  5912. $as_echo "$as_me: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&2;}
  5913. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the preprocessor's result" >&5
  5914. $as_echo "$as_me: WARNING: $header: proceeding with the preprocessor's result" >&2;}
  5915. { $as_echo "$as_me:$LINENO: WARNING: $header: in the future, the compiler will take precedence" >&5
  5916. $as_echo "$as_me: WARNING: $header: in the future, the compiler will take precedence" >&2;}
  5917. ( cat <<\_ASBOX
  5918. ## -------------------------------- ##
  5919. ## Report this to bobbens@gmail.com ##
  5920. ## -------------------------------- ##
  5921. _ASBOX
  5922. ) | sed "s/^/$as_me: WARNING: /" >&2
  5923. ;;
  5924. esac
  5925. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  5926. $as_echo_n "checking for $header... " >&6; }
  5927. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. eval "$as_ac_Header=\$ac_header_preproc"
  5931. fi
  5932. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5933. $as_echo "$as_val"'`
  5934. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5935. $as_echo "$ac_res" >&6; }
  5936.  
  5937. fi
  5938. as_val=`eval 'as_val=${'$as_ac_Header'}
  5939. $as_echo "$as_val"'`
  5940. if test "x$as_val" = x""yes; then
  5941.  
  5942. ac_cv_openal_al_h="$header"
  5943. break
  5944.  
  5945. fi
  5946.  
  5947.  
  5948. done
  5949. if test -n "$ac_cv_openal_al_h"; then
  5950.  
  5951. ac_cv_openal_alc_h=$(echo "$ac_cv_openal_al_h" | sed 's/al\.h$/alc.h/')
  5952.  
  5953. cat >>confdefs.h <<_ACEOF
  5954. #define OPENAL_AL_H <$ac_cv_openal_al_h>
  5955. _ACEOF
  5956.  
  5957.  
  5958. cat >>confdefs.h <<_ACEOF
  5959. #define OPENAL_ALC_H <$ac_cv_openal_alc_h>
  5960. _ACEOF
  5961.  
  5962.  
  5963. fi
  5964.  
  5965.  
  5966. # Then check for libs
  5967. ac_cv_openal_al_libs=
  5968. if test -n "$ac_cv_openal_al_h" && test -n "$ac_cv_openal_alc_h"; then
  5969.  
  5970. OLD_LIBS="$LIBS"
  5971. for lib in "-framework OpenAL" "-lopenal" "-lopenal32"; do
  5972. LIBS="$OLD_LIBS $lib"
  5973. { $as_echo "$as_me:$LINENO: checking for alGenSources in $lib" >&5
  5974. $as_echo_n "checking for alGenSources in $lib... " >&6; }
  5975. cat >conftest.$ac_ext <<_ACEOF
  5976. /* confdefs.h. */
  5977. _ACEOF
  5978. cat confdefs.h >>conftest.$ac_ext
  5979. cat >>conftest.$ac_ext <<_ACEOF
  5980. /* end confdefs.h. */
  5981. #include OPENAL_AL_H
  5982. int
  5983. main ()
  5984. {
  5985. alGenSources (1, 0);
  5986. ;
  5987. return 0;
  5988. }
  5989. _ACEOF
  5990. rm -f conftest.$ac_objext conftest$ac_exeext
  5991. if { (ac_try="$ac_link"
  5992. case "(($ac_try" in
  5993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5994. *) ac_try_echo=$ac_try;;
  5995. esac
  5996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5997. $as_echo "$ac_try_echo") >&5
  5998. (eval "$ac_link") 2>conftest.er1
  5999. ac_status=$?
  6000. grep -v '^ *+' conftest.er1 >conftest.err
  6001. rm -f conftest.er1
  6002. cat conftest.err >&5
  6003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6004. (exit $ac_status); } && {
  6005. test -z "$ac_c_werror_flag" ||
  6006. test ! -s conftest.err
  6007. } && test -s conftest$ac_exeext && {
  6008. test "$cross_compiling" = yes ||
  6009. $as_test_x conftest$ac_exeext
  6010. }; then
  6011.  
  6012. ac_cv_openal_al_libs="$lib"
  6013. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6014. $as_echo "yes" >&6; }
  6015. break
  6016.  
  6017. else
  6018. $as_echo "$as_me: failed program was:" >&5
  6019. sed 's/^/| /' conftest.$ac_ext >&5
  6020.  
  6021.  
  6022. { $as_echo "$as_me:$LINENO: result: no" >&5
  6023. $as_echo "no" >&6; }
  6024.  
  6025. fi
  6026.  
  6027. rm -rf conftest.dSYM
  6028. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6029. conftest$ac_exeext conftest.$ac_ext
  6030. done
  6031.  
  6032. LIBS="$OLD_LIBS"
  6033. OPENAL_LIBS="$ac_cv_openal_al_libs"
  6034.  
  6035. fi
  6036.  
  6037.  
  6038.  
  6039.  
  6040.  
  6041. if test -z "$OPENAL_CFLAGS" && test -z "$OPENAL_LIBS"; then
  6042. have_openal=no
  6043. else
  6044. have_openal=yes
  6045. fi
  6046.  
  6047.  
  6048.  
  6049. fi
  6050.  
  6051.  
  6052. # SDL_mixer
  6053. if test "$with_sdlmixer" = "yes"; then
  6054.  
  6055.  
  6056. OLD_LIBS="$LIBS"
  6057. LIBS=
  6058.  
  6059. { $as_echo "$as_me:$LINENO: checking for library containing Mix_OpenAudio" >&5
  6060. $as_echo_n "checking for library containing Mix_OpenAudio... " >&6; }
  6061. if test "${ac_cv_search_Mix_OpenAudio+set}" = set; then
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. ac_func_search_save_LIBS=$LIBS
  6065. cat >conftest.$ac_ext <<_ACEOF
  6066. /* confdefs.h. */
  6067. _ACEOF
  6068. cat confdefs.h >>conftest.$ac_ext
  6069. cat >>conftest.$ac_ext <<_ACEOF
  6070. /* end confdefs.h. */
  6071.  
  6072. /* Override any GCC internal prototype to avoid an error.
  6073. Use char because int might match the return type of a GCC
  6074. builtin and then its argument prototype would still apply. */
  6075. #ifdef __cplusplus
  6076. extern "C"
  6077. #endif
  6078. char Mix_OpenAudio ();
  6079. int
  6080. main ()
  6081. {
  6082. return Mix_OpenAudio ();
  6083. ;
  6084. return 0;
  6085. }
  6086. _ACEOF
  6087. for ac_lib in '' SDL_mixer; do
  6088. if test -z "$ac_lib"; then
  6089. ac_res="none required"
  6090. else
  6091. ac_res=-l$ac_lib
  6092. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6093. fi
  6094. rm -f conftest.$ac_objext conftest$ac_exeext
  6095. if { (ac_try="$ac_link"
  6096. case "(($ac_try" in
  6097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6098. *) ac_try_echo=$ac_try;;
  6099. esac
  6100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6101. $as_echo "$ac_try_echo") >&5
  6102. (eval "$ac_link") 2>conftest.er1
  6103. ac_status=$?
  6104. grep -v '^ *+' conftest.er1 >conftest.err
  6105. rm -f conftest.er1
  6106. cat conftest.err >&5
  6107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6108. (exit $ac_status); } && {
  6109. test -z "$ac_c_werror_flag" ||
  6110. test ! -s conftest.err
  6111. } && test -s conftest$ac_exeext && {
  6112. test "$cross_compiling" = yes ||
  6113. $as_test_x conftest$ac_exeext
  6114. }; then
  6115. ac_cv_search_Mix_OpenAudio=$ac_res
  6116. else
  6117. $as_echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119.  
  6120.  
  6121. fi
  6122.  
  6123. rm -rf conftest.dSYM
  6124. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6125. conftest$ac_exeext
  6126. if test "${ac_cv_search_Mix_OpenAudio+set}" = set; then
  6127. break
  6128. fi
  6129. done
  6130. if test "${ac_cv_search_Mix_OpenAudio+set}" = set; then
  6131. :
  6132. else
  6133. ac_cv_search_Mix_OpenAudio=no
  6134. fi
  6135. rm conftest.$ac_ext
  6136. LIBS=$ac_func_search_save_LIBS
  6137. fi
  6138. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_Mix_OpenAudio" >&5
  6139. $as_echo "$ac_cv_search_Mix_OpenAudio" >&6; }
  6140. ac_res=$ac_cv_search_Mix_OpenAudio
  6141. if test "$ac_res" != no; then
  6142. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6143. have_sdlmixer=yes
  6144. else
  6145. have_sdlmixer=no
  6146. fi
  6147.  
  6148. if test "$have_sdlmixer" = "yes"; then
  6149.  
  6150. SDLMIXER_CFLAGS=
  6151. SDLMIXER_LIBS="$LIBS"
  6152.  
  6153. else
  6154.  
  6155. SDLMIXER_CFLAGS=
  6156. SDLMIXER_LIBS=
  6157.  
  6158. fi
  6159.  
  6160.  
  6161. LIBS="$OLD_LIBS"
  6162.  
  6163.  
  6164. else
  6165.  
  6166. have_sdlmixer=no
  6167.  
  6168. fi
  6169.  
  6170.  
  6171. # SDL_image
  6172.  
  6173. OLD_LIBS="$LIBS"
  6174. LIBS=
  6175.  
  6176. { $as_echo "$as_me:$LINENO: checking for library containing IMG_Load" >&5
  6177. $as_echo_n "checking for library containing IMG_Load... " >&6; }
  6178. if test "${ac_cv_search_IMG_Load+set}" = set; then
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. ac_func_search_save_LIBS=$LIBS
  6182. cat >conftest.$ac_ext <<_ACEOF
  6183. /* confdefs.h. */
  6184. _ACEOF
  6185. cat confdefs.h >>conftest.$ac_ext
  6186. cat >>conftest.$ac_ext <<_ACEOF
  6187. /* end confdefs.h. */
  6188.  
  6189. /* Override any GCC internal prototype to avoid an error.
  6190. Use char because int might match the return type of a GCC
  6191. builtin and then its argument prototype would still apply. */
  6192. #ifdef __cplusplus
  6193. extern "C"
  6194. #endif
  6195. char IMG_Load ();
  6196. int
  6197. main ()
  6198. {
  6199. return IMG_Load ();
  6200. ;
  6201. return 0;
  6202. }
  6203. _ACEOF
  6204. for ac_lib in '' SDL_image; do
  6205. if test -z "$ac_lib"; then
  6206. ac_res="none required"
  6207. else
  6208. ac_res=-l$ac_lib
  6209. LIBS="-l$ac_lib
  6210. SDLIMAGE_CFLAGS=
  6211. SDLIMAGE_LIBS=
  6212. have_sdlimage=no
  6213. $ac_func_search_save_LIBS"
  6214. fi
  6215. rm -f conftest.$ac_objext conftest$ac_exeext
  6216. if { (ac_try="$ac_link"
  6217. case "(($ac_try" in
  6218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6219. *) ac_try_echo=$ac_try;;
  6220. esac
  6221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6222. $as_echo "$ac_try_echo") >&5
  6223. (eval "$ac_link") 2>conftest.er1
  6224. ac_status=$?
  6225. grep -v '^ *+' conftest.er1 >conftest.err
  6226. rm -f conftest.er1
  6227. cat conftest.err >&5
  6228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6229. (exit $ac_status); } && {
  6230. test -z "$ac_c_werror_flag" ||
  6231. test ! -s conftest.err
  6232. } && test -s conftest$ac_exeext && {
  6233. test "$cross_compiling" = yes ||
  6234. $as_test_x conftest$ac_exeext
  6235. }; then
  6236. ac_cv_search_IMG_Load=$ac_res
  6237. else
  6238. $as_echo "$as_me: failed program was:" >&5
  6239. sed 's/^/| /' conftest.$ac_ext >&5
  6240.  
  6241.  
  6242. fi
  6243.  
  6244. rm -rf conftest.dSYM
  6245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6246. conftest$ac_exeext
  6247. if test "${ac_cv_search_IMG_Load+set}" = set; then
  6248. break
  6249. fi
  6250. done
  6251. if test "${ac_cv_search_IMG_Load+set}" = set; then
  6252. :
  6253. else
  6254. ac_cv_search_IMG_Load=no
  6255. fi
  6256. rm conftest.$ac_ext
  6257. LIBS=$ac_func_search_save_LIBS
  6258. fi
  6259. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_IMG_Load" >&5
  6260. $as_echo "$ac_cv_search_IMG_Load" >&6; }
  6261. ac_res=$ac_cv_search_IMG_Load
  6262. if test "$ac_res" != no; then
  6263. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6264.  
  6265. SDLIMAGE_CFLAGS=
  6266. SDLIMAGE_LIBS="$LIBS"
  6267. have_sdlimage=yes
  6268.  
  6269. else
  6270.  
  6271.  
  6272. fi
  6273.  
  6274.  
  6275. LIBS="$OLD_LIBS"
  6276.  
  6277.  
  6278. # OpenGL
  6279.  
  6280. OPENGL_CFLAGS=
  6281. OPENGL_LIBS=
  6282.  
  6283. # First check for headers
  6284. for header in "GL/gl.h" "OpenGL/gl.h"; do
  6285. as_ac_Header=`$as_echo "ac_cv_header_$header" | $as_tr_sh`
  6286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6287. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  6288. $as_echo_n "checking for $header... " >&6; }
  6289. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6290. $as_echo_n "(cached) " >&6
  6291. fi
  6292. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6293. $as_echo "$as_val"'`
  6294. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6295. $as_echo "$ac_res" >&6; }
  6296. else
  6297. # Is the header compilable?
  6298. { $as_echo "$as_me:$LINENO: checking $header usability" >&5
  6299. $as_echo_n "checking $header usability... " >&6; }
  6300. cat >conftest.$ac_ext <<_ACEOF
  6301. /* confdefs.h. */
  6302. _ACEOF
  6303. cat confdefs.h >>conftest.$ac_ext
  6304. cat >>conftest.$ac_ext <<_ACEOF
  6305. /* end confdefs.h. */
  6306. $ac_includes_default
  6307. #include <$header>
  6308. _ACEOF
  6309. rm -f conftest.$ac_objext
  6310. if { (ac_try="$ac_compile"
  6311. case "(($ac_try" in
  6312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6313. *) ac_try_echo=$ac_try;;
  6314. esac
  6315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6316. $as_echo "$ac_try_echo") >&5
  6317. (eval "$ac_compile") 2>conftest.er1
  6318. ac_status=$?
  6319. grep -v '^ *+' conftest.er1 >conftest.err
  6320. rm -f conftest.er1
  6321. cat conftest.err >&5
  6322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6323. (exit $ac_status); } && {
  6324. test -z "$ac_c_werror_flag" ||
  6325. test ! -s conftest.err
  6326. } && test -s conftest.$ac_objext; then
  6327. ac_header_compiler=yes
  6328. else
  6329. $as_echo "$as_me: failed program was:" >&5
  6330. sed 's/^/| /' conftest.$ac_ext >&5
  6331.  
  6332. ac_header_compiler=no
  6333. fi
  6334.  
  6335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6336. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6337. $as_echo "$ac_header_compiler" >&6; }
  6338.  
  6339. # Is the header present?
  6340. { $as_echo "$as_me:$LINENO: checking $header presence" >&5
  6341. $as_echo_n "checking $header presence... " >&6; }
  6342. cat >conftest.$ac_ext <<_ACEOF
  6343. /* confdefs.h. */
  6344. _ACEOF
  6345. cat confdefs.h >>conftest.$ac_ext
  6346. cat >>conftest.$ac_ext <<_ACEOF
  6347. /* end confdefs.h. */
  6348. #include <$header>
  6349. _ACEOF
  6350. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6351. case "(($ac_try" in
  6352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6353. *) ac_try_echo=$ac_try;;
  6354. esac
  6355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6356. $as_echo "$ac_try_echo") >&5
  6357. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6358. ac_status=$?
  6359. grep -v '^ *+' conftest.er1 >conftest.err
  6360. rm -f conftest.er1
  6361. cat conftest.err >&5
  6362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); } >/dev/null && {
  6364. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6365. test ! -s conftest.err
  6366. }; then
  6367. ac_header_preproc=yes
  6368. else
  6369. $as_echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371.  
  6372. ac_header_preproc=no
  6373. fi
  6374.  
  6375. rm -f conftest.err conftest.$ac_ext
  6376. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6377. $as_echo "$ac_header_preproc" >&6; }
  6378.  
  6379. # So? What about this header?
  6380. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6381. yes:no: )
  6382. { $as_echo "$as_me:$LINENO: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&5
  6383. $as_echo "$as_me: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6384. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the compiler's result" >&5
  6385. $as_echo "$as_me: WARNING: $header: proceeding with the compiler's result" >&2;}
  6386. ac_header_preproc=yes
  6387. ;;
  6388. no:yes:* )
  6389. { $as_echo "$as_me:$LINENO: WARNING: $header: present but cannot be compiled" >&5
  6390. $as_echo "$as_me: WARNING: $header: present but cannot be compiled" >&2;}
  6391. { $as_echo "$as_me:$LINENO: WARNING: $header: check for missing prerequisite headers?" >&5
  6392. $as_echo "$as_me: WARNING: $header: check for missing prerequisite headers?" >&2;}
  6393. { $as_echo "$as_me:$LINENO: WARNING: $header: see the Autoconf documentation" >&5
  6394. $as_echo "$as_me: WARNING: $header: see the Autoconf documentation" >&2;}
  6395. { $as_echo "$as_me:$LINENO: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&5
  6396. $as_echo "$as_me: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&2;}
  6397. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the preprocessor's result" >&5
  6398. $as_echo "$as_me: WARNING: $header: proceeding with the preprocessor's result" >&2;}
  6399. { $as_echo "$as_me:$LINENO: WARNING: $header: in the future, the compiler will take precedence" >&5
  6400. $as_echo "$as_me: WARNING: $header: in the future, the compiler will take precedence" >&2;}
  6401. ( cat <<\_ASBOX
  6402. ## -------------------------------- ##
  6403. ## Report this to bobbens@gmail.com ##
  6404. ## -------------------------------- ##
  6405. _ASBOX
  6406. ) | sed "s/^/$as_me: WARNING: /" >&2
  6407. ;;
  6408. esac
  6409. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  6410. $as_echo_n "checking for $header... " >&6; }
  6411. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. eval "$as_ac_Header=\$ac_header_preproc"
  6415. fi
  6416. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6417. $as_echo "$as_val"'`
  6418. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6419. $as_echo "$ac_res" >&6; }
  6420.  
  6421. fi
  6422. as_val=`eval 'as_val=${'$as_ac_Header'}
  6423. $as_echo "$as_val"'`
  6424. if test "x$as_val" = x""yes; then
  6425.  
  6426. ac_cv_opengl_gl_h="$header"
  6427. break
  6428.  
  6429. fi
  6430.  
  6431.  
  6432. done
  6433. for header in "GL/glu.h" "OpenGL/glu.h"; do
  6434. as_ac_Header=`$as_echo "ac_cv_header_$header" | $as_tr_sh`
  6435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6436. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  6437. $as_echo_n "checking for $header... " >&6; }
  6438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6439. $as_echo_n "(cached) " >&6
  6440. fi
  6441. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6442. $as_echo "$as_val"'`
  6443. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6444. $as_echo "$ac_res" >&6; }
  6445. else
  6446. # Is the header compilable?
  6447. { $as_echo "$as_me:$LINENO: checking $header usability" >&5
  6448. $as_echo_n "checking $header usability... " >&6; }
  6449. cat >conftest.$ac_ext <<_ACEOF
  6450. /* confdefs.h. */
  6451. _ACEOF
  6452. cat confdefs.h >>conftest.$ac_ext
  6453. cat >>conftest.$ac_ext <<_ACEOF
  6454. /* end confdefs.h. */
  6455. $ac_includes_default
  6456. #include <$header>
  6457. _ACEOF
  6458. rm -f conftest.$ac_objext
  6459. if { (ac_try="$ac_compile"
  6460. case "(($ac_try" in
  6461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6462. *) ac_try_echo=$ac_try;;
  6463. esac
  6464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6465. $as_echo "$ac_try_echo") >&5
  6466. (eval "$ac_compile") 2>conftest.er1
  6467. ac_status=$?
  6468. grep -v '^ *+' conftest.er1 >conftest.err
  6469. rm -f conftest.er1
  6470. cat conftest.err >&5
  6471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6472. (exit $ac_status); } && {
  6473. test -z "$ac_c_werror_flag" ||
  6474. test ! -s conftest.err
  6475. } && test -s conftest.$ac_objext; then
  6476. ac_header_compiler=yes
  6477. else
  6478. $as_echo "$as_me: failed program was:" >&5
  6479. sed 's/^/| /' conftest.$ac_ext >&5
  6480.  
  6481. ac_header_compiler=no
  6482. fi
  6483.  
  6484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6485. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6486. $as_echo "$ac_header_compiler" >&6; }
  6487.  
  6488. # Is the header present?
  6489. { $as_echo "$as_me:$LINENO: checking $header presence" >&5
  6490. $as_echo_n "checking $header presence... " >&6; }
  6491. cat >conftest.$ac_ext <<_ACEOF
  6492. /* confdefs.h. */
  6493. _ACEOF
  6494. cat confdefs.h >>conftest.$ac_ext
  6495. cat >>conftest.$ac_ext <<_ACEOF
  6496. /* end confdefs.h. */
  6497. #include <$header>
  6498. _ACEOF
  6499. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6500. case "(($ac_try" in
  6501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6502. *) ac_try_echo=$ac_try;;
  6503. esac
  6504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6505. $as_echo "$ac_try_echo") >&5
  6506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6507. ac_status=$?
  6508. grep -v '^ *+' conftest.er1 >conftest.err
  6509. rm -f conftest.er1
  6510. cat conftest.err >&5
  6511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6512. (exit $ac_status); } >/dev/null && {
  6513. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6514. test ! -s conftest.err
  6515. }; then
  6516. ac_header_preproc=yes
  6517. else
  6518. $as_echo "$as_me: failed program was:" >&5
  6519. sed 's/^/| /' conftest.$ac_ext >&5
  6520.  
  6521. ac_header_preproc=no
  6522. fi
  6523.  
  6524. rm -f conftest.err conftest.$ac_ext
  6525. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6526. $as_echo "$ac_header_preproc" >&6; }
  6527.  
  6528. # So? What about this header?
  6529. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6530. yes:no: )
  6531. { $as_echo "$as_me:$LINENO: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&5
  6532. $as_echo "$as_me: WARNING: $header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6533. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the compiler's result" >&5
  6534. $as_echo "$as_me: WARNING: $header: proceeding with the compiler's result" >&2;}
  6535. ac_header_preproc=yes
  6536. ;;
  6537. no:yes:* )
  6538. { $as_echo "$as_me:$LINENO: WARNING: $header: present but cannot be compiled" >&5
  6539. $as_echo "$as_me: WARNING: $header: present but cannot be compiled" >&2;}
  6540. { $as_echo "$as_me:$LINENO: WARNING: $header: check for missing prerequisite headers?" >&5
  6541. $as_echo "$as_me: WARNING: $header: check for missing prerequisite headers?" >&2;}
  6542. { $as_echo "$as_me:$LINENO: WARNING: $header: see the Autoconf documentation" >&5
  6543. $as_echo "$as_me: WARNING: $header: see the Autoconf documentation" >&2;}
  6544. { $as_echo "$as_me:$LINENO: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&5
  6545. $as_echo "$as_me: WARNING: $header: section \"Present But Cannot Be Compiled\"" >&2;}
  6546. { $as_echo "$as_me:$LINENO: WARNING: $header: proceeding with the preprocessor's result" >&5
  6547. $as_echo "$as_me: WARNING: $header: proceeding with the preprocessor's result" >&2;}
  6548. { $as_echo "$as_me:$LINENO: WARNING: $header: in the future, the compiler will take precedence" >&5
  6549. $as_echo "$as_me: WARNING: $header: in the future, the compiler will take precedence" >&2;}
  6550. ( cat <<\_ASBOX
  6551. ## -------------------------------- ##
  6552. ## Report this to bobbens@gmail.com ##
  6553. ## -------------------------------- ##
  6554. _ASBOX
  6555. ) | sed "s/^/$as_me: WARNING: /" >&2
  6556. ;;
  6557. esac
  6558. { $as_echo "$as_me:$LINENO: checking for $header" >&5
  6559. $as_echo_n "checking for $header... " >&6; }
  6560. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. eval "$as_ac_Header=\$ac_header_preproc"
  6564. fi
  6565. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6566. $as_echo "$as_val"'`
  6567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6568. $as_echo "$ac_res" >&6; }
  6569.  
  6570. fi
  6571. as_val=`eval 'as_val=${'$as_ac_Header'}
  6572. $as_echo "$as_val"'`
  6573. if test "x$as_val" = x""yes; then
  6574.  
  6575. ac_cv_opengl_glu_h="$header"
  6576. break
  6577.  
  6578. fi
  6579.  
  6580.  
  6581. done
  6582. if test -n "$ac_cv_opengl_gl_h"; then
  6583.  
  6584.  
  6585. cat >>confdefs.h <<_ACEOF
  6586. #define OPENGL_GL_H <$ac_cv_opengl_gl_h>
  6587. _ACEOF
  6588.  
  6589.  
  6590. fi
  6591.  
  6592. if test -n "$ac_cv_opengl_glu_h"; then
  6593.  
  6594.  
  6595. cat >>confdefs.h <<_ACEOF
  6596. #define OPENGL_GLU_H <$ac_cv_opengl_glu_h>
  6597. _ACEOF
  6598.  
  6599.  
  6600. fi
  6601.  
  6602.  
  6603. # Then check for libs
  6604. ac_cv_opengl_gl_libs=
  6605. ac_cv_opengl_glu_libs=
  6606. if test -n "$ac_cv_opengl_gl_h" && test -n "$ac_cv_opengl_glu_h"; then
  6607.  
  6608. OLD_LIBS="$LIBS"
  6609. for lib in "-framework OpenGL" "-lGL" "-lopengl32"; do
  6610. LIBS="$OLD_LIBS $lib"
  6611. { $as_echo "$as_me:$LINENO: checking for glGenTextures in $lib" >&5
  6612. $as_echo_n "checking for glGenTextures in $lib... " >&6; }
  6613. cat >conftest.$ac_ext <<_ACEOF
  6614. /* confdefs.h. */
  6615. _ACEOF
  6616. cat confdefs.h >>conftest.$ac_ext
  6617. cat >>conftest.$ac_ext <<_ACEOF
  6618. /* end confdefs.h. */
  6619. #include OPENGL_GL_H
  6620. int
  6621. main ()
  6622. {
  6623. glGenTextures (1, 0);
  6624. ;
  6625. return 0;
  6626. }
  6627. _ACEOF
  6628. rm -f conftest.$ac_objext conftest$ac_exeext
  6629. if { (ac_try="$ac_link"
  6630. case "(($ac_try" in
  6631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6632. *) ac_try_echo=$ac_try;;
  6633. esac
  6634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6635. $as_echo "$ac_try_echo") >&5
  6636. (eval "$ac_link") 2>conftest.er1
  6637. ac_status=$?
  6638. grep -v '^ *+' conftest.er1 >conftest.err
  6639. rm -f conftest.er1
  6640. cat conftest.err >&5
  6641. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6642. (exit $ac_status); } && {
  6643. test -z "$ac_c_werror_flag" ||
  6644. test ! -s conftest.err
  6645. } && test -s conftest$ac_exeext && {
  6646. test "$cross_compiling" = yes ||
  6647. $as_test_x conftest$ac_exeext
  6648. }; then
  6649.  
  6650. ac_cv_opengl_gl_libs="$lib"
  6651. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6652. $as_echo "yes" >&6; }
  6653. break
  6654.  
  6655. else
  6656. $as_echo "$as_me: failed program was:" >&5
  6657. sed 's/^/| /' conftest.$ac_ext >&5
  6658.  
  6659.  
  6660. { $as_echo "$as_me:$LINENO: result: no" >&5
  6661. $as_echo "no" >&6; }
  6662.  
  6663. fi
  6664.  
  6665. rm -rf conftest.dSYM
  6666. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6667. conftest$ac_exeext conftest.$ac_ext
  6668. done
  6669. for lib in "-framework OpenGL" "-lGLU" "-lglu32"; do
  6670. LIBS="$OLD_LIBS $lib"
  6671. { $as_echo "$as_me:$LINENO: checking for glOrtho2D in $lib" >&5
  6672. $as_echo_n "checking for glOrtho2D in $lib... " >&6; }
  6673. cat >conftest.$ac_ext <<_ACEOF
  6674. /* confdefs.h. */
  6675. _ACEOF
  6676. cat confdefs.h >>conftest.$ac_ext
  6677. cat >>conftest.$ac_ext <<_ACEOF
  6678. /* end confdefs.h. */
  6679. #include OPENGL_GLU_H
  6680. int
  6681. main ()
  6682. {
  6683. gluOrtho2D (.0, .0, .0, .0);
  6684. ;
  6685. return 0;
  6686. }
  6687. _ACEOF
  6688. rm -f conftest.$ac_objext conftest$ac_exeext
  6689. if { (ac_try="$ac_link"
  6690. case "(($ac_try" in
  6691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6692. *) ac_try_echo=$ac_try;;
  6693. esac
  6694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6695. $as_echo "$ac_try_echo") >&5
  6696. (eval "$ac_link") 2>conftest.er1
  6697. ac_status=$?
  6698. grep -v '^ *+' conftest.er1 >conftest.err
  6699. rm -f conftest.er1
  6700. cat conftest.err >&5
  6701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6702. (exit $ac_status); } && {
  6703. test -z "$ac_c_werror_flag" ||
  6704. test ! -s conftest.err
  6705. } && test -s conftest$ac_exeext && {
  6706. test "$cross_compiling" = yes ||
  6707. $as_test_x conftest$ac_exeext
  6708. }; then
  6709.  
  6710. ac_cv_opengl_glu_libs="$lib"
  6711. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6712. $as_echo "yes" >&6; }
  6713. break
  6714.  
  6715. else
  6716. $as_echo "$as_me: failed program was:" >&5
  6717. sed 's/^/| /' conftest.$ac_ext >&5
  6718.  
  6719.  
  6720. { $as_echo "$as_me:$LINENO: result: no" >&5
  6721. $as_echo "no" >&6; }
  6722.  
  6723. fi
  6724.  
  6725. rm -rf conftest.dSYM
  6726. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6727. conftest$ac_exeext conftest.$ac_ext
  6728. done
  6729.  
  6730. LIBS="$OLD_LIBS"
  6731.  
  6732. if test "$ac_cv_opengl_gl_libs" != "$ac_cv_opengl_glu_libs"; then
  6733.  
  6734. OPENGL_LIBS="$ac_cv_opengl_gl_libs $ac_cv_opengl_glu_libs"
  6735.  
  6736. else
  6737.  
  6738. OPENGL_LIBS="$ac_cv_opengl_gl_libs"
  6739.  
  6740. fi
  6741.  
  6742.  
  6743. fi
  6744.  
  6745.  
  6746.  
  6747.  
  6748.  
  6749. if test -z "$OPENGL_CFLAGS" && test -z "$OPENGL_LIBS"; then
  6750.  
  6751. { { $as_echo "$as_me:$LINENO: error: OpenGL not found" >&5
  6752. $as_echo "$as_me: error: OpenGL not found" >&2;}
  6753. { (exit 1); exit 1; }; }
  6754.  
  6755. fi
  6756.  
  6757.  
  6758.  
  6759. #
  6760. # Compiler flags
  6761. #
  6762.  
  6763. # global
  6764. GLOBAL_CFLAGS="-include \"\$(top_builddir)/src/config.h\""
  6765. GLOBAL_CFLAGS="$GLOBAL_CFLAGS -I\"\$(top_srcdir)/src\""
  6766. GLOBAL_LIBS=
  6767.  
  6768. if test "$enable_debug" != "no"; then
  6769.  
  6770. GLOBAL_CFLAGS="$GLOBAL_CFLAGS -DLUA_USE_APICHECK"
  6771.  
  6772. fi
  6773.  
  6774.  
  6775. case "$host" in
  6776. *-mingw*)
  6777. GLOBAL_LIBS="$NAEV_LIBS -lwsock32"
  6778. ;;
  6779. esac
  6780.  
  6781.  
  6782.  
  6783.  
  6784. # naev
  6785. WIDGET_LIBS="\$(top_builddir)/src/tk/widget/libwidget.a"
  6786.  
  6787. CSPARSE_CFLAGS="-I\"\$(top_srcdir)/lib/csparse\""
  6788. CSPARSE_LIBS="\$(top_builddir)/lib/csparse/libcsparse.a"
  6789.  
  6790. LUA_CFLAGS="-I\"\$(top_srcdir)/lib/lua\""
  6791. LUA_LIBS="\$(top_builddir)/lib/lua/liblua.a"
  6792.  
  6793. NAEV_CFLAGS="$GLOBAL_CFLAGS"
  6794. NAEV_LIBS="$GLOBAL_LIBS $WIDGET_LIBS"
  6795.  
  6796. if test "$enable_debug" != "no"; then
  6797.  
  6798.  
  6799. cat >>confdefs.h <<\_ACEOF
  6800. #define DEBUGGING 1
  6801. _ACEOF
  6802.  
  6803.  
  6804. cat >>confdefs.h <<\_ACEOF
  6805. #define DEBUG 1
  6806. _ACEOF
  6807.  
  6808. if test "$have_bfd" != "no"; then
  6809.  
  6810. case "$host" in
  6811. *-linux-gnu)
  6812.  
  6813. cat >>confdefs.h <<\_ACEOF
  6814. #define HAS_BFD 1
  6815. _ACEOF
  6816.  
  6817. NAEV_LIBS="$NAEV_LIBS -lbfd -rdynamic"
  6818. ;;
  6819. esac
  6820.  
  6821. fi
  6822.  
  6823.  
  6824. fi
  6825.  
  6826. if test "$enable_debug" = "paranoid"; then
  6827.  
  6828.  
  6829. cat >>confdefs.h <<\_ACEOF
  6830. #define DEBUG_PARANOID 1
  6831. _ACEOF
  6832.  
  6833.  
  6834. fi
  6835.  
  6836.  
  6837. NAEV_CFLAGS="$NAEV_CFLAGS $CSPARSE_CFLAGS $SDL_CFLAGS"
  6838. NAEV_CFLAGS="$NAEV_CFLAGS $XML_CFLAGS $FREETYPE_CFLAGS $LUA_CFLAGS"
  6839. NAEV_CFLAGS="$NAEV_CFLAGS $VORBISFILE_CFLAGS $OPENGL_CFLAGS $PNG_CFLAGS"
  6840.  
  6841. NAEV_LIBS="$NAEV_LIBS $CSPARSE_LIBS $SDL_LIBS $XML_LIBS"
  6842. NAEV_LIBS="$NAEV_LIBS $FREETYPE_LIBS $LUA_LIBS"
  6843. NAEV_LIBS="$NAEV_LIBS $VORBISFILE_LIBS $OPENGL_LIBS $PNG_LIBS"
  6844.  
  6845. if test "$have_openal" = "yes"; then
  6846.  
  6847. NAEV_CFLAGS="$NAEV_CFLAGS $OPENAL_CFLAGS"
  6848. NAEV_LIBS="$NAEV_LIBS $OPENAL_LIBS"
  6849.  
  6850. fi
  6851.  
  6852.  
  6853. if test "$have_sdlmixer" = "yes"; then
  6854.  
  6855. NAEV_CFLAGS="$NAEV_CFLAGS $SDLMIXER_CFLAGS"
  6856. NAEV_LIBS="$NAEV_LIBS $SDLMIXER_LIBS"
  6857.  
  6858. fi
  6859.  
  6860.  
  6861. case "$host" in
  6862. *-mingw*)
  6863. NAEV_LIBS="$NAEV_LIBS -mwindows"
  6864. ;;
  6865. esac
  6866.  
  6867. # This is a list of in-tree static libs that naev depends on. It is used by
  6868. # automake to detect when the binary needs recompiling after a library has been
  6869. # changed.
  6870. NAEV_DEPENDENCIES="$WIDGET_LIBS $LUA_LIBS $CSPARSE_LIBS"
  6871.  
  6872.  
  6873.  
  6874.  
  6875.  
  6876. # liblua
  6877. LIBLUA_CFLAGS="$GLOBAL_CFLAGS"
  6878.  
  6879. case "$host" in
  6880. *-mingw*)
  6881. LIBLUA_CFLAGS="$LIBLUA_CFLAGS -DLUA_ANSI"
  6882. ;;
  6883. *)
  6884. LIBLUA_CFLAGS="$LIBLUA_CFLAGS -DLUA_USE_POSIX"
  6885. ;;
  6886. esac
  6887.  
  6888.  
  6889.  
  6890.  
  6891. PACK_CFLAGS="$GLOBAL_CFLAGS -DNOLOGPRINTFCONSOLE"
  6892. PACK_LIBS="$GLOBAL_LIBS"
  6893.  
  6894.  
  6895.  
  6896. PACK_CFLAGS="$GLOBAL_CFLAGS $SDL_CFLAGS $SDLIMAGE_CFLAGS $PNG_CFLAGS -DNOLOGPRINTFCONSOLE"
  6897. PACK_LIBS="$GLOBAL_LIBS $SDL_LIBS $SDLIMAGE_LIBS $PNG_LIBS"
  6898.  
  6899.  
  6900.  
  6901. #
  6902. # Checks for headers
  6903. #
  6904.  
  6905. for ac_header in fenv.h
  6906. do
  6907. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6908. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6909. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6910. $as_echo_n "checking for $ac_header... " >&6; }
  6911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6912. $as_echo_n "(cached) " >&6
  6913. fi
  6914. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6915. $as_echo "$as_val"'`
  6916. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6917. $as_echo "$ac_res" >&6; }
  6918. else
  6919. # Is the header compilable?
  6920. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6921. $as_echo_n "checking $ac_header usability... " >&6; }
  6922. cat >conftest.$ac_ext <<_ACEOF
  6923. /* confdefs.h. */
  6924. _ACEOF
  6925. cat confdefs.h >>conftest.$ac_ext
  6926. cat >>conftest.$ac_ext <<_ACEOF
  6927. /* end confdefs.h. */
  6928. $ac_includes_default
  6929. #include <$ac_header>
  6930. _ACEOF
  6931. rm -f conftest.$ac_objext
  6932. if { (ac_try="$ac_compile"
  6933. case "(($ac_try" in
  6934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6935. *) ac_try_echo=$ac_try;;
  6936. esac
  6937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6938. $as_echo "$ac_try_echo") >&5
  6939. (eval "$ac_compile") 2>conftest.er1
  6940. ac_status=$?
  6941. grep -v '^ *+' conftest.er1 >conftest.err
  6942. rm -f conftest.er1
  6943. cat conftest.err >&5
  6944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6945. (exit $ac_status); } && {
  6946. test -z "$ac_c_werror_flag" ||
  6947. test ! -s conftest.err
  6948. } && test -s conftest.$ac_objext; then
  6949. ac_header_compiler=yes
  6950. else
  6951. $as_echo "$as_me: failed program was:" >&5
  6952. sed 's/^/| /' conftest.$ac_ext >&5
  6953.  
  6954. ac_header_compiler=no
  6955. fi
  6956.  
  6957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6958. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6959. $as_echo "$ac_header_compiler" >&6; }
  6960.  
  6961. # Is the header present?
  6962. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6963. $as_echo_n "checking $ac_header presence... " >&6; }
  6964. cat >conftest.$ac_ext <<_ACEOF
  6965. /* confdefs.h. */
  6966. _ACEOF
  6967. cat confdefs.h >>conftest.$ac_ext
  6968. cat >>conftest.$ac_ext <<_ACEOF
  6969. /* end confdefs.h. */
  6970. #include <$ac_header>
  6971. _ACEOF
  6972. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6973. case "(($ac_try" in
  6974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6975. *) ac_try_echo=$ac_try;;
  6976. esac
  6977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6978. $as_echo "$ac_try_echo") >&5
  6979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6980. ac_status=$?
  6981. grep -v '^ *+' conftest.er1 >conftest.err
  6982. rm -f conftest.er1
  6983. cat conftest.err >&5
  6984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. (exit $ac_status); } >/dev/null && {
  6986. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6987. test ! -s conftest.err
  6988. }; then
  6989. ac_header_preproc=yes
  6990. else
  6991. $as_echo "$as_me: failed program was:" >&5
  6992. sed 's/^/| /' conftest.$ac_ext >&5
  6993.  
  6994. ac_header_preproc=no
  6995. fi
  6996.  
  6997. rm -f conftest.err conftest.$ac_ext
  6998. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6999. $as_echo "$ac_header_preproc" >&6; }
  7000.  
  7001. # So? What about this header?
  7002. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7003. yes:no: )
  7004. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7005. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7006. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7007. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7008. ac_header_preproc=yes
  7009. ;;
  7010. no:yes:* )
  7011. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7012. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7013. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7014. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7015. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7016. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7017. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7018. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7019. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7020. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7021. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7022. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7023. ( cat <<\_ASBOX
  7024. ## -------------------------------- ##
  7025. ## Report this to bobbens@gmail.com ##
  7026. ## -------------------------------- ##
  7027. _ASBOX
  7028. ) | sed "s/^/$as_me: WARNING: /" >&2
  7029. ;;
  7030. esac
  7031. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7032. $as_echo_n "checking for $ac_header... " >&6; }
  7033. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. eval "$as_ac_Header=\$ac_header_preproc"
  7037. fi
  7038. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7039. $as_echo "$as_val"'`
  7040. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7041. $as_echo "$ac_res" >&6; }
  7042.  
  7043. fi
  7044. as_val=`eval 'as_val=${'$as_ac_Header'}
  7045. $as_echo "$as_val"'`
  7046. if test "x$as_val" = x""yes; then
  7047. cat >>confdefs.h <<_ACEOF
  7048. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7049. _ACEOF
  7050.  
  7051. fi
  7052.  
  7053. done
  7054.  
  7055.  
  7056. #
  7057. # Checks for typedefs, structures, and compiler characteristics.
  7058. #
  7059. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  7060. $as_echo_n "checking for off_t... " >&6; }
  7061. if test "${ac_cv_type_off_t+set}" = set; then
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. ac_cv_type_off_t=no
  7065. cat >conftest.$ac_ext <<_ACEOF
  7066. /* confdefs.h. */
  7067. _ACEOF
  7068. cat confdefs.h >>conftest.$ac_ext
  7069. cat >>conftest.$ac_ext <<_ACEOF
  7070. /* end confdefs.h. */
  7071. $ac_includes_default
  7072. int
  7073. main ()
  7074. {
  7075. if (sizeof (off_t))
  7076. return 0;
  7077. ;
  7078. return 0;
  7079. }
  7080. _ACEOF
  7081. rm -f conftest.$ac_objext
  7082. if { (ac_try="$ac_compile"
  7083. case "(($ac_try" in
  7084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7085. *) ac_try_echo=$ac_try;;
  7086. esac
  7087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7088. $as_echo "$ac_try_echo") >&5
  7089. (eval "$ac_compile") 2>conftest.er1
  7090. ac_status=$?
  7091. grep -v '^ *+' conftest.er1 >conftest.err
  7092. rm -f conftest.er1
  7093. cat conftest.err >&5
  7094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. (exit $ac_status); } && {
  7096. test -z "$ac_c_werror_flag" ||
  7097. test ! -s conftest.err
  7098. } && test -s conftest.$ac_objext; then
  7099. cat >conftest.$ac_ext <<_ACEOF
  7100. /* confdefs.h. */
  7101. _ACEOF
  7102. cat confdefs.h >>conftest.$ac_ext
  7103. cat >>conftest.$ac_ext <<_ACEOF
  7104. /* end confdefs.h. */
  7105. $ac_includes_default
  7106. int
  7107. main ()
  7108. {
  7109. if (sizeof ((off_t)))
  7110. return 0;
  7111. ;
  7112. return 0;
  7113. }
  7114. _ACEOF
  7115. rm -f conftest.$ac_objext
  7116. if { (ac_try="$ac_compile"
  7117. case "(($ac_try" in
  7118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7119. *) ac_try_echo=$ac_try;;
  7120. esac
  7121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7122. $as_echo "$ac_try_echo") >&5
  7123. (eval "$ac_compile") 2>conftest.er1
  7124. ac_status=$?
  7125. grep -v '^ *+' conftest.er1 >conftest.err
  7126. rm -f conftest.er1
  7127. cat conftest.err >&5
  7128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7129. (exit $ac_status); } && {
  7130. test -z "$ac_c_werror_flag" ||
  7131. test ! -s conftest.err
  7132. } && test -s conftest.$ac_objext; then
  7133. :
  7134. else
  7135. $as_echo "$as_me: failed program was:" >&5
  7136. sed 's/^/| /' conftest.$ac_ext >&5
  7137.  
  7138. ac_cv_type_off_t=yes
  7139. fi
  7140.  
  7141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7142. else
  7143. $as_echo "$as_me: failed program was:" >&5
  7144. sed 's/^/| /' conftest.$ac_ext >&5
  7145.  
  7146.  
  7147. fi
  7148.  
  7149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7150. fi
  7151. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7152. $as_echo "$ac_cv_type_off_t" >&6; }
  7153. if test "x$ac_cv_type_off_t" = x""yes; then
  7154. :
  7155. else
  7156.  
  7157. cat >>confdefs.h <<_ACEOF
  7158. #define off_t long int
  7159. _ACEOF
  7160.  
  7161. fi
  7162.  
  7163. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  7164. $as_echo_n "checking for size_t... " >&6; }
  7165. if test "${ac_cv_type_size_t+set}" = set; then
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. ac_cv_type_size_t=no
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. $ac_includes_default
  7176. int
  7177. main ()
  7178. {
  7179. if (sizeof (size_t))
  7180. return 0;
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext
  7186. if { (ac_try="$ac_compile"
  7187. case "(($ac_try" in
  7188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7189. *) ac_try_echo=$ac_try;;
  7190. esac
  7191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7192. $as_echo "$ac_try_echo") >&5
  7193. (eval "$ac_compile") 2>conftest.er1
  7194. ac_status=$?
  7195. grep -v '^ *+' conftest.er1 >conftest.err
  7196. rm -f conftest.er1
  7197. cat conftest.err >&5
  7198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); } && {
  7200. test -z "$ac_c_werror_flag" ||
  7201. test ! -s conftest.err
  7202. } && test -s conftest.$ac_objext; then
  7203. cat >conftest.$ac_ext <<_ACEOF
  7204. /* confdefs.h. */
  7205. _ACEOF
  7206. cat confdefs.h >>conftest.$ac_ext
  7207. cat >>conftest.$ac_ext <<_ACEOF
  7208. /* end confdefs.h. */
  7209. $ac_includes_default
  7210. int
  7211. main ()
  7212. {
  7213. if (sizeof ((size_t)))
  7214. return 0;
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. rm -f conftest.$ac_objext
  7220. if { (ac_try="$ac_compile"
  7221. case "(($ac_try" in
  7222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7223. *) ac_try_echo=$ac_try;;
  7224. esac
  7225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7226. $as_echo "$ac_try_echo") >&5
  7227. (eval "$ac_compile") 2>conftest.er1
  7228. ac_status=$?
  7229. grep -v '^ *+' conftest.er1 >conftest.err
  7230. rm -f conftest.er1
  7231. cat conftest.err >&5
  7232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7233. (exit $ac_status); } && {
  7234. test -z "$ac_c_werror_flag" ||
  7235. test ! -s conftest.err
  7236. } && test -s conftest.$ac_objext; then
  7237. :
  7238. else
  7239. $as_echo "$as_me: failed program was:" >&5
  7240. sed 's/^/| /' conftest.$ac_ext >&5
  7241.  
  7242. ac_cv_type_size_t=yes
  7243. fi
  7244.  
  7245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7246. else
  7247. $as_echo "$as_me: failed program was:" >&5
  7248. sed 's/^/| /' conftest.$ac_ext >&5
  7249.  
  7250.  
  7251. fi
  7252.  
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7256. $as_echo "$ac_cv_type_size_t" >&6; }
  7257. if test "x$ac_cv_type_size_t" = x""yes; then
  7258. :
  7259. else
  7260.  
  7261. cat >>confdefs.h <<_ACEOF
  7262. #define size_t unsigned int
  7263. _ACEOF
  7264.  
  7265. fi
  7266.  
  7267. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  7268. $as_echo_n "checking for ssize_t... " >&6; }
  7269. if test "${ac_cv_type_ssize_t+set}" = set; then
  7270. $as_echo_n "(cached) " >&6
  7271. else
  7272. ac_cv_type_ssize_t=no
  7273. cat >conftest.$ac_ext <<_ACEOF
  7274. /* confdefs.h. */
  7275. _ACEOF
  7276. cat confdefs.h >>conftest.$ac_ext
  7277. cat >>conftest.$ac_ext <<_ACEOF
  7278. /* end confdefs.h. */
  7279. $ac_includes_default
  7280. int
  7281. main ()
  7282. {
  7283. if (sizeof (ssize_t))
  7284. return 0;
  7285. ;
  7286. return 0;
  7287. }
  7288. _ACEOF
  7289. rm -f conftest.$ac_objext
  7290. if { (ac_try="$ac_compile"
  7291. case "(($ac_try" in
  7292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7293. *) ac_try_echo=$ac_try;;
  7294. esac
  7295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7296. $as_echo "$ac_try_echo") >&5
  7297. (eval "$ac_compile") 2>conftest.er1
  7298. ac_status=$?
  7299. grep -v '^ *+' conftest.er1 >conftest.err
  7300. rm -f conftest.er1
  7301. cat conftest.err >&5
  7302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7303. (exit $ac_status); } && {
  7304. test -z "$ac_c_werror_flag" ||
  7305. test ! -s conftest.err
  7306. } && test -s conftest.$ac_objext; then
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. $ac_includes_default
  7314. int
  7315. main ()
  7316. {
  7317. if (sizeof ((ssize_t)))
  7318. return 0;
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext
  7324. if { (ac_try="$ac_compile"
  7325. case "(($ac_try" in
  7326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7327. *) ac_try_echo=$ac_try;;
  7328. esac
  7329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7330. $as_echo "$ac_try_echo") >&5
  7331. (eval "$ac_compile") 2>conftest.er1
  7332. ac_status=$?
  7333. grep -v '^ *+' conftest.er1 >conftest.err
  7334. rm -f conftest.er1
  7335. cat conftest.err >&5
  7336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); } && {
  7338. test -z "$ac_c_werror_flag" ||
  7339. test ! -s conftest.err
  7340. } && test -s conftest.$ac_objext; then
  7341. :
  7342. else
  7343. $as_echo "$as_me: failed program was:" >&5
  7344. sed 's/^/| /' conftest.$ac_ext >&5
  7345.  
  7346. ac_cv_type_ssize_t=yes
  7347. fi
  7348.  
  7349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7350. else
  7351. $as_echo "$as_me: failed program was:" >&5
  7352. sed 's/^/| /' conftest.$ac_ext >&5
  7353.  
  7354.  
  7355. fi
  7356.  
  7357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7358. fi
  7359. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7360. $as_echo "$ac_cv_type_ssize_t" >&6; }
  7361. if test "x$ac_cv_type_ssize_t" = x""yes; then
  7362. :
  7363. else
  7364.  
  7365. cat >>confdefs.h <<_ACEOF
  7366. #define ssize_t int
  7367. _ACEOF
  7368.  
  7369. fi
  7370.  
  7371.  
  7372. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  7373. $as_echo_n "checking for uint16_t... " >&6; }
  7374. if test "${ac_cv_c_uint16_t+set}" = set; then
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. ac_cv_c_uint16_t=no
  7378. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  7379. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7380. cat >conftest.$ac_ext <<_ACEOF
  7381. /* confdefs.h. */
  7382. _ACEOF
  7383. cat confdefs.h >>conftest.$ac_ext
  7384. cat >>conftest.$ac_ext <<_ACEOF
  7385. /* end confdefs.h. */
  7386. $ac_includes_default
  7387. int
  7388. main ()
  7389. {
  7390. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  7391. test_array [0] = 0
  7392.  
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. rm -f conftest.$ac_objext
  7398. if { (ac_try="$ac_compile"
  7399. case "(($ac_try" in
  7400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7401. *) ac_try_echo=$ac_try;;
  7402. esac
  7403. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7404. $as_echo "$ac_try_echo") >&5
  7405. (eval "$ac_compile") 2>conftest.er1
  7406. ac_status=$?
  7407. grep -v '^ *+' conftest.er1 >conftest.err
  7408. rm -f conftest.er1
  7409. cat conftest.err >&5
  7410. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); } && {
  7412. test -z "$ac_c_werror_flag" ||
  7413. test ! -s conftest.err
  7414. } && test -s conftest.$ac_objext; then
  7415. case $ac_type in
  7416. uint16_t) ac_cv_c_uint16_t=yes ;;
  7417. *) ac_cv_c_uint16_t=$ac_type ;;
  7418. esac
  7419.  
  7420. else
  7421. $as_echo "$as_me: failed program was:" >&5
  7422. sed 's/^/| /' conftest.$ac_ext >&5
  7423.  
  7424.  
  7425. fi
  7426.  
  7427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7428. test "$ac_cv_c_uint16_t" != no && break
  7429. done
  7430. fi
  7431. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  7432. $as_echo "$ac_cv_c_uint16_t" >&6; }
  7433. case $ac_cv_c_uint16_t in #(
  7434. no|yes) ;; #(
  7435. *)
  7436.  
  7437.  
  7438. cat >>confdefs.h <<_ACEOF
  7439. #define uint16_t $ac_cv_c_uint16_t
  7440. _ACEOF
  7441. ;;
  7442. esac
  7443.  
  7444.  
  7445. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  7446. $as_echo_n "checking for uint32_t... " >&6; }
  7447. if test "${ac_cv_c_uint32_t+set}" = set; then
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. ac_cv_c_uint32_t=no
  7451. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  7452. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7453. cat >conftest.$ac_ext <<_ACEOF
  7454. /* confdefs.h. */
  7455. _ACEOF
  7456. cat confdefs.h >>conftest.$ac_ext
  7457. cat >>conftest.$ac_ext <<_ACEOF
  7458. /* end confdefs.h. */
  7459. $ac_includes_default
  7460. int
  7461. main ()
  7462. {
  7463. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  7464. test_array [0] = 0
  7465.  
  7466. ;
  7467. return 0;
  7468. }
  7469. _ACEOF
  7470. rm -f conftest.$ac_objext
  7471. if { (ac_try="$ac_compile"
  7472. case "(($ac_try" in
  7473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7474. *) ac_try_echo=$ac_try;;
  7475. esac
  7476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7477. $as_echo "$ac_try_echo") >&5
  7478. (eval "$ac_compile") 2>conftest.er1
  7479. ac_status=$?
  7480. grep -v '^ *+' conftest.er1 >conftest.err
  7481. rm -f conftest.er1
  7482. cat conftest.err >&5
  7483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); } && {
  7485. test -z "$ac_c_werror_flag" ||
  7486. test ! -s conftest.err
  7487. } && test -s conftest.$ac_objext; then
  7488. case $ac_type in
  7489. uint32_t) ac_cv_c_uint32_t=yes ;;
  7490. *) ac_cv_c_uint32_t=$ac_type ;;
  7491. esac
  7492.  
  7493. else
  7494. $as_echo "$as_me: failed program was:" >&5
  7495. sed 's/^/| /' conftest.$ac_ext >&5
  7496.  
  7497.  
  7498. fi
  7499.  
  7500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7501. test "$ac_cv_c_uint32_t" != no && break
  7502. done
  7503. fi
  7504. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  7505. $as_echo "$ac_cv_c_uint32_t" >&6; }
  7506. case $ac_cv_c_uint32_t in #(
  7507. no|yes) ;; #(
  7508. *)
  7509.  
  7510. cat >>confdefs.h <<\_ACEOF
  7511. #define _UINT32_T 1
  7512. _ACEOF
  7513.  
  7514.  
  7515. cat >>confdefs.h <<_ACEOF
  7516. #define uint32_t $ac_cv_c_uint32_t
  7517. _ACEOF
  7518. ;;
  7519. esac
  7520.  
  7521.  
  7522. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  7523. $as_echo_n "checking for uint64_t... " >&6; }
  7524. if test "${ac_cv_c_uint64_t+set}" = set; then
  7525. $as_echo_n "(cached) " >&6
  7526. else
  7527. ac_cv_c_uint64_t=no
  7528. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  7529. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. /* confdefs.h. */
  7532. _ACEOF
  7533. cat confdefs.h >>conftest.$ac_ext
  7534. cat >>conftest.$ac_ext <<_ACEOF
  7535. /* end confdefs.h. */
  7536. $ac_includes_default
  7537. int
  7538. main ()
  7539. {
  7540. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  7541. test_array [0] = 0
  7542.  
  7543. ;
  7544. return 0;
  7545. }
  7546. _ACEOF
  7547. rm -f conftest.$ac_objext
  7548. if { (ac_try="$ac_compile"
  7549. case "(($ac_try" in
  7550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7551. *) ac_try_echo=$ac_try;;
  7552. esac
  7553. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7554. $as_echo "$ac_try_echo") >&5
  7555. (eval "$ac_compile") 2>conftest.er1
  7556. ac_status=$?
  7557. grep -v '^ *+' conftest.er1 >conftest.err
  7558. rm -f conftest.er1
  7559. cat conftest.err >&5
  7560. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7561. (exit $ac_status); } && {
  7562. test -z "$ac_c_werror_flag" ||
  7563. test ! -s conftest.err
  7564. } && test -s conftest.$ac_objext; then
  7565. case $ac_type in
  7566. uint64_t) ac_cv_c_uint64_t=yes ;;
  7567. *) ac_cv_c_uint64_t=$ac_type ;;
  7568. esac
  7569.  
  7570. else
  7571. $as_echo "$as_me: failed program was:" >&5
  7572. sed 's/^/| /' conftest.$ac_ext >&5
  7573.  
  7574.  
  7575. fi
  7576.  
  7577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7578. test "$ac_cv_c_uint64_t" != no && break
  7579. done
  7580. fi
  7581. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  7582. $as_echo "$ac_cv_c_uint64_t" >&6; }
  7583. case $ac_cv_c_uint64_t in #(
  7584. no|yes) ;; #(
  7585. *)
  7586.  
  7587. cat >>confdefs.h <<\_ACEOF
  7588. #define _UINT64_T 1
  7589. _ACEOF
  7590.  
  7591.  
  7592. cat >>confdefs.h <<_ACEOF
  7593. #define uint64_t $ac_cv_c_uint64_t
  7594. _ACEOF
  7595. ;;
  7596. esac
  7597.  
  7598.  
  7599. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  7600. $as_echo_n "checking for uint8_t... " >&6; }
  7601. if test "${ac_cv_c_uint8_t+set}" = set; then
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. ac_cv_c_uint8_t=no
  7605. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  7606. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7607. cat >conftest.$ac_ext <<_ACEOF
  7608. /* confdefs.h. */
  7609. _ACEOF
  7610. cat confdefs.h >>conftest.$ac_ext
  7611. cat >>conftest.$ac_ext <<_ACEOF
  7612. /* end confdefs.h. */
  7613. $ac_includes_default
  7614. int
  7615. main ()
  7616. {
  7617. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  7618. test_array [0] = 0
  7619.  
  7620. ;
  7621. return 0;
  7622. }
  7623. _ACEOF
  7624. rm -f conftest.$ac_objext
  7625. if { (ac_try="$ac_compile"
  7626. case "(($ac_try" in
  7627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7628. *) ac_try_echo=$ac_try;;
  7629. esac
  7630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7631. $as_echo "$ac_try_echo") >&5
  7632. (eval "$ac_compile") 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } && {
  7639. test -z "$ac_c_werror_flag" ||
  7640. test ! -s conftest.err
  7641. } && test -s conftest.$ac_objext; then
  7642. case $ac_type in
  7643. uint8_t) ac_cv_c_uint8_t=yes ;;
  7644. *) ac_cv_c_uint8_t=$ac_type ;;
  7645. esac
  7646.  
  7647. else
  7648. $as_echo "$as_me: failed program was:" >&5
  7649. sed 's/^/| /' conftest.$ac_ext >&5
  7650.  
  7651.  
  7652. fi
  7653.  
  7654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7655. test "$ac_cv_c_uint8_t" != no && break
  7656. done
  7657. fi
  7658. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  7659. $as_echo "$ac_cv_c_uint8_t" >&6; }
  7660. case $ac_cv_c_uint8_t in #(
  7661. no|yes) ;; #(
  7662. *)
  7663.  
  7664. cat >>confdefs.h <<\_ACEOF
  7665. #define _UINT8_T 1
  7666. _ACEOF
  7667.  
  7668.  
  7669. cat >>confdefs.h <<_ACEOF
  7670. #define uint8_t $ac_cv_c_uint8_t
  7671. _ACEOF
  7672. ;;
  7673. esac
  7674.  
  7675.  
  7676. #
  7677. # Checks for functions
  7678. #
  7679.  
  7680. OLD_LIBS="$LIBS"
  7681. LIBS="-lm"
  7682.  
  7683.  
  7684. for ac_func in feenableexcept
  7685. do
  7686. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7687. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7688. $as_echo_n "checking for $ac_func... " >&6; }
  7689. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. cat >conftest.$ac_ext <<_ACEOF
  7693. /* confdefs.h. */
  7694. _ACEOF
  7695. cat confdefs.h >>conftest.$ac_ext
  7696. cat >>conftest.$ac_ext <<_ACEOF
  7697. /* end confdefs.h. */
  7698. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7699. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7700. #define $ac_func innocuous_$ac_func
  7701.  
  7702. /* System header to define __stub macros and hopefully few prototypes,
  7703. which can conflict with char $ac_func (); below.
  7704. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7705. <limits.h> exists even on freestanding compilers. */
  7706.  
  7707. #ifdef __STDC__
  7708. # include <limits.h>
  7709. #else
  7710. # include <assert.h>
  7711. #endif
  7712.  
  7713. #undef $ac_func
  7714.  
  7715. /* Override any GCC internal prototype to avoid an error.
  7716. Use char because int might match the return type of a GCC
  7717. builtin and then its argument prototype would still apply. */
  7718. #ifdef __cplusplus
  7719. extern "C"
  7720. #endif
  7721. char $ac_func ();
  7722. /* The GNU C library defines this for functions which it implements
  7723. to always fail with ENOSYS. Some functions are actually named
  7724. something starting with __ and the normal name is an alias. */
  7725. #if defined __stub_$ac_func || defined __stub___$ac_func
  7726. choke me
  7727. #endif
  7728.  
  7729. int
  7730. main ()
  7731. {
  7732. return $ac_func ();
  7733. ;
  7734. return 0;
  7735. }
  7736. _ACEOF
  7737. rm -f conftest.$ac_objext conftest$ac_exeext
  7738. if { (ac_try="$ac_link"
  7739. case "(($ac_try" in
  7740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7741. *) ac_try_echo=$ac_try;;
  7742. esac
  7743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7744. $as_echo "$ac_try_echo") >&5
  7745. (eval "$ac_link") 2>conftest.er1
  7746. ac_status=$?
  7747. grep -v '^ *+' conftest.er1 >conftest.err
  7748. rm -f conftest.er1
  7749. cat conftest.err >&5
  7750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. (exit $ac_status); } && {
  7752. test -z "$ac_c_werror_flag" ||
  7753. test ! -s conftest.err
  7754. } && test -s conftest$ac_exeext && {
  7755. test "$cross_compiling" = yes ||
  7756. $as_test_x conftest$ac_exeext
  7757. }; then
  7758. eval "$as_ac_var=yes"
  7759. else
  7760. $as_echo "$as_me: failed program was:" >&5
  7761. sed 's/^/| /' conftest.$ac_ext >&5
  7762.  
  7763. eval "$as_ac_var=no"
  7764. fi
  7765.  
  7766. rm -rf conftest.dSYM
  7767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7768. conftest$ac_exeext conftest.$ac_ext
  7769. fi
  7770. ac_res=`eval 'as_val=${'$as_ac_var'}
  7771. $as_echo "$as_val"'`
  7772. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7773. $as_echo "$ac_res" >&6; }
  7774. as_val=`eval 'as_val=${'$as_ac_var'}
  7775. $as_echo "$as_val"'`
  7776. if test "x$as_val" = x""yes; then
  7777. cat >>confdefs.h <<_ACEOF
  7778. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7779. _ACEOF
  7780.  
  7781. fi
  7782. done
  7783.  
  7784.  
  7785. LIBS="$OLD_LIBS"
  7786.  
  7787.  
  7788.  
  7789. for ac_func in clock_gettime
  7790. do
  7791. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7792. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7793. $as_echo_n "checking for $ac_func... " >&6; }
  7794. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7795. $as_echo_n "(cached) " >&6
  7796. else
  7797. cat >conftest.$ac_ext <<_ACEOF
  7798. /* confdefs.h. */
  7799. _ACEOF
  7800. cat confdefs.h >>conftest.$ac_ext
  7801. cat >>conftest.$ac_ext <<_ACEOF
  7802. /* end confdefs.h. */
  7803. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7804. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7805. #define $ac_func innocuous_$ac_func
  7806.  
  7807. /* System header to define __stub macros and hopefully few prototypes,
  7808. which can conflict with char $ac_func (); below.
  7809. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7810. <limits.h> exists even on freestanding compilers. */
  7811.  
  7812. #ifdef __STDC__
  7813. # include <limits.h>
  7814. #else
  7815. # include <assert.h>
  7816. #endif
  7817.  
  7818. #undef $ac_func
  7819.  
  7820. /* Override any GCC internal prototype to avoid an error.
  7821. Use char because int might match the return type of a GCC
  7822. builtin and then its argument prototype would still apply. */
  7823. #ifdef __cplusplus
  7824. extern "C"
  7825. #endif
  7826. char $ac_func ();
  7827. /* The GNU C library defines this for functions which it implements
  7828. to always fail with ENOSYS. Some functions are actually named
  7829. something starting with __ and the normal name is an alias. */
  7830. #if defined __stub_$ac_func || defined __stub___$ac_func
  7831. choke me
  7832. #endif
  7833.  
  7834. int
  7835. main ()
  7836. {
  7837. return $ac_func ();
  7838. ;
  7839. return 0;
  7840. }
  7841. _ACEOF
  7842. rm -f conftest.$ac_objext conftest$ac_exeext
  7843. if { (ac_try="$ac_link"
  7844. case "(($ac_try" in
  7845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7846. *) ac_try_echo=$ac_try;;
  7847. esac
  7848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7849. $as_echo "$ac_try_echo") >&5
  7850. (eval "$ac_link") 2>conftest.er1
  7851. ac_status=$?
  7852. grep -v '^ *+' conftest.er1 >conftest.err
  7853. rm -f conftest.er1
  7854. cat conftest.err >&5
  7855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7856. (exit $ac_status); } && {
  7857. test -z "$ac_c_werror_flag" ||
  7858. test ! -s conftest.err
  7859. } && test -s conftest$ac_exeext && {
  7860. test "$cross_compiling" = yes ||
  7861. $as_test_x conftest$ac_exeext
  7862. }; then
  7863. eval "$as_ac_var=yes"
  7864. else
  7865. $as_echo "$as_me: failed program was:" >&5
  7866. sed 's/^/| /' conftest.$ac_ext >&5
  7867.  
  7868. eval "$as_ac_var=no"
  7869. fi
  7870.  
  7871. rm -rf conftest.dSYM
  7872. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7873. conftest$ac_exeext conftest.$ac_ext
  7874. fi
  7875. ac_res=`eval 'as_val=${'$as_ac_var'}
  7876. $as_echo "$as_val"'`
  7877. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7878. $as_echo "$ac_res" >&6; }
  7879. as_val=`eval 'as_val=${'$as_ac_var'}
  7880. $as_echo "$as_val"'`
  7881. if test "x$as_val" = x""yes; then
  7882. cat >>confdefs.h <<_ACEOF
  7883. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7884. _ACEOF
  7885.  
  7886. fi
  7887. done
  7888.  
  7889. # if it is not available directly, check it in librt (glibc does this).
  7890. if test $ac_cv_func_clock_gettime = no; then
  7891.  
  7892. { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  7893. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  7894. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
  7895. $as_echo_n "(cached) " >&6
  7896. else
  7897. ac_check_lib_save_LIBS=$LIBS
  7898. LIBS="-lrt $LIBS"
  7899. cat >conftest.$ac_ext <<_ACEOF
  7900. /* confdefs.h. */
  7901. _ACEOF
  7902. cat confdefs.h >>conftest.$ac_ext
  7903. cat >>conftest.$ac_ext <<_ACEOF
  7904. /* end confdefs.h. */
  7905.  
  7906. /* Override any GCC internal prototype to avoid an error.
  7907. Use char because int might match the return type of a GCC
  7908. builtin and then its argument prototype would still apply. */
  7909. #ifdef __cplusplus
  7910. extern "C"
  7911. #endif
  7912. char clock_gettime ();
  7913. int
  7914. main ()
  7915. {
  7916. return clock_gettime ();
  7917. ;
  7918. return 0;
  7919. }
  7920. _ACEOF
  7921. rm -f conftest.$ac_objext conftest$ac_exeext
  7922. if { (ac_try="$ac_link"
  7923. case "(($ac_try" in
  7924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7925. *) ac_try_echo=$ac_try;;
  7926. esac
  7927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7928. $as_echo "$ac_try_echo") >&5
  7929. (eval "$ac_link") 2>conftest.er1
  7930. ac_status=$?
  7931. grep -v '^ *+' conftest.er1 >conftest.err
  7932. rm -f conftest.er1
  7933. cat conftest.err >&5
  7934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935. (exit $ac_status); } && {
  7936. test -z "$ac_c_werror_flag" ||
  7937. test ! -s conftest.err
  7938. } && test -s conftest$ac_exeext && {
  7939. test "$cross_compiling" = yes ||
  7940. $as_test_x conftest$ac_exeext
  7941. }; then
  7942. ac_cv_lib_rt_clock_gettime=yes
  7943. else
  7944. $as_echo "$as_me: failed program was:" >&5
  7945. sed 's/^/| /' conftest.$ac_ext >&5
  7946.  
  7947. ac_cv_lib_rt_clock_gettime=no
  7948. fi
  7949.  
  7950. rm -rf conftest.dSYM
  7951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7952. conftest$ac_exeext conftest.$ac_ext
  7953. LIBS=$ac_check_lib_save_LIBS
  7954. fi
  7955. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
  7956. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  7957. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
  7958. LIBS="-lrt $LIBS"
  7959. fi
  7960.  
  7961.  
  7962. fi
  7963.  
  7964.  
  7965.  
  7966. OLD_CFLAGS="$CFLAGS"
  7967. CFLAGS="$VORBISFILE_CFLAGS"
  7968.  
  7969.  
  7970. OLD_LIBS="$LIBS"
  7971. LIBS="$VORBISFILE_LIBS"
  7972.  
  7973.  
  7974. for ac_func in ov_read_filter
  7975. do
  7976. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7977. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7978. $as_echo_n "checking for $ac_func... " >&6; }
  7979. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. cat >conftest.$ac_ext <<_ACEOF
  7983. /* confdefs.h. */
  7984. _ACEOF
  7985. cat confdefs.h >>conftest.$ac_ext
  7986. cat >>conftest.$ac_ext <<_ACEOF
  7987. /* end confdefs.h. */
  7988. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7989. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7990. #define $ac_func innocuous_$ac_func
  7991.  
  7992. /* System header to define __stub macros and hopefully few prototypes,
  7993. which can conflict with char $ac_func (); below.
  7994. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7995. <limits.h> exists even on freestanding compilers. */
  7996.  
  7997. #ifdef __STDC__
  7998. # include <limits.h>
  7999. #else
  8000. # include <assert.h>
  8001. #endif
  8002.  
  8003. #undef $ac_func
  8004.  
  8005. /* Override any GCC internal prototype to avoid an error.
  8006. Use char because int might match the return type of a GCC
  8007. builtin and then its argument prototype would still apply. */
  8008. #ifdef __cplusplus
  8009. extern "C"
  8010. #endif
  8011. char $ac_func ();
  8012. /* The GNU C library defines this for functions which it implements
  8013. to always fail with ENOSYS. Some functions are actually named
  8014. something starting with __ and the normal name is an alias. */
  8015. #if defined __stub_$ac_func || defined __stub___$ac_func
  8016. choke me
  8017. #endif
  8018.  
  8019. int
  8020. main ()
  8021. {
  8022. return $ac_func ();
  8023. ;
  8024. return 0;
  8025. }
  8026. _ACEOF
  8027. rm -f conftest.$ac_objext conftest$ac_exeext
  8028. if { (ac_try="$ac_link"
  8029. case "(($ac_try" in
  8030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8031. *) ac_try_echo=$ac_try;;
  8032. esac
  8033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8034. $as_echo "$ac_try_echo") >&5
  8035. (eval "$ac_link") 2>conftest.er1
  8036. ac_status=$?
  8037. grep -v '^ *+' conftest.er1 >conftest.err
  8038. rm -f conftest.er1
  8039. cat conftest.err >&5
  8040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. (exit $ac_status); } && {
  8042. test -z "$ac_c_werror_flag" ||
  8043. test ! -s conftest.err
  8044. } && test -s conftest$ac_exeext && {
  8045. test "$cross_compiling" = yes ||
  8046. $as_test_x conftest$ac_exeext
  8047. }; then
  8048. eval "$as_ac_var=yes"
  8049. else
  8050. $as_echo "$as_me: failed program was:" >&5
  8051. sed 's/^/| /' conftest.$ac_ext >&5
  8052.  
  8053. eval "$as_ac_var=no"
  8054. fi
  8055.  
  8056. rm -rf conftest.dSYM
  8057. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8058. conftest$ac_exeext conftest.$ac_ext
  8059. fi
  8060. ac_res=`eval 'as_val=${'$as_ac_var'}
  8061. $as_echo "$as_val"'`
  8062. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8063. $as_echo "$ac_res" >&6; }
  8064. as_val=`eval 'as_val=${'$as_ac_var'}
  8065. $as_echo "$as_val"'`
  8066. if test "x$as_val" = x""yes; then
  8067. cat >>confdefs.h <<_ACEOF
  8068. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8069. _ACEOF
  8070.  
  8071. fi
  8072. done
  8073.  
  8074.  
  8075. CFLAGS="$OLD_CFLAGS"
  8076.  
  8077.  
  8078. LIBS="$OLD_LIBS"
  8079.  
  8080.  
  8081. #
  8082. # Misc checks
  8083. #
  8084. { $as_echo "$as_me:$LINENO: checking for the current Git commit identifier" >&5
  8085. $as_echo_n "checking for the current Git commit identifier... " >&6; }
  8086. if test -n "$GIT" && test -d "$srcdir/.git"; then
  8087.  
  8088. GIT_COMMIT=$(cd "$srcdir" && "$GIT" describe --always --tags)
  8089. { $as_echo "$as_me:$LINENO: result: $GIT_COMMIT" >&5
  8090. $as_echo "$GIT_COMMIT" >&6; }
  8091.  
  8092. else
  8093.  
  8094. GIT_COMMIT=
  8095. { $as_echo "$as_me:$LINENO: result: unknown" >&5
  8096. $as_echo "unknown" >&6; }
  8097.  
  8098. fi
  8099.  
  8100.  
  8101. #
  8102. # Defines in config.h
  8103. #
  8104.  
  8105. # Version variables
  8106. VMAJOR=$(echo "$VERSION" | cut -d. -f1)
  8107. VMINOR=$(echo "$VERSION" | cut -d. -f2)
  8108. VREV=$(echo "$VERSION" | cut -d. -f3)
  8109.  
  8110.  
  8111. cat >>confdefs.h <<_ACEOF
  8112. #define VMAJOR $VMAJOR
  8113. _ACEOF
  8114.  
  8115.  
  8116. cat >>confdefs.h <<_ACEOF
  8117. #define VMINOR $VMINOR
  8118. _ACEOF
  8119.  
  8120.  
  8121. cat >>confdefs.h <<_ACEOF
  8122. #define VREV $VREV
  8123. _ACEOF
  8124.  
  8125.  
  8126. # USE_OPENAL
  8127. if test "$have_openal" = "yes"; then
  8128.  
  8129.  
  8130. cat >>confdefs.h <<\_ACEOF
  8131. #define USE_OPENAL 1
  8132. _ACEOF
  8133.  
  8134.  
  8135. fi
  8136.  
  8137.  
  8138. # USE_SDLMIX
  8139. if test "$have_sdlmixer" = "yes"; then
  8140.  
  8141.  
  8142. cat >>confdefs.h <<\_ACEOF
  8143. #define USE_SDLMIX 1
  8144. _ACEOF
  8145.  
  8146.  
  8147. fi
  8148.  
  8149.  
  8150. # Operating system
  8151. case "$host" in
  8152. *-linux*)
  8153.  
  8154. cat >>confdefs.h <<\_ACEOF
  8155. #define LINUX 1
  8156. _ACEOF
  8157.  
  8158. ;;
  8159. *-freebsd*)
  8160.  
  8161. cat >>confdefs.h <<\_ACEOF
  8162. #define FREEBSD 1
  8163. _ACEOF
  8164.  
  8165. ;;
  8166. *-mingw*)
  8167. if test -n "$ac_tool_prefix"; then
  8168. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  8169. set dummy ${ac_tool_prefix}windres; ac_word=$2
  8170. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8171. $as_echo_n "checking for $ac_word... " >&6; }
  8172. if test "${ac_cv_prog_WINDRES+set}" = set; then
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. if test -n "$WINDRES"; then
  8176. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8177. else
  8178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8179. for as_dir in $PATH
  8180. do
  8181. IFS=$as_save_IFS
  8182. test -z "$as_dir" && as_dir=.
  8183. for ac_exec_ext in '' $ac_executable_extensions; do
  8184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8185. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  8186. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8187. break 2
  8188. fi
  8189. done
  8190. done
  8191. IFS=$as_save_IFS
  8192.  
  8193. fi
  8194. fi
  8195. WINDRES=$ac_cv_prog_WINDRES
  8196. if test -n "$WINDRES"; then
  8197. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  8198. $as_echo "$WINDRES" >&6; }
  8199. else
  8200. { $as_echo "$as_me:$LINENO: result: no" >&5
  8201. $as_echo "no" >&6; }
  8202. fi
  8203.  
  8204.  
  8205. fi
  8206. if test -z "$ac_cv_prog_WINDRES"; then
  8207. ac_ct_WINDRES=$WINDRES
  8208. # Extract the first word of "windres", so it can be a program name with args.
  8209. set dummy windres; ac_word=$2
  8210. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8211. $as_echo_n "checking for $ac_word... " >&6; }
  8212. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  8213. $as_echo_n "(cached) " >&6
  8214. else
  8215. if test -n "$ac_ct_WINDRES"; then
  8216. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  8217. else
  8218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8219. for as_dir in $PATH
  8220. do
  8221. IFS=$as_save_IFS
  8222. test -z "$as_dir" && as_dir=.
  8223. for ac_exec_ext in '' $ac_executable_extensions; do
  8224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8225. ac_cv_prog_ac_ct_WINDRES="windres"
  8226. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8227. break 2
  8228. fi
  8229. done
  8230. done
  8231. IFS=$as_save_IFS
  8232.  
  8233. fi
  8234. fi
  8235. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  8236. if test -n "$ac_ct_WINDRES"; then
  8237. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  8238. $as_echo "$ac_ct_WINDRES" >&6; }
  8239. else
  8240. { $as_echo "$as_me:$LINENO: result: no" >&5
  8241. $as_echo "no" >&6; }
  8242. fi
  8243.  
  8244. if test "x$ac_ct_WINDRES" = x; then
  8245. WINDRES=""
  8246. else
  8247. case $cross_compiling:$ac_tool_warned in
  8248. yes:)
  8249. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8251. ac_tool_warned=yes ;;
  8252. esac
  8253. WINDRES=$ac_ct_WINDRES
  8254. fi
  8255. else
  8256. WINDRES="$ac_cv_prog_WINDRES"
  8257. fi
  8258.  
  8259.  
  8260. cat >>confdefs.h <<\_ACEOF
  8261. #define WIN32 1
  8262. _ACEOF
  8263.  
  8264. ;;
  8265. *-darwin*)
  8266.  
  8267. cat >>confdefs.h <<\_ACEOF
  8268. #define MACOSX 1
  8269. _ACEOF
  8270.  
  8271. ;;
  8272. esac
  8273.  
  8274. # NDATA_DEF
  8275.  
  8276. cat >>confdefs.h <<_ACEOF
  8277. #define NDATA_DEF "$ndata_path"
  8278. _ACEOF
  8279.  
  8280.  
  8281. # PREFSDIR_DEF
  8282.  
  8283. cat >>confdefs.h <<_ACEOF
  8284. #define PREFSDIR_DEF "$prefsdir"
  8285. _ACEOF
  8286.  
  8287.  
  8288. # GIT_COMMIT
  8289. if test -n "$GIT_COMMIT"; then
  8290.  
  8291.  
  8292. cat >>confdefs.h <<_ACEOF
  8293. #define GIT_COMMIT "$GIT_COMMIT"
  8294. _ACEOF
  8295.  
  8296.  
  8297. fi
  8298.  
  8299.  
  8300. #
  8301. # Automake conditionals
  8302. #
  8303.  
  8304. if test -n "$WINDRES"; then
  8305. HAVE_WINDRES_TRUE=
  8306. HAVE_WINDRES_FALSE='#'
  8307. else
  8308. HAVE_WINDRES_TRUE='#'
  8309. HAVE_WINDRES_FALSE=
  8310. fi
  8311.  
  8312. if test -n "$DOXYGEN"; then
  8313. HAVE_DOXYGEN_TRUE=
  8314. HAVE_DOXYGEN_FALSE='#'
  8315. else
  8316. HAVE_DOXYGEN_TRUE='#'
  8317. HAVE_DOXYGEN_FALSE=
  8318. fi
  8319.  
  8320. if test -n "$LUADOC"; then
  8321. HAVE_LUADOC_TRUE=
  8322. HAVE_LUADOC_FALSE='#'
  8323. else
  8324. HAVE_LUADOC_TRUE='#'
  8325. HAVE_LUADOC_FALSE=
  8326. fi
  8327.  
  8328. if test "$have_utils" = "yes"; then
  8329. HAVE_UTILS_TRUE=
  8330. HAVE_UTILS_FALSE='#'
  8331. else
  8332. HAVE_UTILS_TRUE='#'
  8333. HAVE_UTILS_FALSE=
  8334. fi
  8335.  
  8336. if test "$have_docs" = "yes"; then
  8337. HAVE_DOCS_TRUE=
  8338. HAVE_DOCS_FALSE='#'
  8339. else
  8340. HAVE_DOCS_TRUE='#'
  8341. HAVE_DOCS_FALSE=
  8342. fi
  8343.  
  8344. if test "$have_sdlimage" = "yes"; then
  8345. HAVE_SDLIMAGE_TRUE=
  8346. HAVE_SDLIMAGE_FALSE='#'
  8347. else
  8348. HAVE_SDLIMAGE_TRUE='#'
  8349. HAVE_SDLIMAGE_FALSE=
  8350. fi
  8351.  
  8352.  
  8353. #
  8354. # Output
  8355. #
  8356.  
  8357.  
  8358. # Check whether --enable-shave was given.
  8359. if test "${enable_shave+set}" = set; then
  8360. enableval=$enable_shave;
  8361. else
  8362. enable_shave=yes
  8363.  
  8364. fi
  8365.  
  8366.  
  8367.  
  8368. if test x"$enable_shave" = xyes; then
  8369. shavedir="$ac_pwd/build"
  8370.  
  8371.  
  8372. MAKEFLAGS=-s
  8373.  
  8374. AM_MAKEFLAGS='`test -z $V && echo -s`'
  8375.  
  8376.  
  8377. # Extract the first word of "sed", so it can be a program name with args.
  8378. set dummy sed; ac_word=$2
  8379. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8380. $as_echo_n "checking for $ac_word... " >&6; }
  8381. if test "${ac_cv_prog_SED+set}" = set; then
  8382. $as_echo_n "(cached) " >&6
  8383. else
  8384. if test -n "$SED"; then
  8385. ac_cv_prog_SED="$SED" # Let the user override the test.
  8386. else
  8387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8388. for as_dir in $PATH
  8389. do
  8390. IFS=$as_save_IFS
  8391. test -z "$as_dir" && as_dir=.
  8392. for ac_exec_ext in '' $ac_executable_extensions; do
  8393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8394. ac_cv_prog_SED="sed"
  8395. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8396. break 2
  8397. fi
  8398. done
  8399. done
  8400. IFS=$as_save_IFS
  8401.  
  8402. test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
  8403. fi
  8404. fi
  8405. SED=$ac_cv_prog_SED
  8406. if test -n "$SED"; then
  8407. { $as_echo "$as_me:$LINENO: result: $SED" >&5
  8408. $as_echo "$SED" >&6; }
  8409. else
  8410. { $as_echo "$as_me:$LINENO: result: no" >&5
  8411. $as_echo "no" >&6; }
  8412. fi
  8413.  
  8414.  
  8415.  
  8416.  
  8417. SHAVE_SAVED_CC=$CC
  8418. SHAVE_SAVED_CXX=$CXX
  8419. SHAVE_SAVED_FC=$FC
  8420. SHAVE_SAVED_F77=$F77
  8421. SHAVE_SAVED_OBJC=$OBJC
  8422. SHAVE_SAVED_MCS=$MCS
  8423. CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
  8424. CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
  8425. FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
  8426. F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
  8427. OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
  8428. MCS="${SHELL} ${shavedir}/shave mcs ${SHAVE_SAVED_MCS}"
  8429.  
  8430.  
  8431.  
  8432.  
  8433.  
  8434.  
  8435.  
  8436. V=@
  8437. else
  8438. V=1
  8439. fi
  8440. Q='$(V:1=)'
  8441.  
  8442.  
  8443.  
  8444. ac_config_files="$ac_config_files Makefile lib/Makefile lib/csparse/Makefile lib/lua/Makefile src/Makefile src/tk/Makefile src/tk/widget/Makefile build/shave"
  8445.  
  8446. if test "$have_utils" = "yes"; then
  8447.  
  8448. ac_config_files="$ac_config_files utils/Makefile utils/pack/Makefile"
  8449.  
  8450.  
  8451. fi
  8452.  
  8453. if test "$have_docs" = "yes"; then
  8454.  
  8455. ac_config_files="$ac_config_files docs/Makefile"
  8456.  
  8457.  
  8458. fi
  8459.  
  8460.  
  8461. cat >confcache <<\_ACEOF
  8462. # This file is a shell script that caches the results of configure
  8463. # tests run on this system so they can be shared between configure
  8464. # scripts and configure runs, see configure's option --config-cache.
  8465. # It is not useful on other systems. If it contains results you don't
  8466. # want to keep, you may remove or edit it.
  8467. #
  8468. # config.status only pays attention to the cache file if you give it
  8469. # the --recheck option to rerun configure.
  8470. #
  8471. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8472. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8473. # following values.
  8474.  
  8475. _ACEOF
  8476.  
  8477. # The following way of writing the cache mishandles newlines in values,
  8478. # but we know of no workaround that is simple, portable, and efficient.
  8479. # So, we kill variables containing newlines.
  8480. # Ultrix sh set writes to stderr and can't be redirected directly,
  8481. # and sets the high bit in the cache file unless we assign to the vars.
  8482. (
  8483. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8484. eval ac_val=\$$ac_var
  8485. case $ac_val in #(
  8486. *${as_nl}*)
  8487. case $ac_var in #(
  8488. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  8489. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8490. esac
  8491. case $ac_var in #(
  8492. _ | IFS | as_nl) ;; #(
  8493. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8494. *) $as_unset $ac_var ;;
  8495. esac ;;
  8496. esac
  8497. done
  8498.  
  8499. (set) 2>&1 |
  8500. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8501. *${as_nl}ac_space=\ *)
  8502. # `set' does not quote correctly, so add quotes (double-quote
  8503. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8504. sed -n \
  8505. "s/'/'\\\\''/g;
  8506. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8507. ;; #(
  8508. *)
  8509. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8510. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8511. ;;
  8512. esac |
  8513. sort
  8514. ) |
  8515. sed '
  8516. /^ac_cv_env_/b end
  8517. t clear
  8518. :clear
  8519. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8520. t end
  8521. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8522. :end' >>confcache
  8523. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8524. if test -w "$cache_file"; then
  8525. test "x$cache_file" != "x/dev/null" &&
  8526. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  8527. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8528. cat confcache >$cache_file
  8529. else
  8530. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  8531. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8532. fi
  8533. fi
  8534. rm -f confcache
  8535.  
  8536. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8537. # Let make expand exec_prefix.
  8538. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8539.  
  8540. DEFS=-DHAVE_CONFIG_H
  8541.  
  8542. ac_libobjs=
  8543. ac_ltlibobjs=
  8544. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8545. # 1. Remove the extension, and $U if already installed.
  8546. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8547. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8548. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8549. # will be set to the directory where LIBOBJS objects are built.
  8550. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8551. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  8552. done
  8553. LIBOBJS=$ac_libobjs
  8554.  
  8555. LTLIBOBJS=$ac_ltlibobjs
  8556.  
  8557.  
  8558. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8559. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  8560. Usually this means the macro was only invoked conditionally." >&5
  8561. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  8562. Usually this means the macro was only invoked conditionally." >&2;}
  8563. { (exit 1); exit 1; }; }
  8564. fi
  8565. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8566. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  8567. Usually this means the macro was only invoked conditionally." >&5
  8568. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  8569. Usually this means the macro was only invoked conditionally." >&2;}
  8570. { (exit 1); exit 1; }; }
  8571. fi
  8572. if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
  8573. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_WINDRES\" was never defined.
  8574. Usually this means the macro was only invoked conditionally." >&5
  8575. $as_echo "$as_me: error: conditional \"HAVE_WINDRES\" was never defined.
  8576. Usually this means the macro was only invoked conditionally." >&2;}
  8577. { (exit 1); exit 1; }; }
  8578. fi
  8579. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  8580. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
  8581. Usually this means the macro was only invoked conditionally." >&5
  8582. $as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
  8583. Usually this means the macro was only invoked conditionally." >&2;}
  8584. { (exit 1); exit 1; }; }
  8585. fi
  8586. if test -z "${HAVE_LUADOC_TRUE}" && test -z "${HAVE_LUADOC_FALSE}"; then
  8587. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LUADOC\" was never defined.
  8588. Usually this means the macro was only invoked conditionally." >&5
  8589. $as_echo "$as_me: error: conditional \"HAVE_LUADOC\" was never defined.
  8590. Usually this means the macro was only invoked conditionally." >&2;}
  8591. { (exit 1); exit 1; }; }
  8592. fi
  8593. if test -z "${HAVE_UTILS_TRUE}" && test -z "${HAVE_UTILS_FALSE}"; then
  8594. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UTILS\" was never defined.
  8595. Usually this means the macro was only invoked conditionally." >&5
  8596. $as_echo "$as_me: error: conditional \"HAVE_UTILS\" was never defined.
  8597. Usually this means the macro was only invoked conditionally." >&2;}
  8598. { (exit 1); exit 1; }; }
  8599. fi
  8600. if test -z "${HAVE_DOCS_TRUE}" && test -z "${HAVE_DOCS_FALSE}"; then
  8601. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOCS\" was never defined.
  8602. Usually this means the macro was only invoked conditionally." >&5
  8603. $as_echo "$as_me: error: conditional \"HAVE_DOCS\" was never defined.
  8604. Usually this means the macro was only invoked conditionally." >&2;}
  8605. { (exit 1); exit 1; }; }
  8606. fi
  8607. if test -z "${HAVE_SDLIMAGE_TRUE}" && test -z "${HAVE_SDLIMAGE_FALSE}"; then
  8608. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SDLIMAGE\" was never defined.
  8609. Usually this means the macro was only invoked conditionally." >&5
  8610. $as_echo "$as_me: error: conditional \"HAVE_SDLIMAGE\" was never defined.
  8611. Usually this means the macro was only invoked conditionally." >&2;}
  8612. { (exit 1); exit 1; }; }
  8613. fi
  8614.  
  8615. : ${CONFIG_STATUS=./config.status}
  8616. ac_write_fail=0
  8617. ac_clean_files_save=$ac_clean_files
  8618. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8619. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8620. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8621. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8622. #! $SHELL
  8623. # Generated by $as_me.
  8624. # Run this file to recreate the current configuration.
  8625. # Compiler output produced by configure, useful for debugging
  8626. # configure, is in config.log if it exists.
  8627.  
  8628. debug=false
  8629. ac_cs_recheck=false
  8630. ac_cs_silent=false
  8631. SHELL=\${CONFIG_SHELL-$SHELL}
  8632. _ACEOF
  8633.  
  8634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8635. ## --------------------- ##
  8636. ## M4sh Initialization. ##
  8637. ## --------------------- ##
  8638.  
  8639. # Be more Bourne compatible
  8640. DUALCASE=1; export DUALCASE # for MKS sh
  8641. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8642. emulate sh
  8643. NULLCMD=:
  8644. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8645. # is contrary to our usage. Disable this feature.
  8646. alias -g '${1+"$@"}'='"$@"'
  8647. setopt NO_GLOB_SUBST
  8648. else
  8649. case `(set -o) 2>/dev/null` in
  8650. *posix*) set -o posix ;;
  8651. esac
  8652.  
  8653. fi
  8654.  
  8655.  
  8656.  
  8657.  
  8658. # PATH needs CR
  8659. # Avoid depending upon Character Ranges.
  8660. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8661. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8662. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8663. as_cr_digits='0123456789'
  8664. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8665.  
  8666. as_nl='
  8667. '
  8668. export as_nl
  8669. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8670. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8671. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8672. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8673. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8674. as_echo='printf %s\n'
  8675. as_echo_n='printf %s'
  8676. else
  8677. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8678. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8679. as_echo_n='/usr/ucb/echo -n'
  8680. else
  8681. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8682. as_echo_n_body='eval
  8683. arg=$1;
  8684. case $arg in
  8685. *"$as_nl"*)
  8686. expr "X$arg" : "X\\(.*\\)$as_nl";
  8687. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8688. esac;
  8689. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8690. '
  8691. export as_echo_n_body
  8692. as_echo_n='sh -c $as_echo_n_body as_echo'
  8693. fi
  8694. export as_echo_body
  8695. as_echo='sh -c $as_echo_body as_echo'
  8696. fi
  8697.  
  8698. # The user is always right.
  8699. if test "${PATH_SEPARATOR+set}" != set; then
  8700. PATH_SEPARATOR=:
  8701. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8702. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8703. PATH_SEPARATOR=';'
  8704. }
  8705. fi
  8706.  
  8707. # Support unset when possible.
  8708. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8709. as_unset=unset
  8710. else
  8711. as_unset=false
  8712. fi
  8713.  
  8714.  
  8715. # IFS
  8716. # We need space, tab and new line, in precisely that order. Quoting is
  8717. # there to prevent editors from complaining about space-tab.
  8718. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8719. # splitting by setting IFS to empty value.)
  8720. IFS=" "" $as_nl"
  8721.  
  8722. # Find who we are. Look in the path if we contain no directory separator.
  8723. case $0 in
  8724. *[\\/]* ) as_myself=$0 ;;
  8725. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8726. for as_dir in $PATH
  8727. do
  8728. IFS=$as_save_IFS
  8729. test -z "$as_dir" && as_dir=.
  8730. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8731. done
  8732. IFS=$as_save_IFS
  8733.  
  8734. ;;
  8735. esac
  8736. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8737. # in which case we are not to be found in the path.
  8738. if test "x$as_myself" = x; then
  8739. as_myself=$0
  8740. fi
  8741. if test ! -f "$as_myself"; then
  8742. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8743. { (exit 1); exit 1; }
  8744. fi
  8745.  
  8746. # Work around bugs in pre-3.0 UWIN ksh.
  8747. for as_var in ENV MAIL MAILPATH
  8748. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8749. done
  8750. PS1='$ '
  8751. PS2='> '
  8752. PS4='+ '
  8753.  
  8754. # NLS nuisances.
  8755. LC_ALL=C
  8756. export LC_ALL
  8757. LANGUAGE=C
  8758. export LANGUAGE
  8759.  
  8760. # Required to use basename.
  8761. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8762. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8763. as_expr=expr
  8764. else
  8765. as_expr=false
  8766. fi
  8767.  
  8768. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8769. as_basename=basename
  8770. else
  8771. as_basename=false
  8772. fi
  8773.  
  8774.  
  8775. # Name of the executable.
  8776. as_me=`$as_basename -- "$0" ||
  8777. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8778. X"$0" : 'X\(//\)$' \| \
  8779. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8780. $as_echo X/"$0" |
  8781. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8782. s//\1/
  8783. q
  8784. }
  8785. /^X\/\(\/\/\)$/{
  8786. s//\1/
  8787. q
  8788. }
  8789. /^X\/\(\/\).*/{
  8790. s//\1/
  8791. q
  8792. }
  8793. s/.*/./; q'`
  8794.  
  8795. # CDPATH.
  8796. $as_unset CDPATH
  8797.  
  8798.  
  8799.  
  8800. as_lineno_1=$LINENO
  8801. as_lineno_2=$LINENO
  8802. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8803. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  8804.  
  8805. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8806. # uniformly replaced by the line number. The first 'sed' inserts a
  8807. # line-number line after each line using $LINENO; the second 'sed'
  8808. # does the real work. The second script uses 'N' to pair each
  8809. # line-number line with the line containing $LINENO, and appends
  8810. # trailing '-' during substitution so that $LINENO is not a special
  8811. # case at line end.
  8812. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8813. # scripts with optimization help from Paolo Bonzini. Blame Lee
  8814. # E. McMahon (1931-1989) for sed's syntax. :-)
  8815. sed -n '
  8816. p
  8817. /[$]LINENO/=
  8818. ' <$as_myself |
  8819. sed '
  8820. s/[$]LINENO.*/&-/
  8821. t lineno
  8822. b
  8823. :lineno
  8824. N
  8825. :loop
  8826. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8827. t loop
  8828. s/-\n.*//
  8829. ' >$as_me.lineno &&
  8830. chmod +x "$as_me.lineno" ||
  8831. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8832. { (exit 1); exit 1; }; }
  8833.  
  8834. # Don't try to exec as it changes $[0], causing all sort of problems
  8835. # (the dirname of $[0] is not the place where we might find the
  8836. # original and so on. Autoconf is especially sensitive to this).
  8837. . "./$as_me.lineno"
  8838. # Exit status is that of the last command.
  8839. exit
  8840. }
  8841.  
  8842.  
  8843. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8844. as_dirname=dirname
  8845. else
  8846. as_dirname=false
  8847. fi
  8848.  
  8849. ECHO_C= ECHO_N= ECHO_T=
  8850. case `echo -n x` in
  8851. -n*)
  8852. case `echo 'x\c'` in
  8853. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8854. *) ECHO_C='\c';;
  8855. esac;;
  8856. *)
  8857. ECHO_N='-n';;
  8858. esac
  8859. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8860. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8861. as_expr=expr
  8862. else
  8863. as_expr=false
  8864. fi
  8865.  
  8866. rm -f conf$$ conf$$.exe conf$$.file
  8867. if test -d conf$$.dir; then
  8868. rm -f conf$$.dir/conf$$.file
  8869. else
  8870. rm -f conf$$.dir
  8871. mkdir conf$$.dir 2>/dev/null
  8872. fi
  8873. if (echo >conf$$.file) 2>/dev/null; then
  8874. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8875. as_ln_s='ln -s'
  8876. # ... but there are two gotchas:
  8877. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8878. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8879. # In both cases, we have to default to `cp -p'.
  8880. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8881. as_ln_s='cp -p'
  8882. elif ln conf$$.file conf$$ 2>/dev/null; then
  8883. as_ln_s=ln
  8884. else
  8885. as_ln_s='cp -p'
  8886. fi
  8887. else
  8888. as_ln_s='cp -p'
  8889. fi
  8890. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8891. rmdir conf$$.dir 2>/dev/null
  8892.  
  8893. if mkdir -p . 2>/dev/null; then
  8894. as_mkdir_p=:
  8895. else
  8896. test -d ./-p && rmdir ./-p
  8897. as_mkdir_p=false
  8898. fi
  8899.  
  8900. if test -x / >/dev/null 2>&1; then
  8901. as_test_x='test -x'
  8902. else
  8903. if ls -dL / >/dev/null 2>&1; then
  8904. as_ls_L_option=L
  8905. else
  8906. as_ls_L_option=
  8907. fi
  8908. as_test_x='
  8909. eval sh -c '\''
  8910. if test -d "$1"; then
  8911. test -d "$1/.";
  8912. else
  8913. case $1 in
  8914. -*)set "./$1";;
  8915. esac;
  8916. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  8917. ???[sx]*):;;*)false;;esac;fi
  8918. '\'' sh
  8919. '
  8920. fi
  8921. as_executable_p=$as_test_x
  8922.  
  8923. # Sed expression to map a string onto a valid CPP name.
  8924. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8925.  
  8926. # Sed expression to map a string onto a valid variable name.
  8927. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8928.  
  8929.  
  8930. exec 6>&1
  8931.  
  8932. # Save the log message, to keep $[0] and so on meaningful, and to
  8933. # report actual input values of CONFIG_FILES etc. instead of their
  8934. # values after options handling.
  8935. ac_log="
  8936. This file was extended by naev $as_me 0.5.-1, which was
  8937. generated by GNU Autoconf 2.63. Invocation command line was
  8938.  
  8939. CONFIG_FILES = $CONFIG_FILES
  8940. CONFIG_HEADERS = $CONFIG_HEADERS
  8941. CONFIG_LINKS = $CONFIG_LINKS
  8942. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8943. $ $0 $@
  8944.  
  8945. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8946. "
  8947.  
  8948. _ACEOF
  8949.  
  8950. case $ac_config_files in *"
  8951. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8952. esac
  8953.  
  8954. case $ac_config_headers in *"
  8955. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8956. esac
  8957.  
  8958.  
  8959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8960. # Files that config.status was made for.
  8961. config_files="$ac_config_files"
  8962. config_headers="$ac_config_headers"
  8963. config_commands="$ac_config_commands"
  8964.  
  8965. _ACEOF
  8966.  
  8967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8968. ac_cs_usage="\
  8969. \`$as_me' instantiates files from templates according to the
  8970. current configuration.
  8971.  
  8972. Usage: $0 [OPTION]... [FILE]...
  8973.  
  8974. -h, --help print this help, then exit
  8975. -V, --version print version number and configuration settings, then exit
  8976. -q, --quiet, --silent
  8977. do not print progress messages
  8978. -d, --debug don't remove temporary files
  8979. --recheck update $as_me by reconfiguring in the same conditions
  8980. --file=FILE[:TEMPLATE]
  8981. instantiate the configuration file FILE
  8982. --header=FILE[:TEMPLATE]
  8983. instantiate the configuration header FILE
  8984.  
  8985. Configuration files:
  8986. $config_files
  8987.  
  8988. Configuration headers:
  8989. $config_headers
  8990.  
  8991. Configuration commands:
  8992. $config_commands
  8993.  
  8994. Report bugs to <bug-autoconf@gnu.org>."
  8995.  
  8996. _ACEOF
  8997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8998. ac_cs_version="\\
  8999. naev config.status 0.5.-1
  9000. configured by $0, generated by GNU Autoconf 2.63,
  9001. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  9002.  
  9003. Copyright (C) 2008 Free Software Foundation, Inc.
  9004. This config.status script is free software; the Free Software Foundation
  9005. gives unlimited permission to copy, distribute and modify it."
  9006.  
  9007. ac_pwd='$ac_pwd'
  9008. srcdir='$srcdir'
  9009. INSTALL='$INSTALL'
  9010. MKDIR_P='$MKDIR_P'
  9011. AWK='$AWK'
  9012. test -n "\$AWK" || AWK=awk
  9013. _ACEOF
  9014.  
  9015. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9016. # The default lists apply if the user does not specify any file.
  9017. ac_need_defaults=:
  9018. while test $# != 0
  9019. do
  9020. case $1 in
  9021. --*=*)
  9022. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9023. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9024. ac_shift=:
  9025. ;;
  9026. *)
  9027. ac_option=$1
  9028. ac_optarg=$2
  9029. ac_shift=shift
  9030. ;;
  9031. esac
  9032.  
  9033. case $ac_option in
  9034. # Handling of the options.
  9035. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9036. ac_cs_recheck=: ;;
  9037. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9038. $as_echo "$ac_cs_version"; exit ;;
  9039. --debug | --debu | --deb | --de | --d | -d )
  9040. debug=: ;;
  9041. --file | --fil | --fi | --f )
  9042. $ac_shift
  9043. case $ac_optarg in
  9044. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9045. esac
  9046. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  9047. ac_need_defaults=false;;
  9048. --header | --heade | --head | --hea )
  9049. $ac_shift
  9050. case $ac_optarg in
  9051. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9052. esac
  9053. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  9054. ac_need_defaults=false;;
  9055. --he | --h)
  9056. # Conflict between --help and --header
  9057. { $as_echo "$as_me: error: ambiguous option: $1
  9058. Try \`$0 --help' for more information." >&2
  9059. { (exit 1); exit 1; }; };;
  9060. --help | --hel | -h )
  9061. $as_echo "$ac_cs_usage"; exit ;;
  9062. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9063. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9064. ac_cs_silent=: ;;
  9065.  
  9066. # This is an error.
  9067. -*) { $as_echo "$as_me: error: unrecognized option: $1
  9068. Try \`$0 --help' for more information." >&2
  9069. { (exit 1); exit 1; }; } ;;
  9070.  
  9071. *) ac_config_targets="$ac_config_targets $1"
  9072. ac_need_defaults=false ;;
  9073.  
  9074. esac
  9075. shift
  9076. done
  9077.  
  9078. ac_configure_extra_args=
  9079.  
  9080. if $ac_cs_silent; then
  9081. exec 6>/dev/null
  9082. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9083. fi
  9084.  
  9085. _ACEOF
  9086. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9087. if \$ac_cs_recheck; then
  9088. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9089. shift
  9090. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9091. CONFIG_SHELL='$SHELL'
  9092. export CONFIG_SHELL
  9093. exec "\$@"
  9094. fi
  9095.  
  9096. _ACEOF
  9097. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9098. exec 5>>config.log
  9099. {
  9100. echo
  9101. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9102. ## Running $as_me. ##
  9103. _ASBOX
  9104. $as_echo "$ac_log"
  9105. } >&5
  9106.  
  9107. _ACEOF
  9108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9109. #
  9110. # INIT-COMMANDS
  9111. #
  9112. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9113.  
  9114. _ACEOF
  9115.  
  9116. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9117.  
  9118. # Handling of arguments.
  9119. for ac_config_target in $ac_config_targets
  9120. do
  9121. case $ac_config_target in
  9122. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  9123. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9124. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9125. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  9126. "lib/csparse/Makefile") CONFIG_FILES="$CONFIG_FILES lib/csparse/Makefile" ;;
  9127. "lib/lua/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lua/Makefile" ;;
  9128. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9129. "src/tk/Makefile") CONFIG_FILES="$CONFIG_FILES src/tk/Makefile" ;;
  9130. "src/tk/widget/Makefile") CONFIG_FILES="$CONFIG_FILES src/tk/widget/Makefile" ;;
  9131. "build/shave") CONFIG_FILES="$CONFIG_FILES build/shave" ;;
  9132. "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  9133. "utils/pack/Makefile") CONFIG_FILES="$CONFIG_FILES utils/pack/Makefile" ;;
  9134. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  9135.  
  9136. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9137. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9138. { (exit 1); exit 1; }; };;
  9139. esac
  9140. done
  9141.  
  9142.  
  9143. # If the user did not use the arguments to specify the items to instantiate,
  9144. # then the envvar interface is used. Set only those that are not.
  9145. # We use the long form for the default assignment because of an extremely
  9146. # bizarre bug on SunOS 4.1.3.
  9147. if $ac_need_defaults; then
  9148. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9149. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9150. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9151. fi
  9152.  
  9153. # Have a temporary directory for convenience. Make it in the build tree
  9154. # simply because there is no reason against having it here, and in addition,
  9155. # creating and moving files from /tmp can sometimes cause problems.
  9156. # Hook for its removal unless debugging.
  9157. # Note that there is a small window in which the directory will not be cleaned:
  9158. # after its creation but before its name has been assigned to `$tmp'.
  9159. $debug ||
  9160. {
  9161. tmp=
  9162. trap 'exit_status=$?
  9163. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  9164. ' 0
  9165. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9166. }
  9167. # Create a (secure) tmp directory for tmp files.
  9168.  
  9169. {
  9170. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9171. test -n "$tmp" && test -d "$tmp"
  9172. } ||
  9173. {
  9174. tmp=./conf$$-$RANDOM
  9175. (umask 077 && mkdir "$tmp")
  9176. } ||
  9177. {
  9178. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  9179. { (exit 1); exit 1; }
  9180. }
  9181.  
  9182. # Set up the scripts for CONFIG_FILES section.
  9183. # No need to generate them if there are no CONFIG_FILES.
  9184. # This happens for instance with `./config.status config.h'.
  9185. if test -n "$CONFIG_FILES"; then
  9186.  
  9187.  
  9188. ac_cr='
  9189. '
  9190. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9191. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9192. ac_cs_awk_cr='\\r'
  9193. else
  9194. ac_cs_awk_cr=$ac_cr
  9195. fi
  9196.  
  9197. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  9198. _ACEOF
  9199.  
  9200.  
  9201. {
  9202. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9203. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9204. echo "_ACEOF"
  9205. } >conf$$subs.sh ||
  9206. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9207. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9208. { (exit 1); exit 1; }; }
  9209. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  9210. ac_delim='%!_!# '
  9211. for ac_last_try in false false false false false :; do
  9212. . ./conf$$subs.sh ||
  9213. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9214. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9215. { (exit 1); exit 1; }; }
  9216.  
  9217. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9218. if test $ac_delim_n = $ac_delim_num; then
  9219. break
  9220. elif $ac_last_try; then
  9221. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  9222. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  9223. { (exit 1); exit 1; }; }
  9224. else
  9225. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9226. fi
  9227. done
  9228. rm -f conf$$subs.sh
  9229.  
  9230. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9231. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  9232. _ACEOF
  9233. sed -n '
  9234. h
  9235. s/^/S["/; s/!.*/"]=/
  9236. p
  9237. g
  9238. s/^[^!]*!//
  9239. :repl
  9240. t repl
  9241. s/'"$ac_delim"'$//
  9242. t delim
  9243. :nl
  9244. h
  9245. s/\(.\{148\}\).*/\1/
  9246. t more1
  9247. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9248. p
  9249. n
  9250. b repl
  9251. :more1
  9252. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9253. p
  9254. g
  9255. s/.\{148\}//
  9256. t nl
  9257. :delim
  9258. h
  9259. s/\(.\{148\}\).*/\1/
  9260. t more2
  9261. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9262. p
  9263. b
  9264. :more2
  9265. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9266. p
  9267. g
  9268. s/.\{148\}//
  9269. t delim
  9270. ' <conf$$subs.awk | sed '
  9271. /^[^""]/{
  9272. N
  9273. s/\n//
  9274. }
  9275. ' >>$CONFIG_STATUS || ac_write_fail=1
  9276. rm -f conf$$subs.awk
  9277. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9278. _ACAWK
  9279. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  9280. for (key in S) S_is_set[key] = 1
  9281. FS = ""
  9282.  
  9283. }
  9284. {
  9285. line = $ 0
  9286. nfields = split(line, field, "@")
  9287. substed = 0
  9288. len = length(field[1])
  9289. for (i = 2; i < nfields; i++) {
  9290. key = field[i]
  9291. keylen = length(key)
  9292. if (S_is_set[key]) {
  9293. value = S[key]
  9294. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9295. len += length(value) + length(field[++i])
  9296. substed = 1
  9297. } else
  9298. len += 1 + keylen
  9299. }
  9300.  
  9301. print line
  9302. }
  9303.  
  9304. _ACAWK
  9305. _ACEOF
  9306. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9307. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9308. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9309. else
  9310. cat
  9311. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  9312. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  9313. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  9314. { (exit 1); exit 1; }; }
  9315. _ACEOF
  9316.  
  9317. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9318. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9319. # trailing colons and then remove the whole line if VPATH becomes empty
  9320. # (actually we leave an empty line to preserve line numbers).
  9321. if test "x$srcdir" = x.; then
  9322. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9323. s/:*\$(srcdir):*/:/
  9324. s/:*\${srcdir}:*/:/
  9325. s/:*@srcdir@:*/:/
  9326. s/^\([^=]*=[ ]*\):*/\1/
  9327. s/:*$//
  9328. s/^[^=]*=[ ]*$//
  9329. }'
  9330. fi
  9331.  
  9332. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9333. fi # test -n "$CONFIG_FILES"
  9334.  
  9335. # Set up the scripts for CONFIG_HEADERS section.
  9336. # No need to generate them if there are no CONFIG_HEADERS.
  9337. # This happens for instance with `./config.status Makefile'.
  9338. if test -n "$CONFIG_HEADERS"; then
  9339. cat >"$tmp/defines.awk" <<\_ACAWK ||
  9340. BEGIN {
  9341. _ACEOF
  9342.  
  9343. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9344. # here-document in config.status, that substitutes the proper values into
  9345. # config.h.in to produce config.h.
  9346.  
  9347. # Create a delimiter string that does not exist in confdefs.h, to ease
  9348. # handling of long lines.
  9349. ac_delim='%!_!# '
  9350. for ac_last_try in false false :; do
  9351. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  9352. if test -z "$ac_t"; then
  9353. break
  9354. elif $ac_last_try; then
  9355. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  9356. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  9357. { (exit 1); exit 1; }; }
  9358. else
  9359. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9360. fi
  9361. done
  9362.  
  9363. # For the awk script, D is an array of macro values keyed by name,
  9364. # likewise P contains macro parameters if any. Preserve backslash
  9365. # newline sequences.
  9366.  
  9367. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9368. sed -n '
  9369. s/.\{148\}/&'"$ac_delim"'/g
  9370. t rset
  9371. :rset
  9372. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9373. t def
  9374. d
  9375. :def
  9376. s/\\$//
  9377. t bsnl
  9378. s/["\\]/\\&/g
  9379. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9380. D["\1"]=" \3"/p
  9381. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9382. d
  9383. :bsnl
  9384. s/["\\]/\\&/g
  9385. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9386. D["\1"]=" \3\\\\\\n"\\/p
  9387. t cont
  9388. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9389. t cont
  9390. d
  9391. :cont
  9392. n
  9393. s/.\{148\}/&'"$ac_delim"'/g
  9394. t clear
  9395. :clear
  9396. s/\\$//
  9397. t bsnlc
  9398. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9399. d
  9400. :bsnlc
  9401. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9402. b cont
  9403. ' <confdefs.h | sed '
  9404. s/'"$ac_delim"'/"\\\
  9405. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9406.  
  9407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9408. for (key in D) D_is_set[key] = 1
  9409. FS = ""
  9410. }
  9411. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9412. line = \$ 0
  9413. split(line, arg, " ")
  9414. if (arg[1] == "#") {
  9415. defundef = arg[2]
  9416. mac1 = arg[3]
  9417. } else {
  9418. defundef = substr(arg[1], 2)
  9419. mac1 = arg[2]
  9420. }
  9421. split(mac1, mac2, "(") #)
  9422. macro = mac2[1]
  9423. prefix = substr(line, 1, index(line, defundef) - 1)
  9424. if (D_is_set[macro]) {
  9425. # Preserve the white space surrounding the "#".
  9426. print prefix "define", macro P[macro] D[macro]
  9427. next
  9428. } else {
  9429. # Replace #undef with comments. This is necessary, for example,
  9430. # in the case of _POSIX_SOURCE, which is predefined and required
  9431. # on some systems where configure will not decide to define it.
  9432. if (defundef == "undef") {
  9433. print "/*", prefix defundef, macro, "*/"
  9434. next
  9435. }
  9436. }
  9437. }
  9438. { print }
  9439. _ACAWK
  9440. _ACEOF
  9441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9442. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  9443. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  9444. { (exit 1); exit 1; }; }
  9445. fi # test -n "$CONFIG_HEADERS"
  9446.  
  9447.  
  9448. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9449. shift
  9450. for ac_tag
  9451. do
  9452. case $ac_tag in
  9453. :[FHLC]) ac_mode=$ac_tag; continue;;
  9454. esac
  9455. case $ac_mode$ac_tag in
  9456. :[FHL]*:*);;
  9457. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  9458. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  9459. { (exit 1); exit 1; }; };;
  9460. :[FH]-) ac_tag=-:-;;
  9461. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9462. esac
  9463. ac_save_IFS=$IFS
  9464. IFS=:
  9465. set x $ac_tag
  9466. IFS=$ac_save_IFS
  9467. shift
  9468. ac_file=$1
  9469. shift
  9470.  
  9471. case $ac_mode in
  9472. :L) ac_source=$1;;
  9473. :[FH])
  9474. ac_file_inputs=
  9475. for ac_f
  9476. do
  9477. case $ac_f in
  9478. -) ac_f="$tmp/stdin";;
  9479. *) # Look for the file first in the build tree, then in the source tree
  9480. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9481. # because $ac_f cannot contain `:'.
  9482. test -f "$ac_f" ||
  9483. case $ac_f in
  9484. [\\/$]*) false;;
  9485. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9486. esac ||
  9487. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  9488. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  9489. { (exit 1); exit 1; }; };;
  9490. esac
  9491. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9492. ac_file_inputs="$ac_file_inputs '$ac_f'"
  9493. done
  9494.  
  9495. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9496. # use $as_me), people would be surprised to read:
  9497. # /* config.h. Generated by config.status. */
  9498. configure_input='Generated from '`
  9499. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9500. `' by configure.'
  9501. if test x"$ac_file" != x-; then
  9502. configure_input="$ac_file. $configure_input"
  9503. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  9504. $as_echo "$as_me: creating $ac_file" >&6;}
  9505. fi
  9506. # Neutralize special characters interpreted by sed in replacement strings.
  9507. case $configure_input in #(
  9508. *\&* | *\|* | *\\* )
  9509. ac_sed_conf_input=`$as_echo "$configure_input" |
  9510. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9511. *) ac_sed_conf_input=$configure_input;;
  9512. esac
  9513.  
  9514. case $ac_tag in
  9515. *:-:* | *:-) cat >"$tmp/stdin" \
  9516. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9517. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9518. { (exit 1); exit 1; }; } ;;
  9519. esac
  9520. ;;
  9521. esac
  9522.  
  9523. ac_dir=`$as_dirname -- "$ac_file" ||
  9524. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9525. X"$ac_file" : 'X\(//\)[^/]' \| \
  9526. X"$ac_file" : 'X\(//\)$' \| \
  9527. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9528. $as_echo X"$ac_file" |
  9529. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9530. s//\1/
  9531. q
  9532. }
  9533. /^X\(\/\/\)[^/].*/{
  9534. s//\1/
  9535. q
  9536. }
  9537. /^X\(\/\/\)$/{
  9538. s//\1/
  9539. q
  9540. }
  9541. /^X\(\/\).*/{
  9542. s//\1/
  9543. q
  9544. }
  9545. s/.*/./; q'`
  9546. { as_dir="$ac_dir"
  9547. case $as_dir in #(
  9548. -*) as_dir=./$as_dir;;
  9549. esac
  9550. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9551. as_dirs=
  9552. while :; do
  9553. case $as_dir in #(
  9554. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9555. *) as_qdir=$as_dir;;
  9556. esac
  9557. as_dirs="'$as_qdir' $as_dirs"
  9558. as_dir=`$as_dirname -- "$as_dir" ||
  9559. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9560. X"$as_dir" : 'X\(//\)[^/]' \| \
  9561. X"$as_dir" : 'X\(//\)$' \| \
  9562. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9563. $as_echo X"$as_dir" |
  9564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9565. s//\1/
  9566. q
  9567. }
  9568. /^X\(\/\/\)[^/].*/{
  9569. s//\1/
  9570. q
  9571. }
  9572. /^X\(\/\/\)$/{
  9573. s//\1/
  9574. q
  9575. }
  9576. /^X\(\/\).*/{
  9577. s//\1/
  9578. q
  9579. }
  9580. s/.*/./; q'`
  9581. test -d "$as_dir" && break
  9582. done
  9583. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9584. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9585. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9586. { (exit 1); exit 1; }; }; }
  9587. ac_builddir=.
  9588.  
  9589. case "$ac_dir" in
  9590. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9591. *)
  9592. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9593. # A ".." for each directory in $ac_dir_suffix.
  9594. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9595. case $ac_top_builddir_sub in
  9596. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9597. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9598. esac ;;
  9599. esac
  9600. ac_abs_top_builddir=$ac_pwd
  9601. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9602. # for backward compatibility:
  9603. ac_top_builddir=$ac_top_build_prefix
  9604.  
  9605. case $srcdir in
  9606. .) # We are building in place.
  9607. ac_srcdir=.
  9608. ac_top_srcdir=$ac_top_builddir_sub
  9609. ac_abs_top_srcdir=$ac_pwd ;;
  9610. [\\/]* | ?:[\\/]* ) # Absolute name.
  9611. ac_srcdir=$srcdir$ac_dir_suffix;
  9612. ac_top_srcdir=$srcdir
  9613. ac_abs_top_srcdir=$srcdir ;;
  9614. *) # Relative name.
  9615. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9616. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9617. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9618. esac
  9619. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9620.  
  9621.  
  9622. case $ac_mode in
  9623. :F)
  9624. #
  9625. # CONFIG_FILE
  9626. #
  9627.  
  9628. case $INSTALL in
  9629. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9630. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9631. esac
  9632. ac_MKDIR_P=$MKDIR_P
  9633. case $MKDIR_P in
  9634. [\\/$]* | ?:[\\/]* ) ;;
  9635. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9636. esac
  9637. _ACEOF
  9638.  
  9639. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9640. # If the template does not know about datarootdir, expand it.
  9641. # FIXME: This hack should be removed a few years after 2.60.
  9642. ac_datarootdir_hack=; ac_datarootdir_seen=
  9643.  
  9644. ac_sed_dataroot='
  9645. /datarootdir/ {
  9646. p
  9647. q
  9648. }
  9649. /@datadir@/p
  9650. /@docdir@/p
  9651. /@infodir@/p
  9652. /@localedir@/p
  9653. /@mandir@/p
  9654. '
  9655. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9656. *datarootdir*) ac_datarootdir_seen=yes;;
  9657. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9658. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9659. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9660. _ACEOF
  9661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9662. ac_datarootdir_hack='
  9663. s&@datadir@&$datadir&g
  9664. s&@docdir@&$docdir&g
  9665. s&@infodir@&$infodir&g
  9666. s&@localedir@&$localedir&g
  9667. s&@mandir@&$mandir&g
  9668. s&\\\${datarootdir}&$datarootdir&g' ;;
  9669. esac
  9670. _ACEOF
  9671.  
  9672. # Neutralize VPATH when `$srcdir' = `.'.
  9673. # Shell code in configure.ac might set extrasub.
  9674. # FIXME: do we really want to maintain this feature?
  9675. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9676. ac_sed_extra="$ac_vpsub
  9677. $extrasub
  9678. _ACEOF
  9679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9680. :t
  9681. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9682. s|@configure_input@|$ac_sed_conf_input|;t t
  9683. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9684. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9685. s&@srcdir@&$ac_srcdir&;t t
  9686. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9687. s&@top_srcdir@&$ac_top_srcdir&;t t
  9688. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9689. s&@builddir@&$ac_builddir&;t t
  9690. s&@abs_builddir@&$ac_abs_builddir&;t t
  9691. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9692. s&@INSTALL@&$ac_INSTALL&;t t
  9693. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9694. $ac_datarootdir_hack
  9695. "
  9696. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  9697. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9698. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9699. { (exit 1); exit 1; }; }
  9700.  
  9701. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9702. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  9703. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  9704. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9705. which seems to be undefined. Please make sure it is defined." >&5
  9706. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9707. which seems to be undefined. Please make sure it is defined." >&2;}
  9708.  
  9709. rm -f "$tmp/stdin"
  9710. case $ac_file in
  9711. -) cat "$tmp/out" && rm -f "$tmp/out";;
  9712. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  9713. esac \
  9714. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9715. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9716. { (exit 1); exit 1; }; }
  9717. ;;
  9718. :H)
  9719. #
  9720. # CONFIG_HEADER
  9721. #
  9722. if test x"$ac_file" != x-; then
  9723. {
  9724. $as_echo "/* $configure_input */" \
  9725. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  9726. } >"$tmp/config.h" \
  9727. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9728. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9729. { (exit 1); exit 1; }; }
  9730. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  9731. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9732. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9733. else
  9734. rm -f "$ac_file"
  9735. mv "$tmp/config.h" "$ac_file" \
  9736. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  9737. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  9738. { (exit 1); exit 1; }; }
  9739. fi
  9740. else
  9741. $as_echo "/* $configure_input */" \
  9742. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  9743. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  9744. $as_echo "$as_me: error: could not create -" >&2;}
  9745. { (exit 1); exit 1; }; }
  9746. fi
  9747. # Compute "$ac_file"'s index in $config_headers.
  9748. _am_arg="$ac_file"
  9749. _am_stamp_count=1
  9750. for _am_header in $config_headers :; do
  9751. case $_am_header in
  9752. $_am_arg | $_am_arg:* )
  9753. break ;;
  9754. * )
  9755. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9756. esac
  9757. done
  9758. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9759. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9760. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9761. X"$_am_arg" : 'X\(//\)$' \| \
  9762. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9763. $as_echo X"$_am_arg" |
  9764. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9765. s//\1/
  9766. q
  9767. }
  9768. /^X\(\/\/\)[^/].*/{
  9769. s//\1/
  9770. q
  9771. }
  9772. /^X\(\/\/\)$/{
  9773. s//\1/
  9774. q
  9775. }
  9776. /^X\(\/\).*/{
  9777. s//\1/
  9778. q
  9779. }
  9780. s/.*/./; q'`/stamp-h$_am_stamp_count
  9781. ;;
  9782.  
  9783. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  9784. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9785. ;;
  9786. esac
  9787.  
  9788.  
  9789. case $ac_file$ac_mode in
  9790. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  9791. # are listed without --file. Let's play safe and only enable the eval
  9792. # if we detect the quoting.
  9793. case $CONFIG_FILES in
  9794. *\'*) eval set x "$CONFIG_FILES" ;;
  9795. *) set x $CONFIG_FILES ;;
  9796. esac
  9797. shift
  9798. for mf
  9799. do
  9800. # Strip MF so we end up with the name of the file.
  9801. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9802. # Check whether this is an Automake generated Makefile or not.
  9803. # We used to match only the files named `Makefile.in', but
  9804. # some people rename them; so instead we look at the file content.
  9805. # Grep'ing the first line is not enough: some people post-process
  9806. # each Makefile.in and add a new line on top of each file to say so.
  9807. # Grep'ing the whole file is not good either: AIX grep has a line
  9808. # limit of 2048, but all sed's we know have understand at least 4000.
  9809. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9810. dirpart=`$as_dirname -- "$mf" ||
  9811. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9812. X"$mf" : 'X\(//\)[^/]' \| \
  9813. X"$mf" : 'X\(//\)$' \| \
  9814. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9815. $as_echo X"$mf" |
  9816. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9817. s//\1/
  9818. q
  9819. }
  9820. /^X\(\/\/\)[^/].*/{
  9821. s//\1/
  9822. q
  9823. }
  9824. /^X\(\/\/\)$/{
  9825. s//\1/
  9826. q
  9827. }
  9828. /^X\(\/\).*/{
  9829. s//\1/
  9830. q
  9831. }
  9832. s/.*/./; q'`
  9833. else
  9834. continue
  9835. fi
  9836. # Extract the definition of DEPDIR, am__include, and am__quote
  9837. # from the Makefile without running `make'.
  9838. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9839. test -z "$DEPDIR" && continue
  9840. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9841. test -z "am__include" && continue
  9842. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9843. # When using ansi2knr, U may be empty or an underscore; expand it
  9844. U=`sed -n 's/^U = //p' < "$mf"`
  9845. # Find all dependency output files, they are included files with
  9846. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9847. # simplest approach to changing $(DEPDIR) to its actual value in the
  9848. # expansion.
  9849. for file in `sed -n "
  9850. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9851. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  9852. # Make sure the directory exists.
  9853. test -f "$dirpart/$file" && continue
  9854. fdir=`$as_dirname -- "$file" ||
  9855. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9856. X"$file" : 'X\(//\)[^/]' \| \
  9857. X"$file" : 'X\(//\)$' \| \
  9858. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9859. $as_echo X"$file" |
  9860. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9861. s//\1/
  9862. q
  9863. }
  9864. /^X\(\/\/\)[^/].*/{
  9865. s//\1/
  9866. q
  9867. }
  9868. /^X\(\/\/\)$/{
  9869. s//\1/
  9870. q
  9871. }
  9872. /^X\(\/\).*/{
  9873. s//\1/
  9874. q
  9875. }
  9876. s/.*/./; q'`
  9877. { as_dir=$dirpart/$fdir
  9878. case $as_dir in #(
  9879. -*) as_dir=./$as_dir;;
  9880. esac
  9881. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  9882. as_dirs=
  9883. while :; do
  9884. case $as_dir in #(
  9885. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9886. *) as_qdir=$as_dir;;
  9887. esac
  9888. as_dirs="'$as_qdir' $as_dirs"
  9889. as_dir=`$as_dirname -- "$as_dir" ||
  9890. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9891. X"$as_dir" : 'X\(//\)[^/]' \| \
  9892. X"$as_dir" : 'X\(//\)$' \| \
  9893. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9894. $as_echo X"$as_dir" |
  9895. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9896. s//\1/
  9897. q
  9898. }
  9899. /^X\(\/\/\)[^/].*/{
  9900. s//\1/
  9901. q
  9902. }
  9903. /^X\(\/\/\)$/{
  9904. s//\1/
  9905. q
  9906. }
  9907. /^X\(\/\).*/{
  9908. s//\1/
  9909. q
  9910. }
  9911. s/.*/./; q'`
  9912. test -d "$as_dir" && break
  9913. done
  9914. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9915. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  9916. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  9917. { (exit 1); exit 1; }; }; }
  9918. # echo "creating $dirpart/$file"
  9919. echo '# dummy' > "$dirpart/$file"
  9920. done
  9921. done
  9922. ;;
  9923.  
  9924. esac
  9925. done # for ac_tag
  9926.  
  9927.  
  9928. { (exit 0); exit 0; }
  9929. _ACEOF
  9930. chmod +x $CONFIG_STATUS
  9931. ac_clean_files=$ac_clean_files_save
  9932.  
  9933. test $ac_write_fail = 0 ||
  9934. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  9935. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  9936. { (exit 1); exit 1; }; }
  9937.  
  9938.  
  9939. # configure is writing to config.log, and then calls config.status.
  9940. # config.status does its own redirection, appending to config.log.
  9941. # Unfortunately, on DOS this fails, as config.log is still kept open
  9942. # by configure, so config.status won't be able to write to it; its
  9943. # output is simply discarded. So we exec the FD to /dev/null,
  9944. # effectively closing config.log, so it can be properly (re)opened and
  9945. # appended to by config.status. When coming back to configure, we
  9946. # need to make the FD available again.
  9947. if test "$no_create" != yes; then
  9948. ac_cs_success=:
  9949. ac_config_status_args=
  9950. test "$silent" = yes &&
  9951. ac_config_status_args="$ac_config_status_args --quiet"
  9952. exec 5>/dev/null
  9953. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9954. exec 5>>config.log
  9955. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9956. # would make configure fail if this is the last instruction.
  9957. $ac_cs_success || { (exit 1); exit 1; }
  9958. fi
  9959. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9960. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9961. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9962. fi
  9963.  
  9964.  
  9965. echo
  9966. { $as_echo "$as_me:$LINENO: prefix: $prefix" >&5
  9967. $as_echo "$as_me: prefix: $prefix" >&6;}
  9968. { $as_echo "$as_me:$LINENO: ndata: $ndata_path" >&5
  9969. $as_echo "$as_me: ndata: $ndata_path" >&6;}
  9970. { $as_echo "$as_me:$LINENO: prefsdir: $prefsdir" >&5
  9971. $as_echo "$as_me: prefsdir: $prefsdir" >&6;}
  9972. echo
  9973. { $as_echo "$as_me:$LINENO: sound backends:" >&5
  9974. $as_echo "$as_me: sound backends:" >&6;}
  9975. { $as_echo "$as_me:$LINENO: OpenAL: $have_openal" >&5
  9976. $as_echo "$as_me: OpenAL: $have_openal" >&6;}
  9977. { $as_echo "$as_me:$LINENO: SDL_mixer: $have_sdlmixer" >&5
  9978. $as_echo "$as_me: SDL_mixer: $have_sdlmixer" >&6;}
  9979. echo
  9980. { $as_echo "$as_me:$LINENO: debug mode: $enable_debug" >&5
  9981. $as_echo "$as_me: debug mode: $enable_debug" >&6;}
  9982. if test "$enable_debug" != "no"; then
  9983.  
  9984. case "$host" in
  9985. *-linux*)
  9986. { $as_echo "$as_me:$LINENO: bfd: $have_bfd" >&5
  9987. $as_echo "$as_me: bfd: $have_bfd" >&6;}
  9988. ;;
  9989. esac
  9990.  
  9991. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement