🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5136 lines
144 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  185. if (eval "$as_required") 2>/dev/null; then :
  186. as_have_required=yes
  187. else
  188. as_have_required=no
  189. fi
  190. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  191. else
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. as_found=false
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir/$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  206. CONFIG_SHELL=$as_shell as_have_required=yes
  207. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  216. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi; }
  219. IFS=$as_save_IFS
  220. if test "x$CONFIG_SHELL" != x; then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno; then :
  242. $as_echo "$0: This script requires a shell more modern than all"
  243. $as_echo "$0: the shells that I found on your system."
  244. if test x${ZSH_VERSION+set} = xset ; then
  245. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_mkdir_p
  290. # -------------
  291. # Create "$as_dir" as a directory, including parents if necessary.
  292. as_fn_mkdir_p ()
  293. {
  294. case $as_dir in #(
  295. -*) as_dir=./$as_dir;;
  296. esac
  297. test -d "$as_dir" || eval $as_mkdir_p || {
  298. as_dirs=
  299. while :; do
  300. case $as_dir in #(
  301. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  302. *) as_qdir=$as_dir;;
  303. esac
  304. as_dirs="'$as_qdir' $as_dirs"
  305. as_dir=`$as_dirname -- "$as_dir" ||
  306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  307. X"$as_dir" : 'X\(//\)[^/]' \| \
  308. X"$as_dir" : 'X\(//\)$' \| \
  309. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  310. $as_echo X"$as_dir" |
  311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  312. s//\1/
  313. q
  314. }
  315. /^X\(\/\/\)[^/].*/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\).*/{
  324. s//\1/
  325. q
  326. }
  327. s/.*/./; q'`
  328. test -d "$as_dir" && break
  329. done
  330. test -z "$as_dirs" || eval "mkdir $as_dirs"
  331. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  332. } # as_fn_mkdir_p
  333. # as_fn_executable_p FILE
  334. # -----------------------
  335. # Test if FILE is an executable regular file.
  336. as_fn_executable_p ()
  337. {
  338. test -f "$1" && test -x "$1"
  339. } # as_fn_executable_p
  340. # as_fn_append VAR VALUE
  341. # ----------------------
  342. # Append the text in VALUE to the end of the definition contained in VAR. Take
  343. # advantage of any shell optimizations that allow amortized linear growth over
  344. # repeated appends, instead of the typical quadratic growth present in naive
  345. # implementations.
  346. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  347. eval 'as_fn_append ()
  348. {
  349. eval $1+=\$2
  350. }'
  351. else
  352. as_fn_append ()
  353. {
  354. eval $1=\$$1\$2
  355. }
  356. fi # as_fn_append
  357. # as_fn_arith ARG...
  358. # ------------------
  359. # Perform arithmetic evaluation on the ARGs, and store the result in the
  360. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361. # must be portable across $(()) and expr.
  362. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363. eval 'as_fn_arith ()
  364. {
  365. as_val=$(( $* ))
  366. }'
  367. else
  368. as_fn_arith ()
  369. {
  370. as_val=`expr "$@" || test $? -eq 1`
  371. }
  372. fi # as_fn_arith
  373. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  374. # ----------------------------------------
  375. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  376. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  377. # script with STATUS, using 1 if that was 0.
  378. as_fn_error ()
  379. {
  380. as_status=$1; test $as_status -eq 0 && as_status=1
  381. if test "$4"; then
  382. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  383. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  384. fi
  385. $as_echo "$as_me: error: $2" >&2
  386. as_fn_exit $as_status
  387. } # as_fn_error
  388. if expr a : '\(a\)' >/dev/null 2>&1 &&
  389. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  390. as_expr=expr
  391. else
  392. as_expr=false
  393. fi
  394. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  395. as_basename=basename
  396. else
  397. as_basename=false
  398. fi
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. as_me=`$as_basename -- "$0" ||
  405. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406. X"$0" : 'X\(//\)$' \| \
  407. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408. $as_echo X/"$0" |
  409. sed '/^.*\/\([^/][^/]*\)\/*$/{
  410. s//\1/
  411. q
  412. }
  413. /^X\/\(\/\/\)$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\).*/{
  418. s//\1/
  419. q
  420. }
  421. s/.*/./; q'`
  422. # Avoid depending upon Character Ranges.
  423. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  424. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  425. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  426. as_cr_digits='0123456789'
  427. as_cr_alnum=$as_cr_Letters$as_cr_digits
  428. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  429. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  430. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  431. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  432. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  433. sed -n '
  434. p
  435. /[$]LINENO/=
  436. ' <$as_myself |
  437. sed '
  438. s/[$]LINENO.*/&-/
  439. t lineno
  440. b
  441. :lineno
  442. N
  443. :loop
  444. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  445. t loop
  446. s/-\n.*//
  447. ' >$as_me.lineno &&
  448. chmod +x "$as_me.lineno" ||
  449. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  450. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  451. # already done that, so ensure we don't try to do so again and fall
  452. # in an infinite loop. This has already happened in practice.
  453. _as_can_reexec=no; export _as_can_reexec
  454. # Don't try to exec as it changes $[0], causing all sort of problems
  455. # (the dirname of $[0] is not the place where we might find the
  456. # original and so on. Autoconf is especially sensitive to this).
  457. . "./$as_me.lineno"
  458. # Exit status is that of the last command.
  459. exit
  460. }
  461. ECHO_C= ECHO_N= ECHO_T=
  462. case `echo -n x` in #(((((
  463. -n*)
  464. case `echo 'xy\c'` in
  465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  466. xy) ECHO_C='\c';;
  467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  468. ECHO_T=' ';;
  469. esac;;
  470. *)
  471. ECHO_N='-n';;
  472. esac
  473. rm -f conf$$ conf$$.exe conf$$.file
  474. if test -d conf$$.dir; then
  475. rm -f conf$$.dir/conf$$.file
  476. else
  477. rm -f conf$$.dir
  478. mkdir conf$$.dir 2>/dev/null
  479. fi
  480. if (echo >conf$$.file) 2>/dev/null; then
  481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s='ln -s'
  483. # ... but there are two gotchas:
  484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  486. # In both cases, we have to default to `cp -pR'.
  487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  488. as_ln_s='cp -pR'
  489. elif ln conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s=ln
  491. else
  492. as_ln_s='cp -pR'
  493. fi
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  498. rmdir conf$$.dir 2>/dev/null
  499. if mkdir -p . 2>/dev/null; then
  500. as_mkdir_p='mkdir -p "$as_dir"'
  501. else
  502. test -d ./-p && rmdir ./-p
  503. as_mkdir_p=false
  504. fi
  505. as_test_x='test -x'
  506. as_executable_p=as_fn_executable_p
  507. # Sed expression to map a string onto a valid CPP name.
  508. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  509. # Sed expression to map a string onto a valid variable name.
  510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  511. test -n "$DJDIR" || exec 7<&0 </dev/null
  512. exec 6>&1
  513. # Name of the host.
  514. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  515. # so uname gets run too.
  516. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  517. #
  518. # Initializations.
  519. #
  520. ac_default_prefix=/usr/local
  521. ac_clean_files=
  522. ac_config_libobj_dir=.
  523. LIBOBJS=
  524. cross_compiling=no
  525. subdirs=
  526. MFLAGS=
  527. MAKEFLAGS=
  528. # Identity of this package.
  529. PACKAGE_NAME=
  530. PACKAGE_TARNAME=
  531. PACKAGE_VERSION=
  532. PACKAGE_STRING=
  533. PACKAGE_BUGREPORT=
  534. PACKAGE_URL=
  535. ac_unique_file="README"
  536. ac_subst_vars='LTLIBOBJS
  537. LIBOBJS
  538. SDL_TTF_LIB
  539. XLIB
  540. GLES2LIB
  541. GLESLIB
  542. GLLIB
  543. OPENGL_TARGETS
  544. OPENGLES2_TARGETS
  545. OPENGLES1_TARGETS
  546. CPP
  547. XMKMF
  548. SDL_CONFIG
  549. SDL_LIBS
  550. SDL_CFLAGS
  551. PKG_CONFIG_LIBDIR
  552. PKG_CONFIG_PATH
  553. PKG_CONFIG
  554. ISUNIX
  555. ISWINDOWS
  556. ISMACOSX
  557. MATHLIB
  558. EXE
  559. OSMESA_CONFIG
  560. OBJEXT
  561. EXEEXT
  562. ac_ct_CC
  563. CPPFLAGS
  564. LDFLAGS
  565. CFLAGS
  566. CC
  567. host_os
  568. host_vendor
  569. host_cpu
  570. host
  571. build_os
  572. build_vendor
  573. build_cpu
  574. build
  575. target_alias
  576. host_alias
  577. build_alias
  578. LIBS
  579. ECHO_T
  580. ECHO_N
  581. ECHO_C
  582. DEFS
  583. mandir
  584. localedir
  585. libdir
  586. psdir
  587. pdfdir
  588. dvidir
  589. htmldir
  590. infodir
  591. docdir
  592. oldincludedir
  593. includedir
  594. localstatedir
  595. sharedstatedir
  596. sysconfdir
  597. datadir
  598. datarootdir
  599. libexecdir
  600. sbindir
  601. bindir
  602. program_transform_name
  603. prefix
  604. exec_prefix
  605. PACKAGE_URL
  606. PACKAGE_BUGREPORT
  607. PACKAGE_STRING
  608. PACKAGE_VERSION
  609. PACKAGE_TARNAME
  610. PACKAGE_NAME
  611. PATH_SEPARATOR
  612. SHELL'
  613. ac_subst_files=''
  614. ac_user_opts='
  615. enable_option_checking
  616. with_sdl_prefix
  617. with_sdl_exec_prefix
  618. enable_sdltest
  619. with_x
  620. '
  621. ac_precious_vars='build_alias
  622. host_alias
  623. target_alias
  624. CC
  625. CFLAGS
  626. LDFLAGS
  627. LIBS
  628. CPPFLAGS
  629. PKG_CONFIG
  630. PKG_CONFIG_PATH
  631. PKG_CONFIG_LIBDIR
  632. SDL_CFLAGS
  633. SDL_LIBS
  634. XMKMF
  635. CPP'
  636. # Initialize some variables set by options.
  637. ac_init_help=
  638. ac_init_version=false
  639. ac_unrecognized_opts=
  640. ac_unrecognized_sep=
  641. # The variables have the same names as the options, with
  642. # dashes changed to underlines.
  643. cache_file=/dev/null
  644. exec_prefix=NONE
  645. no_create=
  646. no_recursion=
  647. prefix=NONE
  648. program_prefix=NONE
  649. program_suffix=NONE
  650. program_transform_name=s,x,x,
  651. silent=
  652. site=
  653. srcdir=
  654. verbose=
  655. x_includes=NONE
  656. x_libraries=NONE
  657. # Installation directory options.
  658. # These are left unexpanded so users can "make install exec_prefix=/foo"
  659. # and all the variables that are supposed to be based on exec_prefix
  660. # by default will actually change.
  661. # Use braces instead of parens because sh, perl, etc. also accept them.
  662. # (The list follows the same order as the GNU Coding Standards.)
  663. bindir='${exec_prefix}/bin'
  664. sbindir='${exec_prefix}/sbin'
  665. libexecdir='${exec_prefix}/libexec'
  666. datarootdir='${prefix}/share'
  667. datadir='${datarootdir}'
  668. sysconfdir='${prefix}/etc'
  669. sharedstatedir='${prefix}/com'
  670. localstatedir='${prefix}/var'
  671. includedir='${prefix}/include'
  672. oldincludedir='/usr/include'
  673. docdir='${datarootdir}/doc/${PACKAGE}'
  674. infodir='${datarootdir}/info'
  675. htmldir='${docdir}'
  676. dvidir='${docdir}'
  677. pdfdir='${docdir}'
  678. psdir='${docdir}'
  679. libdir='${exec_prefix}/lib'
  680. localedir='${datarootdir}/locale'
  681. mandir='${datarootdir}/man'
  682. ac_prev=
  683. ac_dashdash=
  684. for ac_option
  685. do
  686. # If the previous option needs an argument, assign it.
  687. if test -n "$ac_prev"; then
  688. eval $ac_prev=\$ac_option
  689. ac_prev=
  690. continue
  691. fi
  692. case $ac_option in
  693. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  694. *=) ac_optarg= ;;
  695. *) ac_optarg=yes ;;
  696. esac
  697. # Accept the important Cygnus configure options, so we can diagnose typos.
  698. case $ac_dashdash$ac_option in
  699. --)
  700. ac_dashdash=yes ;;
  701. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  702. ac_prev=bindir ;;
  703. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  704. bindir=$ac_optarg ;;
  705. -build | --build | --buil | --bui | --bu)
  706. ac_prev=build_alias ;;
  707. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  708. build_alias=$ac_optarg ;;
  709. -cache-file | --cache-file | --cache-fil | --cache-fi \
  710. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  711. ac_prev=cache_file ;;
  712. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  713. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  714. cache_file=$ac_optarg ;;
  715. --config-cache | -C)
  716. cache_file=config.cache ;;
  717. -datadir | --datadir | --datadi | --datad)
  718. ac_prev=datadir ;;
  719. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  720. datadir=$ac_optarg ;;
  721. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  722. | --dataroo | --dataro | --datar)
  723. ac_prev=datarootdir ;;
  724. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  725. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  726. datarootdir=$ac_optarg ;;
  727. -disable-* | --disable-*)
  728. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  729. # Reject names that are not valid shell variable names.
  730. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  731. as_fn_error $? "invalid feature name: $ac_useropt"
  732. ac_useropt_orig=$ac_useropt
  733. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  734. case $ac_user_opts in
  735. *"
  736. "enable_$ac_useropt"
  737. "*) ;;
  738. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  739. ac_unrecognized_sep=', ';;
  740. esac
  741. eval enable_$ac_useropt=no ;;
  742. -docdir | --docdir | --docdi | --doc | --do)
  743. ac_prev=docdir ;;
  744. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  745. docdir=$ac_optarg ;;
  746. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  747. ac_prev=dvidir ;;
  748. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  749. dvidir=$ac_optarg ;;
  750. -enable-* | --enable-*)
  751. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  752. # Reject names that are not valid shell variable names.
  753. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  754. as_fn_error $? "invalid feature name: $ac_useropt"
  755. ac_useropt_orig=$ac_useropt
  756. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  757. case $ac_user_opts in
  758. *"
  759. "enable_$ac_useropt"
  760. "*) ;;
  761. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  762. ac_unrecognized_sep=', ';;
  763. esac
  764. eval enable_$ac_useropt=\$ac_optarg ;;
  765. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  766. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  767. | --exec | --exe | --ex)
  768. ac_prev=exec_prefix ;;
  769. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  770. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  771. | --exec=* | --exe=* | --ex=*)
  772. exec_prefix=$ac_optarg ;;
  773. -gas | --gas | --ga | --g)
  774. # Obsolete; use --with-gas.
  775. with_gas=yes ;;
  776. -help | --help | --hel | --he | -h)
  777. ac_init_help=long ;;
  778. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  779. ac_init_help=recursive ;;
  780. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  781. ac_init_help=short ;;
  782. -host | --host | --hos | --ho)
  783. ac_prev=host_alias ;;
  784. -host=* | --host=* | --hos=* | --ho=*)
  785. host_alias=$ac_optarg ;;
  786. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  787. ac_prev=htmldir ;;
  788. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  789. | --ht=*)
  790. htmldir=$ac_optarg ;;
  791. -includedir | --includedir | --includedi | --included | --include \
  792. | --includ | --inclu | --incl | --inc)
  793. ac_prev=includedir ;;
  794. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  795. | --includ=* | --inclu=* | --incl=* | --inc=*)
  796. includedir=$ac_optarg ;;
  797. -infodir | --infodir | --infodi | --infod | --info | --inf)
  798. ac_prev=infodir ;;
  799. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  800. infodir=$ac_optarg ;;
  801. -libdir | --libdir | --libdi | --libd)
  802. ac_prev=libdir ;;
  803. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  804. libdir=$ac_optarg ;;
  805. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  806. | --libexe | --libex | --libe)
  807. ac_prev=libexecdir ;;
  808. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  809. | --libexe=* | --libex=* | --libe=*)
  810. libexecdir=$ac_optarg ;;
  811. -localedir | --localedir | --localedi | --localed | --locale)
  812. ac_prev=localedir ;;
  813. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  814. localedir=$ac_optarg ;;
  815. -localstatedir | --localstatedir | --localstatedi | --localstated \
  816. | --localstate | --localstat | --localsta | --localst | --locals)
  817. ac_prev=localstatedir ;;
  818. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  819. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  820. localstatedir=$ac_optarg ;;
  821. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  822. ac_prev=mandir ;;
  823. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  824. mandir=$ac_optarg ;;
  825. -nfp | --nfp | --nf)
  826. # Obsolete; use --without-fp.
  827. with_fp=no ;;
  828. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  829. | --no-cr | --no-c | -n)
  830. no_create=yes ;;
  831. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  832. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  833. no_recursion=yes ;;
  834. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  835. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  836. | --oldin | --oldi | --old | --ol | --o)
  837. ac_prev=oldincludedir ;;
  838. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  839. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  840. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  841. oldincludedir=$ac_optarg ;;
  842. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  843. ac_prev=prefix ;;
  844. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  845. prefix=$ac_optarg ;;
  846. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  847. | --program-pre | --program-pr | --program-p)
  848. ac_prev=program_prefix ;;
  849. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  850. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  851. program_prefix=$ac_optarg ;;
  852. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  853. | --program-suf | --program-su | --program-s)
  854. ac_prev=program_suffix ;;
  855. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  856. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  857. program_suffix=$ac_optarg ;;
  858. -program-transform-name | --program-transform-name \
  859. | --program-transform-nam | --program-transform-na \
  860. | --program-transform-n | --program-transform- \
  861. | --program-transform | --program-transfor \
  862. | --program-transfo | --program-transf \
  863. | --program-trans | --program-tran \
  864. | --progr-tra | --program-tr | --program-t)
  865. ac_prev=program_transform_name ;;
  866. -program-transform-name=* | --program-transform-name=* \
  867. | --program-transform-nam=* | --program-transform-na=* \
  868. | --program-transform-n=* | --program-transform-=* \
  869. | --program-transform=* | --program-transfor=* \
  870. | --program-transfo=* | --program-transf=* \
  871. | --program-trans=* | --program-tran=* \
  872. | --progr-tra=* | --program-tr=* | --program-t=*)
  873. program_transform_name=$ac_optarg ;;
  874. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  875. ac_prev=pdfdir ;;
  876. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  877. pdfdir=$ac_optarg ;;
  878. -psdir | --psdir | --psdi | --psd | --ps)
  879. ac_prev=psdir ;;
  880. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  881. psdir=$ac_optarg ;;
  882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  883. | -silent | --silent | --silen | --sile | --sil)
  884. silent=yes ;;
  885. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  886. ac_prev=sbindir ;;
  887. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  888. | --sbi=* | --sb=*)
  889. sbindir=$ac_optarg ;;
  890. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  891. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  892. | --sharedst | --shareds | --shared | --share | --shar \
  893. | --sha | --sh)
  894. ac_prev=sharedstatedir ;;
  895. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  896. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  897. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  898. | --sha=* | --sh=*)
  899. sharedstatedir=$ac_optarg ;;
  900. -site | --site | --sit)
  901. ac_prev=site ;;
  902. -site=* | --site=* | --sit=*)
  903. site=$ac_optarg ;;
  904. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  905. ac_prev=srcdir ;;
  906. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  907. srcdir=$ac_optarg ;;
  908. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  909. | --syscon | --sysco | --sysc | --sys | --sy)
  910. ac_prev=sysconfdir ;;
  911. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  912. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  913. sysconfdir=$ac_optarg ;;
  914. -target | --target | --targe | --targ | --tar | --ta | --t)
  915. ac_prev=target_alias ;;
  916. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  917. target_alias=$ac_optarg ;;
  918. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  919. verbose=yes ;;
  920. -version | --version | --versio | --versi | --vers | -V)
  921. ac_init_version=: ;;
  922. -with-* | --with-*)
  923. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926. as_fn_error $? "invalid package name: $ac_useropt"
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "with_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval with_$ac_useropt=\$ac_optarg ;;
  937. -without-* | --without-*)
  938. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  939. # Reject names that are not valid shell variable names.
  940. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  941. as_fn_error $? "invalid package name: $ac_useropt"
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "with_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval with_$ac_useropt=no ;;
  952. --x)
  953. # Obsolete; use --with-x.
  954. with_x=yes ;;
  955. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  956. | --x-incl | --x-inc | --x-in | --x-i)
  957. ac_prev=x_includes ;;
  958. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  959. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  960. x_includes=$ac_optarg ;;
  961. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  962. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  963. ac_prev=x_libraries ;;
  964. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  965. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  966. x_libraries=$ac_optarg ;;
  967. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  968. Try \`$0 --help' for more information"
  969. ;;
  970. *=*)
  971. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  972. # Reject names that are not valid shell variable names.
  973. case $ac_envvar in #(
  974. '' | [0-9]* | *[!_$as_cr_alnum]* )
  975. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  976. esac
  977. eval $ac_envvar=\$ac_optarg
  978. export $ac_envvar ;;
  979. *)
  980. # FIXME: should be removed in autoconf 3.0.
  981. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  982. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  983. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  984. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  985. ;;
  986. esac
  987. done
  988. if test -n "$ac_prev"; then
  989. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  990. as_fn_error $? "missing argument to $ac_option"
  991. fi
  992. if test -n "$ac_unrecognized_opts"; then
  993. case $enable_option_checking in
  994. no) ;;
  995. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  996. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  997. esac
  998. fi
  999. # Check all directory arguments for consistency.
  1000. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1001. datadir sysconfdir sharedstatedir localstatedir includedir \
  1002. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1003. libdir localedir mandir
  1004. do
  1005. eval ac_val=\$$ac_var
  1006. # Remove trailing slashes.
  1007. case $ac_val in
  1008. */ )
  1009. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1010. eval $ac_var=\$ac_val;;
  1011. esac
  1012. # Be sure to have absolute directory names.
  1013. case $ac_val in
  1014. [\\/$]* | ?:[\\/]* ) continue;;
  1015. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1016. esac
  1017. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1018. done
  1019. # There might be people who depend on the old broken behavior: `$host'
  1020. # used to hold the argument of --host etc.
  1021. # FIXME: To remove some day.
  1022. build=$build_alias
  1023. host=$host_alias
  1024. target=$target_alias
  1025. # FIXME: To remove some day.
  1026. if test "x$host_alias" != x; then
  1027. if test "x$build_alias" = x; then
  1028. cross_compiling=maybe
  1029. elif test "x$build_alias" != "x$host_alias"; then
  1030. cross_compiling=yes
  1031. fi
  1032. fi
  1033. ac_tool_prefix=
  1034. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1035. test "$silent" = yes && exec 6>/dev/null
  1036. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1037. ac_ls_di=`ls -di .` &&
  1038. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1039. as_fn_error $? "working directory cannot be determined"
  1040. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1041. as_fn_error $? "pwd does not report name of working directory"
  1042. # Find the source files, if location was not specified.
  1043. if test -z "$srcdir"; then
  1044. ac_srcdir_defaulted=yes
  1045. # Try the directory containing this script, then the parent directory.
  1046. ac_confdir=`$as_dirname -- "$as_myself" ||
  1047. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1048. X"$as_myself" : 'X\(//\)[^/]' \| \
  1049. X"$as_myself" : 'X\(//\)$' \| \
  1050. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1051. $as_echo X"$as_myself" |
  1052. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1053. s//\1/
  1054. q
  1055. }
  1056. /^X\(\/\/\)[^/].*/{
  1057. s//\1/
  1058. q
  1059. }
  1060. /^X\(\/\/\)$/{
  1061. s//\1/
  1062. q
  1063. }
  1064. /^X\(\/\).*/{
  1065. s//\1/
  1066. q
  1067. }
  1068. s/.*/./; q'`
  1069. srcdir=$ac_confdir
  1070. if test ! -r "$srcdir/$ac_unique_file"; then
  1071. srcdir=..
  1072. fi
  1073. else
  1074. ac_srcdir_defaulted=no
  1075. fi
  1076. if test ! -r "$srcdir/$ac_unique_file"; then
  1077. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1078. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1079. fi
  1080. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1081. ac_abs_confdir=`(
  1082. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1083. pwd)`
  1084. # When building in place, set srcdir=.
  1085. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1086. srcdir=.
  1087. fi
  1088. # Remove unnecessary trailing slashes from srcdir.
  1089. # Double slashes in file names in object file debugging info
  1090. # mess up M-x gdb in Emacs.
  1091. case $srcdir in
  1092. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1093. esac
  1094. for ac_var in $ac_precious_vars; do
  1095. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1096. eval ac_env_${ac_var}_value=\$${ac_var}
  1097. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1098. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1099. done
  1100. #
  1101. # Report the --help message.
  1102. #
  1103. if test "$ac_init_help" = "long"; then
  1104. # Omit some internal or obsolete options to make the list less imposing.
  1105. # This message is too long to be a string in the A/UX 3.1 sh.
  1106. cat <<_ACEOF
  1107. \`configure' configures this package to adapt to many kinds of systems.
  1108. Usage: $0 [OPTION]... [VAR=VALUE]...
  1109. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1110. VAR=VALUE. See below for descriptions of some of the useful variables.
  1111. Defaults for the options are specified in brackets.
  1112. Configuration:
  1113. -h, --help display this help and exit
  1114. --help=short display options specific to this package
  1115. --help=recursive display the short help of all the included packages
  1116. -V, --version display version information and exit
  1117. -q, --quiet, --silent do not print \`checking ...' messages
  1118. --cache-file=FILE cache test results in FILE [disabled]
  1119. -C, --config-cache alias for \`--cache-file=config.cache'
  1120. -n, --no-create do not create output files
  1121. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1122. Installation directories:
  1123. --prefix=PREFIX install architecture-independent files in PREFIX
  1124. [$ac_default_prefix]
  1125. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1126. [PREFIX]
  1127. By default, \`make install' will install all the files in
  1128. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1129. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1130. for instance \`--prefix=\$HOME'.
  1131. For better control, use the options below.
  1132. Fine tuning of the installation directories:
  1133. --bindir=DIR user executables [EPREFIX/bin]
  1134. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1135. --libexecdir=DIR program executables [EPREFIX/libexec]
  1136. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1137. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1138. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1139. --libdir=DIR object code libraries [EPREFIX/lib]
  1140. --includedir=DIR C header files [PREFIX/include]
  1141. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1142. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1143. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1144. --infodir=DIR info documentation [DATAROOTDIR/info]
  1145. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1146. --mandir=DIR man documentation [DATAROOTDIR/man]
  1147. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1148. --htmldir=DIR html documentation [DOCDIR]
  1149. --dvidir=DIR dvi documentation [DOCDIR]
  1150. --pdfdir=DIR pdf documentation [DOCDIR]
  1151. --psdir=DIR ps documentation [DOCDIR]
  1152. _ACEOF
  1153. cat <<\_ACEOF
  1154. X features:
  1155. --x-includes=DIR X include files are in DIR
  1156. --x-libraries=DIR X library files are in DIR
  1157. System types:
  1158. --build=BUILD configure for building on BUILD [guessed]
  1159. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1160. _ACEOF
  1161. fi
  1162. if test -n "$ac_init_help"; then
  1163. cat <<\_ACEOF
  1164. Optional Features:
  1165. --disable-option-checking ignore unrecognized --enable/--with options
  1166. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1167. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1168. --disable-sdltest Do not try to compile and run a test SDL program
  1169. Optional Packages:
  1170. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1171. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1172. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1173. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1174. --with-x use the X Window System
  1175. Some influential environment variables:
  1176. CC C compiler command
  1177. CFLAGS C compiler flags
  1178. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1179. nonstandard directory <lib dir>
  1180. LIBS libraries to pass to the linker, e.g. -l<library>
  1181. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1182. you have headers in a nonstandard directory <include dir>
  1183. PKG_CONFIG path to pkg-config utility
  1184. PKG_CONFIG_PATH
  1185. directories to add to pkg-config's search path
  1186. PKG_CONFIG_LIBDIR
  1187. path overriding pkg-config's built-in search path
  1188. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1189. SDL_LIBS linker flags for SDL, overriding pkg-config
  1190. XMKMF Path to xmkmf, Makefile generator for X Window System
  1191. CPP C preprocessor
  1192. Use these variables to override the choices made by `configure' or to help
  1193. it to find libraries and programs with nonstandard names/locations.
  1194. Report bugs to the package provider.
  1195. _ACEOF
  1196. ac_status=$?
  1197. fi
  1198. if test "$ac_init_help" = "recursive"; then
  1199. # If there are subdirs, report their specific --help.
  1200. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1201. test -d "$ac_dir" ||
  1202. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1203. continue
  1204. ac_builddir=.
  1205. case "$ac_dir" in
  1206. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1207. *)
  1208. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1209. # A ".." for each directory in $ac_dir_suffix.
  1210. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1211. case $ac_top_builddir_sub in
  1212. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1213. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1214. esac ;;
  1215. esac
  1216. ac_abs_top_builddir=$ac_pwd
  1217. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1218. # for backward compatibility:
  1219. ac_top_builddir=$ac_top_build_prefix
  1220. case $srcdir in
  1221. .) # We are building in place.
  1222. ac_srcdir=.
  1223. ac_top_srcdir=$ac_top_builddir_sub
  1224. ac_abs_top_srcdir=$ac_pwd ;;
  1225. [\\/]* | ?:[\\/]* ) # Absolute name.
  1226. ac_srcdir=$srcdir$ac_dir_suffix;
  1227. ac_top_srcdir=$srcdir
  1228. ac_abs_top_srcdir=$srcdir ;;
  1229. *) # Relative name.
  1230. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1231. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1232. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1233. esac
  1234. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1235. cd "$ac_dir" || { ac_status=$?; continue; }
  1236. # Check for guested configure.
  1237. if test -f "$ac_srcdir/configure.gnu"; then
  1238. echo &&
  1239. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1240. elif test -f "$ac_srcdir/configure"; then
  1241. echo &&
  1242. $SHELL "$ac_srcdir/configure" --help=recursive
  1243. else
  1244. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1245. fi || ac_status=$?
  1246. cd "$ac_pwd" || { ac_status=$?; break; }
  1247. done
  1248. fi
  1249. test -n "$ac_init_help" && exit $ac_status
  1250. if $ac_init_version; then
  1251. cat <<\_ACEOF
  1252. configure
  1253. generated by GNU Autoconf 2.69
  1254. Copyright (C) 2012 Free Software Foundation, Inc.
  1255. This configure script is free software; the Free Software Foundation
  1256. gives unlimited permission to copy, distribute and modify it.
  1257. _ACEOF
  1258. exit
  1259. fi
  1260. ## ------------------------ ##
  1261. ## Autoconf initialization. ##
  1262. ## ------------------------ ##
  1263. # ac_fn_c_try_compile LINENO
  1264. # --------------------------
  1265. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1266. ac_fn_c_try_compile ()
  1267. {
  1268. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1269. rm -f conftest.$ac_objext
  1270. if { { ac_try="$ac_compile"
  1271. case "(($ac_try" in
  1272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1273. *) ac_try_echo=$ac_try;;
  1274. esac
  1275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1276. $as_echo "$ac_try_echo"; } >&5
  1277. (eval "$ac_compile") 2>conftest.err
  1278. ac_status=$?
  1279. if test -s conftest.err; then
  1280. grep -v '^ *+' conftest.err >conftest.er1
  1281. cat conftest.er1 >&5
  1282. mv -f conftest.er1 conftest.err
  1283. fi
  1284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1285. test $ac_status = 0; } && {
  1286. test -z "$ac_c_werror_flag" ||
  1287. test ! -s conftest.err
  1288. } && test -s conftest.$ac_objext; then :
  1289. ac_retval=0
  1290. else
  1291. $as_echo "$as_me: failed program was:" >&5
  1292. sed 's/^/| /' conftest.$ac_ext >&5
  1293. ac_retval=1
  1294. fi
  1295. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1296. as_fn_set_status $ac_retval
  1297. } # ac_fn_c_try_compile
  1298. # ac_fn_c_try_run LINENO
  1299. # ----------------------
  1300. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1301. # that executables *can* be run.
  1302. ac_fn_c_try_run ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. if { { ac_try="$ac_link"
  1306. case "(($ac_try" in
  1307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1308. *) ac_try_echo=$ac_try;;
  1309. esac
  1310. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1311. $as_echo "$ac_try_echo"; } >&5
  1312. (eval "$ac_link") 2>&5
  1313. ac_status=$?
  1314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1315. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1316. { { case "(($ac_try" in
  1317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1318. *) ac_try_echo=$ac_try;;
  1319. esac
  1320. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1321. $as_echo "$ac_try_echo"; } >&5
  1322. (eval "$ac_try") 2>&5
  1323. ac_status=$?
  1324. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1325. test $ac_status = 0; }; }; then :
  1326. ac_retval=0
  1327. else
  1328. $as_echo "$as_me: program exited with status $ac_status" >&5
  1329. $as_echo "$as_me: failed program was:" >&5
  1330. sed 's/^/| /' conftest.$ac_ext >&5
  1331. ac_retval=$ac_status
  1332. fi
  1333. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1334. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1335. as_fn_set_status $ac_retval
  1336. } # ac_fn_c_try_run
  1337. # ac_fn_c_try_link LINENO
  1338. # -----------------------
  1339. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_link ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext conftest$ac_exeext
  1344. if { { ac_try="$ac_link"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_link") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest$ac_exeext && {
  1363. test "$cross_compiling" = yes ||
  1364. test -x conftest$ac_exeext
  1365. }; then :
  1366. ac_retval=0
  1367. else
  1368. $as_echo "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1373. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1374. # interfere with the next link command; also delete a directory that is
  1375. # left behind by Apple's compiler. We do this before executing the actions.
  1376. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1377. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1378. as_fn_set_status $ac_retval
  1379. } # ac_fn_c_try_link
  1380. # ac_fn_c_try_cpp LINENO
  1381. # ----------------------
  1382. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_c_try_cpp ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1387. case "(($ac_try" in
  1388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1389. *) ac_try_echo=$ac_try;;
  1390. esac
  1391. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1392. $as_echo "$ac_try_echo"; } >&5
  1393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1394. ac_status=$?
  1395. if test -s conftest.err; then
  1396. grep -v '^ *+' conftest.err >conftest.er1
  1397. cat conftest.er1 >&5
  1398. mv -f conftest.er1 conftest.err
  1399. fi
  1400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1401. test $ac_status = 0; } > conftest.i && {
  1402. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1403. test ! -s conftest.err
  1404. }; then :
  1405. ac_retval=0
  1406. else
  1407. $as_echo "$as_me: failed program was:" >&5
  1408. sed 's/^/| /' conftest.$ac_ext >&5
  1409. ac_retval=1
  1410. fi
  1411. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1412. as_fn_set_status $ac_retval
  1413. } # ac_fn_c_try_cpp
  1414. cat >config.log <<_ACEOF
  1415. This file contains any messages produced by compilers while
  1416. running configure, to aid debugging if configure makes a mistake.
  1417. It was created by $as_me, which was
  1418. generated by GNU Autoconf 2.69. Invocation command line was
  1419. $ $0 $@
  1420. _ACEOF
  1421. exec 5>>config.log
  1422. {
  1423. cat <<_ASUNAME
  1424. ## --------- ##
  1425. ## Platform. ##
  1426. ## --------- ##
  1427. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1428. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1429. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1430. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1431. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1432. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1433. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1434. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1435. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1436. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1437. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1438. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1439. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1440. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1441. _ASUNAME
  1442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1443. for as_dir in $PATH
  1444. do
  1445. IFS=$as_save_IFS
  1446. test -z "$as_dir" && as_dir=.
  1447. $as_echo "PATH: $as_dir"
  1448. done
  1449. IFS=$as_save_IFS
  1450. } >&5
  1451. cat >&5 <<_ACEOF
  1452. ## ----------- ##
  1453. ## Core tests. ##
  1454. ## ----------- ##
  1455. _ACEOF
  1456. # Keep a trace of the command line.
  1457. # Strip out --no-create and --no-recursion so they do not pile up.
  1458. # Strip out --silent because we don't want to record it for future runs.
  1459. # Also quote any args containing shell meta-characters.
  1460. # Make two passes to allow for proper duplicate-argument suppression.
  1461. ac_configure_args=
  1462. ac_configure_args0=
  1463. ac_configure_args1=
  1464. ac_must_keep_next=false
  1465. for ac_pass in 1 2
  1466. do
  1467. for ac_arg
  1468. do
  1469. case $ac_arg in
  1470. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1472. | -silent | --silent | --silen | --sile | --sil)
  1473. continue ;;
  1474. *\'*)
  1475. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1476. esac
  1477. case $ac_pass in
  1478. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1479. 2)
  1480. as_fn_append ac_configure_args1 " '$ac_arg'"
  1481. if test $ac_must_keep_next = true; then
  1482. ac_must_keep_next=false # Got value, back to normal.
  1483. else
  1484. case $ac_arg in
  1485. *=* | --config-cache | -C | -disable-* | --disable-* \
  1486. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1487. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1488. | -with-* | --with-* | -without-* | --without-* | --x)
  1489. case "$ac_configure_args0 " in
  1490. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1491. esac
  1492. ;;
  1493. -* ) ac_must_keep_next=true ;;
  1494. esac
  1495. fi
  1496. as_fn_append ac_configure_args " '$ac_arg'"
  1497. ;;
  1498. esac
  1499. done
  1500. done
  1501. { ac_configure_args0=; unset ac_configure_args0;}
  1502. { ac_configure_args1=; unset ac_configure_args1;}
  1503. # When interrupted or exit'd, cleanup temporary files, and complete
  1504. # config.log. We remove comments because anyway the quotes in there
  1505. # would cause problems or look ugly.
  1506. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1507. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1508. trap 'exit_status=$?
  1509. # Save into config.log some information that might help in debugging.
  1510. {
  1511. echo
  1512. $as_echo "## ---------------- ##
  1513. ## Cache variables. ##
  1514. ## ---------------- ##"
  1515. echo
  1516. # The following way of writing the cache mishandles newlines in values,
  1517. (
  1518. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1519. eval ac_val=\$$ac_var
  1520. case $ac_val in #(
  1521. *${as_nl}*)
  1522. case $ac_var in #(
  1523. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1524. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1525. esac
  1526. case $ac_var in #(
  1527. _ | IFS | as_nl) ;; #(
  1528. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1529. *) { eval $ac_var=; unset $ac_var;} ;;
  1530. esac ;;
  1531. esac
  1532. done
  1533. (set) 2>&1 |
  1534. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1535. *${as_nl}ac_space=\ *)
  1536. sed -n \
  1537. "s/'\''/'\''\\\\'\'''\''/g;
  1538. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1539. ;; #(
  1540. *)
  1541. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1542. ;;
  1543. esac |
  1544. sort
  1545. )
  1546. echo
  1547. $as_echo "## ----------------- ##
  1548. ## Output variables. ##
  1549. ## ----------------- ##"
  1550. echo
  1551. for ac_var in $ac_subst_vars
  1552. do
  1553. eval ac_val=\$$ac_var
  1554. case $ac_val in
  1555. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1556. esac
  1557. $as_echo "$ac_var='\''$ac_val'\''"
  1558. done | sort
  1559. echo
  1560. if test -n "$ac_subst_files"; then
  1561. $as_echo "## ------------------- ##
  1562. ## File substitutions. ##
  1563. ## ------------------- ##"
  1564. echo
  1565. for ac_var in $ac_subst_files
  1566. do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in
  1569. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1570. esac
  1571. $as_echo "$ac_var='\''$ac_val'\''"
  1572. done | sort
  1573. echo
  1574. fi
  1575. if test -s confdefs.h; then
  1576. $as_echo "## ----------- ##
  1577. ## confdefs.h. ##
  1578. ## ----------- ##"
  1579. echo
  1580. cat confdefs.h
  1581. echo
  1582. fi
  1583. test "$ac_signal" != 0 &&
  1584. $as_echo "$as_me: caught signal $ac_signal"
  1585. $as_echo "$as_me: exit $exit_status"
  1586. } >&5
  1587. rm -f core *.core core.conftest.* &&
  1588. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1589. exit $exit_status
  1590. ' 0
  1591. for ac_signal in 1 2 13 15; do
  1592. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1593. done
  1594. ac_signal=0
  1595. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1596. rm -f -r conftest* confdefs.h
  1597. $as_echo "/* confdefs.h */" > confdefs.h
  1598. # Predefined preprocessor variables.
  1599. cat >>confdefs.h <<_ACEOF
  1600. #define PACKAGE_NAME "$PACKAGE_NAME"
  1601. _ACEOF
  1602. cat >>confdefs.h <<_ACEOF
  1603. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1604. _ACEOF
  1605. cat >>confdefs.h <<_ACEOF
  1606. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1607. _ACEOF
  1608. cat >>confdefs.h <<_ACEOF
  1609. #define PACKAGE_STRING "$PACKAGE_STRING"
  1610. _ACEOF
  1611. cat >>confdefs.h <<_ACEOF
  1612. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1613. _ACEOF
  1614. cat >>confdefs.h <<_ACEOF
  1615. #define PACKAGE_URL "$PACKAGE_URL"
  1616. _ACEOF
  1617. # Let the site file select an alternate cache file if it wants to.
  1618. # Prefer an explicitly selected file to automatically selected ones.
  1619. ac_site_file1=NONE
  1620. ac_site_file2=NONE
  1621. if test -n "$CONFIG_SITE"; then
  1622. # We do not want a PATH search for config.site.
  1623. case $CONFIG_SITE in #((
  1624. -*) ac_site_file1=./$CONFIG_SITE;;
  1625. */*) ac_site_file1=$CONFIG_SITE;;
  1626. *) ac_site_file1=./$CONFIG_SITE;;
  1627. esac
  1628. elif test "x$prefix" != xNONE; then
  1629. ac_site_file1=$prefix/share/config.site
  1630. ac_site_file2=$prefix/etc/config.site
  1631. else
  1632. ac_site_file1=$ac_default_prefix/share/config.site
  1633. ac_site_file2=$ac_default_prefix/etc/config.site
  1634. fi
  1635. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1636. do
  1637. test "x$ac_site_file" = xNONE && continue
  1638. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1640. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1641. sed 's/^/| /' "$ac_site_file" >&5
  1642. . "$ac_site_file" \
  1643. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1644. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1645. as_fn_error $? "failed to load site script $ac_site_file
  1646. See \`config.log' for more details" "$LINENO" 5; }
  1647. fi
  1648. done
  1649. if test -r "$cache_file"; then
  1650. # Some versions of bash will fail to source /dev/null (special files
  1651. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1652. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1654. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1655. case $cache_file in
  1656. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1657. *) . "./$cache_file";;
  1658. esac
  1659. fi
  1660. else
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1662. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1663. >$cache_file
  1664. fi
  1665. # Check that the precious variables saved in the cache have kept the same
  1666. # value.
  1667. ac_cache_corrupted=false
  1668. for ac_var in $ac_precious_vars; do
  1669. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1670. eval ac_new_set=\$ac_env_${ac_var}_set
  1671. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1672. eval ac_new_val=\$ac_env_${ac_var}_value
  1673. case $ac_old_set,$ac_new_set in
  1674. set,)
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1676. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1677. ac_cache_corrupted=: ;;
  1678. ,set)
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1680. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1681. ac_cache_corrupted=: ;;
  1682. ,);;
  1683. *)
  1684. if test "x$ac_old_val" != "x$ac_new_val"; then
  1685. # differences in whitespace do not lead to failure.
  1686. ac_old_val_w=`echo x $ac_old_val`
  1687. ac_new_val_w=`echo x $ac_new_val`
  1688. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1690. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1691. ac_cache_corrupted=:
  1692. else
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1694. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1695. eval $ac_var=\$ac_old_val
  1696. fi
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1698. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1700. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1701. fi;;
  1702. esac
  1703. # Pass precious variables to config.status.
  1704. if test "$ac_new_set" = set; then
  1705. case $ac_new_val in
  1706. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1707. *) ac_arg=$ac_var=$ac_new_val ;;
  1708. esac
  1709. case " $ac_configure_args " in
  1710. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1711. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1712. esac
  1713. fi
  1714. done
  1715. if $ac_cache_corrupted; then
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1719. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1720. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1721. fi
  1722. ## -------------------- ##
  1723. ## Main body of script. ##
  1724. ## -------------------- ##
  1725. ac_ext=c
  1726. ac_cpp='$CPP $CPPFLAGS'
  1727. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1728. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1729. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1730. ac_aux_dir=
  1731. for ac_dir in $srcdir/../build-scripts; do
  1732. if test -f "$ac_dir/install-sh"; then
  1733. ac_aux_dir=$ac_dir
  1734. ac_install_sh="$ac_aux_dir/install-sh -c"
  1735. break
  1736. elif test -f "$ac_dir/install.sh"; then
  1737. ac_aux_dir=$ac_dir
  1738. ac_install_sh="$ac_aux_dir/install.sh -c"
  1739. break
  1740. elif test -f "$ac_dir/shtool"; then
  1741. ac_aux_dir=$ac_dir
  1742. ac_install_sh="$ac_aux_dir/shtool install -c"
  1743. break
  1744. fi
  1745. done
  1746. if test -z "$ac_aux_dir"; then
  1747. as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
  1748. fi
  1749. # These three variables are undocumented and unsupported,
  1750. # and are intended to be withdrawn in a future Autoconf release.
  1751. # They can cause serious problems if a builder's source tree is in a directory
  1752. # whose full name contains unusual characters.
  1753. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1754. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1755. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1756. # Make sure we can run config.sub.
  1757. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1758. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1760. $as_echo_n "checking build system type... " >&6; }
  1761. if ${ac_cv_build+:} false; then :
  1762. $as_echo_n "(cached) " >&6
  1763. else
  1764. ac_build_alias=$build_alias
  1765. test "x$ac_build_alias" = x &&
  1766. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1767. test "x$ac_build_alias" = x &&
  1768. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1769. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1770. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1771. fi
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1773. $as_echo "$ac_cv_build" >&6; }
  1774. case $ac_cv_build in
  1775. *-*-*) ;;
  1776. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1777. esac
  1778. build=$ac_cv_build
  1779. ac_save_IFS=$IFS; IFS='-'
  1780. set x $ac_cv_build
  1781. shift
  1782. build_cpu=$1
  1783. build_vendor=$2
  1784. shift; shift
  1785. # Remember, the first character of IFS is used to create $*,
  1786. # except with old shells:
  1787. build_os=$*
  1788. IFS=$ac_save_IFS
  1789. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1791. $as_echo_n "checking host system type... " >&6; }
  1792. if ${ac_cv_host+:} false; then :
  1793. $as_echo_n "(cached) " >&6
  1794. else
  1795. if test "x$host_alias" = x; then
  1796. ac_cv_host=$ac_cv_build
  1797. else
  1798. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1799. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1800. fi
  1801. fi
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1803. $as_echo "$ac_cv_host" >&6; }
  1804. case $ac_cv_host in
  1805. *-*-*) ;;
  1806. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1807. esac
  1808. host=$ac_cv_host
  1809. ac_save_IFS=$IFS; IFS='-'
  1810. set x $ac_cv_host
  1811. shift
  1812. host_cpu=$1
  1813. host_vendor=$2
  1814. shift; shift
  1815. # Remember, the first character of IFS is used to create $*,
  1816. # except with old shells:
  1817. host_os=$*
  1818. IFS=$ac_save_IFS
  1819. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1820. ac_ext=c
  1821. ac_cpp='$CPP $CPPFLAGS'
  1822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1825. if test -n "$ac_tool_prefix"; then
  1826. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1827. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1829. $as_echo_n "checking for $ac_word... " >&6; }
  1830. if ${ac_cv_prog_CC+:} false; then :
  1831. $as_echo_n "(cached) " >&6
  1832. else
  1833. if test -n "$CC"; then
  1834. ac_cv_prog_CC="$CC" # Let the user override the test.
  1835. else
  1836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1837. for as_dir in $PATH
  1838. do
  1839. IFS=$as_save_IFS
  1840. test -z "$as_dir" && as_dir=.
  1841. for ac_exec_ext in '' $ac_executable_extensions; do
  1842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1843. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1845. break 2
  1846. fi
  1847. done
  1848. done
  1849. IFS=$as_save_IFS
  1850. fi
  1851. fi
  1852. CC=$ac_cv_prog_CC
  1853. if test -n "$CC"; then
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1855. $as_echo "$CC" >&6; }
  1856. else
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1858. $as_echo "no" >&6; }
  1859. fi
  1860. fi
  1861. if test -z "$ac_cv_prog_CC"; then
  1862. ac_ct_CC=$CC
  1863. # Extract the first word of "gcc", so it can be a program name with args.
  1864. set dummy gcc; ac_word=$2
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1866. $as_echo_n "checking for $ac_word... " >&6; }
  1867. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1868. $as_echo_n "(cached) " >&6
  1869. else
  1870. if test -n "$ac_ct_CC"; then
  1871. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1872. else
  1873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1874. for as_dir in $PATH
  1875. do
  1876. IFS=$as_save_IFS
  1877. test -z "$as_dir" && as_dir=.
  1878. for ac_exec_ext in '' $ac_executable_extensions; do
  1879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1880. ac_cv_prog_ac_ct_CC="gcc"
  1881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1882. break 2
  1883. fi
  1884. done
  1885. done
  1886. IFS=$as_save_IFS
  1887. fi
  1888. fi
  1889. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1890. if test -n "$ac_ct_CC"; then
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1892. $as_echo "$ac_ct_CC" >&6; }
  1893. else
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1895. $as_echo "no" >&6; }
  1896. fi
  1897. if test "x$ac_ct_CC" = x; then
  1898. CC=""
  1899. else
  1900. case $cross_compiling:$ac_tool_warned in
  1901. yes:)
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1904. ac_tool_warned=yes ;;
  1905. esac
  1906. CC=$ac_ct_CC
  1907. fi
  1908. else
  1909. CC="$ac_cv_prog_CC"
  1910. fi
  1911. if test -z "$CC"; then
  1912. if test -n "$ac_tool_prefix"; then
  1913. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1914. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1916. $as_echo_n "checking for $ac_word... " >&6; }
  1917. if ${ac_cv_prog_CC+:} false; then :
  1918. $as_echo_n "(cached) " >&6
  1919. else
  1920. if test -n "$CC"; then
  1921. ac_cv_prog_CC="$CC" # Let the user override the test.
  1922. else
  1923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1924. for as_dir in $PATH
  1925. do
  1926. IFS=$as_save_IFS
  1927. test -z "$as_dir" && as_dir=.
  1928. for ac_exec_ext in '' $ac_executable_extensions; do
  1929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1930. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1932. break 2
  1933. fi
  1934. done
  1935. done
  1936. IFS=$as_save_IFS
  1937. fi
  1938. fi
  1939. CC=$ac_cv_prog_CC
  1940. if test -n "$CC"; then
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1942. $as_echo "$CC" >&6; }
  1943. else
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1945. $as_echo "no" >&6; }
  1946. fi
  1947. fi
  1948. fi
  1949. if test -z "$CC"; then
  1950. # Extract the first word of "cc", so it can be a program name with args.
  1951. set dummy cc; ac_word=$2
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1953. $as_echo_n "checking for $ac_word... " >&6; }
  1954. if ${ac_cv_prog_CC+:} false; then :
  1955. $as_echo_n "(cached) " >&6
  1956. else
  1957. if test -n "$CC"; then
  1958. ac_cv_prog_CC="$CC" # Let the user override the test.
  1959. else
  1960. ac_prog_rejected=no
  1961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1962. for as_dir in $PATH
  1963. do
  1964. IFS=$as_save_IFS
  1965. test -z "$as_dir" && as_dir=.
  1966. for ac_exec_ext in '' $ac_executable_extensions; do
  1967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1968. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1969. ac_prog_rejected=yes
  1970. continue
  1971. fi
  1972. ac_cv_prog_CC="cc"
  1973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1974. break 2
  1975. fi
  1976. done
  1977. done
  1978. IFS=$as_save_IFS
  1979. if test $ac_prog_rejected = yes; then
  1980. # We found a bogon in the path, so make sure we never use it.
  1981. set dummy $ac_cv_prog_CC
  1982. shift
  1983. if test $# != 0; then
  1984. # We chose a different compiler from the bogus one.
  1985. # However, it has the same basename, so the bogon will be chosen
  1986. # first if we set CC to just the basename; use the full file name.
  1987. shift
  1988. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1989. fi
  1990. fi
  1991. fi
  1992. fi
  1993. CC=$ac_cv_prog_CC
  1994. if test -n "$CC"; then
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1996. $as_echo "$CC" >&6; }
  1997. else
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1999. $as_echo "no" >&6; }
  2000. fi
  2001. fi
  2002. if test -z "$CC"; then
  2003. if test -n "$ac_tool_prefix"; then
  2004. for ac_prog in cl.exe
  2005. do
  2006. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2007. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2009. $as_echo_n "checking for $ac_word... " >&6; }
  2010. if ${ac_cv_prog_CC+:} false; then :
  2011. $as_echo_n "(cached) " >&6
  2012. else
  2013. if test -n "$CC"; then
  2014. ac_cv_prog_CC="$CC" # Let the user override the test.
  2015. else
  2016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2017. for as_dir in $PATH
  2018. do
  2019. IFS=$as_save_IFS
  2020. test -z "$as_dir" && as_dir=.
  2021. for ac_exec_ext in '' $ac_executable_extensions; do
  2022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2023. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2025. break 2
  2026. fi
  2027. done
  2028. done
  2029. IFS=$as_save_IFS
  2030. fi
  2031. fi
  2032. CC=$ac_cv_prog_CC
  2033. if test -n "$CC"; then
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2035. $as_echo "$CC" >&6; }
  2036. else
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2038. $as_echo "no" >&6; }
  2039. fi
  2040. test -n "$CC" && break
  2041. done
  2042. fi
  2043. if test -z "$CC"; then
  2044. ac_ct_CC=$CC
  2045. for ac_prog in cl.exe
  2046. do
  2047. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2048. set dummy $ac_prog; ac_word=$2
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2050. $as_echo_n "checking for $ac_word... " >&6; }
  2051. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2052. $as_echo_n "(cached) " >&6
  2053. else
  2054. if test -n "$ac_ct_CC"; then
  2055. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2056. else
  2057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2058. for as_dir in $PATH
  2059. do
  2060. IFS=$as_save_IFS
  2061. test -z "$as_dir" && as_dir=.
  2062. for ac_exec_ext in '' $ac_executable_extensions; do
  2063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2064. ac_cv_prog_ac_ct_CC="$ac_prog"
  2065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2066. break 2
  2067. fi
  2068. done
  2069. done
  2070. IFS=$as_save_IFS
  2071. fi
  2072. fi
  2073. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2074. if test -n "$ac_ct_CC"; then
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2076. $as_echo "$ac_ct_CC" >&6; }
  2077. else
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2079. $as_echo "no" >&6; }
  2080. fi
  2081. test -n "$ac_ct_CC" && break
  2082. done
  2083. if test "x$ac_ct_CC" = x; then
  2084. CC=""
  2085. else
  2086. case $cross_compiling:$ac_tool_warned in
  2087. yes:)
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2090. ac_tool_warned=yes ;;
  2091. esac
  2092. CC=$ac_ct_CC
  2093. fi
  2094. fi
  2095. fi
  2096. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2098. as_fn_error $? "no acceptable C compiler found in \$PATH
  2099. See \`config.log' for more details" "$LINENO" 5; }
  2100. # Provide some information about the compiler.
  2101. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2102. set X $ac_compile
  2103. ac_compiler=$2
  2104. for ac_option in --version -v -V -qversion; do
  2105. { { ac_try="$ac_compiler $ac_option >&5"
  2106. case "(($ac_try" in
  2107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2108. *) ac_try_echo=$ac_try;;
  2109. esac
  2110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2111. $as_echo "$ac_try_echo"; } >&5
  2112. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2113. ac_status=$?
  2114. if test -s conftest.err; then
  2115. sed '10a\
  2116. ... rest of stderr output deleted ...
  2117. 10q' conftest.err >conftest.er1
  2118. cat conftest.er1 >&5
  2119. fi
  2120. rm -f conftest.er1 conftest.err
  2121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2122. test $ac_status = 0; }
  2123. done
  2124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2125. /* end confdefs.h. */
  2126. int
  2127. main ()
  2128. {
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. ac_clean_files_save=$ac_clean_files
  2134. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2135. # Try to create an executable without -o first, disregard a.out.
  2136. # It will help us diagnose broken compilers, and finding out an intuition
  2137. # of exeext.
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2139. $as_echo_n "checking whether the C compiler works... " >&6; }
  2140. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2141. # The possible output files:
  2142. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2143. ac_rmfiles=
  2144. for ac_file in $ac_files
  2145. do
  2146. case $ac_file in
  2147. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2148. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2149. esac
  2150. done
  2151. rm -f $ac_rmfiles
  2152. if { { ac_try="$ac_link_default"
  2153. case "(($ac_try" in
  2154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2155. *) ac_try_echo=$ac_try;;
  2156. esac
  2157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2158. $as_echo "$ac_try_echo"; } >&5
  2159. (eval "$ac_link_default") 2>&5
  2160. ac_status=$?
  2161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; }; then :
  2163. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2164. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2165. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2166. # so that the user can short-circuit this test for compilers unknown to
  2167. # Autoconf.
  2168. for ac_file in $ac_files ''
  2169. do
  2170. test -f "$ac_file" || continue
  2171. case $ac_file in
  2172. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2173. ;;
  2174. [ab].out )
  2175. # We found the default executable, but exeext='' is most
  2176. # certainly right.
  2177. break;;
  2178. *.* )
  2179. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2180. then :; else
  2181. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2182. fi
  2183. # We set ac_cv_exeext here because the later test for it is not
  2184. # safe: cross compilers may not add the suffix if given an `-o'
  2185. # argument, so we may need to know it at that point already.
  2186. # Even if this section looks crufty: it has the advantage of
  2187. # actually working.
  2188. break;;
  2189. * )
  2190. break;;
  2191. esac
  2192. done
  2193. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2194. else
  2195. ac_file=''
  2196. fi
  2197. if test -z "$ac_file"; then :
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2199. $as_echo "no" >&6; }
  2200. $as_echo "$as_me: failed program was:" >&5
  2201. sed 's/^/| /' conftest.$ac_ext >&5
  2202. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2203. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2204. as_fn_error 77 "C compiler cannot create executables
  2205. See \`config.log' for more details" "$LINENO" 5; }
  2206. else
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2208. $as_echo "yes" >&6; }
  2209. fi
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2211. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2213. $as_echo "$ac_file" >&6; }
  2214. ac_exeext=$ac_cv_exeext
  2215. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2216. ac_clean_files=$ac_clean_files_save
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2218. $as_echo_n "checking for suffix of executables... " >&6; }
  2219. if { { ac_try="$ac_link"
  2220. case "(($ac_try" in
  2221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2222. *) ac_try_echo=$ac_try;;
  2223. esac
  2224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2225. $as_echo "$ac_try_echo"; } >&5
  2226. (eval "$ac_link") 2>&5
  2227. ac_status=$?
  2228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2229. test $ac_status = 0; }; then :
  2230. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2231. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2232. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2233. # `rm'.
  2234. for ac_file in conftest.exe conftest conftest.*; do
  2235. test -f "$ac_file" || continue
  2236. case $ac_file in
  2237. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2238. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2239. break;;
  2240. * ) break;;
  2241. esac
  2242. done
  2243. else
  2244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2246. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2247. See \`config.log' for more details" "$LINENO" 5; }
  2248. fi
  2249. rm -f conftest conftest$ac_cv_exeext
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2251. $as_echo "$ac_cv_exeext" >&6; }
  2252. rm -f conftest.$ac_ext
  2253. EXEEXT=$ac_cv_exeext
  2254. ac_exeext=$EXEEXT
  2255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2256. /* end confdefs.h. */
  2257. #include <stdio.h>
  2258. int
  2259. main ()
  2260. {
  2261. FILE *f = fopen ("conftest.out", "w");
  2262. return ferror (f) || fclose (f) != 0;
  2263. ;
  2264. return 0;
  2265. }
  2266. _ACEOF
  2267. ac_clean_files="$ac_clean_files conftest.out"
  2268. # Check that the compiler produces executables we can run. If not, either
  2269. # the compiler is broken, or we cross compile.
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2271. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2272. if test "$cross_compiling" != yes; then
  2273. { { ac_try="$ac_link"
  2274. case "(($ac_try" in
  2275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2276. *) ac_try_echo=$ac_try;;
  2277. esac
  2278. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2279. $as_echo "$ac_try_echo"; } >&5
  2280. (eval "$ac_link") 2>&5
  2281. ac_status=$?
  2282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2283. test $ac_status = 0; }
  2284. if { ac_try='./conftest$ac_cv_exeext'
  2285. { { case "(($ac_try" in
  2286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2287. *) ac_try_echo=$ac_try;;
  2288. esac
  2289. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2290. $as_echo "$ac_try_echo"; } >&5
  2291. (eval "$ac_try") 2>&5
  2292. ac_status=$?
  2293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2294. test $ac_status = 0; }; }; then
  2295. cross_compiling=no
  2296. else
  2297. if test "$cross_compiling" = maybe; then
  2298. cross_compiling=yes
  2299. else
  2300. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2301. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2302. as_fn_error $? "cannot run C compiled programs.
  2303. If you meant to cross compile, use \`--host'.
  2304. See \`config.log' for more details" "$LINENO" 5; }
  2305. fi
  2306. fi
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2309. $as_echo "$cross_compiling" >&6; }
  2310. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2311. ac_clean_files=$ac_clean_files_save
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2313. $as_echo_n "checking for suffix of object files... " >&6; }
  2314. if ${ac_cv_objext+:} false; then :
  2315. $as_echo_n "(cached) " >&6
  2316. else
  2317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2318. /* end confdefs.h. */
  2319. int
  2320. main ()
  2321. {
  2322. ;
  2323. return 0;
  2324. }
  2325. _ACEOF
  2326. rm -f conftest.o conftest.obj
  2327. if { { ac_try="$ac_compile"
  2328. case "(($ac_try" in
  2329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2330. *) ac_try_echo=$ac_try;;
  2331. esac
  2332. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2333. $as_echo "$ac_try_echo"; } >&5
  2334. (eval "$ac_compile") 2>&5
  2335. ac_status=$?
  2336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2337. test $ac_status = 0; }; then :
  2338. for ac_file in conftest.o conftest.obj conftest.*; do
  2339. test -f "$ac_file" || continue;
  2340. case $ac_file in
  2341. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2342. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2343. break;;
  2344. esac
  2345. done
  2346. else
  2347. $as_echo "$as_me: failed program was:" >&5
  2348. sed 's/^/| /' conftest.$ac_ext >&5
  2349. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2350. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2351. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2352. See \`config.log' for more details" "$LINENO" 5; }
  2353. fi
  2354. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2355. fi
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2357. $as_echo "$ac_cv_objext" >&6; }
  2358. OBJEXT=$ac_cv_objext
  2359. ac_objext=$OBJEXT
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2361. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2362. if ${ac_cv_c_compiler_gnu+:} false; then :
  2363. $as_echo_n "(cached) " >&6
  2364. else
  2365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2366. /* end confdefs.h. */
  2367. int
  2368. main ()
  2369. {
  2370. #ifndef __GNUC__
  2371. choke me
  2372. #endif
  2373. ;
  2374. return 0;
  2375. }
  2376. _ACEOF
  2377. if ac_fn_c_try_compile "$LINENO"; then :
  2378. ac_compiler_gnu=yes
  2379. else
  2380. ac_compiler_gnu=no
  2381. fi
  2382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2383. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2384. fi
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2386. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2387. if test $ac_compiler_gnu = yes; then
  2388. GCC=yes
  2389. else
  2390. GCC=
  2391. fi
  2392. ac_test_CFLAGS=${CFLAGS+set}
  2393. ac_save_CFLAGS=$CFLAGS
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2395. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2396. if ${ac_cv_prog_cc_g+:} false; then :
  2397. $as_echo_n "(cached) " >&6
  2398. else
  2399. ac_save_c_werror_flag=$ac_c_werror_flag
  2400. ac_c_werror_flag=yes
  2401. ac_cv_prog_cc_g=no
  2402. CFLAGS="-g"
  2403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2404. /* end confdefs.h. */
  2405. int
  2406. main ()
  2407. {
  2408. ;
  2409. return 0;
  2410. }
  2411. _ACEOF
  2412. if ac_fn_c_try_compile "$LINENO"; then :
  2413. ac_cv_prog_cc_g=yes
  2414. else
  2415. CFLAGS=""
  2416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2417. /* end confdefs.h. */
  2418. int
  2419. main ()
  2420. {
  2421. ;
  2422. return 0;
  2423. }
  2424. _ACEOF
  2425. if ac_fn_c_try_compile "$LINENO"; then :
  2426. else
  2427. ac_c_werror_flag=$ac_save_c_werror_flag
  2428. CFLAGS="-g"
  2429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2430. /* end confdefs.h. */
  2431. int
  2432. main ()
  2433. {
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. if ac_fn_c_try_compile "$LINENO"; then :
  2439. ac_cv_prog_cc_g=yes
  2440. fi
  2441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2442. fi
  2443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2444. fi
  2445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2446. ac_c_werror_flag=$ac_save_c_werror_flag
  2447. fi
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2449. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2450. if test "$ac_test_CFLAGS" = set; then
  2451. CFLAGS=$ac_save_CFLAGS
  2452. elif test $ac_cv_prog_cc_g = yes; then
  2453. if test "$GCC" = yes; then
  2454. CFLAGS="-g -O2"
  2455. else
  2456. CFLAGS="-g"
  2457. fi
  2458. else
  2459. if test "$GCC" = yes; then
  2460. CFLAGS="-O2"
  2461. else
  2462. CFLAGS=
  2463. fi
  2464. fi
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2466. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2467. if ${ac_cv_prog_cc_c89+:} false; then :
  2468. $as_echo_n "(cached) " >&6
  2469. else
  2470. ac_cv_prog_cc_c89=no
  2471. ac_save_CC=$CC
  2472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2473. /* end confdefs.h. */
  2474. #include <stdarg.h>
  2475. #include <stdio.h>
  2476. struct stat;
  2477. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2478. struct buf { int x; };
  2479. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2480. static char *e (p, i)
  2481. char **p;
  2482. int i;
  2483. {
  2484. return p[i];
  2485. }
  2486. static char *f (char * (*g) (char **, int), char **p, ...)
  2487. {
  2488. char *s;
  2489. va_list v;
  2490. va_start (v,p);
  2491. s = g (p, va_arg (v,int));
  2492. va_end (v);
  2493. return s;
  2494. }
  2495. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2496. function prototypes and stuff, but not '\xHH' hex character constants.
  2497. These don't provoke an error unfortunately, instead are silently treated
  2498. as 'x'. The following induces an error, until -std is added to get
  2499. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2500. array size at least. It's necessary to write '\x00'==0 to get something
  2501. that's true only with -std. */
  2502. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2503. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2504. inside strings and character constants. */
  2505. #define FOO(x) 'x'
  2506. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2507. int test (int i, double x);
  2508. struct s1 {int (*f) (int a);};
  2509. struct s2 {int (*f) (double a);};
  2510. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2511. int argc;
  2512. char **argv;
  2513. int
  2514. main ()
  2515. {
  2516. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2517. ;
  2518. return 0;
  2519. }
  2520. _ACEOF
  2521. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2522. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2523. do
  2524. CC="$ac_save_CC $ac_arg"
  2525. if ac_fn_c_try_compile "$LINENO"; then :
  2526. ac_cv_prog_cc_c89=$ac_arg
  2527. fi
  2528. rm -f core conftest.err conftest.$ac_objext
  2529. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2530. done
  2531. rm -f conftest.$ac_ext
  2532. CC=$ac_save_CC
  2533. fi
  2534. # AC_CACHE_VAL
  2535. case "x$ac_cv_prog_cc_c89" in
  2536. x)
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2538. $as_echo "none needed" >&6; } ;;
  2539. xno)
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2541. $as_echo "unsupported" >&6; } ;;
  2542. *)
  2543. CC="$CC $ac_cv_prog_cc_c89"
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2545. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2546. esac
  2547. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2548. fi
  2549. ac_ext=c
  2550. ac_cpp='$CPP $CPPFLAGS'
  2551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  2555. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  2556. if ${ac_cv_c_const+:} false; then :
  2557. $as_echo_n "(cached) " >&6
  2558. else
  2559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2560. /* end confdefs.h. */
  2561. int
  2562. main ()
  2563. {
  2564. #ifndef __cplusplus
  2565. /* Ultrix mips cc rejects this sort of thing. */
  2566. typedef int charset[2];
  2567. const charset cs = { 0, 0 };
  2568. /* SunOS 4.1.1 cc rejects this. */
  2569. char const *const *pcpcc;
  2570. char **ppc;
  2571. /* NEC SVR4.0.2 mips cc rejects this. */
  2572. struct point {int x, y;};
  2573. static struct point const zero = {0,0};
  2574. /* AIX XL C 1.02.0.0 rejects this.
  2575. It does not let you subtract one const X* pointer from another in
  2576. an arm of an if-expression whose if-part is not a constant
  2577. expression */
  2578. const char *g = "string";
  2579. pcpcc = &g + (g ? g-g : 0);
  2580. /* HPUX 7.0 cc rejects these. */
  2581. ++pcpcc;
  2582. ppc = (char**) pcpcc;
  2583. pcpcc = (char const *const *) ppc;
  2584. { /* SCO 3.2v4 cc rejects this sort of thing. */
  2585. char tx;
  2586. char *t = &tx;
  2587. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2588. *t++ = 0;
  2589. if (s) return 0;
  2590. }
  2591. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2592. int x[] = {25, 17};
  2593. const int *foo = &x[0];
  2594. ++foo;
  2595. }
  2596. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2597. typedef const int *iptr;
  2598. iptr p = 0;
  2599. ++p;
  2600. }
  2601. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  2602. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2603. struct s { int j; const int *ap[3]; } bx;
  2604. struct s *b = &bx; b->j = 5;
  2605. }
  2606. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2607. const int foo = 10;
  2608. if (!foo) return 0;
  2609. }
  2610. return !cs[0] && !zero.x;
  2611. #endif
  2612. ;
  2613. return 0;
  2614. }
  2615. _ACEOF
  2616. if ac_fn_c_try_compile "$LINENO"; then :
  2617. ac_cv_c_const=yes
  2618. else
  2619. ac_cv_c_const=no
  2620. fi
  2621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2622. fi
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  2624. $as_echo "$ac_cv_c_const" >&6; }
  2625. if test $ac_cv_c_const = no; then
  2626. $as_echo "#define const /**/" >>confdefs.h
  2627. fi
  2628. ISUNIX="false"
  2629. ISWINDOWS="false"
  2630. ISMACOSX="false"
  2631. case "$host" in
  2632. *-*-cygwin* | *-*-mingw32*)
  2633. ISWINDOWS="true"
  2634. EXE=".exe"
  2635. MATHLIB=""
  2636. SYS_GL_LIBS="-lopengl32"
  2637. ;;
  2638. *-*-haiku*)
  2639. EXE=""
  2640. MATHLIB=""
  2641. SYS_GL_LIBS="-lGL"
  2642. ;;
  2643. *-*-darwin* )
  2644. ISMACOSX="true"
  2645. EXE=""
  2646. MATHLIB=""
  2647. SYS_GL_LIBS="-Wl,-framework,OpenGL"
  2648. ;;
  2649. *-*-aix*)
  2650. ISUNIX="true"
  2651. EXE=""
  2652. if test x$ac_cv_c_compiler_gnu = xyes; then
  2653. CFLAGS="-mthreads"
  2654. fi
  2655. SYS_GL_LIBS=""
  2656. ;;
  2657. *-*-mint*)
  2658. EXE=""
  2659. MATHLIB=""
  2660. # Extract the first word of "osmesa-config", so it can be a program name with args.
  2661. set dummy osmesa-config; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. case $OSMESA_CONFIG in
  2668. [\\/]* | ?:[\\/]*)
  2669. ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
  2670. ;;
  2671. *)
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2679. ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. IFS=$as_save_IFS
  2686. test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
  2687. ;;
  2688. esac
  2689. fi
  2690. OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
  2691. if test -n "$OSMESA_CONFIG"; then
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
  2693. $as_echo "$OSMESA_CONFIG" >&6; }
  2694. else
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2696. $as_echo "no" >&6; }
  2697. fi
  2698. if test "x$OSMESA_CONFIG" = "xyes"; then
  2699. OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
  2700. OSMESA_LIBS=`$OSMESA_CONFIG --libs`
  2701. CFLAGS="$CFLAGS $OSMESA_CFLAGS"
  2702. SYS_GL_LIBS="$OSMESA_LIBS"
  2703. else
  2704. SYS_GL_LIBS="-lOSMesa"
  2705. fi
  2706. ;;
  2707. *-*-qnx*)
  2708. EXE=""
  2709. MATHLIB=""
  2710. SYS_GL_LIBS="-lGLES_CM"
  2711. ;;
  2712. *-*-emscripten* )
  2713. EXE=".bc"
  2714. MATHLIB=""
  2715. SYS_GL_LIBS=""
  2716. ;;
  2717. *)
  2718. ISUNIX="true"
  2719. EXE=""
  2720. MATHLIB="-lm"
  2721. SYS_GL_LIBS="-lGL"
  2722. ;;
  2723. esac
  2724. SDL_VERSION=2.0.0
  2725. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  2726. if test -n "$ac_tool_prefix"; then
  2727. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2728. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2730. $as_echo_n "checking for $ac_word... " >&6; }
  2731. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. case $PKG_CONFIG in
  2735. [\\/]* | ?:[\\/]*)
  2736. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  2737. ;;
  2738. *)
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2746. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2748. break 2
  2749. fi
  2750. done
  2751. done
  2752. IFS=$as_save_IFS
  2753. ;;
  2754. esac
  2755. fi
  2756. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  2757. if test -n "$PKG_CONFIG"; then
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  2759. $as_echo "$PKG_CONFIG" >&6; }
  2760. else
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2762. $as_echo "no" >&6; }
  2763. fi
  2764. fi
  2765. if test -z "$ac_cv_path_PKG_CONFIG"; then
  2766. ac_pt_PKG_CONFIG=$PKG_CONFIG
  2767. # Extract the first word of "pkg-config", so it can be a program name with args.
  2768. set dummy pkg-config; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. case $ac_pt_PKG_CONFIG in
  2775. [\\/]* | ?:[\\/]*)
  2776. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  2777. ;;
  2778. *)
  2779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2780. for as_dir in $PATH
  2781. do
  2782. IFS=$as_save_IFS
  2783. test -z "$as_dir" && as_dir=.
  2784. for ac_exec_ext in '' $ac_executable_extensions; do
  2785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2786. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2788. break 2
  2789. fi
  2790. done
  2791. done
  2792. IFS=$as_save_IFS
  2793. ;;
  2794. esac
  2795. fi
  2796. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  2797. if test -n "$ac_pt_PKG_CONFIG"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  2799. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. if test "x$ac_pt_PKG_CONFIG" = x; then
  2805. PKG_CONFIG=""
  2806. else
  2807. case $cross_compiling:$ac_tool_warned in
  2808. yes:)
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2811. ac_tool_warned=yes ;;
  2812. esac
  2813. PKG_CONFIG=$ac_pt_PKG_CONFIG
  2814. fi
  2815. else
  2816. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  2817. fi
  2818. fi
  2819. if test -n "$PKG_CONFIG"; then
  2820. _pkg_min_version=0.9.0
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  2822. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  2823. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2825. $as_echo "yes" >&6; }
  2826. else
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. $as_echo "no" >&6; }
  2829. PKG_CONFIG=""
  2830. fi
  2831. fi
  2832. # Check whether --with-sdl-prefix was given.
  2833. if test "${with_sdl_prefix+set}" = set; then :
  2834. withval=$with_sdl_prefix; sdl_prefix="$withval"
  2835. else
  2836. sdl_prefix=""
  2837. fi
  2838. # Check whether --with-sdl-exec-prefix was given.
  2839. if test "${with_sdl_exec_prefix+set}" = set; then :
  2840. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  2841. else
  2842. sdl_exec_prefix=""
  2843. fi
  2844. # Check whether --enable-sdltest was given.
  2845. if test "${enable_sdltest+set}" = set; then :
  2846. enableval=$enable_sdltest;
  2847. else
  2848. enable_sdltest=yes
  2849. fi
  2850. min_sdl_version=$SDL_VERSION
  2851. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  2852. pkg_failed=no
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  2854. $as_echo_n "checking for SDL... " >&6; }
  2855. if test -n "$SDL_CFLAGS"; then
  2856. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  2857. elif test -n "$PKG_CONFIG"; then
  2858. if test -n "$PKG_CONFIG" && \
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2860. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2861. ac_status=$?
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2863. test $ac_status = 0; }; then
  2864. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  2865. else
  2866. pkg_failed=yes
  2867. fi
  2868. else
  2869. pkg_failed=untried
  2870. fi
  2871. if test -n "$SDL_LIBS"; then
  2872. pkg_cv_SDL_LIBS="$SDL_LIBS"
  2873. elif test -n "$PKG_CONFIG"; then
  2874. if test -n "$PKG_CONFIG" && \
  2875. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2876. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2877. ac_status=$?
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2879. test $ac_status = 0; }; then
  2880. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  2881. else
  2882. pkg_failed=yes
  2883. fi
  2884. else
  2885. pkg_failed=untried
  2886. fi
  2887. if test $pkg_failed = yes; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  2891. _pkg_short_errors_supported=yes
  2892. else
  2893. _pkg_short_errors_supported=no
  2894. fi
  2895. if test $_pkg_short_errors_supported = yes; then
  2896. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2897. else
  2898. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2899. fi
  2900. # Put the nasty error message in config.log where it belongs
  2901. echo "$SDL_PKG_ERRORS" >&5
  2902. sdl_pc=no
  2903. elif test $pkg_failed = untried; then
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2905. $as_echo "no" >&6; }
  2906. sdl_pc=no
  2907. else
  2908. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  2909. SDL_LIBS=$pkg_cv_SDL_LIBS
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2911. $as_echo "yes" >&6; }
  2912. sdl_pc=yes
  2913. fi
  2914. else
  2915. sdl_pc=no
  2916. if test x$sdl_exec_prefix != x ; then
  2917. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  2918. if test x${SDL_CONFIG+set} != xset ; then
  2919. SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config
  2920. fi
  2921. fi
  2922. if test x$sdl_prefix != x ; then
  2923. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  2924. if test x${SDL_CONFIG+set} != xset ; then
  2925. SDL_CONFIG=$sdl_prefix/bin/sdl2-config
  2926. fi
  2927. fi
  2928. fi
  2929. if test "x$sdl_pc" = xyes ; then
  2930. no_sdl=""
  2931. SDL_CONFIG="pkg-config sdl2"
  2932. else
  2933. as_save_PATH="$PATH"
  2934. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  2935. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  2936. fi
  2937. # Extract the first word of "sdl2-config", so it can be a program name with args.
  2938. set dummy sdl2-config; ac_word=$2
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2940. $as_echo_n "checking for $ac_word... " >&6; }
  2941. if ${ac_cv_path_SDL_CONFIG+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. case $SDL_CONFIG in
  2945. [\\/]* | ?:[\\/]*)
  2946. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  2947. ;;
  2948. *)
  2949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2950. for as_dir in $PATH
  2951. do
  2952. IFS=$as_save_IFS
  2953. test -z "$as_dir" && as_dir=.
  2954. for ac_exec_ext in '' $ac_executable_extensions; do
  2955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2956. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2958. break 2
  2959. fi
  2960. done
  2961. done
  2962. IFS=$as_save_IFS
  2963. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  2964. ;;
  2965. esac
  2966. fi
  2967. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  2968. if test -n "$SDL_CONFIG"; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  2970. $as_echo "$SDL_CONFIG" >&6; }
  2971. else
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2973. $as_echo "no" >&6; }
  2974. fi
  2975. PATH="$as_save_PATH"
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  2977. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  2978. no_sdl=""
  2979. if test "$SDL_CONFIG" = "no" ; then
  2980. no_sdl=yes
  2981. else
  2982. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  2983. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  2984. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  2985. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2986. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  2987. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2988. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  2989. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2990. if test "x$enable_sdltest" = "xyes" ; then
  2991. ac_save_CFLAGS="$CFLAGS"
  2992. ac_save_CXXFLAGS="$CXXFLAGS"
  2993. ac_save_LIBS="$LIBS"
  2994. CFLAGS="$CFLAGS $SDL_CFLAGS"
  2995. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2996. LIBS="$LIBS $SDL_LIBS"
  2997. rm -f conf.sdltest
  2998. if test "$cross_compiling" = yes; then :
  2999. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3000. else
  3001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3002. /* end confdefs.h. */
  3003. #include <stdio.h>
  3004. #include <stdlib.h>
  3005. #include <string.h>
  3006. #include "SDL.h"
  3007. char*
  3008. my_strdup (char *str)
  3009. {
  3010. char *new_str;
  3011. if (str)
  3012. {
  3013. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  3014. strcpy (new_str, str);
  3015. }
  3016. else
  3017. new_str = NULL;
  3018. return new_str;
  3019. }
  3020. int main (int argc, char *argv[])
  3021. {
  3022. int major, minor, micro;
  3023. char *tmp_version;
  3024. /* This hangs on some systems (?)
  3025. system ("touch conf.sdltest");
  3026. */
  3027. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  3028. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3029. tmp_version = my_strdup("$min_sdl_version");
  3030. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3031. printf("%s, bad version string\n", "$min_sdl_version");
  3032. exit(1);
  3033. }
  3034. if (($sdl_major_version > major) ||
  3035. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  3036. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  3037. {
  3038. return 0;
  3039. }
  3040. else
  3041. {
  3042. printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  3043. printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
  3044. printf("*** best to upgrade to the required version.\n");
  3045. printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n");
  3046. printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
  3047. printf("*** config.cache before re-running configure\n");
  3048. return 1;
  3049. }
  3050. }
  3051. _ACEOF
  3052. if ac_fn_c_try_run "$LINENO"; then :
  3053. else
  3054. no_sdl=yes
  3055. fi
  3056. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3057. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3058. fi
  3059. CFLAGS="$ac_save_CFLAGS"
  3060. CXXFLAGS="$ac_save_CXXFLAGS"
  3061. LIBS="$ac_save_LIBS"
  3062. fi
  3063. fi
  3064. if test "x$no_sdl" = x ; then
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3066. $as_echo "yes" >&6; }
  3067. else
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3069. $as_echo "no" >&6; }
  3070. fi
  3071. fi
  3072. if test "x$no_sdl" = x ; then
  3073. :
  3074. else
  3075. if test "$SDL_CONFIG" = "no" ; then
  3076. echo "*** The sdl2-config script installed by SDL could not be found"
  3077. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  3078. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  3079. echo "*** full path to sdl2-config."
  3080. else
  3081. if test -f conf.sdltest ; then
  3082. :
  3083. else
  3084. echo "*** Could not run SDL test program, checking why..."
  3085. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3086. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3087. LIBS="$LIBS $SDL_LIBS"
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. #include <stdio.h>
  3091. #include "SDL.h"
  3092. int main(int argc, char *argv[])
  3093. { return 0; }
  3094. #undef main
  3095. #define main K_and_R_C_main
  3096. int
  3097. main ()
  3098. {
  3099. return 0;
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. if ac_fn_c_try_link "$LINENO"; then :
  3105. echo "*** The test program compiled, but did not run. This usually means"
  3106. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  3107. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  3108. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3109. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3110. echo "*** is required on your system"
  3111. echo "***"
  3112. echo "*** If you have an old version installed, it is best to remove it, although"
  3113. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3114. else
  3115. echo "*** The test program failed to compile or link. See the file config.log for the"
  3116. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  3117. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  3118. echo "*** may want to edit the sdl2-config script: $SDL_CONFIG"
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext \
  3121. conftest$ac_exeext conftest.$ac_ext
  3122. CFLAGS="$ac_save_CFLAGS"
  3123. CXXFLAGS="$ac_save_CXXFLAGS"
  3124. LIBS="$ac_save_LIBS"
  3125. fi
  3126. fi
  3127. SDL_CFLAGS=""
  3128. SDL_LIBS=""
  3129. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  3130. fi
  3131. rm -f conf.sdltest
  3132. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3133. LIBS="$LIBS -lSDL2_test $SDL_LIBS"
  3134. ac_ext=c
  3135. ac_cpp='$CPP $CPPFLAGS'
  3136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3140. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3141. # On Suns, sometimes $CPP names a directory.
  3142. if test -n "$CPP" && test -d "$CPP"; then
  3143. CPP=
  3144. fi
  3145. if test -z "$CPP"; then
  3146. if ${ac_cv_prog_CPP+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. # Double quotes because CPP needs to be expanded
  3150. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3151. do
  3152. ac_preproc_ok=false
  3153. for ac_c_preproc_warn_flag in '' yes
  3154. do
  3155. # Use a header file that comes with gcc, so configuring glibc
  3156. # with a fresh cross-compiler works.
  3157. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3158. # <limits.h> exists even on freestanding compilers.
  3159. # On the NeXT, cc -E runs the code through the compiler's parser,
  3160. # not just through cpp. "Syntax error" is here to catch this case.
  3161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3162. /* end confdefs.h. */
  3163. #ifdef __STDC__
  3164. # include <limits.h>
  3165. #else
  3166. # include <assert.h>
  3167. #endif
  3168. Syntax error
  3169. _ACEOF
  3170. if ac_fn_c_try_cpp "$LINENO"; then :
  3171. else
  3172. # Broken: fails on valid input.
  3173. continue
  3174. fi
  3175. rm -f conftest.err conftest.i conftest.$ac_ext
  3176. # OK, works on sane cases. Now check whether nonexistent headers
  3177. # can be detected and how.
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. #include <ac_nonexistent.h>
  3181. _ACEOF
  3182. if ac_fn_c_try_cpp "$LINENO"; then :
  3183. # Broken: success on invalid input.
  3184. continue
  3185. else
  3186. # Passes both tests.
  3187. ac_preproc_ok=:
  3188. break
  3189. fi
  3190. rm -f conftest.err conftest.i conftest.$ac_ext
  3191. done
  3192. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3193. rm -f conftest.i conftest.err conftest.$ac_ext
  3194. if $ac_preproc_ok; then :
  3195. break
  3196. fi
  3197. done
  3198. ac_cv_prog_CPP=$CPP
  3199. fi
  3200. CPP=$ac_cv_prog_CPP
  3201. else
  3202. ac_cv_prog_CPP=$CPP
  3203. fi
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3205. $as_echo "$CPP" >&6; }
  3206. ac_preproc_ok=false
  3207. for ac_c_preproc_warn_flag in '' yes
  3208. do
  3209. # Use a header file that comes with gcc, so configuring glibc
  3210. # with a fresh cross-compiler works.
  3211. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3212. # <limits.h> exists even on freestanding compilers.
  3213. # On the NeXT, cc -E runs the code through the compiler's parser,
  3214. # not just through cpp. "Syntax error" is here to catch this case.
  3215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3216. /* end confdefs.h. */
  3217. #ifdef __STDC__
  3218. # include <limits.h>
  3219. #else
  3220. # include <assert.h>
  3221. #endif
  3222. Syntax error
  3223. _ACEOF
  3224. if ac_fn_c_try_cpp "$LINENO"; then :
  3225. else
  3226. # Broken: fails on valid input.
  3227. continue
  3228. fi
  3229. rm -f conftest.err conftest.i conftest.$ac_ext
  3230. # OK, works on sane cases. Now check whether nonexistent headers
  3231. # can be detected and how.
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. #include <ac_nonexistent.h>
  3235. _ACEOF
  3236. if ac_fn_c_try_cpp "$LINENO"; then :
  3237. # Broken: success on invalid input.
  3238. continue
  3239. else
  3240. # Passes both tests.
  3241. ac_preproc_ok=:
  3242. break
  3243. fi
  3244. rm -f conftest.err conftest.i conftest.$ac_ext
  3245. done
  3246. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3247. rm -f conftest.i conftest.err conftest.$ac_ext
  3248. if $ac_preproc_ok; then :
  3249. else
  3250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3252. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3253. See \`config.log' for more details" "$LINENO" 5; }
  3254. fi
  3255. ac_ext=c
  3256. ac_cpp='$CPP $CPPFLAGS'
  3257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  3261. $as_echo_n "checking for X... " >&6; }
  3262. # Check whether --with-x was given.
  3263. if test "${with_x+set}" = set; then :
  3264. withval=$with_x;
  3265. fi
  3266. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3267. if test "x$with_x" = xno; then
  3268. # The user explicitly disabled X.
  3269. have_x=disabled
  3270. else
  3271. case $x_includes,$x_libraries in #(
  3272. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  3273. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  3274. $as_echo_n "(cached) " >&6
  3275. else
  3276. # One or both of the vars are not set, and there is no cached value.
  3277. ac_x_includes=no ac_x_libraries=no
  3278. rm -f -r conftest.dir
  3279. if mkdir conftest.dir; then
  3280. cd conftest.dir
  3281. cat >Imakefile <<'_ACEOF'
  3282. incroot:
  3283. @echo incroot='${INCROOT}'
  3284. usrlibdir:
  3285. @echo usrlibdir='${USRLIBDIR}'
  3286. libdir:
  3287. @echo libdir='${LIBDIR}'
  3288. _ACEOF
  3289. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3290. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3291. for ac_var in incroot usrlibdir libdir; do
  3292. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3293. done
  3294. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3295. for ac_extension in a so sl dylib la dll; do
  3296. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  3297. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  3298. ac_im_usrlibdir=$ac_im_libdir; break
  3299. fi
  3300. done
  3301. # Screen out bogus values from the imake configuration. They are
  3302. # bogus both because they are the default anyway, and because
  3303. # using them would break gcc on systems where it needs fixed includes.
  3304. case $ac_im_incroot in
  3305. /usr/include) ac_x_includes= ;;
  3306. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3307. esac
  3308. case $ac_im_usrlibdir in
  3309. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  3310. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3311. esac
  3312. fi
  3313. cd ..
  3314. rm -f -r conftest.dir
  3315. fi
  3316. # Standard set of common directories for X headers.
  3317. # Check X11 before X11Rn because it is often a symlink to the current release.
  3318. ac_x_header_dirs='
  3319. /usr/X11/include
  3320. /usr/X11R7/include
  3321. /usr/X11R6/include
  3322. /usr/X11R5/include
  3323. /usr/X11R4/include
  3324. /usr/include/X11
  3325. /usr/include/X11R7
  3326. /usr/include/X11R6
  3327. /usr/include/X11R5
  3328. /usr/include/X11R4
  3329. /usr/local/X11/include
  3330. /usr/local/X11R7/include
  3331. /usr/local/X11R6/include
  3332. /usr/local/X11R5/include
  3333. /usr/local/X11R4/include
  3334. /usr/local/include/X11
  3335. /usr/local/include/X11R7
  3336. /usr/local/include/X11R6
  3337. /usr/local/include/X11R5
  3338. /usr/local/include/X11R4
  3339. /usr/X386/include
  3340. /usr/x386/include
  3341. /usr/XFree86/include/X11
  3342. /usr/include
  3343. /usr/local/include
  3344. /usr/unsupported/include
  3345. /usr/athena/include
  3346. /usr/local/x11r5/include
  3347. /usr/lpp/Xamples/include
  3348. /usr/openwin/include
  3349. /usr/openwin/share/include'
  3350. if test "$ac_x_includes" = no; then
  3351. # Guess where to find include files, by looking for Xlib.h.
  3352. # First, try using that file with no special directory specified.
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. #include <X11/Xlib.h>
  3356. _ACEOF
  3357. if ac_fn_c_try_cpp "$LINENO"; then :
  3358. # We can compile using X headers with no special include directory.
  3359. ac_x_includes=
  3360. else
  3361. for ac_dir in $ac_x_header_dirs; do
  3362. if test -r "$ac_dir/X11/Xlib.h"; then
  3363. ac_x_includes=$ac_dir
  3364. break
  3365. fi
  3366. done
  3367. fi
  3368. rm -f conftest.err conftest.i conftest.$ac_ext
  3369. fi # $ac_x_includes = no
  3370. if test "$ac_x_libraries" = no; then
  3371. # Check for the libraries.
  3372. # See if we find them without any special options.
  3373. # Don't add to $LIBS permanently.
  3374. ac_save_LIBS=$LIBS
  3375. LIBS="-lX11 $LIBS"
  3376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3377. /* end confdefs.h. */
  3378. #include <X11/Xlib.h>
  3379. int
  3380. main ()
  3381. {
  3382. XrmInitialize ()
  3383. ;
  3384. return 0;
  3385. }
  3386. _ACEOF
  3387. if ac_fn_c_try_link "$LINENO"; then :
  3388. LIBS=$ac_save_LIBS
  3389. # We can link X programs with no special library path.
  3390. ac_x_libraries=
  3391. else
  3392. LIBS=$ac_save_LIBS
  3393. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3394. do
  3395. # Don't even attempt the hair of trying to link an X program!
  3396. for ac_extension in a so sl dylib la dll; do
  3397. if test -r "$ac_dir/libX11.$ac_extension"; then
  3398. ac_x_libraries=$ac_dir
  3399. break 2
  3400. fi
  3401. done
  3402. done
  3403. fi
  3404. rm -f core conftest.err conftest.$ac_objext \
  3405. conftest$ac_exeext conftest.$ac_ext
  3406. fi # $ac_x_libraries = no
  3407. case $ac_x_includes,$ac_x_libraries in #(
  3408. no,* | *,no | *\'*)
  3409. # Didn't find X, or a directory has "'" in its name.
  3410. ac_cv_have_x="have_x=no";; #(
  3411. *)
  3412. # Record where we found X for the cache.
  3413. ac_cv_have_x="have_x=yes\
  3414. ac_x_includes='$ac_x_includes'\
  3415. ac_x_libraries='$ac_x_libraries'"
  3416. esac
  3417. fi
  3418. ;; #(
  3419. *) have_x=yes;;
  3420. esac
  3421. eval "$ac_cv_have_x"
  3422. fi # $with_x != no
  3423. if test "$have_x" != yes; then
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  3425. $as_echo "$have_x" >&6; }
  3426. no_x=yes
  3427. else
  3428. # If each of the values was on the command line, it overrides each guess.
  3429. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3430. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3431. # Update the cache value to reflect the command line values.
  3432. ac_cv_have_x="have_x=yes\
  3433. ac_x_includes='$x_includes'\
  3434. ac_x_libraries='$x_libraries'"
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  3436. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  3437. fi
  3438. if test x$have_x = xyes; then
  3439. if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone || test "x$ac_x_includes" = x; then
  3440. :
  3441. else
  3442. CFLAGS="$CFLAGS -I$ac_x_includes"
  3443. fi
  3444. if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
  3445. :
  3446. else
  3447. if test "x$ac_x_libraries" = x; then
  3448. XPATH=""
  3449. XLIB="-lX11"
  3450. else
  3451. XPATH="-L$ac_x_libraries"
  3452. XLIB="-L$ac_x_libraries -lX11"
  3453. fi
  3454. fi
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
  3457. $as_echo_n "checking for OpenGL support... " >&6; }
  3458. have_opengl=no
  3459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end confdefs.h. */
  3461. #include "SDL_opengl.h"
  3462. int
  3463. main ()
  3464. {
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. if ac_fn_c_try_compile "$LINENO"; then :
  3470. have_opengl=yes
  3471. fi
  3472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
  3474. $as_echo "$have_opengl" >&6; }
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
  3476. $as_echo_n "checking for OpenGL ES support... " >&6; }
  3477. have_opengles=no
  3478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3479. /* end confdefs.h. */
  3480. #if defined (__IPHONEOS__)
  3481. #include <OpenGLES/ES1/gl.h>
  3482. #else
  3483. #include <GLES/gl.h>
  3484. #endif /* __QNXNTO__ */
  3485. int
  3486. main ()
  3487. {
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. if ac_fn_c_try_compile "$LINENO"; then :
  3493. have_opengles=yes
  3494. fi
  3495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
  3497. $as_echo "$have_opengles" >&6; }
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES2 support" >&5
  3499. $as_echo_n "checking for OpenGL ES2 support... " >&6; }
  3500. have_opengles2=no
  3501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3502. /* end confdefs.h. */
  3503. #if defined (__IPHONEOS__)
  3504. #include <OpenGLES/ES2/gl.h>
  3505. #include <OpenGLES/ES2/glext.h>
  3506. #else
  3507. #include <GLES2/gl2.h>
  3508. #include <GLES2/gl2ext.h>
  3509. #endif
  3510. int
  3511. main ()
  3512. {
  3513. ;
  3514. return 0;
  3515. }
  3516. _ACEOF
  3517. if ac_fn_c_try_compile "$LINENO"; then :
  3518. have_opengles2=yes
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5
  3522. $as_echo "$have_opengles2" >&6; }
  3523. GLLIB=""
  3524. GLESLIB=""
  3525. GLES2LIB=""
  3526. OPENGLES1_TARGETS="UNUSED"
  3527. OPENGLES2_TARGETS="UNUSED"
  3528. OPENGL_TARGETS="UNUSED"
  3529. if test x$have_opengles = xyes; then
  3530. CFLAGS="$CFLAGS -DHAVE_OPENGLES"
  3531. GLESLIB="$XPATH -lGLESv1_CM"
  3532. OPENGLES1_TARGETS="TARGETS"
  3533. fi
  3534. if test x$have_opengles2 = xyes; then
  3535. CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
  3536. #GLES2LIB="$XPATH -lGLESv2"
  3537. OPENGLES2_TARGETS="TARGETS"
  3538. fi
  3539. if test x$have_opengl = xyes; then
  3540. CFLAGS="$CFLAGS -DHAVE_OPENGL"
  3541. GLLIB="$XPATH $SYS_GL_LIBS"
  3542. OPENGL_TARGETS="TARGETS"
  3543. fi
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
  3545. $as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
  3546. if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. ac_check_lib_save_LIBS=$LIBS
  3550. LIBS="-lSDL2_ttf $LIBS"
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. /* Override any GCC internal prototype to avoid an error.
  3554. Use char because int might match the return type of a GCC
  3555. builtin and then its argument prototype would still apply. */
  3556. #ifdef __cplusplus
  3557. extern "C"
  3558. #endif
  3559. char TTF_Init ();
  3560. int
  3561. main ()
  3562. {
  3563. return TTF_Init ();
  3564. ;
  3565. return 0;
  3566. }
  3567. _ACEOF
  3568. if ac_fn_c_try_link "$LINENO"; then :
  3569. ac_cv_lib_SDL2_ttf_TTF_Init=yes
  3570. else
  3571. ac_cv_lib_SDL2_ttf_TTF_Init=no
  3572. fi
  3573. rm -f core conftest.err conftest.$ac_objext \
  3574. conftest$ac_exeext conftest.$ac_ext
  3575. LIBS=$ac_check_lib_save_LIBS
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5
  3578. $as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; }
  3579. if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
  3580. have_SDL_ttf=yes
  3581. fi
  3582. if test x$have_SDL_ttf = xyes; then
  3583. CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
  3584. SDL_TTF_LIB="-lSDL2_ttf"
  3585. fi
  3586. ac_config_files="$ac_config_files Makefile"
  3587. cat >confcache <<\_ACEOF
  3588. # This file is a shell script that caches the results of configure
  3589. # tests run on this system so they can be shared between configure
  3590. # scripts and configure runs, see configure's option --config-cache.
  3591. # It is not useful on other systems. If it contains results you don't
  3592. # want to keep, you may remove or edit it.
  3593. #
  3594. # config.status only pays attention to the cache file if you give it
  3595. # the --recheck option to rerun configure.
  3596. #
  3597. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3598. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3599. # following values.
  3600. _ACEOF
  3601. # The following way of writing the cache mishandles newlines in values,
  3602. # but we know of no workaround that is simple, portable, and efficient.
  3603. # So, we kill variables containing newlines.
  3604. # Ultrix sh set writes to stderr and can't be redirected directly,
  3605. # and sets the high bit in the cache file unless we assign to the vars.
  3606. (
  3607. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3608. eval ac_val=\$$ac_var
  3609. case $ac_val in #(
  3610. *${as_nl}*)
  3611. case $ac_var in #(
  3612. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3613. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3614. esac
  3615. case $ac_var in #(
  3616. _ | IFS | as_nl) ;; #(
  3617. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3618. *) { eval $ac_var=; unset $ac_var;} ;;
  3619. esac ;;
  3620. esac
  3621. done
  3622. (set) 2>&1 |
  3623. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3624. *${as_nl}ac_space=\ *)
  3625. # `set' does not quote correctly, so add quotes: double-quote
  3626. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3627. sed -n \
  3628. "s/'/'\\\\''/g;
  3629. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3630. ;; #(
  3631. *)
  3632. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3633. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3634. ;;
  3635. esac |
  3636. sort
  3637. ) |
  3638. sed '
  3639. /^ac_cv_env_/b end
  3640. t clear
  3641. :clear
  3642. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3643. t end
  3644. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3645. :end' >>confcache
  3646. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3647. if test -w "$cache_file"; then
  3648. if test "x$cache_file" != "x/dev/null"; then
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3650. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3651. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3652. cat confcache >"$cache_file"
  3653. else
  3654. case $cache_file in #(
  3655. */* | ?:*)
  3656. mv -f confcache "$cache_file"$$ &&
  3657. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3658. *)
  3659. mv -f confcache "$cache_file" ;;
  3660. esac
  3661. fi
  3662. fi
  3663. else
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3665. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3666. fi
  3667. fi
  3668. rm -f confcache
  3669. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3670. # Let make expand exec_prefix.
  3671. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3672. # Transform confdefs.h into DEFS.
  3673. # Protect against shell expansion while executing Makefile rules.
  3674. # Protect against Makefile macro expansion.
  3675. #
  3676. # If the first sed substitution is executed (which looks for macros that
  3677. # take arguments), then branch to the quote section. Otherwise,
  3678. # look for a macro that doesn't take arguments.
  3679. ac_script='
  3680. :mline
  3681. /\\$/{
  3682. N
  3683. s,\\\n,,
  3684. b mline
  3685. }
  3686. t clear
  3687. :clear
  3688. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3689. t quote
  3690. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3691. t quote
  3692. b any
  3693. :quote
  3694. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3695. s/\[/\\&/g
  3696. s/\]/\\&/g
  3697. s/\$/$$/g
  3698. H
  3699. :any
  3700. ${
  3701. g
  3702. s/^\n//
  3703. s/\n/ /g
  3704. p
  3705. }
  3706. '
  3707. DEFS=`sed -n "$ac_script" confdefs.h`
  3708. ac_libobjs=
  3709. ac_ltlibobjs=
  3710. U=
  3711. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3712. # 1. Remove the extension, and $U if already installed.
  3713. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3714. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3715. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3716. # will be set to the directory where LIBOBJS objects are built.
  3717. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3718. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3719. done
  3720. LIBOBJS=$ac_libobjs
  3721. LTLIBOBJS=$ac_ltlibobjs
  3722. : "${CONFIG_STATUS=./config.status}"
  3723. ac_write_fail=0
  3724. ac_clean_files_save=$ac_clean_files
  3725. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3727. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3728. as_write_fail=0
  3729. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3730. #! $SHELL
  3731. # Generated by $as_me.
  3732. # Run this file to recreate the current configuration.
  3733. # Compiler output produced by configure, useful for debugging
  3734. # configure, is in config.log if it exists.
  3735. debug=false
  3736. ac_cs_recheck=false
  3737. ac_cs_silent=false
  3738. SHELL=\${CONFIG_SHELL-$SHELL}
  3739. export SHELL
  3740. _ASEOF
  3741. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3742. ## -------------------- ##
  3743. ## M4sh Initialization. ##
  3744. ## -------------------- ##
  3745. # Be more Bourne compatible
  3746. DUALCASE=1; export DUALCASE # for MKS sh
  3747. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3748. emulate sh
  3749. NULLCMD=:
  3750. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3751. # is contrary to our usage. Disable this feature.
  3752. alias -g '${1+"$@"}'='"$@"'
  3753. setopt NO_GLOB_SUBST
  3754. else
  3755. case `(set -o) 2>/dev/null` in #(
  3756. *posix*) :
  3757. set -o posix ;; #(
  3758. *) :
  3759. ;;
  3760. esac
  3761. fi
  3762. as_nl='
  3763. '
  3764. export as_nl
  3765. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3766. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3767. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3768. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3769. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3770. # but without wasting forks for bash or zsh.
  3771. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3772. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3773. as_echo='print -r --'
  3774. as_echo_n='print -rn --'
  3775. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3776. as_echo='printf %s\n'
  3777. as_echo_n='printf %s'
  3778. else
  3779. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3780. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3781. as_echo_n='/usr/ucb/echo -n'
  3782. else
  3783. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3784. as_echo_n_body='eval
  3785. arg=$1;
  3786. case $arg in #(
  3787. *"$as_nl"*)
  3788. expr "X$arg" : "X\\(.*\\)$as_nl";
  3789. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3790. esac;
  3791. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3792. '
  3793. export as_echo_n_body
  3794. as_echo_n='sh -c $as_echo_n_body as_echo'
  3795. fi
  3796. export as_echo_body
  3797. as_echo='sh -c $as_echo_body as_echo'
  3798. fi
  3799. # The user is always right.
  3800. if test "${PATH_SEPARATOR+set}" != set; then
  3801. PATH_SEPARATOR=:
  3802. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3803. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3804. PATH_SEPARATOR=';'
  3805. }
  3806. fi
  3807. # IFS
  3808. # We need space, tab and new line, in precisely that order. Quoting is
  3809. # there to prevent editors from complaining about space-tab.
  3810. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3811. # splitting by setting IFS to empty value.)
  3812. IFS=" "" $as_nl"
  3813. # Find who we are. Look in the path if we contain no directory separator.
  3814. as_myself=
  3815. case $0 in #((
  3816. *[\\/]* ) as_myself=$0 ;;
  3817. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3818. for as_dir in $PATH
  3819. do
  3820. IFS=$as_save_IFS
  3821. test -z "$as_dir" && as_dir=.
  3822. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3823. done
  3824. IFS=$as_save_IFS
  3825. ;;
  3826. esac
  3827. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3828. # in which case we are not to be found in the path.
  3829. if test "x$as_myself" = x; then
  3830. as_myself=$0
  3831. fi
  3832. if test ! -f "$as_myself"; then
  3833. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3834. exit 1
  3835. fi
  3836. # Unset variables that we do not need and which cause bugs (e.g. in
  3837. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  3838. # suppresses any "Segmentation fault" message there. '((' could
  3839. # trigger a bug in pdksh 5.2.14.
  3840. for as_var in BASH_ENV ENV MAIL MAILPATH
  3841. do eval test x\${$as_var+set} = xset \
  3842. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3843. done
  3844. PS1='$ '
  3845. PS2='> '
  3846. PS4='+ '
  3847. # NLS nuisances.
  3848. LC_ALL=C
  3849. export LC_ALL
  3850. LANGUAGE=C
  3851. export LANGUAGE
  3852. # CDPATH.
  3853. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3854. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  3855. # ----------------------------------------
  3856. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3857. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3858. # script with STATUS, using 1 if that was 0.
  3859. as_fn_error ()
  3860. {
  3861. as_status=$1; test $as_status -eq 0 && as_status=1
  3862. if test "$4"; then
  3863. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3864. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3865. fi
  3866. $as_echo "$as_me: error: $2" >&2
  3867. as_fn_exit $as_status
  3868. } # as_fn_error
  3869. # as_fn_set_status STATUS
  3870. # -----------------------
  3871. # Set $? to STATUS, without forking.
  3872. as_fn_set_status ()
  3873. {
  3874. return $1
  3875. } # as_fn_set_status
  3876. # as_fn_exit STATUS
  3877. # -----------------
  3878. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  3879. as_fn_exit ()
  3880. {
  3881. set +e
  3882. as_fn_set_status $1
  3883. exit $1
  3884. } # as_fn_exit
  3885. # as_fn_unset VAR
  3886. # ---------------
  3887. # Portably unset VAR.
  3888. as_fn_unset ()
  3889. {
  3890. { eval $1=; unset $1;}
  3891. }
  3892. as_unset=as_fn_unset
  3893. # as_fn_append VAR VALUE
  3894. # ----------------------
  3895. # Append the text in VALUE to the end of the definition contained in VAR. Take
  3896. # advantage of any shell optimizations that allow amortized linear growth over
  3897. # repeated appends, instead of the typical quadratic growth present in naive
  3898. # implementations.
  3899. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  3900. eval 'as_fn_append ()
  3901. {
  3902. eval $1+=\$2
  3903. }'
  3904. else
  3905. as_fn_append ()
  3906. {
  3907. eval $1=\$$1\$2
  3908. }
  3909. fi # as_fn_append
  3910. # as_fn_arith ARG...
  3911. # ------------------
  3912. # Perform arithmetic evaluation on the ARGs, and store the result in the
  3913. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  3914. # must be portable across $(()) and expr.
  3915. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  3916. eval 'as_fn_arith ()
  3917. {
  3918. as_val=$(( $* ))
  3919. }'
  3920. else
  3921. as_fn_arith ()
  3922. {
  3923. as_val=`expr "$@" || test $? -eq 1`
  3924. }
  3925. fi # as_fn_arith
  3926. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3927. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3928. as_expr=expr
  3929. else
  3930. as_expr=false
  3931. fi
  3932. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3933. as_basename=basename
  3934. else
  3935. as_basename=false
  3936. fi
  3937. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3938. as_dirname=dirname
  3939. else
  3940. as_dirname=false
  3941. fi
  3942. as_me=`$as_basename -- "$0" ||
  3943. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3944. X"$0" : 'X\(//\)$' \| \
  3945. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3946. $as_echo X/"$0" |
  3947. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3948. s//\1/
  3949. q
  3950. }
  3951. /^X\/\(\/\/\)$/{
  3952. s//\1/
  3953. q
  3954. }
  3955. /^X\/\(\/\).*/{
  3956. s//\1/
  3957. q
  3958. }
  3959. s/.*/./; q'`
  3960. # Avoid depending upon Character Ranges.
  3961. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3962. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3963. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3964. as_cr_digits='0123456789'
  3965. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3966. ECHO_C= ECHO_N= ECHO_T=
  3967. case `echo -n x` in #(((((
  3968. -n*)
  3969. case `echo 'xy\c'` in
  3970. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3971. xy) ECHO_C='\c';;
  3972. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  3973. ECHO_T=' ';;
  3974. esac;;
  3975. *)
  3976. ECHO_N='-n';;
  3977. esac
  3978. rm -f conf$$ conf$$.exe conf$$.file
  3979. if test -d conf$$.dir; then
  3980. rm -f conf$$.dir/conf$$.file
  3981. else
  3982. rm -f conf$$.dir
  3983. mkdir conf$$.dir 2>/dev/null
  3984. fi
  3985. if (echo >conf$$.file) 2>/dev/null; then
  3986. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3987. as_ln_s='ln -s'
  3988. # ... but there are two gotchas:
  3989. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3990. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3991. # In both cases, we have to default to `cp -pR'.
  3992. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3993. as_ln_s='cp -pR'
  3994. elif ln conf$$.file conf$$ 2>/dev/null; then
  3995. as_ln_s=ln
  3996. else
  3997. as_ln_s='cp -pR'
  3998. fi
  3999. else
  4000. as_ln_s='cp -pR'
  4001. fi
  4002. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4003. rmdir conf$$.dir 2>/dev/null
  4004. # as_fn_mkdir_p
  4005. # -------------
  4006. # Create "$as_dir" as a directory, including parents if necessary.
  4007. as_fn_mkdir_p ()
  4008. {
  4009. case $as_dir in #(
  4010. -*) as_dir=./$as_dir;;
  4011. esac
  4012. test -d "$as_dir" || eval $as_mkdir_p || {
  4013. as_dirs=
  4014. while :; do
  4015. case $as_dir in #(
  4016. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4017. *) as_qdir=$as_dir;;
  4018. esac
  4019. as_dirs="'$as_qdir' $as_dirs"
  4020. as_dir=`$as_dirname -- "$as_dir" ||
  4021. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4022. X"$as_dir" : 'X\(//\)[^/]' \| \
  4023. X"$as_dir" : 'X\(//\)$' \| \
  4024. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4025. $as_echo X"$as_dir" |
  4026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4027. s//\1/
  4028. q
  4029. }
  4030. /^X\(\/\/\)[^/].*/{
  4031. s//\1/
  4032. q
  4033. }
  4034. /^X\(\/\/\)$/{
  4035. s//\1/
  4036. q
  4037. }
  4038. /^X\(\/\).*/{
  4039. s//\1/
  4040. q
  4041. }
  4042. s/.*/./; q'`
  4043. test -d "$as_dir" && break
  4044. done
  4045. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4046. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4047. } # as_fn_mkdir_p
  4048. if mkdir -p . 2>/dev/null; then
  4049. as_mkdir_p='mkdir -p "$as_dir"'
  4050. else
  4051. test -d ./-p && rmdir ./-p
  4052. as_mkdir_p=false
  4053. fi
  4054. # as_fn_executable_p FILE
  4055. # -----------------------
  4056. # Test if FILE is an executable regular file.
  4057. as_fn_executable_p ()
  4058. {
  4059. test -f "$1" && test -x "$1"
  4060. } # as_fn_executable_p
  4061. as_test_x='test -x'
  4062. as_executable_p=as_fn_executable_p
  4063. # Sed expression to map a string onto a valid CPP name.
  4064. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4065. # Sed expression to map a string onto a valid variable name.
  4066. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4067. exec 6>&1
  4068. ## ----------------------------------- ##
  4069. ## Main body of $CONFIG_STATUS script. ##
  4070. ## ----------------------------------- ##
  4071. _ASEOF
  4072. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4073. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4074. # Save the log message, to keep $0 and so on meaningful, and to
  4075. # report actual input values of CONFIG_FILES etc. instead of their
  4076. # values after options handling.
  4077. ac_log="
  4078. This file was extended by $as_me, which was
  4079. generated by GNU Autoconf 2.69. Invocation command line was
  4080. CONFIG_FILES = $CONFIG_FILES
  4081. CONFIG_HEADERS = $CONFIG_HEADERS
  4082. CONFIG_LINKS = $CONFIG_LINKS
  4083. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4084. $ $0 $@
  4085. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4086. "
  4087. _ACEOF
  4088. case $ac_config_files in *"
  4089. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4090. esac
  4091. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4092. # Files that config.status was made for.
  4093. config_files="$ac_config_files"
  4094. _ACEOF
  4095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4096. ac_cs_usage="\
  4097. \`$as_me' instantiates files and other configuration actions
  4098. from templates according to the current configuration. Unless the files
  4099. and actions are specified as TAGs, all are instantiated by default.
  4100. Usage: $0 [OPTION]... [TAG]...
  4101. -h, --help print this help, then exit
  4102. -V, --version print version number and configuration settings, then exit
  4103. --config print configuration, then exit
  4104. -q, --quiet, --silent
  4105. do not print progress messages
  4106. -d, --debug don't remove temporary files
  4107. --recheck update $as_me by reconfiguring in the same conditions
  4108. --file=FILE[:TEMPLATE]
  4109. instantiate the configuration file FILE
  4110. Configuration files:
  4111. $config_files
  4112. Report bugs to the package provider."
  4113. _ACEOF
  4114. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4115. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4116. ac_cs_version="\\
  4117. config.status
  4118. configured by $0, generated by GNU Autoconf 2.69,
  4119. with options \\"\$ac_cs_config\\"
  4120. Copyright (C) 2012 Free Software Foundation, Inc.
  4121. This config.status script is free software; the Free Software Foundation
  4122. gives unlimited permission to copy, distribute and modify it."
  4123. ac_pwd='$ac_pwd'
  4124. srcdir='$srcdir'
  4125. test -n "\$AWK" || AWK=awk
  4126. _ACEOF
  4127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4128. # The default lists apply if the user does not specify any file.
  4129. ac_need_defaults=:
  4130. while test $# != 0
  4131. do
  4132. case $1 in
  4133. --*=?*)
  4134. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4135. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4136. ac_shift=:
  4137. ;;
  4138. --*=)
  4139. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4140. ac_optarg=
  4141. ac_shift=:
  4142. ;;
  4143. *)
  4144. ac_option=$1
  4145. ac_optarg=$2
  4146. ac_shift=shift
  4147. ;;
  4148. esac
  4149. case $ac_option in
  4150. # Handling of the options.
  4151. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4152. ac_cs_recheck=: ;;
  4153. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4154. $as_echo "$ac_cs_version"; exit ;;
  4155. --config | --confi | --conf | --con | --co | --c )
  4156. $as_echo "$ac_cs_config"; exit ;;
  4157. --debug | --debu | --deb | --de | --d | -d )
  4158. debug=: ;;
  4159. --file | --fil | --fi | --f )
  4160. $ac_shift
  4161. case $ac_optarg in
  4162. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4163. '') as_fn_error $? "missing file argument" ;;
  4164. esac
  4165. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4166. ac_need_defaults=false;;
  4167. --he | --h | --help | --hel | -h )
  4168. $as_echo "$ac_cs_usage"; exit ;;
  4169. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4170. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4171. ac_cs_silent=: ;;
  4172. # This is an error.
  4173. -*) as_fn_error $? "unrecognized option: \`$1'
  4174. Try \`$0 --help' for more information." ;;
  4175. *) as_fn_append ac_config_targets " $1"
  4176. ac_need_defaults=false ;;
  4177. esac
  4178. shift
  4179. done
  4180. ac_configure_extra_args=
  4181. if $ac_cs_silent; then
  4182. exec 6>/dev/null
  4183. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4184. fi
  4185. _ACEOF
  4186. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4187. if \$ac_cs_recheck; then
  4188. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4189. shift
  4190. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4191. CONFIG_SHELL='$SHELL'
  4192. export CONFIG_SHELL
  4193. exec "\$@"
  4194. fi
  4195. _ACEOF
  4196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4197. exec 5>>config.log
  4198. {
  4199. echo
  4200. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4201. ## Running $as_me. ##
  4202. _ASBOX
  4203. $as_echo "$ac_log"
  4204. } >&5
  4205. _ACEOF
  4206. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4207. _ACEOF
  4208. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4209. # Handling of arguments.
  4210. for ac_config_target in $ac_config_targets
  4211. do
  4212. case $ac_config_target in
  4213. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4214. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4215. esac
  4216. done
  4217. # If the user did not use the arguments to specify the items to instantiate,
  4218. # then the envvar interface is used. Set only those that are not.
  4219. # We use the long form for the default assignment because of an extremely
  4220. # bizarre bug on SunOS 4.1.3.
  4221. if $ac_need_defaults; then
  4222. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4223. fi
  4224. # Have a temporary directory for convenience. Make it in the build tree
  4225. # simply because there is no reason against having it here, and in addition,
  4226. # creating and moving files from /tmp can sometimes cause problems.
  4227. # Hook for its removal unless debugging.
  4228. # Note that there is a small window in which the directory will not be cleaned:
  4229. # after its creation but before its name has been assigned to `$tmp'.
  4230. $debug ||
  4231. {
  4232. tmp= ac_tmp=
  4233. trap 'exit_status=$?
  4234. : "${ac_tmp:=$tmp}"
  4235. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4236. ' 0
  4237. trap 'as_fn_exit 1' 1 2 13 15
  4238. }
  4239. # Create a (secure) tmp directory for tmp files.
  4240. {
  4241. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4242. test -d "$tmp"
  4243. } ||
  4244. {
  4245. tmp=./conf$$-$RANDOM
  4246. (umask 077 && mkdir "$tmp")
  4247. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4248. ac_tmp=$tmp
  4249. # Set up the scripts for CONFIG_FILES section.
  4250. # No need to generate them if there are no CONFIG_FILES.
  4251. # This happens for instance with `./config.status config.h'.
  4252. if test -n "$CONFIG_FILES"; then
  4253. ac_cr=`echo X | tr X '\015'`
  4254. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4255. # But we know of no other shell where ac_cr would be empty at this
  4256. # point, so we can use a bashism as a fallback.
  4257. if test "x$ac_cr" = x; then
  4258. eval ac_cr=\$\'\\r\'
  4259. fi
  4260. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4261. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4262. ac_cs_awk_cr='\\r'
  4263. else
  4264. ac_cs_awk_cr=$ac_cr
  4265. fi
  4266. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4267. _ACEOF
  4268. {
  4269. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4270. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4271. echo "_ACEOF"
  4272. } >conf$$subs.sh ||
  4273. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4274. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4275. ac_delim='%!_!# '
  4276. for ac_last_try in false false false false false :; do
  4277. . ./conf$$subs.sh ||
  4278. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4279. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4280. if test $ac_delim_n = $ac_delim_num; then
  4281. break
  4282. elif $ac_last_try; then
  4283. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4284. else
  4285. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4286. fi
  4287. done
  4288. rm -f conf$$subs.sh
  4289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4290. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4291. _ACEOF
  4292. sed -n '
  4293. h
  4294. s/^/S["/; s/!.*/"]=/
  4295. p
  4296. g
  4297. s/^[^!]*!//
  4298. :repl
  4299. t repl
  4300. s/'"$ac_delim"'$//
  4301. t delim
  4302. :nl
  4303. h
  4304. s/\(.\{148\}\)..*/\1/
  4305. t more1
  4306. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4307. p
  4308. n
  4309. b repl
  4310. :more1
  4311. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4312. p
  4313. g
  4314. s/.\{148\}//
  4315. t nl
  4316. :delim
  4317. h
  4318. s/\(.\{148\}\)..*/\1/
  4319. t more2
  4320. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4321. p
  4322. b
  4323. :more2
  4324. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4325. p
  4326. g
  4327. s/.\{148\}//
  4328. t delim
  4329. ' <conf$$subs.awk | sed '
  4330. /^[^""]/{
  4331. N
  4332. s/\n//
  4333. }
  4334. ' >>$CONFIG_STATUS || ac_write_fail=1
  4335. rm -f conf$$subs.awk
  4336. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4337. _ACAWK
  4338. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4339. for (key in S) S_is_set[key] = 1
  4340. FS = ""
  4341. }
  4342. {
  4343. line = $ 0
  4344. nfields = split(line, field, "@")
  4345. substed = 0
  4346. len = length(field[1])
  4347. for (i = 2; i < nfields; i++) {
  4348. key = field[i]
  4349. keylen = length(key)
  4350. if (S_is_set[key]) {
  4351. value = S[key]
  4352. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4353. len += length(value) + length(field[++i])
  4354. substed = 1
  4355. } else
  4356. len += 1 + keylen
  4357. }
  4358. print line
  4359. }
  4360. _ACAWK
  4361. _ACEOF
  4362. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4363. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4364. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4365. else
  4366. cat
  4367. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4368. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4369. _ACEOF
  4370. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4371. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4372. # trailing colons and then remove the whole line if VPATH becomes empty
  4373. # (actually we leave an empty line to preserve line numbers).
  4374. if test "x$srcdir" = x.; then
  4375. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4376. h
  4377. s///
  4378. s/^/:/
  4379. s/[ ]*$/:/
  4380. s/:\$(srcdir):/:/g
  4381. s/:\${srcdir}:/:/g
  4382. s/:@srcdir@:/:/g
  4383. s/^:*//
  4384. s/:*$//
  4385. x
  4386. s/\(=[ ]*\).*/\1/
  4387. G
  4388. s/\n//
  4389. s/^[^=]*=[ ]*$//
  4390. }'
  4391. fi
  4392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4393. fi # test -n "$CONFIG_FILES"
  4394. eval set X " :F $CONFIG_FILES "
  4395. shift
  4396. for ac_tag
  4397. do
  4398. case $ac_tag in
  4399. :[FHLC]) ac_mode=$ac_tag; continue;;
  4400. esac
  4401. case $ac_mode$ac_tag in
  4402. :[FHL]*:*);;
  4403. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4404. :[FH]-) ac_tag=-:-;;
  4405. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4406. esac
  4407. ac_save_IFS=$IFS
  4408. IFS=:
  4409. set x $ac_tag
  4410. IFS=$ac_save_IFS
  4411. shift
  4412. ac_file=$1
  4413. shift
  4414. case $ac_mode in
  4415. :L) ac_source=$1;;
  4416. :[FH])
  4417. ac_file_inputs=
  4418. for ac_f
  4419. do
  4420. case $ac_f in
  4421. -) ac_f="$ac_tmp/stdin";;
  4422. *) # Look for the file first in the build tree, then in the source tree
  4423. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4424. # because $ac_f cannot contain `:'.
  4425. test -f "$ac_f" ||
  4426. case $ac_f in
  4427. [\\/$]*) false;;
  4428. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4429. esac ||
  4430. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4431. esac
  4432. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4433. as_fn_append ac_file_inputs " '$ac_f'"
  4434. done
  4435. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4436. # use $as_me), people would be surprised to read:
  4437. # /* config.h. Generated by config.status. */
  4438. configure_input='Generated from '`
  4439. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4440. `' by configure.'
  4441. if test x"$ac_file" != x-; then
  4442. configure_input="$ac_file. $configure_input"
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4444. $as_echo "$as_me: creating $ac_file" >&6;}
  4445. fi
  4446. # Neutralize special characters interpreted by sed in replacement strings.
  4447. case $configure_input in #(
  4448. *\&* | *\|* | *\\* )
  4449. ac_sed_conf_input=`$as_echo "$configure_input" |
  4450. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4451. *) ac_sed_conf_input=$configure_input;;
  4452. esac
  4453. case $ac_tag in
  4454. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4455. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4456. esac
  4457. ;;
  4458. esac
  4459. ac_dir=`$as_dirname -- "$ac_file" ||
  4460. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4461. X"$ac_file" : 'X\(//\)[^/]' \| \
  4462. X"$ac_file" : 'X\(//\)$' \| \
  4463. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4464. $as_echo X"$ac_file" |
  4465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4466. s//\1/
  4467. q
  4468. }
  4469. /^X\(\/\/\)[^/].*/{
  4470. s//\1/
  4471. q
  4472. }
  4473. /^X\(\/\/\)$/{
  4474. s//\1/
  4475. q
  4476. }
  4477. /^X\(\/\).*/{
  4478. s//\1/
  4479. q
  4480. }
  4481. s/.*/./; q'`
  4482. as_dir="$ac_dir"; as_fn_mkdir_p
  4483. ac_builddir=.
  4484. case "$ac_dir" in
  4485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4486. *)
  4487. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4488. # A ".." for each directory in $ac_dir_suffix.
  4489. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4490. case $ac_top_builddir_sub in
  4491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4493. esac ;;
  4494. esac
  4495. ac_abs_top_builddir=$ac_pwd
  4496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4497. # for backward compatibility:
  4498. ac_top_builddir=$ac_top_build_prefix
  4499. case $srcdir in
  4500. .) # We are building in place.
  4501. ac_srcdir=.
  4502. ac_top_srcdir=$ac_top_builddir_sub
  4503. ac_abs_top_srcdir=$ac_pwd ;;
  4504. [\\/]* | ?:[\\/]* ) # Absolute name.
  4505. ac_srcdir=$srcdir$ac_dir_suffix;
  4506. ac_top_srcdir=$srcdir
  4507. ac_abs_top_srcdir=$srcdir ;;
  4508. *) # Relative name.
  4509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4512. esac
  4513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4514. case $ac_mode in
  4515. :F)
  4516. #
  4517. # CONFIG_FILE
  4518. #
  4519. _ACEOF
  4520. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4521. # If the template does not know about datarootdir, expand it.
  4522. # FIXME: This hack should be removed a few years after 2.60.
  4523. ac_datarootdir_hack=; ac_datarootdir_seen=
  4524. ac_sed_dataroot='
  4525. /datarootdir/ {
  4526. p
  4527. q
  4528. }
  4529. /@datadir@/p
  4530. /@docdir@/p
  4531. /@infodir@/p
  4532. /@localedir@/p
  4533. /@mandir@/p'
  4534. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4535. *datarootdir*) ac_datarootdir_seen=yes;;
  4536. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4538. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4539. _ACEOF
  4540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4541. ac_datarootdir_hack='
  4542. s&@datadir@&$datadir&g
  4543. s&@docdir@&$docdir&g
  4544. s&@infodir@&$infodir&g
  4545. s&@localedir@&$localedir&g
  4546. s&@mandir@&$mandir&g
  4547. s&\\\${datarootdir}&$datarootdir&g' ;;
  4548. esac
  4549. _ACEOF
  4550. # Neutralize VPATH when `$srcdir' = `.'.
  4551. # Shell code in configure.ac might set extrasub.
  4552. # FIXME: do we really want to maintain this feature?
  4553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4554. ac_sed_extra="$ac_vpsub
  4555. $extrasub
  4556. _ACEOF
  4557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4558. :t
  4559. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4560. s|@configure_input@|$ac_sed_conf_input|;t t
  4561. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4562. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4563. s&@srcdir@&$ac_srcdir&;t t
  4564. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4565. s&@top_srcdir@&$ac_top_srcdir&;t t
  4566. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4567. s&@builddir@&$ac_builddir&;t t
  4568. s&@abs_builddir@&$ac_abs_builddir&;t t
  4569. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4570. $ac_datarootdir_hack
  4571. "
  4572. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4573. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4574. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4575. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4576. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4577. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4579. which seems to be undefined. Please make sure it is defined" >&5
  4580. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4581. which seems to be undefined. Please make sure it is defined" >&2;}
  4582. rm -f "$ac_tmp/stdin"
  4583. case $ac_file in
  4584. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4585. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4586. esac \
  4587. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4588. ;;
  4589. esac
  4590. done # for ac_tag
  4591. as_fn_exit 0
  4592. _ACEOF
  4593. ac_clean_files=$ac_clean_files_save
  4594. test $ac_write_fail = 0 ||
  4595. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4596. # configure is writing to config.log, and then calls config.status.
  4597. # config.status does its own redirection, appending to config.log.
  4598. # Unfortunately, on DOS this fails, as config.log is still kept open
  4599. # by configure, so config.status won't be able to write to it; its
  4600. # output is simply discarded. So we exec the FD to /dev/null,
  4601. # effectively closing config.log, so it can be properly (re)opened and
  4602. # appended to by config.status. When coming back to configure, we
  4603. # need to make the FD available again.
  4604. if test "$no_create" != yes; then
  4605. ac_cs_success=:
  4606. ac_config_status_args=
  4607. test "$silent" = yes &&
  4608. ac_config_status_args="$ac_config_status_args --quiet"
  4609. exec 5>/dev/null
  4610. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4611. exec 5>>config.log
  4612. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4613. # would make configure fail if this is the last instruction.
  4614. $ac_cs_success || as_fn_exit 1
  4615. fi
  4616. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4618. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4619. fi