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

5269 lines
149 KiB

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