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

5203 lines
147 KiB

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