🛠️🐜 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.

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