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

6106 lines
169 KiB

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