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

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