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

32806 lines
962 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. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_LIBS
  647. RPI_CFLAGS
  648. DECOR_LIBS
  649. DECOR_CFLAGS
  650. FUSIONSOUND_LIBS
  651. FUSIONSOUND_CFLAGS
  652. SNDIO_LIBS
  653. SNDIO_CFLAGS
  654. ARTSCONFIG
  655. PULSEAUDIO_LIBS
  656. PULSEAUDIO_CFLAGS
  657. PIPEWIRE_LIBS
  658. PIPEWIRE_CFLAGS
  659. ESD_CONFIG
  660. ESD_LIBS
  661. ESD_CFLAGS
  662. JACK_LIBS
  663. JACK_CFLAGS
  664. ALSA_LIBS
  665. ALSA_CFLAGS
  666. ALLOCA
  667. CPP
  668. LIBTOOLLINKERTAG
  669. LINKER
  670. SORT
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. SET_MAKE
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. CXXCPP
  679. ac_ct_CXX
  680. CXXFLAGS
  681. CXX
  682. LT_AGE
  683. LT_REVISION
  684. LT_CURRENT
  685. LT_RELEASE
  686. RC
  687. LT_SYS_LIBRARY_PATH
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. AWK
  695. RANLIB
  696. STRIP
  697. ac_ct_AR
  698. AR
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. OBJDUMP
  725. DLLTOOL
  726. AS
  727. SDL_VERSION
  728. SDL_BINARY_AGE
  729. SDL_INTERFACE_AGE
  730. SDL_MICRO_VERSION
  731. SDL_MINOR_VERSION
  732. SDL_MAJOR_VERSION
  733. target_alias
  734. host_alias
  735. build_alias
  736. LIBS
  737. ECHO_T
  738. ECHO_N
  739. ECHO_C
  740. DEFS
  741. mandir
  742. localedir
  743. libdir
  744. psdir
  745. pdfdir
  746. dvidir
  747. htmldir
  748. infodir
  749. docdir
  750. oldincludedir
  751. includedir
  752. runstatedir
  753. localstatedir
  754. sharedstatedir
  755. sysconfdir
  756. datadir
  757. datarootdir
  758. libexecdir
  759. sbindir
  760. bindir
  761. program_transform_name
  762. prefix
  763. exec_prefix
  764. PACKAGE_URL
  765. PACKAGE_BUGREPORT
  766. PACKAGE_STRING
  767. PACKAGE_VERSION
  768. PACKAGE_TARNAME
  769. PACKAGE_NAME
  770. PATH_SEPARATOR
  771. SHELL'
  772. ac_subst_files=''
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_shared
  776. enable_static
  777. with_pic
  778. enable_fast_install
  779. with_aix_soname
  780. with_gnu_ld
  781. with_sysroot
  782. enable_libtool_lock
  783. enable_largefile
  784. enable_assertions
  785. enable_dependency_tracking
  786. enable_libc
  787. enable_system_iconv
  788. enable_gcc_atomics
  789. enable_atomic
  790. enable_audio
  791. enable_video
  792. enable_render
  793. enable_events
  794. enable_joystick
  795. enable_haptic
  796. enable_hidapi
  797. enable_sensor
  798. enable_power
  799. enable_filesystem
  800. enable_timers
  801. enable_file
  802. enable_misc
  803. enable_locale
  804. enable_loadso
  805. enable_cpuinfo
  806. enable_assembly
  807. enable_ssemath
  808. enable_mmx
  809. enable_3dnow
  810. enable_sse
  811. enable_sse2
  812. enable_sse3
  813. enable_altivec
  814. enable_lsx
  815. enable_lasx
  816. enable_oss
  817. enable_alsa
  818. with_alsa_prefix
  819. with_alsa_inc_prefix
  820. enable_alsatest
  821. enable_alsa_shared
  822. enable_jack
  823. enable_jack_shared
  824. enable_esd
  825. with_esd_prefix
  826. with_esd_exec_prefix
  827. enable_esdtest
  828. enable_esd_shared
  829. enable_pipewire
  830. enable_pipewire_shared
  831. enable_pulseaudio
  832. enable_pulseaudio_shared
  833. enable_arts
  834. enable_arts_shared
  835. enable_nas
  836. enable_nas_shared
  837. enable_sndio
  838. enable_sndio_shared
  839. enable_fusionsound
  840. enable_fusionsound_shared
  841. enable_diskaudio
  842. enable_dummyaudio
  843. enable_libsamplerate
  844. enable_libsamplerate_shared
  845. enable_arm_simd
  846. enable_arm_neon
  847. enable_werror
  848. enable_video_wayland
  849. enable_video_wayland_qt_touch
  850. enable_wayland_shared
  851. enable_libdecor
  852. enable_libdecor_shared
  853. enable_video_rpi
  854. enable_video_x11
  855. with_x
  856. enable_x11_shared
  857. enable_video_x11_xcursor
  858. enable_video_x11_xdbe
  859. enable_video_x11_xinput
  860. enable_video_x11_xfixes
  861. enable_video_x11_xrandr
  862. enable_video_x11_scrnsaver
  863. enable_video_x11_xshape
  864. enable_video_vivante
  865. enable_video_cocoa
  866. enable_video_metal
  867. enable_render_metal
  868. enable_video_directfb
  869. enable_directfb_shared
  870. enable_video_kmsdrm
  871. enable_kmsdrm_shared
  872. enable_video_dummy
  873. enable_video_offscreen
  874. enable_video_opengl
  875. enable_video_opengles
  876. enable_video_opengles1
  877. enable_video_opengles2
  878. enable_video_vulkan
  879. enable_libudev
  880. enable_dbus
  881. enable_ime
  882. enable_ibus
  883. enable_fcitx
  884. enable_joystick_mfi
  885. enable_pthreads
  886. enable_pthread_sem
  887. enable_directx
  888. enable_xinput
  889. enable_wasapi
  890. enable_hidapi_joystick
  891. enable_hidapi_libusb
  892. enable_clock_gettime
  893. enable_rpath
  894. enable_backgrounding_signal
  895. enable_foregrounding_signal
  896. enable_joystick_virtual
  897. enable_render_d3d
  898. enable_sdl2_config
  899. enable_vendor_info
  900. '
  901. ac_precious_vars='build_alias
  902. host_alias
  903. target_alias
  904. CC
  905. CFLAGS
  906. LDFLAGS
  907. LIBS
  908. CPPFLAGS
  909. LT_SYS_LIBRARY_PATH
  910. CXX
  911. CXXFLAGS
  912. CCC
  913. CXXCPP
  914. PKG_CONFIG
  915. PKG_CONFIG_PATH
  916. PKG_CONFIG_LIBDIR
  917. CPP
  918. JACK_CFLAGS
  919. JACK_LIBS
  920. ESD_CFLAGS
  921. ESD_LIBS
  922. PIPEWIRE_CFLAGS
  923. PIPEWIRE_LIBS
  924. PULSEAUDIO_CFLAGS
  925. PULSEAUDIO_LIBS
  926. SNDIO_CFLAGS
  927. SNDIO_LIBS
  928. FUSIONSOUND_CFLAGS
  929. FUSIONSOUND_LIBS
  930. DECOR_CFLAGS
  931. DECOR_LIBS
  932. RPI_CFLAGS
  933. RPI_LIBS
  934. XMKMF
  935. DIRECTFB_CFLAGS
  936. DIRECTFB_LIBS
  937. LIBDRM_CFLAGS
  938. LIBDRM_LIBS
  939. LIBGBM_CFLAGS
  940. LIBGBM_LIBS
  941. DBUS_CFLAGS
  942. DBUS_LIBS
  943. IBUS_CFLAGS
  944. IBUS_LIBS
  945. LIBUSB_CFLAGS
  946. LIBUSB_LIBS'
  947. # Initialize some variables set by options.
  948. ac_init_help=
  949. ac_init_version=false
  950. ac_unrecognized_opts=
  951. ac_unrecognized_sep=
  952. # The variables have the same names as the options, with
  953. # dashes changed to underlines.
  954. cache_file=/dev/null
  955. exec_prefix=NONE
  956. no_create=
  957. no_recursion=
  958. prefix=NONE
  959. program_prefix=NONE
  960. program_suffix=NONE
  961. program_transform_name=s,x,x,
  962. silent=
  963. site=
  964. srcdir=
  965. verbose=
  966. x_includes=NONE
  967. x_libraries=NONE
  968. # Installation directory options.
  969. # These are left unexpanded so users can "make install exec_prefix=/foo"
  970. # and all the variables that are supposed to be based on exec_prefix
  971. # by default will actually change.
  972. # Use braces instead of parens because sh, perl, etc. also accept them.
  973. # (The list follows the same order as the GNU Coding Standards.)
  974. bindir='${exec_prefix}/bin'
  975. sbindir='${exec_prefix}/sbin'
  976. libexecdir='${exec_prefix}/libexec'
  977. datarootdir='${prefix}/share'
  978. datadir='${datarootdir}'
  979. sysconfdir='${prefix}/etc'
  980. sharedstatedir='${prefix}/com'
  981. localstatedir='${prefix}/var'
  982. runstatedir='${localstatedir}/run'
  983. includedir='${prefix}/include'
  984. oldincludedir='/usr/include'
  985. docdir='${datarootdir}/doc/${PACKAGE}'
  986. infodir='${datarootdir}/info'
  987. htmldir='${docdir}'
  988. dvidir='${docdir}'
  989. pdfdir='${docdir}'
  990. psdir='${docdir}'
  991. libdir='${exec_prefix}/lib'
  992. localedir='${datarootdir}/locale'
  993. mandir='${datarootdir}/man'
  994. ac_prev=
  995. ac_dashdash=
  996. for ac_option
  997. do
  998. # If the previous option needs an argument, assign it.
  999. if test -n "$ac_prev"; then
  1000. eval $ac_prev=\$ac_option
  1001. ac_prev=
  1002. continue
  1003. fi
  1004. case $ac_option in
  1005. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1006. *=) ac_optarg= ;;
  1007. *) ac_optarg=yes ;;
  1008. esac
  1009. case $ac_dashdash$ac_option in
  1010. --)
  1011. ac_dashdash=yes ;;
  1012. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1013. ac_prev=bindir ;;
  1014. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1015. bindir=$ac_optarg ;;
  1016. -build | --build | --buil | --bui | --bu)
  1017. ac_prev=build_alias ;;
  1018. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1019. build_alias=$ac_optarg ;;
  1020. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1021. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1022. ac_prev=cache_file ;;
  1023. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1024. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1025. cache_file=$ac_optarg ;;
  1026. --config-cache | -C)
  1027. cache_file=config.cache ;;
  1028. -datadir | --datadir | --datadi | --datad)
  1029. ac_prev=datadir ;;
  1030. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1031. datadir=$ac_optarg ;;
  1032. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1033. | --dataroo | --dataro | --datar)
  1034. ac_prev=datarootdir ;;
  1035. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1036. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1037. datarootdir=$ac_optarg ;;
  1038. -disable-* | --disable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "enable_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=no ;;
  1053. -docdir | --docdir | --docdi | --doc | --do)
  1054. ac_prev=docdir ;;
  1055. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1056. docdir=$ac_optarg ;;
  1057. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1058. ac_prev=dvidir ;;
  1059. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1060. dvidir=$ac_optarg ;;
  1061. -enable-* | --enable-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "enable_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval enable_$ac_useropt=\$ac_optarg ;;
  1076. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1077. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1078. | --exec | --exe | --ex)
  1079. ac_prev=exec_prefix ;;
  1080. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1081. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1082. | --exec=* | --exe=* | --ex=*)
  1083. exec_prefix=$ac_optarg ;;
  1084. -gas | --gas | --ga | --g)
  1085. # Obsolete; use --with-gas.
  1086. with_gas=yes ;;
  1087. -help | --help | --hel | --he | -h)
  1088. ac_init_help=long ;;
  1089. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1090. ac_init_help=recursive ;;
  1091. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1092. ac_init_help=short ;;
  1093. -host | --host | --hos | --ho)
  1094. ac_prev=host_alias ;;
  1095. -host=* | --host=* | --hos=* | --ho=*)
  1096. host_alias=$ac_optarg ;;
  1097. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1098. ac_prev=htmldir ;;
  1099. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1100. | --ht=*)
  1101. htmldir=$ac_optarg ;;
  1102. -includedir | --includedir | --includedi | --included | --include \
  1103. | --includ | --inclu | --incl | --inc)
  1104. ac_prev=includedir ;;
  1105. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1106. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1107. includedir=$ac_optarg ;;
  1108. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1109. ac_prev=infodir ;;
  1110. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1111. infodir=$ac_optarg ;;
  1112. -libdir | --libdir | --libdi | --libd)
  1113. ac_prev=libdir ;;
  1114. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1115. libdir=$ac_optarg ;;
  1116. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1117. | --libexe | --libex | --libe)
  1118. ac_prev=libexecdir ;;
  1119. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1120. | --libexe=* | --libex=* | --libe=*)
  1121. libexecdir=$ac_optarg ;;
  1122. -localedir | --localedir | --localedi | --localed | --locale)
  1123. ac_prev=localedir ;;
  1124. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1125. localedir=$ac_optarg ;;
  1126. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1127. | --localstate | --localstat | --localsta | --localst | --locals)
  1128. ac_prev=localstatedir ;;
  1129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1130. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1131. localstatedir=$ac_optarg ;;
  1132. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1133. ac_prev=mandir ;;
  1134. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1135. mandir=$ac_optarg ;;
  1136. -nfp | --nfp | --nf)
  1137. # Obsolete; use --without-fp.
  1138. with_fp=no ;;
  1139. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1140. | --no-cr | --no-c | -n)
  1141. no_create=yes ;;
  1142. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1143. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1144. no_recursion=yes ;;
  1145. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1146. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1147. | --oldin | --oldi | --old | --ol | --o)
  1148. ac_prev=oldincludedir ;;
  1149. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1150. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1151. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1152. oldincludedir=$ac_optarg ;;
  1153. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1154. ac_prev=prefix ;;
  1155. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1156. prefix=$ac_optarg ;;
  1157. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1158. | --program-pre | --program-pr | --program-p)
  1159. ac_prev=program_prefix ;;
  1160. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1161. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1162. program_prefix=$ac_optarg ;;
  1163. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1164. | --program-suf | --program-su | --program-s)
  1165. ac_prev=program_suffix ;;
  1166. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1167. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1168. program_suffix=$ac_optarg ;;
  1169. -program-transform-name | --program-transform-name \
  1170. | --program-transform-nam | --program-transform-na \
  1171. | --program-transform-n | --program-transform- \
  1172. | --program-transform | --program-transfor \
  1173. | --program-transfo | --program-transf \
  1174. | --program-trans | --program-tran \
  1175. | --progr-tra | --program-tr | --program-t)
  1176. ac_prev=program_transform_name ;;
  1177. -program-transform-name=* | --program-transform-name=* \
  1178. | --program-transform-nam=* | --program-transform-na=* \
  1179. | --program-transform-n=* | --program-transform-=* \
  1180. | --program-transform=* | --program-transfor=* \
  1181. | --program-transfo=* | --program-transf=* \
  1182. | --program-trans=* | --program-tran=* \
  1183. | --progr-tra=* | --program-tr=* | --program-t=*)
  1184. program_transform_name=$ac_optarg ;;
  1185. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1186. ac_prev=pdfdir ;;
  1187. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1188. pdfdir=$ac_optarg ;;
  1189. -psdir | --psdir | --psdi | --psd | --ps)
  1190. ac_prev=psdir ;;
  1191. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1192. psdir=$ac_optarg ;;
  1193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. | -silent | --silent | --silen | --sile | --sil)
  1195. silent=yes ;;
  1196. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1197. | --runstate | --runstat | --runsta | --runst | --runs \
  1198. | --run | --ru | --r)
  1199. ac_prev=runstatedir ;;
  1200. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1201. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1202. | --run=* | --ru=* | --r=*)
  1203. runstatedir=$ac_optarg ;;
  1204. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1205. ac_prev=sbindir ;;
  1206. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1207. | --sbi=* | --sb=*)
  1208. sbindir=$ac_optarg ;;
  1209. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1210. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1211. | --sharedst | --shareds | --shared | --share | --shar \
  1212. | --sha | --sh)
  1213. ac_prev=sharedstatedir ;;
  1214. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1215. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1216. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1217. | --sha=* | --sh=*)
  1218. sharedstatedir=$ac_optarg ;;
  1219. -site | --site | --sit)
  1220. ac_prev=site ;;
  1221. -site=* | --site=* | --sit=*)
  1222. site=$ac_optarg ;;
  1223. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1224. ac_prev=srcdir ;;
  1225. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1226. srcdir=$ac_optarg ;;
  1227. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1228. | --syscon | --sysco | --sysc | --sys | --sy)
  1229. ac_prev=sysconfdir ;;
  1230. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1231. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1232. sysconfdir=$ac_optarg ;;
  1233. -target | --target | --targe | --targ | --tar | --ta | --t)
  1234. ac_prev=target_alias ;;
  1235. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1236. target_alias=$ac_optarg ;;
  1237. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1238. verbose=yes ;;
  1239. -version | --version | --versio | --versi | --vers | -V)
  1240. ac_init_version=: ;;
  1241. -with-* | --with-*)
  1242. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1243. # Reject names that are not valid shell variable names.
  1244. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1245. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1246. ac_useropt_orig=$ac_useropt
  1247. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1248. case $ac_user_opts in
  1249. *"
  1250. "with_$ac_useropt"
  1251. "*) ;;
  1252. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1253. ac_unrecognized_sep=', ';;
  1254. esac
  1255. eval with_$ac_useropt=\$ac_optarg ;;
  1256. -without-* | --without-*)
  1257. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1258. # Reject names that are not valid shell variable names.
  1259. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1260. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1261. ac_useropt_orig=$ac_useropt
  1262. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1263. case $ac_user_opts in
  1264. *"
  1265. "with_$ac_useropt"
  1266. "*) ;;
  1267. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1268. ac_unrecognized_sep=', ';;
  1269. esac
  1270. eval with_$ac_useropt=no ;;
  1271. --x)
  1272. # Obsolete; use --with-x.
  1273. with_x=yes ;;
  1274. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1275. | --x-incl | --x-inc | --x-in | --x-i)
  1276. ac_prev=x_includes ;;
  1277. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1278. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1279. x_includes=$ac_optarg ;;
  1280. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1281. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1282. ac_prev=x_libraries ;;
  1283. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1284. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1285. x_libraries=$ac_optarg ;;
  1286. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1287. Try \`$0 --help' for more information"
  1288. ;;
  1289. *=*)
  1290. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1291. # Reject names that are not valid shell variable names.
  1292. case $ac_envvar in #(
  1293. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1294. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1295. esac
  1296. eval $ac_envvar=\$ac_optarg
  1297. export $ac_envvar ;;
  1298. *)
  1299. # FIXME: should be removed in autoconf 3.0.
  1300. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1301. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1302. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1303. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1304. ;;
  1305. esac
  1306. done
  1307. if test -n "$ac_prev"; then
  1308. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1309. as_fn_error $? "missing argument to $ac_option"
  1310. fi
  1311. if test -n "$ac_unrecognized_opts"; then
  1312. case $enable_option_checking in
  1313. no) ;;
  1314. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1315. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1316. esac
  1317. fi
  1318. # Check all directory arguments for consistency.
  1319. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1320. datadir sysconfdir sharedstatedir localstatedir includedir \
  1321. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1322. libdir localedir mandir runstatedir
  1323. do
  1324. eval ac_val=\$$ac_var
  1325. # Remove trailing slashes.
  1326. case $ac_val in
  1327. */ )
  1328. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1329. eval $ac_var=\$ac_val;;
  1330. esac
  1331. # Be sure to have absolute directory names.
  1332. case $ac_val in
  1333. [\\/$]* | ?:[\\/]* ) continue;;
  1334. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1335. esac
  1336. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1337. done
  1338. # There might be people who depend on the old broken behavior: `$host'
  1339. # used to hold the argument of --host etc.
  1340. # FIXME: To remove some day.
  1341. build=$build_alias
  1342. host=$host_alias
  1343. target=$target_alias
  1344. # FIXME: To remove some day.
  1345. if test "x$host_alias" != x; then
  1346. if test "x$build_alias" = x; then
  1347. cross_compiling=maybe
  1348. elif test "x$build_alias" != "x$host_alias"; then
  1349. cross_compiling=yes
  1350. fi
  1351. fi
  1352. ac_tool_prefix=
  1353. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1354. test "$silent" = yes && exec 6>/dev/null
  1355. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1356. ac_ls_di=`ls -di .` &&
  1357. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1358. as_fn_error $? "working directory cannot be determined"
  1359. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1360. as_fn_error $? "pwd does not report name of working directory"
  1361. # Find the source files, if location was not specified.
  1362. if test -z "$srcdir"; then
  1363. ac_srcdir_defaulted=yes
  1364. # Try the directory containing this script, then the parent directory.
  1365. ac_confdir=`$as_dirname -- "$as_myself" ||
  1366. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1367. X"$as_myself" : 'X\(//\)[^/]' \| \
  1368. X"$as_myself" : 'X\(//\)$' \| \
  1369. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1370. printf "%s\n" X"$as_myself" |
  1371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\/\)[^/].*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)$/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\).*/{
  1384. s//\1/
  1385. q
  1386. }
  1387. s/.*/./; q'`
  1388. srcdir=$ac_confdir
  1389. if test ! -r "$srcdir/$ac_unique_file"; then
  1390. srcdir=..
  1391. fi
  1392. else
  1393. ac_srcdir_defaulted=no
  1394. fi
  1395. if test ! -r "$srcdir/$ac_unique_file"; then
  1396. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1397. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1398. fi
  1399. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1400. ac_abs_confdir=`(
  1401. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1402. pwd)`
  1403. # When building in place, set srcdir=.
  1404. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1405. srcdir=.
  1406. fi
  1407. # Remove unnecessary trailing slashes from srcdir.
  1408. # Double slashes in file names in object file debugging info
  1409. # mess up M-x gdb in Emacs.
  1410. case $srcdir in
  1411. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1412. esac
  1413. for ac_var in $ac_precious_vars; do
  1414. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1415. eval ac_env_${ac_var}_value=\$${ac_var}
  1416. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1417. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1418. done
  1419. #
  1420. # Report the --help message.
  1421. #
  1422. if test "$ac_init_help" = "long"; then
  1423. # Omit some internal or obsolete options to make the list less imposing.
  1424. # This message is too long to be a string in the A/UX 3.1 sh.
  1425. cat <<_ACEOF
  1426. \`configure' configures this package to adapt to many kinds of systems.
  1427. Usage: $0 [OPTION]... [VAR=VALUE]...
  1428. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1429. VAR=VALUE. See below for descriptions of some of the useful variables.
  1430. Defaults for the options are specified in brackets.
  1431. Configuration:
  1432. -h, --help display this help and exit
  1433. --help=short display options specific to this package
  1434. --help=recursive display the short help of all the included packages
  1435. -V, --version display version information and exit
  1436. -q, --quiet, --silent do not print \`checking ...' messages
  1437. --cache-file=FILE cache test results in FILE [disabled]
  1438. -C, --config-cache alias for \`--cache-file=config.cache'
  1439. -n, --no-create do not create output files
  1440. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1441. Installation directories:
  1442. --prefix=PREFIX install architecture-independent files in PREFIX
  1443. [$ac_default_prefix]
  1444. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1445. [PREFIX]
  1446. By default, \`make install' will install all the files in
  1447. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1448. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1449. for instance \`--prefix=\$HOME'.
  1450. For better control, use the options below.
  1451. Fine tuning of the installation directories:
  1452. --bindir=DIR user executables [EPREFIX/bin]
  1453. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1454. --libexecdir=DIR program executables [EPREFIX/libexec]
  1455. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1456. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1457. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1458. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1459. --libdir=DIR object code libraries [EPREFIX/lib]
  1460. --includedir=DIR C header files [PREFIX/include]
  1461. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1462. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1463. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1464. --infodir=DIR info documentation [DATAROOTDIR/info]
  1465. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1466. --mandir=DIR man documentation [DATAROOTDIR/man]
  1467. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1468. --htmldir=DIR html documentation [DOCDIR]
  1469. --dvidir=DIR dvi documentation [DOCDIR]
  1470. --pdfdir=DIR pdf documentation [DOCDIR]
  1471. --psdir=DIR ps documentation [DOCDIR]
  1472. _ACEOF
  1473. cat <<\_ACEOF
  1474. X features:
  1475. --x-includes=DIR X include files are in DIR
  1476. --x-libraries=DIR X library files are in DIR
  1477. System types:
  1478. --build=BUILD configure for building on BUILD [guessed]
  1479. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1480. _ACEOF
  1481. fi
  1482. if test -n "$ac_init_help"; then
  1483. cat <<\_ACEOF
  1484. Optional Features:
  1485. --disable-option-checking ignore unrecognized --enable/--with options
  1486. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1487. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1488. --enable-shared[=PKGS] build shared libraries [default=yes]
  1489. --enable-static[=PKGS] build static libraries [default=yes]
  1490. --enable-fast-install[=PKGS]
  1491. optimize for fast installation [default=yes]
  1492. --disable-libtool-lock avoid locking (might break parallel builds)
  1493. --disable-largefile omit support for large files
  1494. --enable-assertions Enable internal sanity checks
  1495. (auto/disabled/release/enabled/paranoid)
  1496. [default=auto]
  1497. --enable-dependency-tracking
  1498. Use gcc -MMD -MT dependency tracking [default=yes]
  1499. --enable-libc Use the system C library [default=yes]
  1500. --enable-system-iconv Use iconv() from system-installed libraries
  1501. [default=yes]
  1502. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1503. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1504. --enable-audio Enable the audio subsystem [default=yes]
  1505. --enable-video Enable the video subsystem [default=yes]
  1506. --enable-render Enable the render subsystem [default=yes]
  1507. --enable-events Enable the events subsystem [default=yes]
  1508. --enable-joystick Enable the joystick subsystem [default=yes]
  1509. --enable-haptic Enable the haptic (force feedback) subsystem
  1510. [default=yes]
  1511. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1512. --enable-sensor Enable the sensor subsystem [default=yes]
  1513. --enable-power Enable the power subsystem [default=yes]
  1514. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1515. --enable-timers Enable the timer subsystem [default=yes]
  1516. --enable-file Enable the file subsystem [default=yes]
  1517. --enable-misc Enable the misc subsystem [default=yes]
  1518. --enable-locale Enable the locale subsystem [default=yes]
  1519. --enable-loadso Enable the shared object loading subsystem
  1520. [default=yes]
  1521. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1522. --enable-assembly Enable assembly routines [default=yes]
  1523. --enable-ssemath Allow GCC to use SSE floating point math
  1524. [default=maybe]
  1525. --enable-mmx use MMX assembly routines [default=yes]
  1526. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1527. --enable-sse use SSE assembly routines [default=yes]
  1528. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1529. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1530. --enable-altivec use Altivec assembly routines [default=yes]
  1531. --enable-lsx use LSX assembly routines [default=yes]
  1532. --enable-lasx use LASX assembly routines [default=yes]
  1533. --enable-oss support the OSS audio API [default=maybe]
  1534. --enable-alsa support the ALSA audio API [default=yes]
  1535. --disable-alsatest Do not try to compile and run a test Alsa program
  1536. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1537. --enable-jack use JACK audio [default=yes]
  1538. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1539. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1540. --disable-esdtest Do not try to compile and run a test ESD program
  1541. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1542. --enable-pipewire use Pipewire audio [default=yes]
  1543. --enable-pipewire-shared
  1544. dynamically load Pipewire support [default=yes]
  1545. --enable-pulseaudio use PulseAudio [default=yes]
  1546. --enable-pulseaudio-shared
  1547. dynamically load PulseAudio support [default=yes]
  1548. --enable-arts support the Analog Real Time Synthesizer
  1549. [default=yes]
  1550. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1551. --enable-nas support the NAS audio API [default=yes]
  1552. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1553. --enable-sndio support the sndio audio API [default=yes]
  1554. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1555. --enable-fusionsound use FusionSound audio driver [default=no]
  1556. --enable-fusionsound-shared
  1557. dynamically load fusionsound audio support
  1558. [default=yes]
  1559. --enable-diskaudio support the disk writer audio driver [default=yes]
  1560. --enable-dummyaudio support the dummy audio driver [default=yes]
  1561. --enable-libsamplerate use libsamplerate for audio rate conversion
  1562. [default=yes]
  1563. --enable-libsamplerate-shared
  1564. dynamically load libsamplerate [default=yes]
  1565. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1566. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1567. --enable-werror treat warnings as errors [default=no]
  1568. --enable-video-wayland use Wayland video driver [default=yes]
  1569. --enable-video-wayland-qt-touch
  1570. QtWayland server support for Wayland video driver
  1571. [default=yes]
  1572. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1573. --enable-libdecor use libdecor for Wayland client-side decorations
  1574. [default=yes]
  1575. --enable-libdecor-shared
  1576. dynamically load libdecor [default=yes]
  1577. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1578. --enable-video-x11 use X11 video driver [default=maybe]
  1579. --enable-x11-shared dynamically load X11 support [default=maybe]
  1580. --enable-video-x11-xcursor
  1581. enable X11 Xcursor support [default=yes]
  1582. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1583. --enable-video-x11-xinput
  1584. enable X11 XInput extension for manymouse, tablets,
  1585. etc [default=yes]
  1586. --enable-video-x11-xfixes
  1587. enable X11 Xfixes support [default=yes]
  1588. --enable-video-x11-xrandr
  1589. enable X11 Xrandr extension for fullscreen
  1590. [default=yes]
  1591. --enable-video-x11-scrnsaver
  1592. enable X11 screensaver extension [default=yes]
  1593. --enable-video-x11-xshape
  1594. enable X11 XShape support [default=yes]
  1595. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1596. --enable-video-cocoa use Cocoa video driver [default=yes]
  1597. --enable-video-metal include Metal support [default=yes]
  1598. --enable-render-metal enable the Metal render driver [default=yes]
  1599. --enable-video-directfb use DirectFB video driver [default=no]
  1600. --enable-directfb-shared
  1601. dynamically load directfb support [default=yes]
  1602. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1603. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1604. --enable-video-dummy use dummy video driver [default=yes]
  1605. --enable-video-offscreen
  1606. use offscreen video driver [default=yes]
  1607. --enable-video-opengl include OpenGL support [default=yes]
  1608. --enable-video-opengles include OpenGL ES support [default=yes]
  1609. --enable-video-opengles1
  1610. include OpenGL ES 1.1 support [default=yes]
  1611. --enable-video-opengles2
  1612. include OpenGL ES 2.0 support [default=yes]
  1613. --enable-video-vulkan include Vulkan support [default=yes]
  1614. --enable-libudev enable libudev support [default=yes]
  1615. --enable-dbus enable D-Bus support [default=yes]
  1616. --enable-ime enable IME support [default=yes]
  1617. --enable-ibus enable IBus support [default=yes]
  1618. --enable-fcitx enable fcitx support [default=yes]
  1619. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1620. --enable-pthreads use POSIX threads for multi-threading
  1621. [default=maybe]
  1622. --enable-pthread-sem use pthread semaphores [default=maybe]
  1623. --enable-directx use DirectX for Windows audio/video [default=yes]
  1624. --enable-xinput use Xinput for Windows [default=yes]
  1625. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1626. --enable-hidapi-joystick
  1627. use HIDAPI for low level joystick drivers
  1628. [default=yes]
  1629. --enable-hidapi-libusb use libusb for low level joystick drivers
  1630. [default=maybe]
  1631. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1632. UNIX [default=yes]
  1633. --enable-rpath use an rpath when linking SDL [default=yes]
  1634. --enable-backgrounding-signal
  1635. number to use for magic backgrounding signal or 'no'
  1636. [default=no]
  1637. --enable-foregrounding-signal
  1638. number to use for magic foregrounding signal or 'no'
  1639. [default=no]
  1640. --enable-joystick-virtual
  1641. enable virtual joystick APIs [default=yes]
  1642. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1643. --enable-sdl2-config Install sdl2-config [default=yes]
  1644. --enable-vendor-info=STRING
  1645. Add vendor info to SDL_REVISION
  1646. Optional Packages:
  1647. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1648. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1649. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1650. both]
  1651. --with-aix-soname=aix|svr4|both
  1652. shared library versioning (aka "SONAME") variant to
  1653. provide on AIX, [default=aix].
  1654. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1655. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1656. compiler's sysroot if not specified).
  1657. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1658. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1659. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1660. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1661. --with-x use the X Window System
  1662. Some influential environment variables:
  1663. CC C compiler command
  1664. CFLAGS C compiler flags
  1665. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1666. nonstandard directory <lib dir>
  1667. LIBS libraries to pass to the linker, e.g. -l<library>
  1668. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1669. you have headers in a nonstandard directory <include dir>
  1670. LT_SYS_LIBRARY_PATH
  1671. User-defined run-time library search path.
  1672. CXX C++ compiler command
  1673. CXXFLAGS C++ compiler flags
  1674. CXXCPP C++ preprocessor
  1675. PKG_CONFIG path to pkg-config utility
  1676. PKG_CONFIG_PATH
  1677. directories to add to pkg-config's search path
  1678. PKG_CONFIG_LIBDIR
  1679. path overriding pkg-config's built-in search path
  1680. CPP C preprocessor
  1681. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1682. JACK_LIBS linker flags for JACK, overriding pkg-config
  1683. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1684. ESD_LIBS linker flags for ESD, overriding pkg-config
  1685. PIPEWIRE_CFLAGS
  1686. C compiler flags for PIPEWIRE, overriding pkg-config
  1687. PIPEWIRE_LIBS
  1688. linker flags for PIPEWIRE, overriding pkg-config
  1689. PULSEAUDIO_CFLAGS
  1690. C compiler flags for PULSEAUDIO, overriding pkg-config
  1691. PULSEAUDIO_LIBS
  1692. linker flags for PULSEAUDIO, overriding pkg-config
  1693. SNDIO_CFLAGS
  1694. C compiler flags for SNDIO, overriding pkg-config
  1695. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1696. FUSIONSOUND_CFLAGS
  1697. C compiler flags for FUSIONSOUND, overriding pkg-config
  1698. FUSIONSOUND_LIBS
  1699. linker flags for FUSIONSOUND, overriding pkg-config
  1700. DECOR_CFLAGS
  1701. C compiler flags for DECOR, overriding pkg-config
  1702. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1703. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1704. RPI_LIBS linker flags for RPI, overriding pkg-config
  1705. XMKMF Path to xmkmf, Makefile generator for X Window System
  1706. DIRECTFB_CFLAGS
  1707. C compiler flags for DIRECTFB, overriding pkg-config
  1708. DIRECTFB_LIBS
  1709. linker flags for DIRECTFB, overriding pkg-config
  1710. LIBDRM_CFLAGS
  1711. C compiler flags for LIBDRM, overriding pkg-config
  1712. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1713. LIBGBM_CFLAGS
  1714. C compiler flags for LIBGBM, overriding pkg-config
  1715. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1716. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1717. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1718. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1719. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1720. LIBUSB_CFLAGS
  1721. C compiler flags for LIBUSB, overriding pkg-config
  1722. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1723. Use these variables to override the choices made by `configure' or to help
  1724. it to find libraries and programs with nonstandard names/locations.
  1725. Report bugs to the package provider.
  1726. _ACEOF
  1727. ac_status=$?
  1728. fi
  1729. if test "$ac_init_help" = "recursive"; then
  1730. # If there are subdirs, report their specific --help.
  1731. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1732. test -d "$ac_dir" ||
  1733. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1734. continue
  1735. ac_builddir=.
  1736. case "$ac_dir" in
  1737. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1738. *)
  1739. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1740. # A ".." for each directory in $ac_dir_suffix.
  1741. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1742. case $ac_top_builddir_sub in
  1743. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1744. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1745. esac ;;
  1746. esac
  1747. ac_abs_top_builddir=$ac_pwd
  1748. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1749. # for backward compatibility:
  1750. ac_top_builddir=$ac_top_build_prefix
  1751. case $srcdir in
  1752. .) # We are building in place.
  1753. ac_srcdir=.
  1754. ac_top_srcdir=$ac_top_builddir_sub
  1755. ac_abs_top_srcdir=$ac_pwd ;;
  1756. [\\/]* | ?:[\\/]* ) # Absolute name.
  1757. ac_srcdir=$srcdir$ac_dir_suffix;
  1758. ac_top_srcdir=$srcdir
  1759. ac_abs_top_srcdir=$srcdir ;;
  1760. *) # Relative name.
  1761. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1762. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1763. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1764. esac
  1765. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1766. cd "$ac_dir" || { ac_status=$?; continue; }
  1767. # Check for configure.gnu first; this name is used for a wrapper for
  1768. # Metaconfig's "Configure" on case-insensitive file systems.
  1769. if test -f "$ac_srcdir/configure.gnu"; then
  1770. echo &&
  1771. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1772. elif test -f "$ac_srcdir/configure"; then
  1773. echo &&
  1774. $SHELL "$ac_srcdir/configure" --help=recursive
  1775. else
  1776. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1777. fi || ac_status=$?
  1778. cd "$ac_pwd" || { ac_status=$?; break; }
  1779. done
  1780. fi
  1781. test -n "$ac_init_help" && exit $ac_status
  1782. if $ac_init_version; then
  1783. cat <<\_ACEOF
  1784. configure
  1785. generated by GNU Autoconf 2.71
  1786. Copyright (C) 2021 Free Software Foundation, Inc.
  1787. This configure script is free software; the Free Software Foundation
  1788. gives unlimited permission to copy, distribute and modify it.
  1789. _ACEOF
  1790. exit
  1791. fi
  1792. ## ------------------------ ##
  1793. ## Autoconf initialization. ##
  1794. ## ------------------------ ##
  1795. # ac_fn_c_try_compile LINENO
  1796. # --------------------------
  1797. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1798. ac_fn_c_try_compile ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. rm -f conftest.$ac_objext conftest.beam
  1802. if { { ac_try="$ac_compile"
  1803. case "(($ac_try" in
  1804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1805. *) ac_try_echo=$ac_try;;
  1806. esac
  1807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1808. printf "%s\n" "$ac_try_echo"; } >&5
  1809. (eval "$ac_compile") 2>conftest.err
  1810. ac_status=$?
  1811. if test -s conftest.err; then
  1812. grep -v '^ *+' conftest.err >conftest.er1
  1813. cat conftest.er1 >&5
  1814. mv -f conftest.er1 conftest.err
  1815. fi
  1816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1817. test $ac_status = 0; } && {
  1818. test -z "$ac_c_werror_flag" ||
  1819. test ! -s conftest.err
  1820. } && test -s conftest.$ac_objext
  1821. then :
  1822. ac_retval=0
  1823. else $as_nop
  1824. printf "%s\n" "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_c_try_compile
  1831. # ac_fn_c_try_link LINENO
  1832. # -----------------------
  1833. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1834. ac_fn_c_try_link ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1838. if { { ac_try="$ac_link"
  1839. case "(($ac_try" in
  1840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1841. *) ac_try_echo=$ac_try;;
  1842. esac
  1843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1844. printf "%s\n" "$ac_try_echo"; } >&5
  1845. (eval "$ac_link") 2>conftest.err
  1846. ac_status=$?
  1847. if test -s conftest.err; then
  1848. grep -v '^ *+' conftest.err >conftest.er1
  1849. cat conftest.er1 >&5
  1850. mv -f conftest.er1 conftest.err
  1851. fi
  1852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1853. test $ac_status = 0; } && {
  1854. test -z "$ac_c_werror_flag" ||
  1855. test ! -s conftest.err
  1856. } && test -s conftest$ac_exeext && {
  1857. test "$cross_compiling" = yes ||
  1858. test -x conftest$ac_exeext
  1859. }
  1860. then :
  1861. ac_retval=0
  1862. else $as_nop
  1863. printf "%s\n" "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=1
  1866. fi
  1867. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1868. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1869. # interfere with the next link command; also delete a directory that is
  1870. # left behind by Apple's compiler. We do this before executing the actions.
  1871. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1872. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1873. as_fn_set_status $ac_retval
  1874. } # ac_fn_c_try_link
  1875. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1876. # -------------------------------------------------------
  1877. # Tests whether HEADER exists and can be compiled using the include files in
  1878. # INCLUDES, setting the cache variable VAR accordingly.
  1879. ac_fn_c_check_header_compile ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. printf %s "checking for $2... " >&6; }
  1884. if eval test \${$3+y}
  1885. then :
  1886. printf %s "(cached) " >&6
  1887. else $as_nop
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $4
  1891. #include <$2>
  1892. _ACEOF
  1893. if ac_fn_c_try_compile "$LINENO"
  1894. then :
  1895. eval "$3=yes"
  1896. else $as_nop
  1897. eval "$3=no"
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1900. fi
  1901. eval ac_res=\$$3
  1902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. printf "%s\n" "$ac_res" >&6; }
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. } # ac_fn_c_check_header_compile
  1906. # ac_fn_c_check_func LINENO FUNC VAR
  1907. # ----------------------------------
  1908. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1909. ac_fn_c_check_func ()
  1910. {
  1911. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1913. printf %s "checking for $2... " >&6; }
  1914. if eval test \${$3+y}
  1915. then :
  1916. printf %s "(cached) " >&6
  1917. else $as_nop
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1921. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1922. #define $2 innocuous_$2
  1923. /* System header to define __stub macros and hopefully few prototypes,
  1924. which can conflict with char $2 (); below. */
  1925. #include <limits.h>
  1926. #undef $2
  1927. /* Override any GCC internal prototype to avoid an error.
  1928. Use char because int might match the return type of a GCC
  1929. builtin and then its argument prototype would still apply. */
  1930. #ifdef __cplusplus
  1931. extern "C"
  1932. #endif
  1933. char $2 ();
  1934. /* The GNU C library defines this for functions which it implements
  1935. to always fail with ENOSYS. Some functions are actually named
  1936. something starting with __ and the normal name is an alias. */
  1937. #if defined __stub_$2 || defined __stub___$2
  1938. choke me
  1939. #endif
  1940. int
  1941. main (void)
  1942. {
  1943. return $2 ();
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_link "$LINENO"
  1949. then :
  1950. eval "$3=yes"
  1951. else $as_nop
  1952. eval "$3=no"
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1955. conftest$ac_exeext conftest.$ac_ext
  1956. fi
  1957. eval ac_res=\$$3
  1958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1959. printf "%s\n" "$ac_res" >&6; }
  1960. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1961. } # ac_fn_c_check_func
  1962. # ac_fn_cxx_try_compile LINENO
  1963. # ----------------------------
  1964. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1965. ac_fn_cxx_try_compile ()
  1966. {
  1967. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1968. rm -f conftest.$ac_objext conftest.beam
  1969. if { { ac_try="$ac_compile"
  1970. case "(($ac_try" in
  1971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1972. *) ac_try_echo=$ac_try;;
  1973. esac
  1974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1975. printf "%s\n" "$ac_try_echo"; } >&5
  1976. (eval "$ac_compile") 2>conftest.err
  1977. ac_status=$?
  1978. if test -s conftest.err; then
  1979. grep -v '^ *+' conftest.err >conftest.er1
  1980. cat conftest.er1 >&5
  1981. mv -f conftest.er1 conftest.err
  1982. fi
  1983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1984. test $ac_status = 0; } && {
  1985. test -z "$ac_cxx_werror_flag" ||
  1986. test ! -s conftest.err
  1987. } && test -s conftest.$ac_objext
  1988. then :
  1989. ac_retval=0
  1990. else $as_nop
  1991. printf "%s\n" "$as_me: failed program was:" >&5
  1992. sed 's/^/| /' conftest.$ac_ext >&5
  1993. ac_retval=1
  1994. fi
  1995. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1996. as_fn_set_status $ac_retval
  1997. } # ac_fn_cxx_try_compile
  1998. # ac_fn_cxx_try_cpp LINENO
  1999. # ------------------------
  2000. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2001. ac_fn_cxx_try_cpp ()
  2002. {
  2003. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2004. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2005. case "(($ac_try" in
  2006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2007. *) ac_try_echo=$ac_try;;
  2008. esac
  2009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2010. printf "%s\n" "$ac_try_echo"; } >&5
  2011. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2012. ac_status=$?
  2013. if test -s conftest.err; then
  2014. grep -v '^ *+' conftest.err >conftest.er1
  2015. cat conftest.er1 >&5
  2016. mv -f conftest.er1 conftest.err
  2017. fi
  2018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2019. test $ac_status = 0; } > conftest.i && {
  2020. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2021. test ! -s conftest.err
  2022. }
  2023. then :
  2024. ac_retval=0
  2025. else $as_nop
  2026. printf "%s\n" "$as_me: failed program was:" >&5
  2027. sed 's/^/| /' conftest.$ac_ext >&5
  2028. ac_retval=1
  2029. fi
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. as_fn_set_status $ac_retval
  2032. } # ac_fn_cxx_try_cpp
  2033. # ac_fn_cxx_try_link LINENO
  2034. # -------------------------
  2035. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2036. ac_fn_cxx_try_link ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2040. if { { ac_try="$ac_link"
  2041. case "(($ac_try" in
  2042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2043. *) ac_try_echo=$ac_try;;
  2044. esac
  2045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2046. printf "%s\n" "$ac_try_echo"; } >&5
  2047. (eval "$ac_link") 2>conftest.err
  2048. ac_status=$?
  2049. if test -s conftest.err; then
  2050. grep -v '^ *+' conftest.err >conftest.er1
  2051. cat conftest.er1 >&5
  2052. mv -f conftest.er1 conftest.err
  2053. fi
  2054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2055. test $ac_status = 0; } && {
  2056. test -z "$ac_cxx_werror_flag" ||
  2057. test ! -s conftest.err
  2058. } && test -s conftest$ac_exeext && {
  2059. test "$cross_compiling" = yes ||
  2060. test -x conftest$ac_exeext
  2061. }
  2062. then :
  2063. ac_retval=0
  2064. else $as_nop
  2065. printf "%s\n" "$as_me: failed program was:" >&5
  2066. sed 's/^/| /' conftest.$ac_ext >&5
  2067. ac_retval=1
  2068. fi
  2069. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2070. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2071. # interfere with the next link command; also delete a directory that is
  2072. # left behind by Apple's compiler. We do this before executing the actions.
  2073. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. as_fn_set_status $ac_retval
  2076. } # ac_fn_cxx_try_link
  2077. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2078. # -------------------------------------------
  2079. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2080. # variable VAR accordingly.
  2081. ac_fn_c_check_type ()
  2082. {
  2083. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2085. printf %s "checking for $2... " >&6; }
  2086. if eval test \${$3+y}
  2087. then :
  2088. printf %s "(cached) " >&6
  2089. else $as_nop
  2090. eval "$3=no"
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $4
  2094. int
  2095. main (void)
  2096. {
  2097. if (sizeof ($2))
  2098. return 0;
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. if ac_fn_c_try_compile "$LINENO"
  2104. then :
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. int
  2109. main (void)
  2110. {
  2111. if (sizeof (($2)))
  2112. return 0;
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"
  2118. then :
  2119. else $as_nop
  2120. eval "$3=yes"
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2123. fi
  2124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2125. fi
  2126. eval ac_res=\$$3
  2127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2128. printf "%s\n" "$ac_res" >&6; }
  2129. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2130. } # ac_fn_c_check_type
  2131. # ac_fn_c_try_cpp LINENO
  2132. # ----------------------
  2133. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2134. ac_fn_c_try_cpp ()
  2135. {
  2136. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2137. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2138. case "(($ac_try" in
  2139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2140. *) ac_try_echo=$ac_try;;
  2141. esac
  2142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2143. printf "%s\n" "$ac_try_echo"; } >&5
  2144. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2145. ac_status=$?
  2146. if test -s conftest.err; then
  2147. grep -v '^ *+' conftest.err >conftest.er1
  2148. cat conftest.er1 >&5
  2149. mv -f conftest.er1 conftest.err
  2150. fi
  2151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2152. test $ac_status = 0; } > conftest.i && {
  2153. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2154. test ! -s conftest.err
  2155. }
  2156. then :
  2157. ac_retval=0
  2158. else $as_nop
  2159. printf "%s\n" "$as_me: failed program was:" >&5
  2160. sed 's/^/| /' conftest.$ac_ext >&5
  2161. ac_retval=1
  2162. fi
  2163. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2164. as_fn_set_status $ac_retval
  2165. } # ac_fn_c_try_cpp
  2166. # ac_fn_c_try_run LINENO
  2167. # ----------------------
  2168. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2169. # executables *can* be run.
  2170. ac_fn_c_try_run ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. if { { ac_try="$ac_link"
  2174. case "(($ac_try" in
  2175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2176. *) ac_try_echo=$ac_try;;
  2177. esac
  2178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2179. printf "%s\n" "$ac_try_echo"; } >&5
  2180. (eval "$ac_link") 2>&5
  2181. ac_status=$?
  2182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2183. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2184. { { case "(($ac_try" in
  2185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2186. *) ac_try_echo=$ac_try;;
  2187. esac
  2188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2189. printf "%s\n" "$ac_try_echo"; } >&5
  2190. (eval "$ac_try") 2>&5
  2191. ac_status=$?
  2192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2193. test $ac_status = 0; }; }
  2194. then :
  2195. ac_retval=0
  2196. else $as_nop
  2197. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2198. printf "%s\n" "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. ac_retval=$ac_status
  2201. fi
  2202. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2203. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2204. as_fn_set_status $ac_retval
  2205. } # ac_fn_c_try_run
  2206. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2207. # ----------------------------------------------------
  2208. # Tries to find if the field MEMBER exists in type AGGR, after including
  2209. # INCLUDES, setting cache variable VAR accordingly.
  2210. ac_fn_c_check_member ()
  2211. {
  2212. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2214. printf %s "checking for $2.$3... " >&6; }
  2215. if eval test \${$4+y}
  2216. then :
  2217. printf %s "(cached) " >&6
  2218. else $as_nop
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main (void)
  2224. {
  2225. static $2 ac_aggr;
  2226. if (ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_c_try_compile "$LINENO"
  2233. then :
  2234. eval "$4=yes"
  2235. else $as_nop
  2236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2237. /* end confdefs.h. */
  2238. $5
  2239. int
  2240. main (void)
  2241. {
  2242. static $2 ac_aggr;
  2243. if (sizeof ac_aggr.$3)
  2244. return 0;
  2245. ;
  2246. return 0;
  2247. }
  2248. _ACEOF
  2249. if ac_fn_c_try_compile "$LINENO"
  2250. then :
  2251. eval "$4=yes"
  2252. else $as_nop
  2253. eval "$4=no"
  2254. fi
  2255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2256. fi
  2257. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2258. fi
  2259. eval ac_res=\$$4
  2260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2261. printf "%s\n" "$ac_res" >&6; }
  2262. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2263. } # ac_fn_c_check_member
  2264. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2265. # ------------------------------------------------------------------
  2266. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2267. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2268. ac_fn_check_decl ()
  2269. {
  2270. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2271. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2273. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2274. if eval test \${$3+y}
  2275. then :
  2276. printf %s "(cached) " >&6
  2277. else $as_nop
  2278. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2279. eval ac_save_FLAGS=\$$6
  2280. as_fn_append $6 " $5"
  2281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2282. /* end confdefs.h. */
  2283. $4
  2284. int
  2285. main (void)
  2286. {
  2287. #ifndef $as_decl_name
  2288. #ifdef __cplusplus
  2289. (void) $as_decl_use;
  2290. #else
  2291. (void) $as_decl_name;
  2292. #endif
  2293. #endif
  2294. ;
  2295. return 0;
  2296. }
  2297. _ACEOF
  2298. if ac_fn_c_try_compile "$LINENO"
  2299. then :
  2300. eval "$3=yes"
  2301. else $as_nop
  2302. eval "$3=no"
  2303. fi
  2304. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2305. eval $6=\$ac_save_FLAGS
  2306. fi
  2307. eval ac_res=\$$3
  2308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2309. printf "%s\n" "$ac_res" >&6; }
  2310. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2311. } # ac_fn_check_decl
  2312. ac_configure_args_raw=
  2313. for ac_arg
  2314. do
  2315. case $ac_arg in
  2316. *\'*)
  2317. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2318. esac
  2319. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2320. done
  2321. case $ac_configure_args_raw in
  2322. *$as_nl*)
  2323. ac_safe_unquote= ;;
  2324. *)
  2325. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2326. ac_unsafe_a="$ac_unsafe_z#~"
  2327. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2328. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2329. esac
  2330. cat >config.log <<_ACEOF
  2331. This file contains any messages produced by compilers while
  2332. running configure, to aid debugging if configure makes a mistake.
  2333. It was created by $as_me, which was
  2334. generated by GNU Autoconf 2.71. Invocation command line was
  2335. $ $0$ac_configure_args_raw
  2336. _ACEOF
  2337. exec 5>>config.log
  2338. {
  2339. cat <<_ASUNAME
  2340. ## --------- ##
  2341. ## Platform. ##
  2342. ## --------- ##
  2343. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2344. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2345. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2346. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2347. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2348. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2349. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2350. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2351. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2352. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2353. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2354. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2355. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2356. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2357. _ASUNAME
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. case $as_dir in #(((
  2363. '') as_dir=./ ;;
  2364. */) ;;
  2365. *) as_dir=$as_dir/ ;;
  2366. esac
  2367. printf "%s\n" "PATH: $as_dir"
  2368. done
  2369. IFS=$as_save_IFS
  2370. } >&5
  2371. cat >&5 <<_ACEOF
  2372. ## ----------- ##
  2373. ## Core tests. ##
  2374. ## ----------- ##
  2375. _ACEOF
  2376. # Keep a trace of the command line.
  2377. # Strip out --no-create and --no-recursion so they do not pile up.
  2378. # Strip out --silent because we don't want to record it for future runs.
  2379. # Also quote any args containing shell meta-characters.
  2380. # Make two passes to allow for proper duplicate-argument suppression.
  2381. ac_configure_args=
  2382. ac_configure_args0=
  2383. ac_configure_args1=
  2384. ac_must_keep_next=false
  2385. for ac_pass in 1 2
  2386. do
  2387. for ac_arg
  2388. do
  2389. case $ac_arg in
  2390. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2391. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2392. | -silent | --silent | --silen | --sile | --sil)
  2393. continue ;;
  2394. *\'*)
  2395. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2396. esac
  2397. case $ac_pass in
  2398. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2399. 2)
  2400. as_fn_append ac_configure_args1 " '$ac_arg'"
  2401. if test $ac_must_keep_next = true; then
  2402. ac_must_keep_next=false # Got value, back to normal.
  2403. else
  2404. case $ac_arg in
  2405. *=* | --config-cache | -C | -disable-* | --disable-* \
  2406. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2407. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2408. | -with-* | --with-* | -without-* | --without-* | --x)
  2409. case "$ac_configure_args0 " in
  2410. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2411. esac
  2412. ;;
  2413. -* ) ac_must_keep_next=true ;;
  2414. esac
  2415. fi
  2416. as_fn_append ac_configure_args " '$ac_arg'"
  2417. ;;
  2418. esac
  2419. done
  2420. done
  2421. { ac_configure_args0=; unset ac_configure_args0;}
  2422. { ac_configure_args1=; unset ac_configure_args1;}
  2423. # When interrupted or exit'd, cleanup temporary files, and complete
  2424. # config.log. We remove comments because anyway the quotes in there
  2425. # would cause problems or look ugly.
  2426. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2427. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2428. trap 'exit_status=$?
  2429. # Sanitize IFS.
  2430. IFS=" "" $as_nl"
  2431. # Save into config.log some information that might help in debugging.
  2432. {
  2433. echo
  2434. printf "%s\n" "## ---------------- ##
  2435. ## Cache variables. ##
  2436. ## ---------------- ##"
  2437. echo
  2438. # The following way of writing the cache mishandles newlines in values,
  2439. (
  2440. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2441. eval ac_val=\$$ac_var
  2442. case $ac_val in #(
  2443. *${as_nl}*)
  2444. case $ac_var in #(
  2445. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2446. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2447. esac
  2448. case $ac_var in #(
  2449. _ | IFS | as_nl) ;; #(
  2450. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2451. *) { eval $ac_var=; unset $ac_var;} ;;
  2452. esac ;;
  2453. esac
  2454. done
  2455. (set) 2>&1 |
  2456. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2457. *${as_nl}ac_space=\ *)
  2458. sed -n \
  2459. "s/'\''/'\''\\\\'\'''\''/g;
  2460. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2461. ;; #(
  2462. *)
  2463. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2464. ;;
  2465. esac |
  2466. sort
  2467. )
  2468. echo
  2469. printf "%s\n" "## ----------------- ##
  2470. ## Output variables. ##
  2471. ## ----------------- ##"
  2472. echo
  2473. for ac_var in $ac_subst_vars
  2474. do
  2475. eval ac_val=\$$ac_var
  2476. case $ac_val in
  2477. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2478. esac
  2479. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2480. done | sort
  2481. echo
  2482. if test -n "$ac_subst_files"; then
  2483. printf "%s\n" "## ------------------- ##
  2484. ## File substitutions. ##
  2485. ## ------------------- ##"
  2486. echo
  2487. for ac_var in $ac_subst_files
  2488. do
  2489. eval ac_val=\$$ac_var
  2490. case $ac_val in
  2491. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2492. esac
  2493. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2494. done | sort
  2495. echo
  2496. fi
  2497. if test -s confdefs.h; then
  2498. printf "%s\n" "## ----------- ##
  2499. ## confdefs.h. ##
  2500. ## ----------- ##"
  2501. echo
  2502. cat confdefs.h
  2503. echo
  2504. fi
  2505. test "$ac_signal" != 0 &&
  2506. printf "%s\n" "$as_me: caught signal $ac_signal"
  2507. printf "%s\n" "$as_me: exit $exit_status"
  2508. } >&5
  2509. rm -f core *.core core.conftest.* &&
  2510. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2511. exit $exit_status
  2512. ' 0
  2513. for ac_signal in 1 2 13 15; do
  2514. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2515. done
  2516. ac_signal=0
  2517. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2518. rm -f -r conftest* confdefs.h
  2519. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2520. # Predefined preprocessor variables.
  2521. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2522. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2523. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2524. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2525. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2526. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2527. # Let the site file select an alternate cache file if it wants to.
  2528. # Prefer an explicitly selected file to automatically selected ones.
  2529. if test -n "$CONFIG_SITE"; then
  2530. ac_site_files="$CONFIG_SITE"
  2531. elif test "x$prefix" != xNONE; then
  2532. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2533. else
  2534. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2535. fi
  2536. for ac_site_file in $ac_site_files
  2537. do
  2538. case $ac_site_file in #(
  2539. */*) :
  2540. ;; #(
  2541. *) :
  2542. ac_site_file=./$ac_site_file ;;
  2543. esac
  2544. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2546. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2547. sed 's/^/| /' "$ac_site_file" >&5
  2548. . "$ac_site_file" \
  2549. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2550. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2551. as_fn_error $? "failed to load site script $ac_site_file
  2552. See \`config.log' for more details" "$LINENO" 5; }
  2553. fi
  2554. done
  2555. if test -r "$cache_file"; then
  2556. # Some versions of bash will fail to source /dev/null (special files
  2557. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2558. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2560. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2561. case $cache_file in
  2562. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2563. *) . "./$cache_file";;
  2564. esac
  2565. fi
  2566. else
  2567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2568. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2569. >$cache_file
  2570. fi
  2571. # Test code for whether the C compiler supports C89 (global declarations)
  2572. ac_c_conftest_c89_globals='
  2573. /* Does the compiler advertise C89 conformance?
  2574. Do not test the value of __STDC__, because some compilers set it to 0
  2575. while being otherwise adequately conformant. */
  2576. #if !defined __STDC__
  2577. # error "Compiler does not advertise C89 conformance"
  2578. #endif
  2579. #include <stddef.h>
  2580. #include <stdarg.h>
  2581. struct stat;
  2582. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2583. struct buf { int x; };
  2584. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2585. static char *e (p, i)
  2586. char **p;
  2587. int i;
  2588. {
  2589. return p[i];
  2590. }
  2591. static char *f (char * (*g) (char **, int), char **p, ...)
  2592. {
  2593. char *s;
  2594. va_list v;
  2595. va_start (v,p);
  2596. s = g (p, va_arg (v,int));
  2597. va_end (v);
  2598. return s;
  2599. }
  2600. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2601. function prototypes and stuff, but not \xHH hex character constants.
  2602. These do not provoke an error unfortunately, instead are silently treated
  2603. as an "x". The following induces an error, until -std is added to get
  2604. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2605. array size at least. It is necessary to write \x00 == 0 to get something
  2606. that is true only with -std. */
  2607. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2608. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2609. inside strings and character constants. */
  2610. #define FOO(x) '\''x'\''
  2611. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2612. int test (int i, double x);
  2613. struct s1 {int (*f) (int a);};
  2614. struct s2 {int (*f) (double a);};
  2615. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2616. int, int);'
  2617. # Test code for whether the C compiler supports C89 (body of main).
  2618. ac_c_conftest_c89_main='
  2619. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2620. '
  2621. # Test code for whether the C compiler supports C99 (global declarations)
  2622. ac_c_conftest_c99_globals='
  2623. // Does the compiler advertise C99 conformance?
  2624. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2625. # error "Compiler does not advertise C99 conformance"
  2626. #endif
  2627. #include <stdbool.h>
  2628. extern int puts (const char *);
  2629. extern int printf (const char *, ...);
  2630. extern int dprintf (int, const char *, ...);
  2631. extern void *malloc (size_t);
  2632. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2633. // dprintf is used instead of fprintf to avoid needing to declare
  2634. // FILE and stderr.
  2635. #define debug(...) dprintf (2, __VA_ARGS__)
  2636. #define showlist(...) puts (#__VA_ARGS__)
  2637. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2638. static void
  2639. test_varargs_macros (void)
  2640. {
  2641. int x = 1234;
  2642. int y = 5678;
  2643. debug ("Flag");
  2644. debug ("X = %d\n", x);
  2645. showlist (The first, second, and third items.);
  2646. report (x>y, "x is %d but y is %d", x, y);
  2647. }
  2648. // Check long long types.
  2649. #define BIG64 18446744073709551615ull
  2650. #define BIG32 4294967295ul
  2651. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2652. #if !BIG_OK
  2653. #error "your preprocessor is broken"
  2654. #endif
  2655. #if BIG_OK
  2656. #else
  2657. #error "your preprocessor is broken"
  2658. #endif
  2659. static long long int bignum = -9223372036854775807LL;
  2660. static unsigned long long int ubignum = BIG64;
  2661. struct incomplete_array
  2662. {
  2663. int datasize;
  2664. double data[];
  2665. };
  2666. struct named_init {
  2667. int number;
  2668. const wchar_t *name;
  2669. double average;
  2670. };
  2671. typedef const char *ccp;
  2672. static inline int
  2673. test_restrict (ccp restrict text)
  2674. {
  2675. // See if C++-style comments work.
  2676. // Iterate through items via the restricted pointer.
  2677. // Also check for declarations in for loops.
  2678. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2679. continue;
  2680. return 0;
  2681. }
  2682. // Check varargs and va_copy.
  2683. static bool
  2684. test_varargs (const char *format, ...)
  2685. {
  2686. va_list args;
  2687. va_start (args, format);
  2688. va_list args_copy;
  2689. va_copy (args_copy, args);
  2690. const char *str = "";
  2691. int number = 0;
  2692. float fnumber = 0;
  2693. while (*format)
  2694. {
  2695. switch (*format++)
  2696. {
  2697. case '\''s'\'': // string
  2698. str = va_arg (args_copy, const char *);
  2699. break;
  2700. case '\''d'\'': // int
  2701. number = va_arg (args_copy, int);
  2702. break;
  2703. case '\''f'\'': // float
  2704. fnumber = va_arg (args_copy, double);
  2705. break;
  2706. default:
  2707. break;
  2708. }
  2709. }
  2710. va_end (args_copy);
  2711. va_end (args);
  2712. return *str && number && fnumber;
  2713. }
  2714. '
  2715. # Test code for whether the C compiler supports C99 (body of main).
  2716. ac_c_conftest_c99_main='
  2717. // Check bool.
  2718. _Bool success = false;
  2719. success |= (argc != 0);
  2720. // Check restrict.
  2721. if (test_restrict ("String literal") == 0)
  2722. success = true;
  2723. char *restrict newvar = "Another string";
  2724. // Check varargs.
  2725. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2726. test_varargs_macros ();
  2727. // Check flexible array members.
  2728. struct incomplete_array *ia =
  2729. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2730. ia->datasize = 10;
  2731. for (int i = 0; i < ia->datasize; ++i)
  2732. ia->data[i] = i * 1.234;
  2733. // Check named initializers.
  2734. struct named_init ni = {
  2735. .number = 34,
  2736. .name = L"Test wide string",
  2737. .average = 543.34343,
  2738. };
  2739. ni.number = 58;
  2740. int dynamic_array[ni.number];
  2741. dynamic_array[0] = argv[0][0];
  2742. dynamic_array[ni.number - 1] = 543;
  2743. // work around unused variable warnings
  2744. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2745. || dynamic_array[ni.number - 1] != 543);
  2746. '
  2747. # Test code for whether the C compiler supports C11 (global declarations)
  2748. ac_c_conftest_c11_globals='
  2749. // Does the compiler advertise C11 conformance?
  2750. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2751. # error "Compiler does not advertise C11 conformance"
  2752. #endif
  2753. // Check _Alignas.
  2754. char _Alignas (double) aligned_as_double;
  2755. char _Alignas (0) no_special_alignment;
  2756. extern char aligned_as_int;
  2757. char _Alignas (0) _Alignas (int) aligned_as_int;
  2758. // Check _Alignof.
  2759. enum
  2760. {
  2761. int_alignment = _Alignof (int),
  2762. int_array_alignment = _Alignof (int[100]),
  2763. char_alignment = _Alignof (char)
  2764. };
  2765. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2766. // Check _Noreturn.
  2767. int _Noreturn does_not_return (void) { for (;;) continue; }
  2768. // Check _Static_assert.
  2769. struct test_static_assert
  2770. {
  2771. int x;
  2772. _Static_assert (sizeof (int) <= sizeof (long int),
  2773. "_Static_assert does not work in struct");
  2774. long int y;
  2775. };
  2776. // Check UTF-8 literals.
  2777. #define u8 syntax error!
  2778. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2779. // Check duplicate typedefs.
  2780. typedef long *long_ptr;
  2781. typedef long int *long_ptr;
  2782. typedef long_ptr long_ptr;
  2783. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2784. struct anonymous
  2785. {
  2786. union {
  2787. struct { int i; int j; };
  2788. struct { int k; long int l; } w;
  2789. };
  2790. int m;
  2791. } v1;
  2792. '
  2793. # Test code for whether the C compiler supports C11 (body of main).
  2794. ac_c_conftest_c11_main='
  2795. _Static_assert ((offsetof (struct anonymous, i)
  2796. == offsetof (struct anonymous, w.k)),
  2797. "Anonymous union alignment botch");
  2798. v1.i = 2;
  2799. v1.w.k = 5;
  2800. ok |= v1.i != 5;
  2801. '
  2802. # Test code for whether the C compiler supports C11 (complete).
  2803. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2804. ${ac_c_conftest_c99_globals}
  2805. ${ac_c_conftest_c11_globals}
  2806. int
  2807. main (int argc, char **argv)
  2808. {
  2809. int ok = 0;
  2810. ${ac_c_conftest_c89_main}
  2811. ${ac_c_conftest_c99_main}
  2812. ${ac_c_conftest_c11_main}
  2813. return ok;
  2814. }
  2815. "
  2816. # Test code for whether the C compiler supports C99 (complete).
  2817. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2818. ${ac_c_conftest_c99_globals}
  2819. int
  2820. main (int argc, char **argv)
  2821. {
  2822. int ok = 0;
  2823. ${ac_c_conftest_c89_main}
  2824. ${ac_c_conftest_c99_main}
  2825. return ok;
  2826. }
  2827. "
  2828. # Test code for whether the C compiler supports C89 (complete).
  2829. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2830. int
  2831. main (int argc, char **argv)
  2832. {
  2833. int ok = 0;
  2834. ${ac_c_conftest_c89_main}
  2835. return ok;
  2836. }
  2837. "
  2838. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2839. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2840. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2841. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2842. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2843. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2844. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2845. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2846. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2847. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2848. ac_cxx_conftest_cxx98_globals='
  2849. // Does the compiler advertise C++98 conformance?
  2850. #if !defined __cplusplus || __cplusplus < 199711L
  2851. # error "Compiler does not advertise C++98 conformance"
  2852. #endif
  2853. // These inclusions are to reject old compilers that
  2854. // lack the unsuffixed header files.
  2855. #include <cstdlib>
  2856. #include <exception>
  2857. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2858. extern void assert (int);
  2859. namespace std {
  2860. extern int strcmp (const char *, const char *);
  2861. }
  2862. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2863. using std::exception;
  2864. using std::strcmp;
  2865. namespace {
  2866. void test_exception_syntax()
  2867. {
  2868. try {
  2869. throw "test";
  2870. } catch (const char *s) {
  2871. // Extra parentheses suppress a warning when building autoconf itself,
  2872. // due to lint rules shared with more typical C programs.
  2873. assert (!(strcmp) (s, "test"));
  2874. }
  2875. }
  2876. template <typename T> struct test_template
  2877. {
  2878. T const val;
  2879. explicit test_template(T t) : val(t) {}
  2880. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2881. };
  2882. } // anonymous namespace
  2883. '
  2884. # Test code for whether the C++ compiler supports C++98 (body of main)
  2885. ac_cxx_conftest_cxx98_main='
  2886. assert (argc);
  2887. assert (! argv[0]);
  2888. {
  2889. test_exception_syntax ();
  2890. test_template<double> tt (2.0);
  2891. assert (tt.add (4) == 6.0);
  2892. assert (true && !false);
  2893. }
  2894. '
  2895. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2896. ac_cxx_conftest_cxx11_globals='
  2897. // Does the compiler advertise C++ 2011 conformance?
  2898. #if !defined __cplusplus || __cplusplus < 201103L
  2899. # error "Compiler does not advertise C++11 conformance"
  2900. #endif
  2901. namespace cxx11test
  2902. {
  2903. constexpr int get_val() { return 20; }
  2904. struct testinit
  2905. {
  2906. int i;
  2907. double d;
  2908. };
  2909. class delegate
  2910. {
  2911. public:
  2912. delegate(int n) : n(n) {}
  2913. delegate(): delegate(2354) {}
  2914. virtual int getval() { return this->n; };
  2915. protected:
  2916. int n;
  2917. };
  2918. class overridden : public delegate
  2919. {
  2920. public:
  2921. overridden(int n): delegate(n) {}
  2922. virtual int getval() override final { return this->n * 2; }
  2923. };
  2924. class nocopy
  2925. {
  2926. public:
  2927. nocopy(int i): i(i) {}
  2928. nocopy() = default;
  2929. nocopy(const nocopy&) = delete;
  2930. nocopy & operator=(const nocopy&) = delete;
  2931. private:
  2932. int i;
  2933. };
  2934. // for testing lambda expressions
  2935. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2936. {
  2937. return f(v);
  2938. }
  2939. // for testing variadic templates and trailing return types
  2940. template <typename V> auto sum(V first) -> V
  2941. {
  2942. return first;
  2943. }
  2944. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2945. {
  2946. return first + sum(rest...);
  2947. }
  2948. }
  2949. '
  2950. # Test code for whether the C++ compiler supports C++11 (body of main)
  2951. ac_cxx_conftest_cxx11_main='
  2952. {
  2953. // Test auto and decltype
  2954. auto a1 = 6538;
  2955. auto a2 = 48573953.4;
  2956. auto a3 = "String literal";
  2957. int total = 0;
  2958. for (auto i = a3; *i; ++i) { total += *i; }
  2959. decltype(a2) a4 = 34895.034;
  2960. }
  2961. {
  2962. // Test constexpr
  2963. short sa[cxx11test::get_val()] = { 0 };
  2964. }
  2965. {
  2966. // Test initializer lists
  2967. cxx11test::testinit il = { 4323, 435234.23544 };
  2968. }
  2969. {
  2970. // Test range-based for
  2971. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2972. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2973. for (auto &x : array) { x += 23; }
  2974. }
  2975. {
  2976. // Test lambda expressions
  2977. using cxx11test::eval;
  2978. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2979. double d = 2.0;
  2980. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2981. assert (d == 5.0);
  2982. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2983. assert (d == 5.0);
  2984. }
  2985. {
  2986. // Test use of variadic templates
  2987. using cxx11test::sum;
  2988. auto a = sum(1);
  2989. auto b = sum(1, 2);
  2990. auto c = sum(1.0, 2.0, 3.0);
  2991. }
  2992. {
  2993. // Test constructor delegation
  2994. cxx11test::delegate d1;
  2995. cxx11test::delegate d2();
  2996. cxx11test::delegate d3(45);
  2997. }
  2998. {
  2999. // Test override and final
  3000. cxx11test::overridden o1(55464);
  3001. }
  3002. {
  3003. // Test nullptr
  3004. char *c = nullptr;
  3005. }
  3006. {
  3007. // Test template brackets
  3008. test_template<::test_template<int>> v(test_template<int>(12));
  3009. }
  3010. {
  3011. // Unicode literals
  3012. char const *utf8 = u8"UTF-8 string \u2500";
  3013. char16_t const *utf16 = u"UTF-8 string \u2500";
  3014. char32_t const *utf32 = U"UTF-32 string \u2500";
  3015. }
  3016. '
  3017. # Test code for whether the C compiler supports C++11 (complete).
  3018. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3019. ${ac_cxx_conftest_cxx11_globals}
  3020. int
  3021. main (int argc, char **argv)
  3022. {
  3023. int ok = 0;
  3024. ${ac_cxx_conftest_cxx98_main}
  3025. ${ac_cxx_conftest_cxx11_main}
  3026. return ok;
  3027. }
  3028. "
  3029. # Test code for whether the C compiler supports C++98 (complete).
  3030. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3031. int
  3032. main (int argc, char **argv)
  3033. {
  3034. int ok = 0;
  3035. ${ac_cxx_conftest_cxx98_main}
  3036. return ok;
  3037. }
  3038. "
  3039. # Auxiliary files required by this configure script.
  3040. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3041. # Locations in which to look for auxiliary files.
  3042. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3043. # Search for a directory containing all of the required auxiliary files,
  3044. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3045. # If we don't find one directory that contains all the files we need,
  3046. # we report the set of missing files from the *first* directory in
  3047. # $ac_aux_dir_candidates and give up.
  3048. ac_missing_aux_files=""
  3049. ac_first_candidate=:
  3050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3052. as_found=false
  3053. for as_dir in $ac_aux_dir_candidates
  3054. do
  3055. IFS=$as_save_IFS
  3056. case $as_dir in #(((
  3057. '') as_dir=./ ;;
  3058. */) ;;
  3059. *) as_dir=$as_dir/ ;;
  3060. esac
  3061. as_found=:
  3062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3063. ac_aux_dir_found=yes
  3064. ac_install_sh=
  3065. for ac_aux in $ac_aux_files
  3066. do
  3067. # As a special case, if "install-sh" is required, that requirement
  3068. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3069. # and $ac_install_sh is set appropriately for whichever one is found.
  3070. if test x"$ac_aux" = x"install-sh"
  3071. then
  3072. if test -f "${as_dir}install-sh"; then
  3073. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3074. ac_install_sh="${as_dir}install-sh -c"
  3075. elif test -f "${as_dir}install.sh"; then
  3076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3077. ac_install_sh="${as_dir}install.sh -c"
  3078. elif test -f "${as_dir}shtool"; then
  3079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3080. ac_install_sh="${as_dir}shtool install -c"
  3081. else
  3082. ac_aux_dir_found=no
  3083. if $ac_first_candidate; then
  3084. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3085. else
  3086. break
  3087. fi
  3088. fi
  3089. else
  3090. if test -f "${as_dir}${ac_aux}"; then
  3091. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3092. else
  3093. ac_aux_dir_found=no
  3094. if $ac_first_candidate; then
  3095. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3096. else
  3097. break
  3098. fi
  3099. fi
  3100. fi
  3101. done
  3102. if test "$ac_aux_dir_found" = yes; then
  3103. ac_aux_dir="$as_dir"
  3104. break
  3105. fi
  3106. ac_first_candidate=false
  3107. as_found=false
  3108. done
  3109. IFS=$as_save_IFS
  3110. if $as_found
  3111. then :
  3112. else $as_nop
  3113. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3114. fi
  3115. # These three variables are undocumented and unsupported,
  3116. # and are intended to be withdrawn in a future Autoconf release.
  3117. # They can cause serious problems if a builder's source tree is in a directory
  3118. # whose full name contains unusual characters.
  3119. if test -f "${ac_aux_dir}config.guess"; then
  3120. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3121. fi
  3122. if test -f "${ac_aux_dir}config.sub"; then
  3123. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3124. fi
  3125. if test -f "$ac_aux_dir/configure"; then
  3126. ac_configure="$SHELL ${ac_aux_dir}configure"
  3127. fi
  3128. # Check that the precious variables saved in the cache have kept the same
  3129. # value.
  3130. ac_cache_corrupted=false
  3131. for ac_var in $ac_precious_vars; do
  3132. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3133. eval ac_new_set=\$ac_env_${ac_var}_set
  3134. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3135. eval ac_new_val=\$ac_env_${ac_var}_value
  3136. case $ac_old_set,$ac_new_set in
  3137. set,)
  3138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3139. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3140. ac_cache_corrupted=: ;;
  3141. ,set)
  3142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3143. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3144. ac_cache_corrupted=: ;;
  3145. ,);;
  3146. *)
  3147. if test "x$ac_old_val" != "x$ac_new_val"; then
  3148. # differences in whitespace do not lead to failure.
  3149. ac_old_val_w=`echo x $ac_old_val`
  3150. ac_new_val_w=`echo x $ac_new_val`
  3151. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3153. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3154. ac_cache_corrupted=:
  3155. else
  3156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3157. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3158. eval $ac_var=\$ac_old_val
  3159. fi
  3160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3161. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3163. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3164. fi;;
  3165. esac
  3166. # Pass precious variables to config.status.
  3167. if test "$ac_new_set" = set; then
  3168. case $ac_new_val in
  3169. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3170. *) ac_arg=$ac_var=$ac_new_val ;;
  3171. esac
  3172. case " $ac_configure_args " in
  3173. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3174. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3175. esac
  3176. fi
  3177. done
  3178. if $ac_cache_corrupted; then
  3179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3180. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3182. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3183. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3184. and start over" "$LINENO" 5
  3185. fi
  3186. ## -------------------- ##
  3187. ## Main body of script. ##
  3188. ## -------------------- ##
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3195. orig_CFLAGS="$CFLAGS"
  3196. # See docs/release_checklist.md
  3197. SDL_MAJOR_VERSION=2
  3198. SDL_MINOR_VERSION=28
  3199. SDL_MICRO_VERSION=3
  3200. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3201. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3202. case "$SDL_MINOR_VERSION" in #(
  3203. *[02468]) :
  3204. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3205. *) :
  3206. SDL_INTERFACE_AGE=0 ;; #(
  3207. *) :
  3208. ;;
  3209. esac
  3210. # libtool versioning
  3211. case `pwd` in
  3212. *\ * | *\ *)
  3213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3214. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3215. esac
  3216. macro_version='2.4.6'
  3217. macro_revision='2.4.6'
  3218. ltmain=$ac_aux_dir/ltmain.sh
  3219. # Make sure we can run config.sub.
  3220. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3221. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3223. printf %s "checking build system type... " >&6; }
  3224. if test ${ac_cv_build+y}
  3225. then :
  3226. printf %s "(cached) " >&6
  3227. else $as_nop
  3228. ac_build_alias=$build_alias
  3229. test "x$ac_build_alias" = x &&
  3230. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3231. test "x$ac_build_alias" = x &&
  3232. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3233. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3234. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3235. fi
  3236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3237. printf "%s\n" "$ac_cv_build" >&6; }
  3238. case $ac_cv_build in
  3239. *-*-*) ;;
  3240. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3241. esac
  3242. build=$ac_cv_build
  3243. ac_save_IFS=$IFS; IFS='-'
  3244. set x $ac_cv_build
  3245. shift
  3246. build_cpu=$1
  3247. build_vendor=$2
  3248. shift; shift
  3249. # Remember, the first character of IFS is used to create $*,
  3250. # except with old shells:
  3251. build_os=$*
  3252. IFS=$ac_save_IFS
  3253. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3255. printf %s "checking host system type... " >&6; }
  3256. if test ${ac_cv_host+y}
  3257. then :
  3258. printf %s "(cached) " >&6
  3259. else $as_nop
  3260. if test "x$host_alias" = x; then
  3261. ac_cv_host=$ac_cv_build
  3262. else
  3263. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3264. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3265. fi
  3266. fi
  3267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3268. printf "%s\n" "$ac_cv_host" >&6; }
  3269. case $ac_cv_host in
  3270. *-*-*) ;;
  3271. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3272. esac
  3273. host=$ac_cv_host
  3274. ac_save_IFS=$IFS; IFS='-'
  3275. set x $ac_cv_host
  3276. shift
  3277. host_cpu=$1
  3278. host_vendor=$2
  3279. shift; shift
  3280. # Remember, the first character of IFS is used to create $*,
  3281. # except with old shells:
  3282. host_os=$*
  3283. IFS=$ac_save_IFS
  3284. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3285. # Backslashify metacharacters that are still active within
  3286. # double-quoted strings.
  3287. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3288. # Same as above, but do not quote variable references.
  3289. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3290. # Sed substitution to delay expansion of an escaped shell variable in a
  3291. # double_quote_subst'ed string.
  3292. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3293. # Sed substitution to delay expansion of an escaped single quote.
  3294. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3295. # Sed substitution to avoid accidental globbing in evaled expressions
  3296. no_glob_subst='s/\*/\\\*/g'
  3297. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3298. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3299. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3301. printf %s "checking how to print strings... " >&6; }
  3302. # Test print first, because it will be a builtin if present.
  3303. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3304. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3305. ECHO='print -r --'
  3306. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3307. ECHO='printf %s\n'
  3308. else
  3309. # Use this function as a fallback that always works.
  3310. func_fallback_echo ()
  3311. {
  3312. eval 'cat <<_LTECHO_EOF
  3313. $1
  3314. _LTECHO_EOF'
  3315. }
  3316. ECHO='func_fallback_echo'
  3317. fi
  3318. # func_echo_all arg...
  3319. # Invoke $ECHO with all args, space-separated.
  3320. func_echo_all ()
  3321. {
  3322. $ECHO ""
  3323. }
  3324. case $ECHO in
  3325. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3326. printf "%s\n" "printf" >&6; } ;;
  3327. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3328. printf "%s\n" "print -r" >&6; } ;;
  3329. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3330. printf "%s\n" "cat" >&6; } ;;
  3331. esac
  3332. ac_ext=c
  3333. ac_cpp='$CPP $CPPFLAGS'
  3334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3337. if test -n "$ac_tool_prefix"; then
  3338. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3339. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3341. printf %s "checking for $ac_word... " >&6; }
  3342. if test ${ac_cv_prog_CC+y}
  3343. then :
  3344. printf %s "(cached) " >&6
  3345. else $as_nop
  3346. if test -n "$CC"; then
  3347. ac_cv_prog_CC="$CC" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. case $as_dir in #(((
  3354. '') as_dir=./ ;;
  3355. */) ;;
  3356. *) as_dir=$as_dir/ ;;
  3357. esac
  3358. for ac_exec_ext in '' $ac_executable_extensions; do
  3359. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3360. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3361. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3362. break 2
  3363. fi
  3364. done
  3365. done
  3366. IFS=$as_save_IFS
  3367. fi
  3368. fi
  3369. CC=$ac_cv_prog_CC
  3370. if test -n "$CC"; then
  3371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3372. printf "%s\n" "$CC" >&6; }
  3373. else
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3375. printf "%s\n" "no" >&6; }
  3376. fi
  3377. fi
  3378. if test -z "$ac_cv_prog_CC"; then
  3379. ac_ct_CC=$CC
  3380. # Extract the first word of "gcc", so it can be a program name with args.
  3381. set dummy gcc; ac_word=$2
  3382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3383. printf %s "checking for $ac_word... " >&6; }
  3384. if test ${ac_cv_prog_ac_ct_CC+y}
  3385. then :
  3386. printf %s "(cached) " >&6
  3387. else $as_nop
  3388. if test -n "$ac_ct_CC"; then
  3389. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3390. else
  3391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3392. for as_dir in $PATH
  3393. do
  3394. IFS=$as_save_IFS
  3395. case $as_dir in #(((
  3396. '') as_dir=./ ;;
  3397. */) ;;
  3398. *) as_dir=$as_dir/ ;;
  3399. esac
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3402. ac_cv_prog_ac_ct_CC="gcc"
  3403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3412. if test -n "$ac_ct_CC"; then
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3414. printf "%s\n" "$ac_ct_CC" >&6; }
  3415. else
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. printf "%s\n" "no" >&6; }
  3418. fi
  3419. if test "x$ac_ct_CC" = x; then
  3420. CC=""
  3421. else
  3422. case $cross_compiling:$ac_tool_warned in
  3423. yes:)
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3425. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3426. ac_tool_warned=yes ;;
  3427. esac
  3428. CC=$ac_ct_CC
  3429. fi
  3430. else
  3431. CC="$ac_cv_prog_CC"
  3432. fi
  3433. if test -z "$CC"; then
  3434. if test -n "$ac_tool_prefix"; then
  3435. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3436. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. printf %s "checking for $ac_word... " >&6; }
  3439. if test ${ac_cv_prog_CC+y}
  3440. then :
  3441. printf %s "(cached) " >&6
  3442. else $as_nop
  3443. if test -n "$CC"; then
  3444. ac_cv_prog_CC="$CC" # Let the user override the test.
  3445. else
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH
  3448. do
  3449. IFS=$as_save_IFS
  3450. case $as_dir in #(((
  3451. '') as_dir=./ ;;
  3452. */) ;;
  3453. *) as_dir=$as_dir/ ;;
  3454. esac
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3457. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. CC=$ac_cv_prog_CC
  3467. if test -n "$CC"; then
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3469. printf "%s\n" "$CC" >&6; }
  3470. else
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3472. printf "%s\n" "no" >&6; }
  3473. fi
  3474. fi
  3475. fi
  3476. if test -z "$CC"; then
  3477. # Extract the first word of "cc", so it can be a program name with args.
  3478. set dummy cc; ac_word=$2
  3479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3480. printf %s "checking for $ac_word... " >&6; }
  3481. if test ${ac_cv_prog_CC+y}
  3482. then :
  3483. printf %s "(cached) " >&6
  3484. else $as_nop
  3485. if test -n "$CC"; then
  3486. ac_cv_prog_CC="$CC" # Let the user override the test.
  3487. else
  3488. ac_prog_rejected=no
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492. IFS=$as_save_IFS
  3493. case $as_dir in #(((
  3494. '') as_dir=./ ;;
  3495. */) ;;
  3496. *) as_dir=$as_dir/ ;;
  3497. esac
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3500. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3501. ac_prog_rejected=yes
  3502. continue
  3503. fi
  3504. ac_cv_prog_CC="cc"
  3505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3506. break 2
  3507. fi
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. if test $ac_prog_rejected = yes; then
  3512. # We found a bogon in the path, so make sure we never use it.
  3513. set dummy $ac_cv_prog_CC
  3514. shift
  3515. if test $# != 0; then
  3516. # We chose a different compiler from the bogus one.
  3517. # However, it has the same basename, so the bogon will be chosen
  3518. # first if we set CC to just the basename; use the full file name.
  3519. shift
  3520. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3521. fi
  3522. fi
  3523. fi
  3524. fi
  3525. CC=$ac_cv_prog_CC
  3526. if test -n "$CC"; then
  3527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3528. printf "%s\n" "$CC" >&6; }
  3529. else
  3530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3531. printf "%s\n" "no" >&6; }
  3532. fi
  3533. fi
  3534. if test -z "$CC"; then
  3535. if test -n "$ac_tool_prefix"; then
  3536. for ac_prog in cl.exe
  3537. do
  3538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3541. printf %s "checking for $ac_word... " >&6; }
  3542. if test ${ac_cv_prog_CC+y}
  3543. then :
  3544. printf %s "(cached) " >&6
  3545. else $as_nop
  3546. if test -n "$CC"; then
  3547. ac_cv_prog_CC="$CC" # Let the user override the test.
  3548. else
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH
  3551. do
  3552. IFS=$as_save_IFS
  3553. case $as_dir in #(((
  3554. '') as_dir=./ ;;
  3555. */) ;;
  3556. *) as_dir=$as_dir/ ;;
  3557. esac
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3560. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3561. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3562. break 2
  3563. fi
  3564. done
  3565. done
  3566. IFS=$as_save_IFS
  3567. fi
  3568. fi
  3569. CC=$ac_cv_prog_CC
  3570. if test -n "$CC"; then
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3572. printf "%s\n" "$CC" >&6; }
  3573. else
  3574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3575. printf "%s\n" "no" >&6; }
  3576. fi
  3577. test -n "$CC" && break
  3578. done
  3579. fi
  3580. if test -z "$CC"; then
  3581. ac_ct_CC=$CC
  3582. for ac_prog in cl.exe
  3583. do
  3584. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3585. set dummy $ac_prog; ac_word=$2
  3586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3587. printf %s "checking for $ac_word... " >&6; }
  3588. if test ${ac_cv_prog_ac_ct_CC+y}
  3589. then :
  3590. printf %s "(cached) " >&6
  3591. else $as_nop
  3592. if test -n "$ac_ct_CC"; then
  3593. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3594. else
  3595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3596. for as_dir in $PATH
  3597. do
  3598. IFS=$as_save_IFS
  3599. case $as_dir in #(((
  3600. '') as_dir=./ ;;
  3601. */) ;;
  3602. *) as_dir=$as_dir/ ;;
  3603. esac
  3604. for ac_exec_ext in '' $ac_executable_extensions; do
  3605. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3606. ac_cv_prog_ac_ct_CC="$ac_prog"
  3607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3608. break 2
  3609. fi
  3610. done
  3611. done
  3612. IFS=$as_save_IFS
  3613. fi
  3614. fi
  3615. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3616. if test -n "$ac_ct_CC"; then
  3617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3618. printf "%s\n" "$ac_ct_CC" >&6; }
  3619. else
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3621. printf "%s\n" "no" >&6; }
  3622. fi
  3623. test -n "$ac_ct_CC" && break
  3624. done
  3625. if test "x$ac_ct_CC" = x; then
  3626. CC=""
  3627. else
  3628. case $cross_compiling:$ac_tool_warned in
  3629. yes:)
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3631. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3632. ac_tool_warned=yes ;;
  3633. esac
  3634. CC=$ac_ct_CC
  3635. fi
  3636. fi
  3637. fi
  3638. if test -z "$CC"; then
  3639. if test -n "$ac_tool_prefix"; then
  3640. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3641. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3643. printf %s "checking for $ac_word... " >&6; }
  3644. if test ${ac_cv_prog_CC+y}
  3645. then :
  3646. printf %s "(cached) " >&6
  3647. else $as_nop
  3648. if test -n "$CC"; then
  3649. ac_cv_prog_CC="$CC" # Let the user override the test.
  3650. else
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH
  3653. do
  3654. IFS=$as_save_IFS
  3655. case $as_dir in #(((
  3656. '') as_dir=./ ;;
  3657. */) ;;
  3658. *) as_dir=$as_dir/ ;;
  3659. esac
  3660. for ac_exec_ext in '' $ac_executable_extensions; do
  3661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3662. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3664. break 2
  3665. fi
  3666. done
  3667. done
  3668. IFS=$as_save_IFS
  3669. fi
  3670. fi
  3671. CC=$ac_cv_prog_CC
  3672. if test -n "$CC"; then
  3673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3674. printf "%s\n" "$CC" >&6; }
  3675. else
  3676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3677. printf "%s\n" "no" >&6; }
  3678. fi
  3679. fi
  3680. if test -z "$ac_cv_prog_CC"; then
  3681. ac_ct_CC=$CC
  3682. # Extract the first word of "clang", so it can be a program name with args.
  3683. set dummy clang; ac_word=$2
  3684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3685. printf %s "checking for $ac_word... " >&6; }
  3686. if test ${ac_cv_prog_ac_ct_CC+y}
  3687. then :
  3688. printf %s "(cached) " >&6
  3689. else $as_nop
  3690. if test -n "$ac_ct_CC"; then
  3691. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3692. else
  3693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694. for as_dir in $PATH
  3695. do
  3696. IFS=$as_save_IFS
  3697. case $as_dir in #(((
  3698. '') as_dir=./ ;;
  3699. */) ;;
  3700. *) as_dir=$as_dir/ ;;
  3701. esac
  3702. for ac_exec_ext in '' $ac_executable_extensions; do
  3703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3704. ac_cv_prog_ac_ct_CC="clang"
  3705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3706. break 2
  3707. fi
  3708. done
  3709. done
  3710. IFS=$as_save_IFS
  3711. fi
  3712. fi
  3713. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3714. if test -n "$ac_ct_CC"; then
  3715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3716. printf "%s\n" "$ac_ct_CC" >&6; }
  3717. else
  3718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3719. printf "%s\n" "no" >&6; }
  3720. fi
  3721. if test "x$ac_ct_CC" = x; then
  3722. CC=""
  3723. else
  3724. case $cross_compiling:$ac_tool_warned in
  3725. yes:)
  3726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3727. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3728. ac_tool_warned=yes ;;
  3729. esac
  3730. CC=$ac_ct_CC
  3731. fi
  3732. else
  3733. CC="$ac_cv_prog_CC"
  3734. fi
  3735. fi
  3736. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3737. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3738. as_fn_error $? "no acceptable C compiler found in \$PATH
  3739. See \`config.log' for more details" "$LINENO" 5; }
  3740. # Provide some information about the compiler.
  3741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3742. set X $ac_compile
  3743. ac_compiler=$2
  3744. for ac_option in --version -v -V -qversion -version; do
  3745. { { ac_try="$ac_compiler $ac_option >&5"
  3746. case "(($ac_try" in
  3747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3748. *) ac_try_echo=$ac_try;;
  3749. esac
  3750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3751. printf "%s\n" "$ac_try_echo"; } >&5
  3752. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3753. ac_status=$?
  3754. if test -s conftest.err; then
  3755. sed '10a\
  3756. ... rest of stderr output deleted ...
  3757. 10q' conftest.err >conftest.er1
  3758. cat conftest.er1 >&5
  3759. fi
  3760. rm -f conftest.er1 conftest.err
  3761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3762. test $ac_status = 0; }
  3763. done
  3764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3765. /* end confdefs.h. */
  3766. int
  3767. main (void)
  3768. {
  3769. ;
  3770. return 0;
  3771. }
  3772. _ACEOF
  3773. ac_clean_files_save=$ac_clean_files
  3774. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3775. # Try to create an executable without -o first, disregard a.out.
  3776. # It will help us diagnose broken compilers, and finding out an intuition
  3777. # of exeext.
  3778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3779. printf %s "checking whether the C compiler works... " >&6; }
  3780. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3781. # The possible output files:
  3782. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3783. ac_rmfiles=
  3784. for ac_file in $ac_files
  3785. do
  3786. case $ac_file in
  3787. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3788. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3789. esac
  3790. done
  3791. rm -f $ac_rmfiles
  3792. if { { ac_try="$ac_link_default"
  3793. case "(($ac_try" in
  3794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3795. *) ac_try_echo=$ac_try;;
  3796. esac
  3797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3798. printf "%s\n" "$ac_try_echo"; } >&5
  3799. (eval "$ac_link_default") 2>&5
  3800. ac_status=$?
  3801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3802. test $ac_status = 0; }
  3803. then :
  3804. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3805. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3806. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3807. # so that the user can short-circuit this test for compilers unknown to
  3808. # Autoconf.
  3809. for ac_file in $ac_files ''
  3810. do
  3811. test -f "$ac_file" || continue
  3812. case $ac_file in
  3813. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3814. ;;
  3815. [ab].out )
  3816. # We found the default executable, but exeext='' is most
  3817. # certainly right.
  3818. break;;
  3819. *.* )
  3820. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3821. then :; else
  3822. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3823. fi
  3824. # We set ac_cv_exeext here because the later test for it is not
  3825. # safe: cross compilers may not add the suffix if given an `-o'
  3826. # argument, so we may need to know it at that point already.
  3827. # Even if this section looks crufty: it has the advantage of
  3828. # actually working.
  3829. break;;
  3830. * )
  3831. break;;
  3832. esac
  3833. done
  3834. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3835. else $as_nop
  3836. ac_file=''
  3837. fi
  3838. if test -z "$ac_file"
  3839. then :
  3840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3841. printf "%s\n" "no" >&6; }
  3842. printf "%s\n" "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3845. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3846. as_fn_error 77 "C compiler cannot create executables
  3847. See \`config.log' for more details" "$LINENO" 5; }
  3848. else $as_nop
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3850. printf "%s\n" "yes" >&6; }
  3851. fi
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3853. printf %s "checking for C compiler default output file name... " >&6; }
  3854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3855. printf "%s\n" "$ac_file" >&6; }
  3856. ac_exeext=$ac_cv_exeext
  3857. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3858. ac_clean_files=$ac_clean_files_save
  3859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3860. printf %s "checking for suffix of executables... " >&6; }
  3861. if { { ac_try="$ac_link"
  3862. case "(($ac_try" in
  3863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3864. *) ac_try_echo=$ac_try;;
  3865. esac
  3866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3867. printf "%s\n" "$ac_try_echo"; } >&5
  3868. (eval "$ac_link") 2>&5
  3869. ac_status=$?
  3870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3871. test $ac_status = 0; }
  3872. then :
  3873. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3874. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3875. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3876. # `rm'.
  3877. for ac_file in conftest.exe conftest conftest.*; do
  3878. test -f "$ac_file" || continue
  3879. case $ac_file in
  3880. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3881. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3882. break;;
  3883. * ) break;;
  3884. esac
  3885. done
  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 $? "cannot compute suffix of executables: cannot compile and link
  3890. See \`config.log' for more details" "$LINENO" 5; }
  3891. fi
  3892. rm -f conftest conftest$ac_cv_exeext
  3893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3894. printf "%s\n" "$ac_cv_exeext" >&6; }
  3895. rm -f conftest.$ac_ext
  3896. EXEEXT=$ac_cv_exeext
  3897. ac_exeext=$EXEEXT
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. #include <stdio.h>
  3901. int
  3902. main (void)
  3903. {
  3904. FILE *f = fopen ("conftest.out", "w");
  3905. return ferror (f) || fclose (f) != 0;
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. ac_clean_files="$ac_clean_files conftest.out"
  3911. # Check that the compiler produces executables we can run. If not, either
  3912. # the compiler is broken, or we cross compile.
  3913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3914. printf %s "checking whether we are cross compiling... " >&6; }
  3915. if test "$cross_compiling" != yes; then
  3916. { { ac_try="$ac_link"
  3917. case "(($ac_try" in
  3918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3919. *) ac_try_echo=$ac_try;;
  3920. esac
  3921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3922. printf "%s\n" "$ac_try_echo"; } >&5
  3923. (eval "$ac_link") 2>&5
  3924. ac_status=$?
  3925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3926. test $ac_status = 0; }
  3927. if { ac_try='./conftest$ac_cv_exeext'
  3928. { { case "(($ac_try" in
  3929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3930. *) ac_try_echo=$ac_try;;
  3931. esac
  3932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3933. printf "%s\n" "$ac_try_echo"; } >&5
  3934. (eval "$ac_try") 2>&5
  3935. ac_status=$?
  3936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3937. test $ac_status = 0; }; }; then
  3938. cross_compiling=no
  3939. else
  3940. if test "$cross_compiling" = maybe; then
  3941. cross_compiling=yes
  3942. else
  3943. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3944. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3945. as_fn_error 77 "cannot run C compiled programs.
  3946. If you meant to cross compile, use \`--host'.
  3947. See \`config.log' for more details" "$LINENO" 5; }
  3948. fi
  3949. fi
  3950. fi
  3951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3952. printf "%s\n" "$cross_compiling" >&6; }
  3953. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3954. ac_clean_files=$ac_clean_files_save
  3955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3956. printf %s "checking for suffix of object files... " >&6; }
  3957. if test ${ac_cv_objext+y}
  3958. then :
  3959. printf %s "(cached) " >&6
  3960. else $as_nop
  3961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3962. /* end confdefs.h. */
  3963. int
  3964. main (void)
  3965. {
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. rm -f conftest.o conftest.obj
  3971. if { { ac_try="$ac_compile"
  3972. case "(($ac_try" in
  3973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3974. *) ac_try_echo=$ac_try;;
  3975. esac
  3976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3977. printf "%s\n" "$ac_try_echo"; } >&5
  3978. (eval "$ac_compile") 2>&5
  3979. ac_status=$?
  3980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3981. test $ac_status = 0; }
  3982. then :
  3983. for ac_file in conftest.o conftest.obj conftest.*; do
  3984. test -f "$ac_file" || continue;
  3985. case $ac_file in
  3986. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3987. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3988. break;;
  3989. esac
  3990. done
  3991. else $as_nop
  3992. printf "%s\n" "$as_me: failed program was:" >&5
  3993. sed 's/^/| /' conftest.$ac_ext >&5
  3994. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3995. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3996. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3997. See \`config.log' for more details" "$LINENO" 5; }
  3998. fi
  3999. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4000. fi
  4001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4002. printf "%s\n" "$ac_cv_objext" >&6; }
  4003. OBJEXT=$ac_cv_objext
  4004. ac_objext=$OBJEXT
  4005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4006. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4007. if test ${ac_cv_c_compiler_gnu+y}
  4008. then :
  4009. printf %s "(cached) " >&6
  4010. else $as_nop
  4011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h. */
  4013. int
  4014. main (void)
  4015. {
  4016. #ifndef __GNUC__
  4017. choke me
  4018. #endif
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. if ac_fn_c_try_compile "$LINENO"
  4024. then :
  4025. ac_compiler_gnu=yes
  4026. else $as_nop
  4027. ac_compiler_gnu=no
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4030. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4031. fi
  4032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4033. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4035. if test $ac_compiler_gnu = yes; then
  4036. GCC=yes
  4037. else
  4038. GCC=
  4039. fi
  4040. ac_test_CFLAGS=${CFLAGS+y}
  4041. ac_save_CFLAGS=$CFLAGS
  4042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4043. printf %s "checking whether $CC accepts -g... " >&6; }
  4044. if test ${ac_cv_prog_cc_g+y}
  4045. then :
  4046. printf %s "(cached) " >&6
  4047. else $as_nop
  4048. ac_save_c_werror_flag=$ac_c_werror_flag
  4049. ac_c_werror_flag=yes
  4050. ac_cv_prog_cc_g=no
  4051. CFLAGS="-g"
  4052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4053. /* end confdefs.h. */
  4054. int
  4055. main (void)
  4056. {
  4057. ;
  4058. return 0;
  4059. }
  4060. _ACEOF
  4061. if ac_fn_c_try_compile "$LINENO"
  4062. then :
  4063. ac_cv_prog_cc_g=yes
  4064. else $as_nop
  4065. CFLAGS=""
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. int
  4069. main (void)
  4070. {
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. if ac_fn_c_try_compile "$LINENO"
  4076. then :
  4077. else $as_nop
  4078. ac_c_werror_flag=$ac_save_c_werror_flag
  4079. CFLAGS="-g"
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main (void)
  4084. {
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. if ac_fn_c_try_compile "$LINENO"
  4090. then :
  4091. ac_cv_prog_cc_g=yes
  4092. fi
  4093. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4096. fi
  4097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4098. ac_c_werror_flag=$ac_save_c_werror_flag
  4099. fi
  4100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4101. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4102. if test $ac_test_CFLAGS; then
  4103. CFLAGS=$ac_save_CFLAGS
  4104. elif test $ac_cv_prog_cc_g = yes; then
  4105. if test "$GCC" = yes; then
  4106. CFLAGS="-g -O2"
  4107. else
  4108. CFLAGS="-g"
  4109. fi
  4110. else
  4111. if test "$GCC" = yes; then
  4112. CFLAGS="-O2"
  4113. else
  4114. CFLAGS=
  4115. fi
  4116. fi
  4117. ac_prog_cc_stdc=no
  4118. if test x$ac_prog_cc_stdc = xno
  4119. then :
  4120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4121. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4122. if test ${ac_cv_prog_cc_c11+y}
  4123. then :
  4124. printf %s "(cached) " >&6
  4125. else $as_nop
  4126. ac_cv_prog_cc_c11=no
  4127. ac_save_CC=$CC
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. $ac_c_conftest_c11_program
  4131. _ACEOF
  4132. for ac_arg in '' -std=gnu11
  4133. do
  4134. CC="$ac_save_CC $ac_arg"
  4135. if ac_fn_c_try_compile "$LINENO"
  4136. then :
  4137. ac_cv_prog_cc_c11=$ac_arg
  4138. fi
  4139. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4140. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4141. done
  4142. rm -f conftest.$ac_ext
  4143. CC=$ac_save_CC
  4144. fi
  4145. if test "x$ac_cv_prog_cc_c11" = xno
  4146. then :
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4148. printf "%s\n" "unsupported" >&6; }
  4149. else $as_nop
  4150. if test "x$ac_cv_prog_cc_c11" = x
  4151. then :
  4152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4153. printf "%s\n" "none needed" >&6; }
  4154. else $as_nop
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4156. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4157. CC="$CC $ac_cv_prog_cc_c11"
  4158. fi
  4159. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4160. ac_prog_cc_stdc=c11
  4161. fi
  4162. fi
  4163. if test x$ac_prog_cc_stdc = xno
  4164. then :
  4165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4166. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4167. if test ${ac_cv_prog_cc_c99+y}
  4168. then :
  4169. printf %s "(cached) " >&6
  4170. else $as_nop
  4171. ac_cv_prog_cc_c99=no
  4172. ac_save_CC=$CC
  4173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4174. /* end confdefs.h. */
  4175. $ac_c_conftest_c99_program
  4176. _ACEOF
  4177. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4178. do
  4179. CC="$ac_save_CC $ac_arg"
  4180. if ac_fn_c_try_compile "$LINENO"
  4181. then :
  4182. ac_cv_prog_cc_c99=$ac_arg
  4183. fi
  4184. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4185. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4186. done
  4187. rm -f conftest.$ac_ext
  4188. CC=$ac_save_CC
  4189. fi
  4190. if test "x$ac_cv_prog_cc_c99" = xno
  4191. then :
  4192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4193. printf "%s\n" "unsupported" >&6; }
  4194. else $as_nop
  4195. if test "x$ac_cv_prog_cc_c99" = x
  4196. then :
  4197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4198. printf "%s\n" "none needed" >&6; }
  4199. else $as_nop
  4200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4201. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4202. CC="$CC $ac_cv_prog_cc_c99"
  4203. fi
  4204. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4205. ac_prog_cc_stdc=c99
  4206. fi
  4207. fi
  4208. if test x$ac_prog_cc_stdc = xno
  4209. then :
  4210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4211. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4212. if test ${ac_cv_prog_cc_c89+y}
  4213. then :
  4214. printf %s "(cached) " >&6
  4215. else $as_nop
  4216. ac_cv_prog_cc_c89=no
  4217. ac_save_CC=$CC
  4218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4219. /* end confdefs.h. */
  4220. $ac_c_conftest_c89_program
  4221. _ACEOF
  4222. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4223. do
  4224. CC="$ac_save_CC $ac_arg"
  4225. if ac_fn_c_try_compile "$LINENO"
  4226. then :
  4227. ac_cv_prog_cc_c89=$ac_arg
  4228. fi
  4229. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4230. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4231. done
  4232. rm -f conftest.$ac_ext
  4233. CC=$ac_save_CC
  4234. fi
  4235. if test "x$ac_cv_prog_cc_c89" = xno
  4236. then :
  4237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4238. printf "%s\n" "unsupported" >&6; }
  4239. else $as_nop
  4240. if test "x$ac_cv_prog_cc_c89" = x
  4241. then :
  4242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4243. printf "%s\n" "none needed" >&6; }
  4244. else $as_nop
  4245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4246. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4247. CC="$CC $ac_cv_prog_cc_c89"
  4248. fi
  4249. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4250. ac_prog_cc_stdc=c89
  4251. fi
  4252. fi
  4253. ac_ext=c
  4254. ac_cpp='$CPP $CPPFLAGS'
  4255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4259. printf %s "checking for a sed that does not truncate output... " >&6; }
  4260. if test ${ac_cv_path_SED+y}
  4261. then :
  4262. printf %s "(cached) " >&6
  4263. else $as_nop
  4264. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4265. for ac_i in 1 2 3 4 5 6 7; do
  4266. ac_script="$ac_script$as_nl$ac_script"
  4267. done
  4268. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4269. { ac_script=; unset ac_script;}
  4270. if test -z "$SED"; then
  4271. ac_path_SED_found=false
  4272. # Loop through the user's path and test for each of PROGNAME-LIST
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. case $as_dir in #(((
  4278. '') as_dir=./ ;;
  4279. */) ;;
  4280. *) as_dir=$as_dir/ ;;
  4281. esac
  4282. for ac_prog in sed gsed
  4283. do
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4286. as_fn_executable_p "$ac_path_SED" || continue
  4287. # Check for GNU ac_path_SED and select it if it is found.
  4288. # Check for GNU $ac_path_SED
  4289. case `"$ac_path_SED" --version 2>&1` in
  4290. *GNU*)
  4291. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4292. *)
  4293. ac_count=0
  4294. printf %s 0123456789 >"conftest.in"
  4295. while :
  4296. do
  4297. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4298. mv "conftest.tmp" "conftest.in"
  4299. cp "conftest.in" "conftest.nl"
  4300. printf "%s\n" '' >> "conftest.nl"
  4301. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4302. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4303. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4304. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4305. # Best one so far, save it but keep looking for a better one
  4306. ac_cv_path_SED="$ac_path_SED"
  4307. ac_path_SED_max=$ac_count
  4308. fi
  4309. # 10*(2^10) chars as input seems more than enough
  4310. test $ac_count -gt 10 && break
  4311. done
  4312. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4313. esac
  4314. $ac_path_SED_found && break 3
  4315. done
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. if test -z "$ac_cv_path_SED"; then
  4320. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4321. fi
  4322. else
  4323. ac_cv_path_SED=$SED
  4324. fi
  4325. fi
  4326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4327. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4328. SED="$ac_cv_path_SED"
  4329. rm -f conftest.sed
  4330. test -z "$SED" && SED=sed
  4331. Xsed="$SED -e 1s/^X//"
  4332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4333. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4334. if test ${ac_cv_path_GREP+y}
  4335. then :
  4336. printf %s "(cached) " >&6
  4337. else $as_nop
  4338. if test -z "$GREP"; then
  4339. ac_path_GREP_found=false
  4340. # Loop through the user's path and test for each of PROGNAME-LIST
  4341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4342. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4343. do
  4344. IFS=$as_save_IFS
  4345. case $as_dir in #(((
  4346. '') as_dir=./ ;;
  4347. */) ;;
  4348. *) as_dir=$as_dir/ ;;
  4349. esac
  4350. for ac_prog in grep ggrep
  4351. do
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4354. as_fn_executable_p "$ac_path_GREP" || continue
  4355. # Check for GNU ac_path_GREP and select it if it is found.
  4356. # Check for GNU $ac_path_GREP
  4357. case `"$ac_path_GREP" --version 2>&1` in
  4358. *GNU*)
  4359. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4360. *)
  4361. ac_count=0
  4362. printf %s 0123456789 >"conftest.in"
  4363. while :
  4364. do
  4365. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4366. mv "conftest.tmp" "conftest.in"
  4367. cp "conftest.in" "conftest.nl"
  4368. printf "%s\n" 'GREP' >> "conftest.nl"
  4369. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4370. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4371. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4372. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4373. # Best one so far, save it but keep looking for a better one
  4374. ac_cv_path_GREP="$ac_path_GREP"
  4375. ac_path_GREP_max=$ac_count
  4376. fi
  4377. # 10*(2^10) chars as input seems more than enough
  4378. test $ac_count -gt 10 && break
  4379. done
  4380. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4381. esac
  4382. $ac_path_GREP_found && break 3
  4383. done
  4384. done
  4385. done
  4386. IFS=$as_save_IFS
  4387. if test -z "$ac_cv_path_GREP"; then
  4388. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4389. fi
  4390. else
  4391. ac_cv_path_GREP=$GREP
  4392. fi
  4393. fi
  4394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4395. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4396. GREP="$ac_cv_path_GREP"
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4398. printf %s "checking for egrep... " >&6; }
  4399. if test ${ac_cv_path_EGREP+y}
  4400. then :
  4401. printf %s "(cached) " >&6
  4402. else $as_nop
  4403. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4404. then ac_cv_path_EGREP="$GREP -E"
  4405. else
  4406. if test -z "$EGREP"; then
  4407. ac_path_EGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. case $as_dir in #(((
  4414. '') as_dir=./ ;;
  4415. */) ;;
  4416. *) as_dir=$as_dir/ ;;
  4417. esac
  4418. for ac_prog in egrep
  4419. do
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4422. as_fn_executable_p "$ac_path_EGREP" || continue
  4423. # Check for GNU ac_path_EGREP and select it if it is found.
  4424. # Check for GNU $ac_path_EGREP
  4425. case `"$ac_path_EGREP" --version 2>&1` in
  4426. *GNU*)
  4427. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4428. *)
  4429. ac_count=0
  4430. printf %s 0123456789 >"conftest.in"
  4431. while :
  4432. do
  4433. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4434. mv "conftest.tmp" "conftest.in"
  4435. cp "conftest.in" "conftest.nl"
  4436. printf "%s\n" 'EGREP' >> "conftest.nl"
  4437. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4438. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4439. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4440. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4441. # Best one so far, save it but keep looking for a better one
  4442. ac_cv_path_EGREP="$ac_path_EGREP"
  4443. ac_path_EGREP_max=$ac_count
  4444. fi
  4445. # 10*(2^10) chars as input seems more than enough
  4446. test $ac_count -gt 10 && break
  4447. done
  4448. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4449. esac
  4450. $ac_path_EGREP_found && break 3
  4451. done
  4452. done
  4453. done
  4454. IFS=$as_save_IFS
  4455. if test -z "$ac_cv_path_EGREP"; then
  4456. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4457. fi
  4458. else
  4459. ac_cv_path_EGREP=$EGREP
  4460. fi
  4461. fi
  4462. fi
  4463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4464. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4465. EGREP="$ac_cv_path_EGREP"
  4466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4467. printf %s "checking for fgrep... " >&6; }
  4468. if test ${ac_cv_path_FGREP+y}
  4469. then :
  4470. printf %s "(cached) " >&6
  4471. else $as_nop
  4472. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4473. then ac_cv_path_FGREP="$GREP -F"
  4474. else
  4475. if test -z "$FGREP"; then
  4476. ac_path_FGREP_found=false
  4477. # Loop through the user's path and test for each of PROGNAME-LIST
  4478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4479. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4480. do
  4481. IFS=$as_save_IFS
  4482. case $as_dir in #(((
  4483. '') as_dir=./ ;;
  4484. */) ;;
  4485. *) as_dir=$as_dir/ ;;
  4486. esac
  4487. for ac_prog in fgrep
  4488. do
  4489. for ac_exec_ext in '' $ac_executable_extensions; do
  4490. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4491. as_fn_executable_p "$ac_path_FGREP" || continue
  4492. # Check for GNU ac_path_FGREP and select it if it is found.
  4493. # Check for GNU $ac_path_FGREP
  4494. case `"$ac_path_FGREP" --version 2>&1` in
  4495. *GNU*)
  4496. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4497. *)
  4498. ac_count=0
  4499. printf %s 0123456789 >"conftest.in"
  4500. while :
  4501. do
  4502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4503. mv "conftest.tmp" "conftest.in"
  4504. cp "conftest.in" "conftest.nl"
  4505. printf "%s\n" 'FGREP' >> "conftest.nl"
  4506. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4509. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4510. # Best one so far, save it but keep looking for a better one
  4511. ac_cv_path_FGREP="$ac_path_FGREP"
  4512. ac_path_FGREP_max=$ac_count
  4513. fi
  4514. # 10*(2^10) chars as input seems more than enough
  4515. test $ac_count -gt 10 && break
  4516. done
  4517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4518. esac
  4519. $ac_path_FGREP_found && break 3
  4520. done
  4521. done
  4522. done
  4523. IFS=$as_save_IFS
  4524. if test -z "$ac_cv_path_FGREP"; then
  4525. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4526. fi
  4527. else
  4528. ac_cv_path_FGREP=$FGREP
  4529. fi
  4530. fi
  4531. fi
  4532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4533. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4534. FGREP="$ac_cv_path_FGREP"
  4535. test -z "$GREP" && GREP=grep
  4536. # Check whether --with-gnu-ld was given.
  4537. if test ${with_gnu_ld+y}
  4538. then :
  4539. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4540. else $as_nop
  4541. with_gnu_ld=no
  4542. fi
  4543. ac_prog=ld
  4544. if test yes = "$GCC"; then
  4545. # Check if gcc -print-prog-name=ld gives a path.
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4547. printf %s "checking for ld used by $CC... " >&6; }
  4548. case $host in
  4549. *-*-mingw*)
  4550. # gcc leaves a trailing carriage return, which upsets mingw
  4551. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4552. *)
  4553. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4554. esac
  4555. case $ac_prog in
  4556. # Accept absolute paths.
  4557. [\\/]* | ?:[\\/]*)
  4558. re_direlt='/[^/][^/]*/\.\./'
  4559. # Canonicalize the pathname of ld
  4560. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4561. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4562. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4563. done
  4564. test -z "$LD" && LD=$ac_prog
  4565. ;;
  4566. "")
  4567. # If it fails, then pretend we aren't using GCC.
  4568. ac_prog=ld
  4569. ;;
  4570. *)
  4571. # If it is relative, then search for the first ld in PATH.
  4572. with_gnu_ld=unknown
  4573. ;;
  4574. esac
  4575. elif test yes = "$with_gnu_ld"; then
  4576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4577. printf %s "checking for GNU ld... " >&6; }
  4578. else
  4579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4580. printf %s "checking for non-GNU ld... " >&6; }
  4581. fi
  4582. if test ${lt_cv_path_LD+y}
  4583. then :
  4584. printf %s "(cached) " >&6
  4585. else $as_nop
  4586. if test -z "$LD"; then
  4587. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4588. for ac_dir in $PATH; do
  4589. IFS=$lt_save_ifs
  4590. test -z "$ac_dir" && ac_dir=.
  4591. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4592. lt_cv_path_LD=$ac_dir/$ac_prog
  4593. # Check to see if the program is GNU ld. I'd rather use --version,
  4594. # but apparently some variants of GNU ld only accept -v.
  4595. # Break only if it was the GNU/non-GNU ld that we prefer.
  4596. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4597. *GNU* | *'with BFD'*)
  4598. test no != "$with_gnu_ld" && break
  4599. ;;
  4600. *)
  4601. test yes != "$with_gnu_ld" && break
  4602. ;;
  4603. esac
  4604. fi
  4605. done
  4606. IFS=$lt_save_ifs
  4607. else
  4608. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4609. fi
  4610. fi
  4611. LD=$lt_cv_path_LD
  4612. if test -n "$LD"; then
  4613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4614. printf "%s\n" "$LD" >&6; }
  4615. else
  4616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4617. printf "%s\n" "no" >&6; }
  4618. fi
  4619. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4621. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4622. if test ${lt_cv_prog_gnu_ld+y}
  4623. then :
  4624. printf %s "(cached) " >&6
  4625. else $as_nop
  4626. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4627. case `$LD -v 2>&1 </dev/null` in
  4628. *GNU* | *'with BFD'*)
  4629. lt_cv_prog_gnu_ld=yes
  4630. ;;
  4631. *)
  4632. lt_cv_prog_gnu_ld=no
  4633. ;;
  4634. esac
  4635. fi
  4636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4637. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4638. with_gnu_ld=$lt_cv_prog_gnu_ld
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4640. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4641. if test ${lt_cv_path_NM+y}
  4642. then :
  4643. printf %s "(cached) " >&6
  4644. else $as_nop
  4645. if test -n "$NM"; then
  4646. # Let the user override the test.
  4647. lt_cv_path_NM=$NM
  4648. else
  4649. lt_nm_to_check=${ac_tool_prefix}nm
  4650. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4651. lt_nm_to_check="$lt_nm_to_check nm"
  4652. fi
  4653. for lt_tmp_nm in $lt_nm_to_check; do
  4654. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4655. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4656. IFS=$lt_save_ifs
  4657. test -z "$ac_dir" && ac_dir=.
  4658. tmp_nm=$ac_dir/$lt_tmp_nm
  4659. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4660. # Check to see if the nm accepts a BSD-compat flag.
  4661. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4662. # nm: unknown option "B" ignored
  4663. # Tru64's nm complains that /dev/null is an invalid object file
  4664. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4665. case $build_os in
  4666. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4667. *) lt_bad_file=/dev/null ;;
  4668. esac
  4669. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4670. *$lt_bad_file* | *'Invalid file or object type'*)
  4671. lt_cv_path_NM="$tmp_nm -B"
  4672. break 2
  4673. ;;
  4674. *)
  4675. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4676. */dev/null*)
  4677. lt_cv_path_NM="$tmp_nm -p"
  4678. break 2
  4679. ;;
  4680. *)
  4681. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4682. continue # so that we can try to find one that supports BSD flags
  4683. ;;
  4684. esac
  4685. ;;
  4686. esac
  4687. fi
  4688. done
  4689. IFS=$lt_save_ifs
  4690. done
  4691. : ${lt_cv_path_NM=no}
  4692. fi
  4693. fi
  4694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4695. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4696. if test no != "$lt_cv_path_NM"; then
  4697. NM=$lt_cv_path_NM
  4698. else
  4699. # Didn't find any BSD compatible name lister, look for dumpbin.
  4700. if test -n "$DUMPBIN"; then :
  4701. # Let the user override the test.
  4702. else
  4703. if test -n "$ac_tool_prefix"; then
  4704. for ac_prog in dumpbin "link -dump"
  4705. do
  4706. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4707. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4709. printf %s "checking for $ac_word... " >&6; }
  4710. if test ${ac_cv_prog_DUMPBIN+y}
  4711. then :
  4712. printf %s "(cached) " >&6
  4713. else $as_nop
  4714. if test -n "$DUMPBIN"; then
  4715. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4716. else
  4717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4718. for as_dir in $PATH
  4719. do
  4720. IFS=$as_save_IFS
  4721. case $as_dir in #(((
  4722. '') as_dir=./ ;;
  4723. */) ;;
  4724. *) as_dir=$as_dir/ ;;
  4725. esac
  4726. for ac_exec_ext in '' $ac_executable_extensions; do
  4727. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4728. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4729. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4730. break 2
  4731. fi
  4732. done
  4733. done
  4734. IFS=$as_save_IFS
  4735. fi
  4736. fi
  4737. DUMPBIN=$ac_cv_prog_DUMPBIN
  4738. if test -n "$DUMPBIN"; then
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4740. printf "%s\n" "$DUMPBIN" >&6; }
  4741. else
  4742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743. printf "%s\n" "no" >&6; }
  4744. fi
  4745. test -n "$DUMPBIN" && break
  4746. done
  4747. fi
  4748. if test -z "$DUMPBIN"; then
  4749. ac_ct_DUMPBIN=$DUMPBIN
  4750. for ac_prog in dumpbin "link -dump"
  4751. do
  4752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4753. set dummy $ac_prog; ac_word=$2
  4754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4755. printf %s "checking for $ac_word... " >&6; }
  4756. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4757. then :
  4758. printf %s "(cached) " >&6
  4759. else $as_nop
  4760. if test -n "$ac_ct_DUMPBIN"; then
  4761. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4762. else
  4763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4764. for as_dir in $PATH
  4765. do
  4766. IFS=$as_save_IFS
  4767. case $as_dir in #(((
  4768. '') as_dir=./ ;;
  4769. */) ;;
  4770. *) as_dir=$as_dir/ ;;
  4771. esac
  4772. for ac_exec_ext in '' $ac_executable_extensions; do
  4773. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4774. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4775. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4776. break 2
  4777. fi
  4778. done
  4779. done
  4780. IFS=$as_save_IFS
  4781. fi
  4782. fi
  4783. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4784. if test -n "$ac_ct_DUMPBIN"; then
  4785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4786. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4787. else
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4789. printf "%s\n" "no" >&6; }
  4790. fi
  4791. test -n "$ac_ct_DUMPBIN" && break
  4792. done
  4793. if test "x$ac_ct_DUMPBIN" = x; then
  4794. DUMPBIN=":"
  4795. else
  4796. case $cross_compiling:$ac_tool_warned in
  4797. yes:)
  4798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4799. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4800. ac_tool_warned=yes ;;
  4801. esac
  4802. DUMPBIN=$ac_ct_DUMPBIN
  4803. fi
  4804. fi
  4805. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4806. *COFF*)
  4807. DUMPBIN="$DUMPBIN -symbols -headers"
  4808. ;;
  4809. *)
  4810. DUMPBIN=:
  4811. ;;
  4812. esac
  4813. fi
  4814. if test : != "$DUMPBIN"; then
  4815. NM=$DUMPBIN
  4816. fi
  4817. fi
  4818. test -z "$NM" && NM=nm
  4819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4820. printf %s "checking the name lister ($NM) interface... " >&6; }
  4821. if test ${lt_cv_nm_interface+y}
  4822. then :
  4823. printf %s "(cached) " >&6
  4824. else $as_nop
  4825. lt_cv_nm_interface="BSD nm"
  4826. echo "int some_variable = 0;" > conftest.$ac_ext
  4827. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4828. (eval "$ac_compile" 2>conftest.err)
  4829. cat conftest.err >&5
  4830. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4831. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4832. cat conftest.err >&5
  4833. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4834. cat conftest.out >&5
  4835. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4836. lt_cv_nm_interface="MS dumpbin"
  4837. fi
  4838. rm -f conftest*
  4839. fi
  4840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4841. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4843. printf %s "checking whether ln -s works... " >&6; }
  4844. LN_S=$as_ln_s
  4845. if test "$LN_S" = "ln -s"; then
  4846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4847. printf "%s\n" "yes" >&6; }
  4848. else
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4850. printf "%s\n" "no, using $LN_S" >&6; }
  4851. fi
  4852. # find the maximum length of command line arguments
  4853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4854. printf %s "checking the maximum length of command line arguments... " >&6; }
  4855. if test ${lt_cv_sys_max_cmd_len+y}
  4856. then :
  4857. printf %s "(cached) " >&6
  4858. else $as_nop
  4859. i=0
  4860. teststring=ABCD
  4861. case $build_os in
  4862. msdosdjgpp*)
  4863. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4864. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4865. # during glob expansion). Even if it were fixed, the result of this
  4866. # check would be larger than it should be.
  4867. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4868. ;;
  4869. gnu*)
  4870. # Under GNU Hurd, this test is not required because there is
  4871. # no limit to the length of command line arguments.
  4872. # Libtool will interpret -1 as no limit whatsoever
  4873. lt_cv_sys_max_cmd_len=-1;
  4874. ;;
  4875. cygwin* | mingw* | cegcc*)
  4876. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4877. # about 5 minutes as the teststring grows exponentially.
  4878. # Worse, since 9x/ME are not pre-emptively multitasking,
  4879. # you end up with a "frozen" computer, even though with patience
  4880. # the test eventually succeeds (with a max line length of 256k).
  4881. # Instead, let's just punt: use the minimum linelength reported by
  4882. # all of the supported platforms: 8192 (on NT/2K/XP).
  4883. lt_cv_sys_max_cmd_len=8192;
  4884. ;;
  4885. mint*)
  4886. # On MiNT this can take a long time and run out of memory.
  4887. lt_cv_sys_max_cmd_len=8192;
  4888. ;;
  4889. amigaos*)
  4890. # On AmigaOS with pdksh, this test takes hours, literally.
  4891. # So we just punt and use a minimum line length of 8192.
  4892. lt_cv_sys_max_cmd_len=8192;
  4893. ;;
  4894. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4895. # This has been around since 386BSD, at least. Likely further.
  4896. if test -x /sbin/sysctl; then
  4897. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4898. elif test -x /usr/sbin/sysctl; then
  4899. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4900. else
  4901. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4902. fi
  4903. # And add a safety zone
  4904. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4905. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4906. ;;
  4907. interix*)
  4908. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4909. lt_cv_sys_max_cmd_len=196608
  4910. ;;
  4911. os2*)
  4912. # The test takes a long time on OS/2.
  4913. lt_cv_sys_max_cmd_len=8192
  4914. ;;
  4915. osf*)
  4916. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4917. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4918. # nice to cause kernel panics so lets avoid the loop below.
  4919. # First set a reasonable default.
  4920. lt_cv_sys_max_cmd_len=16384
  4921. #
  4922. if test -x /sbin/sysconfig; then
  4923. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4924. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4925. esac
  4926. fi
  4927. ;;
  4928. sco3.2v5*)
  4929. lt_cv_sys_max_cmd_len=102400
  4930. ;;
  4931. sysv5* | sco5v6* | sysv4.2uw2*)
  4932. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4933. if test -n "$kargmax"; then
  4934. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4935. else
  4936. lt_cv_sys_max_cmd_len=32768
  4937. fi
  4938. ;;
  4939. *)
  4940. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4941. if test -n "$lt_cv_sys_max_cmd_len" && \
  4942. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4945. else
  4946. # Make teststring a little bigger before we do anything with it.
  4947. # a 1K string should be a reasonable start.
  4948. for i in 1 2 3 4 5 6 7 8; do
  4949. teststring=$teststring$teststring
  4950. done
  4951. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4952. # If test is not a shell built-in, we'll probably end up computing a
  4953. # maximum length that is only half of the actual maximum length, but
  4954. # we can't tell.
  4955. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4956. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4957. test 17 != "$i" # 1/2 MB should be enough
  4958. do
  4959. i=`expr $i + 1`
  4960. teststring=$teststring$teststring
  4961. done
  4962. # Only check the string length outside the loop.
  4963. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4964. teststring=
  4965. # Add a significant safety factor because C++ compilers can tack on
  4966. # massive amounts of additional arguments before passing them to the
  4967. # linker. It appears as though 1/2 is a usable value.
  4968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4969. fi
  4970. ;;
  4971. esac
  4972. fi
  4973. if test -n "$lt_cv_sys_max_cmd_len"; then
  4974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4975. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4976. else
  4977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4978. printf "%s\n" "none" >&6; }
  4979. fi
  4980. max_cmd_len=$lt_cv_sys_max_cmd_len
  4981. : ${CP="cp -f"}
  4982. : ${MV="mv -f"}
  4983. : ${RM="rm -f"}
  4984. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4985. lt_unset=unset
  4986. else
  4987. lt_unset=false
  4988. fi
  4989. # test EBCDIC or ASCII
  4990. case `echo X|tr X '\101'` in
  4991. A) # ASCII based system
  4992. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4993. lt_SP2NL='tr \040 \012'
  4994. lt_NL2SP='tr \015\012 \040\040'
  4995. ;;
  4996. *) # EBCDIC based system
  4997. lt_SP2NL='tr \100 \n'
  4998. lt_NL2SP='tr \r\n \100\100'
  4999. ;;
  5000. esac
  5001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5002. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5003. if test ${lt_cv_to_host_file_cmd+y}
  5004. then :
  5005. printf %s "(cached) " >&6
  5006. else $as_nop
  5007. case $host in
  5008. *-*-mingw* )
  5009. case $build in
  5010. *-*-mingw* ) # actually msys
  5011. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5012. ;;
  5013. *-*-cygwin* )
  5014. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5015. ;;
  5016. * ) # otherwise, assume *nix
  5017. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5018. ;;
  5019. esac
  5020. ;;
  5021. *-*-cygwin* )
  5022. case $build in
  5023. *-*-mingw* ) # actually msys
  5024. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5025. ;;
  5026. *-*-cygwin* )
  5027. lt_cv_to_host_file_cmd=func_convert_file_noop
  5028. ;;
  5029. * ) # otherwise, assume *nix
  5030. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5031. ;;
  5032. esac
  5033. ;;
  5034. * ) # unhandled hosts (and "normal" native builds)
  5035. lt_cv_to_host_file_cmd=func_convert_file_noop
  5036. ;;
  5037. esac
  5038. fi
  5039. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5041. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5043. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5044. if test ${lt_cv_to_tool_file_cmd+y}
  5045. then :
  5046. printf %s "(cached) " >&6
  5047. else $as_nop
  5048. #assume ordinary cross tools, or native build.
  5049. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5050. case $host in
  5051. *-*-mingw* )
  5052. case $build in
  5053. *-*-mingw* ) # actually msys
  5054. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5055. ;;
  5056. esac
  5057. ;;
  5058. esac
  5059. fi
  5060. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5062. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5064. printf %s "checking for $LD option to reload object files... " >&6; }
  5065. if test ${lt_cv_ld_reload_flag+y}
  5066. then :
  5067. printf %s "(cached) " >&6
  5068. else $as_nop
  5069. lt_cv_ld_reload_flag='-r'
  5070. fi
  5071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5072. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5073. reload_flag=$lt_cv_ld_reload_flag
  5074. case $reload_flag in
  5075. "" | " "*) ;;
  5076. *) reload_flag=" $reload_flag" ;;
  5077. esac
  5078. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5079. case $host_os in
  5080. cygwin* | mingw* | pw32* | cegcc*)
  5081. if test yes != "$GCC"; then
  5082. reload_cmds=false
  5083. fi
  5084. ;;
  5085. darwin*)
  5086. if test yes = "$GCC"; then
  5087. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5088. else
  5089. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5090. fi
  5091. ;;
  5092. esac
  5093. if test -n "$ac_tool_prefix"; then
  5094. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5095. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5097. printf %s "checking for $ac_word... " >&6; }
  5098. if test ${ac_cv_prog_OBJDUMP+y}
  5099. then :
  5100. printf %s "(cached) " >&6
  5101. else $as_nop
  5102. if test -n "$OBJDUMP"; then
  5103. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5104. else
  5105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5106. for as_dir in $PATH
  5107. do
  5108. IFS=$as_save_IFS
  5109. case $as_dir in #(((
  5110. '') as_dir=./ ;;
  5111. */) ;;
  5112. *) as_dir=$as_dir/ ;;
  5113. esac
  5114. for ac_exec_ext in '' $ac_executable_extensions; do
  5115. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5116. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5117. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5118. break 2
  5119. fi
  5120. done
  5121. done
  5122. IFS=$as_save_IFS
  5123. fi
  5124. fi
  5125. OBJDUMP=$ac_cv_prog_OBJDUMP
  5126. if test -n "$OBJDUMP"; then
  5127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5128. printf "%s\n" "$OBJDUMP" >&6; }
  5129. else
  5130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5131. printf "%s\n" "no" >&6; }
  5132. fi
  5133. fi
  5134. if test -z "$ac_cv_prog_OBJDUMP"; then
  5135. ac_ct_OBJDUMP=$OBJDUMP
  5136. # Extract the first word of "objdump", so it can be a program name with args.
  5137. set dummy objdump; ac_word=$2
  5138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5139. printf %s "checking for $ac_word... " >&6; }
  5140. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5141. then :
  5142. printf %s "(cached) " >&6
  5143. else $as_nop
  5144. if test -n "$ac_ct_OBJDUMP"; then
  5145. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5146. else
  5147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5148. for as_dir in $PATH
  5149. do
  5150. IFS=$as_save_IFS
  5151. case $as_dir in #(((
  5152. '') as_dir=./ ;;
  5153. */) ;;
  5154. *) as_dir=$as_dir/ ;;
  5155. esac
  5156. for ac_exec_ext in '' $ac_executable_extensions; do
  5157. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5158. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5160. break 2
  5161. fi
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. fi
  5166. fi
  5167. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5168. if test -n "$ac_ct_OBJDUMP"; then
  5169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5170. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5171. else
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5173. printf "%s\n" "no" >&6; }
  5174. fi
  5175. if test "x$ac_ct_OBJDUMP" = x; then
  5176. OBJDUMP="false"
  5177. else
  5178. case $cross_compiling:$ac_tool_warned in
  5179. yes:)
  5180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5181. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5182. ac_tool_warned=yes ;;
  5183. esac
  5184. OBJDUMP=$ac_ct_OBJDUMP
  5185. fi
  5186. else
  5187. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5188. fi
  5189. test -z "$OBJDUMP" && OBJDUMP=objdump
  5190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5191. printf %s "checking how to recognize dependent libraries... " >&6; }
  5192. if test ${lt_cv_deplibs_check_method+y}
  5193. then :
  5194. printf %s "(cached) " >&6
  5195. else $as_nop
  5196. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5197. lt_cv_file_magic_test_file=
  5198. lt_cv_deplibs_check_method='unknown'
  5199. # Need to set the preceding variable on all platforms that support
  5200. # interlibrary dependencies.
  5201. # 'none' -- dependencies not supported.
  5202. # 'unknown' -- same as none, but documents that we really don't know.
  5203. # 'pass_all' -- all dependencies passed with no checks.
  5204. # 'test_compile' -- check by making test program.
  5205. # 'file_magic [[regex]]' -- check by looking for files in library path
  5206. # that responds to the $file_magic_cmd with a given extended regex.
  5207. # If you have 'file' or equivalent on your system and you're not sure
  5208. # whether 'pass_all' will *always* work, you probably want this one.
  5209. case $host_os in
  5210. aix[4-9]*)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. beos*)
  5214. lt_cv_deplibs_check_method=pass_all
  5215. ;;
  5216. bsdi[45]*)
  5217. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5218. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5219. lt_cv_file_magic_test_file=/shlib/libc.so
  5220. ;;
  5221. cygwin*)
  5222. # func_win32_libid is a shell function defined in ltmain.sh
  5223. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5224. lt_cv_file_magic_cmd='func_win32_libid'
  5225. lt_cv_deplibs_check_method=pass_all # SDL customization
  5226. ;;
  5227. mingw* | pw32*)
  5228. # Base MSYS/MinGW do not provide the 'file' command needed by
  5229. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5230. # unless we find 'file', for example because we are cross-compiling.
  5231. if ( file / ) >/dev/null 2>&1; then
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. else
  5235. # Keep this pattern in sync with the one in func_win32_libid.
  5236. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5237. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5238. fi
  5239. lt_cv_deplibs_check_method=pass_all # SDL customization
  5240. ;;
  5241. cegcc*)
  5242. # use the weaker test based on 'objdump'. See mingw*.
  5243. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5244. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5245. ;;
  5246. darwin* | rhapsody*)
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. freebsd* | dragonfly* | midnightbsd*)
  5250. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5251. case $host_cpu in
  5252. i*86 )
  5253. # Not sure whether the presence of OpenBSD here was a mistake.
  5254. # Let's accept both of them until this is cleared up.
  5255. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5256. lt_cv_file_magic_cmd=/usr/bin/file
  5257. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5258. ;;
  5259. esac
  5260. else
  5261. lt_cv_deplibs_check_method=pass_all
  5262. fi
  5263. ;;
  5264. haiku*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. hpux10.20* | hpux11*)
  5268. lt_cv_file_magic_cmd=/usr/bin/file
  5269. case $host_cpu in
  5270. ia64*)
  5271. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5272. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5273. ;;
  5274. hppa*64*)
  5275. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5276. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5277. ;;
  5278. *)
  5279. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5280. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5281. ;;
  5282. esac
  5283. ;;
  5284. interix[3-9]*)
  5285. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5286. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5287. ;;
  5288. irix5* | irix6* | nonstopux*)
  5289. case $LD in
  5290. *-32|*"-32 ") libmagic=32-bit;;
  5291. *-n32|*"-n32 ") libmagic=N32;;
  5292. *-64|*"-64 ") libmagic=64-bit;;
  5293. *) libmagic=never-match;;
  5294. esac
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. # This must be glibc/ELF.
  5298. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5299. lt_cv_deplibs_check_method=pass_all
  5300. ;;
  5301. netbsd*)
  5302. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5303. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5304. else
  5305. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5306. fi
  5307. ;;
  5308. newos6*)
  5309. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5310. lt_cv_file_magic_cmd=/usr/bin/file
  5311. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5312. ;;
  5313. *nto* | *qnx*)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. openbsd* | bitrig*)
  5317. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5318. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5319. else
  5320. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5321. fi
  5322. ;;
  5323. osf3* | osf4* | osf5*)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. rdos*)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. solaris*)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. sysv4 | sysv4.3*)
  5336. case $host_vendor in
  5337. motorola)
  5338. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5339. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5340. ;;
  5341. ncr)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sequent)
  5345. lt_cv_file_magic_cmd='/bin/file'
  5346. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5347. ;;
  5348. sni)
  5349. lt_cv_file_magic_cmd='/bin/file'
  5350. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5351. lt_cv_file_magic_test_file=/lib/libc.so
  5352. ;;
  5353. siemens)
  5354. lt_cv_deplibs_check_method=pass_all
  5355. ;;
  5356. pc)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. esac
  5360. ;;
  5361. tpf*)
  5362. lt_cv_deplibs_check_method=pass_all
  5363. ;;
  5364. os2*)
  5365. lt_cv_deplibs_check_method=pass_all
  5366. ;;
  5367. esac
  5368. fi
  5369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5370. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5371. file_magic_glob=
  5372. want_nocaseglob=no
  5373. if test "$build" = "$host"; then
  5374. case $host_os in
  5375. mingw* | pw32*)
  5376. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5377. want_nocaseglob=yes
  5378. else
  5379. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5380. fi
  5381. ;;
  5382. esac
  5383. fi
  5384. file_magic_cmd=$lt_cv_file_magic_cmd
  5385. deplibs_check_method=$lt_cv_deplibs_check_method
  5386. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5387. if test -n "$ac_tool_prefix"; then
  5388. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5389. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5391. printf %s "checking for $ac_word... " >&6; }
  5392. if test ${ac_cv_prog_DLLTOOL+y}
  5393. then :
  5394. printf %s "(cached) " >&6
  5395. else $as_nop
  5396. if test -n "$DLLTOOL"; then
  5397. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. case $as_dir in #(((
  5404. '') as_dir=./ ;;
  5405. */) ;;
  5406. *) as_dir=$as_dir/ ;;
  5407. esac
  5408. for ac_exec_ext in '' $ac_executable_extensions; do
  5409. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5410. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5411. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5412. break 2
  5413. fi
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. fi
  5419. DLLTOOL=$ac_cv_prog_DLLTOOL
  5420. if test -n "$DLLTOOL"; then
  5421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5422. printf "%s\n" "$DLLTOOL" >&6; }
  5423. else
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5425. printf "%s\n" "no" >&6; }
  5426. fi
  5427. fi
  5428. if test -z "$ac_cv_prog_DLLTOOL"; then
  5429. ac_ct_DLLTOOL=$DLLTOOL
  5430. # Extract the first word of "dlltool", so it can be a program name with args.
  5431. set dummy dlltool; ac_word=$2
  5432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5433. printf %s "checking for $ac_word... " >&6; }
  5434. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5435. then :
  5436. printf %s "(cached) " >&6
  5437. else $as_nop
  5438. if test -n "$ac_ct_DLLTOOL"; then
  5439. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5440. else
  5441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5442. for as_dir in $PATH
  5443. do
  5444. IFS=$as_save_IFS
  5445. case $as_dir in #(((
  5446. '') as_dir=./ ;;
  5447. */) ;;
  5448. *) as_dir=$as_dir/ ;;
  5449. esac
  5450. for ac_exec_ext in '' $ac_executable_extensions; do
  5451. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5452. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5454. break 2
  5455. fi
  5456. done
  5457. done
  5458. IFS=$as_save_IFS
  5459. fi
  5460. fi
  5461. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5462. if test -n "$ac_ct_DLLTOOL"; then
  5463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5464. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5465. else
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5467. printf "%s\n" "no" >&6; }
  5468. fi
  5469. if test "x$ac_ct_DLLTOOL" = x; then
  5470. DLLTOOL="false"
  5471. else
  5472. case $cross_compiling:$ac_tool_warned in
  5473. yes:)
  5474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5475. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5476. ac_tool_warned=yes ;;
  5477. esac
  5478. DLLTOOL=$ac_ct_DLLTOOL
  5479. fi
  5480. else
  5481. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5482. fi
  5483. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5485. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5486. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5487. then :
  5488. printf %s "(cached) " >&6
  5489. else $as_nop
  5490. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5491. case $host_os in
  5492. cygwin* | mingw* | pw32* | cegcc*)
  5493. # two different shell functions defined in ltmain.sh;
  5494. # decide which one to use based on capabilities of $DLLTOOL
  5495. case `$DLLTOOL --help 2>&1` in
  5496. *--identify-strict*)
  5497. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5498. ;;
  5499. *)
  5500. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5501. ;;
  5502. esac
  5503. ;;
  5504. *)
  5505. # fallback: assume linklib IS sharedlib
  5506. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5507. ;;
  5508. esac
  5509. fi
  5510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5511. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5512. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5513. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5514. if test -n "$ac_tool_prefix"; then
  5515. for ac_prog in ar
  5516. do
  5517. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5518. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. printf %s "checking for $ac_word... " >&6; }
  5521. if test ${ac_cv_prog_AR+y}
  5522. then :
  5523. printf %s "(cached) " >&6
  5524. else $as_nop
  5525. if test -n "$AR"; then
  5526. ac_cv_prog_AR="$AR" # Let the user override the test.
  5527. else
  5528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5529. for as_dir in $PATH
  5530. do
  5531. IFS=$as_save_IFS
  5532. case $as_dir in #(((
  5533. '') as_dir=./ ;;
  5534. */) ;;
  5535. *) as_dir=$as_dir/ ;;
  5536. esac
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5539. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. AR=$ac_cv_prog_AR
  5549. if test -n "$AR"; then
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5551. printf "%s\n" "$AR" >&6; }
  5552. else
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5554. printf "%s\n" "no" >&6; }
  5555. fi
  5556. test -n "$AR" && break
  5557. done
  5558. fi
  5559. if test -z "$AR"; then
  5560. ac_ct_AR=$AR
  5561. for ac_prog in ar
  5562. do
  5563. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5564. set dummy $ac_prog; ac_word=$2
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5566. printf %s "checking for $ac_word... " >&6; }
  5567. if test ${ac_cv_prog_ac_ct_AR+y}
  5568. then :
  5569. printf %s "(cached) " >&6
  5570. else $as_nop
  5571. if test -n "$ac_ct_AR"; then
  5572. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5573. else
  5574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5575. for as_dir in $PATH
  5576. do
  5577. IFS=$as_save_IFS
  5578. case $as_dir in #(((
  5579. '') as_dir=./ ;;
  5580. */) ;;
  5581. *) as_dir=$as_dir/ ;;
  5582. esac
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5585. ac_cv_prog_ac_ct_AR="$ac_prog"
  5586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. fi
  5593. fi
  5594. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5595. if test -n "$ac_ct_AR"; then
  5596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5597. printf "%s\n" "$ac_ct_AR" >&6; }
  5598. else
  5599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5600. printf "%s\n" "no" >&6; }
  5601. fi
  5602. test -n "$ac_ct_AR" && break
  5603. done
  5604. if test "x$ac_ct_AR" = x; then
  5605. AR="false"
  5606. else
  5607. case $cross_compiling:$ac_tool_warned in
  5608. yes:)
  5609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5610. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5611. ac_tool_warned=yes ;;
  5612. esac
  5613. AR=$ac_ct_AR
  5614. fi
  5615. fi
  5616. : ${AR=ar}
  5617. : ${AR_FLAGS=cru}
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5619. printf %s "checking for archiver @FILE support... " >&6; }
  5620. if test ${lt_cv_ar_at_file+y}
  5621. then :
  5622. printf %s "(cached) " >&6
  5623. else $as_nop
  5624. lt_cv_ar_at_file=no
  5625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5626. /* end confdefs.h. */
  5627. int
  5628. main (void)
  5629. {
  5630. ;
  5631. return 0;
  5632. }
  5633. _ACEOF
  5634. if ac_fn_c_try_compile "$LINENO"
  5635. then :
  5636. echo conftest.$ac_objext > conftest.lst
  5637. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5638. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5639. (eval $lt_ar_try) 2>&5
  5640. ac_status=$?
  5641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5642. test $ac_status = 0; }
  5643. if test 0 -eq "$ac_status"; then
  5644. # Ensure the archiver fails upon bogus file names.
  5645. rm -f conftest.$ac_objext libconftest.a
  5646. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5647. (eval $lt_ar_try) 2>&5
  5648. ac_status=$?
  5649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5650. test $ac_status = 0; }
  5651. if test 0 -ne "$ac_status"; then
  5652. lt_cv_ar_at_file=@
  5653. fi
  5654. fi
  5655. rm -f conftest.* libconftest.a
  5656. fi
  5657. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5658. fi
  5659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5660. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5661. if test no = "$lt_cv_ar_at_file"; then
  5662. archiver_list_spec=
  5663. else
  5664. archiver_list_spec=$lt_cv_ar_at_file
  5665. fi
  5666. if test -n "$ac_tool_prefix"; then
  5667. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5668. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. printf %s "checking for $ac_word... " >&6; }
  5671. if test ${ac_cv_prog_STRIP+y}
  5672. then :
  5673. printf %s "(cached) " >&6
  5674. else $as_nop
  5675. if test -n "$STRIP"; then
  5676. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. case $as_dir in #(((
  5683. '') as_dir=./ ;;
  5684. */) ;;
  5685. *) as_dir=$as_dir/ ;;
  5686. esac
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5689. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. STRIP=$ac_cv_prog_STRIP
  5699. if test -n "$STRIP"; then
  5700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5701. printf "%s\n" "$STRIP" >&6; }
  5702. else
  5703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. printf "%s\n" "no" >&6; }
  5705. fi
  5706. fi
  5707. if test -z "$ac_cv_prog_STRIP"; then
  5708. ac_ct_STRIP=$STRIP
  5709. # Extract the first word of "strip", so it can be a program name with args.
  5710. set dummy strip; ac_word=$2
  5711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. printf %s "checking for $ac_word... " >&6; }
  5713. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5714. then :
  5715. printf %s "(cached) " >&6
  5716. else $as_nop
  5717. if test -n "$ac_ct_STRIP"; then
  5718. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. case $as_dir in #(((
  5725. '') as_dir=./ ;;
  5726. */) ;;
  5727. *) as_dir=$as_dir/ ;;
  5728. esac
  5729. for ac_exec_ext in '' $ac_executable_extensions; do
  5730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5731. ac_cv_prog_ac_ct_STRIP="strip"
  5732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5733. break 2
  5734. fi
  5735. done
  5736. done
  5737. IFS=$as_save_IFS
  5738. fi
  5739. fi
  5740. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5741. if test -n "$ac_ct_STRIP"; then
  5742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5743. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5744. else
  5745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5746. printf "%s\n" "no" >&6; }
  5747. fi
  5748. if test "x$ac_ct_STRIP" = x; then
  5749. STRIP=":"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. STRIP=$ac_ct_STRIP
  5758. fi
  5759. else
  5760. STRIP="$ac_cv_prog_STRIP"
  5761. fi
  5762. test -z "$STRIP" && STRIP=:
  5763. if test -n "$ac_tool_prefix"; then
  5764. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5765. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5767. printf %s "checking for $ac_word... " >&6; }
  5768. if test ${ac_cv_prog_RANLIB+y}
  5769. then :
  5770. printf %s "(cached) " >&6
  5771. else $as_nop
  5772. if test -n "$RANLIB"; then
  5773. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5774. else
  5775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5776. for as_dir in $PATH
  5777. do
  5778. IFS=$as_save_IFS
  5779. case $as_dir in #(((
  5780. '') as_dir=./ ;;
  5781. */) ;;
  5782. *) as_dir=$as_dir/ ;;
  5783. esac
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. RANLIB=$ac_cv_prog_RANLIB
  5796. if test -n "$RANLIB"; then
  5797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5798. printf "%s\n" "$RANLIB" >&6; }
  5799. else
  5800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. printf "%s\n" "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_RANLIB"; then
  5805. ac_ct_RANLIB=$RANLIB
  5806. # Extract the first word of "ranlib", so it can be a program name with args.
  5807. set dummy ranlib; ac_word=$2
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. printf %s "checking for $ac_word... " >&6; }
  5810. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5811. then :
  5812. printf %s "(cached) " >&6
  5813. else $as_nop
  5814. if test -n "$ac_ct_RANLIB"; then
  5815. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5816. else
  5817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5818. for as_dir in $PATH
  5819. do
  5820. IFS=$as_save_IFS
  5821. case $as_dir in #(((
  5822. '') as_dir=./ ;;
  5823. */) ;;
  5824. *) as_dir=$as_dir/ ;;
  5825. esac
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5838. if test -n "$ac_ct_RANLIB"; then
  5839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5840. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5841. else
  5842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. printf "%s\n" "no" >&6; }
  5844. fi
  5845. if test "x$ac_ct_RANLIB" = x; then
  5846. RANLIB=":"
  5847. else
  5848. case $cross_compiling:$ac_tool_warned in
  5849. yes:)
  5850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5851. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5852. ac_tool_warned=yes ;;
  5853. esac
  5854. RANLIB=$ac_ct_RANLIB
  5855. fi
  5856. else
  5857. RANLIB="$ac_cv_prog_RANLIB"
  5858. fi
  5859. test -z "$RANLIB" && RANLIB=:
  5860. # Determine commands to create old-style static archives.
  5861. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5862. old_postinstall_cmds='chmod 644 $oldlib'
  5863. old_postuninstall_cmds=
  5864. if test -n "$RANLIB"; then
  5865. case $host_os in
  5866. bitrig* | openbsd*)
  5867. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5868. ;;
  5869. *)
  5870. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5871. ;;
  5872. esac
  5873. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5874. fi
  5875. case $host_os in
  5876. darwin*)
  5877. lock_old_archive_extraction=yes ;;
  5878. *)
  5879. lock_old_archive_extraction=no ;;
  5880. esac
  5881. for ac_prog in gawk mawk nawk awk
  5882. do
  5883. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5884. set dummy $ac_prog; ac_word=$2
  5885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5886. printf %s "checking for $ac_word... " >&6; }
  5887. if test ${ac_cv_prog_AWK+y}
  5888. then :
  5889. printf %s "(cached) " >&6
  5890. else $as_nop
  5891. if test -n "$AWK"; then
  5892. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5893. else
  5894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5895. for as_dir in $PATH
  5896. do
  5897. IFS=$as_save_IFS
  5898. case $as_dir in #(((
  5899. '') as_dir=./ ;;
  5900. */) ;;
  5901. *) as_dir=$as_dir/ ;;
  5902. esac
  5903. for ac_exec_ext in '' $ac_executable_extensions; do
  5904. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5905. ac_cv_prog_AWK="$ac_prog"
  5906. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5907. break 2
  5908. fi
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. fi
  5913. fi
  5914. AWK=$ac_cv_prog_AWK
  5915. if test -n "$AWK"; then
  5916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5917. printf "%s\n" "$AWK" >&6; }
  5918. else
  5919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5920. printf "%s\n" "no" >&6; }
  5921. fi
  5922. test -n "$AWK" && break
  5923. done
  5924. # If no C compiler was specified, use CC.
  5925. LTCC=${LTCC-"$CC"}
  5926. # If no C compiler flags were specified, use CFLAGS.
  5927. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5928. # Allow CC to be a program name with arguments.
  5929. compiler=$CC
  5930. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5932. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5933. if test ${lt_cv_sys_global_symbol_pipe+y}
  5934. then :
  5935. printf %s "(cached) " >&6
  5936. else $as_nop
  5937. # These are sane defaults that work on at least a few old systems.
  5938. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5939. # Character class describing NM global symbol codes.
  5940. symcode='[BCDEGRST]'
  5941. # Regexp to match symbols that can be accessed directly from C.
  5942. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5943. # Define system-specific variables.
  5944. case $host_os in
  5945. aix*)
  5946. symcode='[BCDT]'
  5947. ;;
  5948. cygwin* | mingw* | pw32* | cegcc*)
  5949. symcode='[ABCDGISTW]'
  5950. ;;
  5951. hpux*)
  5952. if test ia64 = "$host_cpu"; then
  5953. symcode='[ABCDEGRST]'
  5954. fi
  5955. ;;
  5956. irix* | nonstopux*)
  5957. symcode='[BCDEGRST]'
  5958. ;;
  5959. osf*)
  5960. symcode='[BCDEGQRST]'
  5961. ;;
  5962. solaris*)
  5963. symcode='[BCDRT]'
  5964. ;;
  5965. sco3.2v5*)
  5966. symcode='[DT]'
  5967. ;;
  5968. sysv4.2uw2*)
  5969. symcode='[DT]'
  5970. ;;
  5971. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5972. symcode='[ABDT]'
  5973. ;;
  5974. sysv4)
  5975. symcode='[DFNSTU]'
  5976. ;;
  5977. esac
  5978. # If we're using GNU nm, then use its standard symbol codes.
  5979. case `$NM -V 2>&1` in
  5980. *GNU* | *'with BFD'*)
  5981. symcode='[ABCDGIRSTW]' ;;
  5982. esac
  5983. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5984. # Gets list of data symbols to import.
  5985. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5986. # Adjust the below global symbol transforms to fixup imported variables.
  5987. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5988. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5989. lt_c_name_lib_hook="\
  5990. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5991. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5992. else
  5993. # Disable hooks by default.
  5994. lt_cv_sys_global_symbol_to_import=
  5995. lt_cdecl_hook=
  5996. lt_c_name_hook=
  5997. lt_c_name_lib_hook=
  5998. fi
  5999. # Transform an extracted symbol line into a proper C declaration.
  6000. # Some systems (esp. on ia64) link data and code symbols differently,
  6001. # so use this general approach.
  6002. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6003. $lt_cdecl_hook\
  6004. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6005. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6006. # Transform an extracted symbol line into symbol name and symbol address
  6007. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6008. $lt_c_name_hook\
  6009. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6010. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6011. # Transform an extracted symbol line into symbol name with lib prefix and
  6012. # symbol address.
  6013. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6014. $lt_c_name_lib_hook\
  6015. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6016. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6017. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6018. # Handle CRLF in mingw tool chain
  6019. opt_cr=
  6020. case $build_os in
  6021. mingw*)
  6022. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6023. ;;
  6024. esac
  6025. # Try without a prefix underscore, then with it.
  6026. for ac_symprfx in "" "_"; do
  6027. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6028. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6029. # Write the raw and C identifiers.
  6030. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6031. # Fake it for dumpbin and say T for any non-static function,
  6032. # D for any global variable and I for any imported variable.
  6033. # Also find C++ and __fastcall symbols from MSVC++,
  6034. # which start with @ or ?.
  6035. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6036. " {last_section=section; section=\$ 3};"\
  6037. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6038. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6039. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6040. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6041. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6042. " \$ 0!~/External *\|/{next};"\
  6043. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6044. " {if(hide[section]) next};"\
  6045. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6046. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6047. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6048. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6049. " ' prfx=^$ac_symprfx"
  6050. else
  6051. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6052. fi
  6053. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6054. # Check to see that the pipe works correctly.
  6055. pipe_works=no
  6056. rm -f conftest*
  6057. cat > conftest.$ac_ext <<_LT_EOF
  6058. #ifdef __cplusplus
  6059. extern "C" {
  6060. #endif
  6061. char nm_test_var;
  6062. void nm_test_func(void);
  6063. void nm_test_func(void){}
  6064. #ifdef __cplusplus
  6065. }
  6066. #endif
  6067. int main(){nm_test_var='a';nm_test_func();return(0);}
  6068. _LT_EOF
  6069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6070. (eval $ac_compile) 2>&5
  6071. ac_status=$?
  6072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6073. test $ac_status = 0; }; then
  6074. # Now try to grab the symbols.
  6075. nlist=conftest.nm
  6076. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6077. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6078. ac_status=$?
  6079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6080. test $ac_status = 0; } && test -s "$nlist"; then
  6081. # Try sorting and uniquifying the output.
  6082. if sort "$nlist" | uniq > "$nlist"T; then
  6083. mv -f "$nlist"T "$nlist"
  6084. else
  6085. rm -f "$nlist"T
  6086. fi
  6087. # Make sure that we snagged all the symbols we need.
  6088. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6089. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6090. cat <<_LT_EOF > conftest.$ac_ext
  6091. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6092. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6093. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6094. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6095. # define LT_DLSYM_CONST
  6096. #elif defined __osf__
  6097. /* This system does not cope well with relocations in const data. */
  6098. # define LT_DLSYM_CONST
  6099. #else
  6100. # define LT_DLSYM_CONST const
  6101. #endif
  6102. #ifdef __cplusplus
  6103. extern "C" {
  6104. #endif
  6105. _LT_EOF
  6106. # Now generate the symbol file.
  6107. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6108. cat <<_LT_EOF >> conftest.$ac_ext
  6109. /* The mapping between symbol names and symbols. */
  6110. LT_DLSYM_CONST struct {
  6111. const char *name;
  6112. void *address;
  6113. }
  6114. lt__PROGRAM__LTX_preloaded_symbols[] =
  6115. {
  6116. { "@PROGRAM@", (void *) 0 },
  6117. _LT_EOF
  6118. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6119. cat <<\_LT_EOF >> conftest.$ac_ext
  6120. {0, (void *) 0}
  6121. };
  6122. /* This works around a problem in FreeBSD linker */
  6123. #ifdef FREEBSD_WORKAROUND
  6124. static const void *lt_preloaded_setup() {
  6125. return lt__PROGRAM__LTX_preloaded_symbols;
  6126. }
  6127. #endif
  6128. #ifdef __cplusplus
  6129. }
  6130. #endif
  6131. _LT_EOF
  6132. # Now try linking the two files.
  6133. mv conftest.$ac_objext conftstm.$ac_objext
  6134. lt_globsym_save_LIBS=$LIBS
  6135. lt_globsym_save_CFLAGS=$CFLAGS
  6136. LIBS=conftstm.$ac_objext
  6137. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6138. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6139. (eval $ac_link) 2>&5
  6140. ac_status=$?
  6141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6142. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6143. pipe_works=yes
  6144. fi
  6145. LIBS=$lt_globsym_save_LIBS
  6146. CFLAGS=$lt_globsym_save_CFLAGS
  6147. else
  6148. echo "cannot find nm_test_func in $nlist" >&5
  6149. fi
  6150. else
  6151. echo "cannot find nm_test_var in $nlist" >&5
  6152. fi
  6153. else
  6154. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6155. fi
  6156. else
  6157. echo "$progname: failed program was:" >&5
  6158. cat conftest.$ac_ext >&5
  6159. fi
  6160. rm -rf conftest* conftst*
  6161. # Do not use the global_symbol_pipe unless it works.
  6162. if test yes = "$pipe_works"; then
  6163. break
  6164. else
  6165. lt_cv_sys_global_symbol_pipe=
  6166. fi
  6167. done
  6168. fi
  6169. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6170. lt_cv_sys_global_symbol_to_cdecl=
  6171. fi
  6172. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6174. printf "%s\n" "failed" >&6; }
  6175. else
  6176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6177. printf "%s\n" "ok" >&6; }
  6178. fi
  6179. # Response file support.
  6180. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6181. nm_file_list_spec='@'
  6182. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6183. nm_file_list_spec='@'
  6184. fi
  6185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6186. printf %s "checking for sysroot... " >&6; }
  6187. # Check whether --with-sysroot was given.
  6188. if test ${with_sysroot+y}
  6189. then :
  6190. withval=$with_sysroot;
  6191. else $as_nop
  6192. with_sysroot=no
  6193. fi
  6194. lt_sysroot=
  6195. case $with_sysroot in #(
  6196. yes)
  6197. if test yes = "$GCC"; then
  6198. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6199. fi
  6200. ;; #(
  6201. /*)
  6202. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6203. ;; #(
  6204. no|'')
  6205. ;; #(
  6206. *)
  6207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6208. printf "%s\n" "$with_sysroot" >&6; }
  6209. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6210. ;;
  6211. esac
  6212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6213. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6215. printf %s "checking for a working dd... " >&6; }
  6216. if test ${ac_cv_path_lt_DD+y}
  6217. then :
  6218. printf %s "(cached) " >&6
  6219. else $as_nop
  6220. printf 0123456789abcdef0123456789abcdef >conftest.i
  6221. cat conftest.i conftest.i >conftest2.i
  6222. : ${lt_DD:=$DD}
  6223. if test -z "$lt_DD"; then
  6224. ac_path_lt_DD_found=false
  6225. # Loop through the user's path and test for each of PROGNAME-LIST
  6226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6227. for as_dir in $PATH
  6228. do
  6229. IFS=$as_save_IFS
  6230. case $as_dir in #(((
  6231. '') as_dir=./ ;;
  6232. */) ;;
  6233. *) as_dir=$as_dir/ ;;
  6234. esac
  6235. for ac_prog in dd
  6236. do
  6237. for ac_exec_ext in '' $ac_executable_extensions; do
  6238. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6239. as_fn_executable_p "$ac_path_lt_DD" || continue
  6240. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6241. cmp -s conftest.i conftest.out \
  6242. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6243. fi
  6244. $ac_path_lt_DD_found && break 3
  6245. done
  6246. done
  6247. done
  6248. IFS=$as_save_IFS
  6249. if test -z "$ac_cv_path_lt_DD"; then
  6250. :
  6251. fi
  6252. else
  6253. ac_cv_path_lt_DD=$lt_DD
  6254. fi
  6255. rm -f conftest.i conftest2.i conftest.out
  6256. fi
  6257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6258. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6260. printf %s "checking how to truncate binary pipes... " >&6; }
  6261. if test ${lt_cv_truncate_bin+y}
  6262. then :
  6263. printf %s "(cached) " >&6
  6264. else $as_nop
  6265. printf 0123456789abcdef0123456789abcdef >conftest.i
  6266. cat conftest.i conftest.i >conftest2.i
  6267. lt_cv_truncate_bin=
  6268. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6269. cmp -s conftest.i conftest.out \
  6270. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6271. fi
  6272. rm -f conftest.i conftest2.i conftest.out
  6273. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6274. fi
  6275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6276. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6277. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6278. func_cc_basename ()
  6279. {
  6280. for cc_temp in $*""; do
  6281. case $cc_temp in
  6282. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6283. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6284. \-*) ;;
  6285. *) break;;
  6286. esac
  6287. done
  6288. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6289. }
  6290. # Check whether --enable-libtool-lock was given.
  6291. if test ${enable_libtool_lock+y}
  6292. then :
  6293. enableval=$enable_libtool_lock;
  6294. fi
  6295. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6296. # Some flags need to be propagated to the compiler or linker for good
  6297. # libtool support.
  6298. case $host in
  6299. ia64-*-hpux*)
  6300. # Find out what ABI is being produced by ac_compile, and set mode
  6301. # options accordingly.
  6302. echo 'int i;' > conftest.$ac_ext
  6303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6304. (eval $ac_compile) 2>&5
  6305. ac_status=$?
  6306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6307. test $ac_status = 0; }; then
  6308. case `/usr/bin/file conftest.$ac_objext` in
  6309. *ELF-32*)
  6310. HPUX_IA64_MODE=32
  6311. ;;
  6312. *ELF-64*)
  6313. HPUX_IA64_MODE=64
  6314. ;;
  6315. esac
  6316. fi
  6317. rm -rf conftest*
  6318. ;;
  6319. *-*-irix6*)
  6320. # Find out what ABI is being produced by ac_compile, and set linker
  6321. # options accordingly.
  6322. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6323. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6324. (eval $ac_compile) 2>&5
  6325. ac_status=$?
  6326. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6327. test $ac_status = 0; }; then
  6328. if test yes = "$lt_cv_prog_gnu_ld"; then
  6329. case `/usr/bin/file conftest.$ac_objext` in
  6330. *32-bit*)
  6331. LD="${LD-ld} -melf32bsmip"
  6332. ;;
  6333. *N32*)
  6334. LD="${LD-ld} -melf32bmipn32"
  6335. ;;
  6336. *64-bit*)
  6337. LD="${LD-ld} -melf64bmip"
  6338. ;;
  6339. esac
  6340. else
  6341. case `/usr/bin/file conftest.$ac_objext` in
  6342. *32-bit*)
  6343. LD="${LD-ld} -32"
  6344. ;;
  6345. *N32*)
  6346. LD="${LD-ld} -n32"
  6347. ;;
  6348. *64-bit*)
  6349. LD="${LD-ld} -64"
  6350. ;;
  6351. esac
  6352. fi
  6353. fi
  6354. rm -rf conftest*
  6355. ;;
  6356. mips64*-*linux*)
  6357. # Find out what ABI is being produced by ac_compile, and set linker
  6358. # options accordingly.
  6359. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6360. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6361. (eval $ac_compile) 2>&5
  6362. ac_status=$?
  6363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6364. test $ac_status = 0; }; then
  6365. emul=elf
  6366. case `/usr/bin/file conftest.$ac_objext` in
  6367. *32-bit*)
  6368. emul="${emul}32"
  6369. ;;
  6370. *64-bit*)
  6371. emul="${emul}64"
  6372. ;;
  6373. esac
  6374. case `/usr/bin/file conftest.$ac_objext` in
  6375. *MSB*)
  6376. emul="${emul}btsmip"
  6377. ;;
  6378. *LSB*)
  6379. emul="${emul}ltsmip"
  6380. ;;
  6381. esac
  6382. case `/usr/bin/file conftest.$ac_objext` in
  6383. *N32*)
  6384. emul="${emul}n32"
  6385. ;;
  6386. esac
  6387. LD="${LD-ld} -m $emul"
  6388. fi
  6389. rm -rf conftest*
  6390. ;;
  6391. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6392. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6393. # Find out what ABI is being produced by ac_compile, and set linker
  6394. # options accordingly. Note that the listed cases only cover the
  6395. # situations where additional linker options are needed (such as when
  6396. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6397. # vice versa); the common cases where no linker options are needed do
  6398. # not appear in the list.
  6399. echo 'int i;' > conftest.$ac_ext
  6400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6401. (eval $ac_compile) 2>&5
  6402. ac_status=$?
  6403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6404. test $ac_status = 0; }; then
  6405. case `/usr/bin/file conftest.o` in
  6406. *32-bit*)
  6407. case $host in
  6408. x86_64-*kfreebsd*-gnu)
  6409. LD="${LD-ld} -m elf_i386_fbsd"
  6410. ;;
  6411. x86_64-*linux*)
  6412. case `/usr/bin/file conftest.o` in
  6413. *x86-64*)
  6414. LD="${LD-ld} -m elf32_x86_64"
  6415. ;;
  6416. *)
  6417. LD="${LD-ld} -m elf_i386"
  6418. ;;
  6419. esac
  6420. ;;
  6421. powerpc64le-*linux*)
  6422. LD="${LD-ld} -m elf32lppclinux"
  6423. ;;
  6424. powerpc64-*linux*)
  6425. LD="${LD-ld} -m elf32ppclinux"
  6426. ;;
  6427. s390x-*linux*)
  6428. LD="${LD-ld} -m elf_s390"
  6429. ;;
  6430. sparc64-*linux*)
  6431. LD="${LD-ld} -m elf32_sparc"
  6432. ;;
  6433. esac
  6434. ;;
  6435. *64-bit*)
  6436. case $host in
  6437. x86_64-*kfreebsd*-gnu)
  6438. LD="${LD-ld} -m elf_x86_64_fbsd"
  6439. ;;
  6440. x86_64-*linux*)
  6441. LD="${LD-ld} -m elf_x86_64"
  6442. ;;
  6443. powerpcle-*linux*|powerpc64le-*linux*)
  6444. LD="${LD-ld} -m elf64lppc"
  6445. ;;
  6446. powerpc-*linux*|powerpc64-*linux*)
  6447. LD="${LD-ld} -m elf64ppc"
  6448. ;;
  6449. s390*-*linux*|s390*-*tpf*)
  6450. LD="${LD-ld} -m elf64_s390"
  6451. ;;
  6452. sparc*-*linux*)
  6453. LD="${LD-ld} -m elf64_sparc"
  6454. ;;
  6455. esac
  6456. ;;
  6457. esac
  6458. fi
  6459. rm -rf conftest*
  6460. ;;
  6461. *-*-sco3.2v5*)
  6462. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6463. SAVE_CFLAGS=$CFLAGS
  6464. CFLAGS="$CFLAGS -belf"
  6465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6466. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6467. if test ${lt_cv_cc_needs_belf+y}
  6468. then :
  6469. printf %s "(cached) " >&6
  6470. else $as_nop
  6471. ac_ext=c
  6472. ac_cpp='$CPP $CPPFLAGS'
  6473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6477. /* end confdefs.h. */
  6478. int
  6479. main (void)
  6480. {
  6481. ;
  6482. return 0;
  6483. }
  6484. _ACEOF
  6485. if ac_fn_c_try_link "$LINENO"
  6486. then :
  6487. lt_cv_cc_needs_belf=yes
  6488. else $as_nop
  6489. lt_cv_cc_needs_belf=no
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6492. conftest$ac_exeext conftest.$ac_ext
  6493. ac_ext=c
  6494. ac_cpp='$CPP $CPPFLAGS'
  6495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6498. fi
  6499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6500. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6501. if test yes != "$lt_cv_cc_needs_belf"; then
  6502. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6503. CFLAGS=$SAVE_CFLAGS
  6504. fi
  6505. ;;
  6506. *-*solaris*)
  6507. # Find out what ABI is being produced by ac_compile, and set linker
  6508. # options accordingly.
  6509. echo 'int i;' > conftest.$ac_ext
  6510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6511. (eval $ac_compile) 2>&5
  6512. ac_status=$?
  6513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6514. test $ac_status = 0; }; then
  6515. case `/usr/bin/file conftest.o` in
  6516. *64-bit*)
  6517. case $lt_cv_prog_gnu_ld in
  6518. yes*)
  6519. case $host in
  6520. i?86-*-solaris*|x86_64-*-solaris*)
  6521. LD="${LD-ld} -m elf_x86_64"
  6522. ;;
  6523. sparc*-*-solaris*)
  6524. LD="${LD-ld} -m elf64_sparc"
  6525. ;;
  6526. esac
  6527. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6528. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6529. LD=${LD-ld}_sol2
  6530. fi
  6531. ;;
  6532. *)
  6533. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6534. LD="${LD-ld} -64"
  6535. fi
  6536. ;;
  6537. esac
  6538. ;;
  6539. esac
  6540. fi
  6541. rm -rf conftest*
  6542. ;;
  6543. esac
  6544. need_locks=$enable_libtool_lock
  6545. if test -n "$ac_tool_prefix"; then
  6546. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6547. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6549. printf %s "checking for $ac_word... " >&6; }
  6550. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6551. then :
  6552. printf %s "(cached) " >&6
  6553. else $as_nop
  6554. if test -n "$MANIFEST_TOOL"; then
  6555. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6556. else
  6557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6558. for as_dir in $PATH
  6559. do
  6560. IFS=$as_save_IFS
  6561. case $as_dir in #(((
  6562. '') as_dir=./ ;;
  6563. */) ;;
  6564. *) as_dir=$as_dir/ ;;
  6565. esac
  6566. for ac_exec_ext in '' $ac_executable_extensions; do
  6567. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6568. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6569. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6570. break 2
  6571. fi
  6572. done
  6573. done
  6574. IFS=$as_save_IFS
  6575. fi
  6576. fi
  6577. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6578. if test -n "$MANIFEST_TOOL"; then
  6579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6580. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6581. else
  6582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6583. printf "%s\n" "no" >&6; }
  6584. fi
  6585. fi
  6586. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6587. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6588. # Extract the first word of "mt", so it can be a program name with args.
  6589. set dummy mt; ac_word=$2
  6590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6591. printf %s "checking for $ac_word... " >&6; }
  6592. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6593. then :
  6594. printf %s "(cached) " >&6
  6595. else $as_nop
  6596. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6597. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. case $as_dir in #(((
  6604. '') as_dir=./ ;;
  6605. */) ;;
  6606. *) as_dir=$as_dir/ ;;
  6607. esac
  6608. for ac_exec_ext in '' $ac_executable_extensions; do
  6609. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6610. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6611. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6612. break 2
  6613. fi
  6614. done
  6615. done
  6616. IFS=$as_save_IFS
  6617. fi
  6618. fi
  6619. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6620. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6622. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6623. else
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. printf "%s\n" "no" >&6; }
  6626. fi
  6627. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6628. MANIFEST_TOOL=":"
  6629. else
  6630. case $cross_compiling:$ac_tool_warned in
  6631. yes:)
  6632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6633. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6634. ac_tool_warned=yes ;;
  6635. esac
  6636. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6637. fi
  6638. else
  6639. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6640. fi
  6641. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6643. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6644. if test ${lt_cv_path_mainfest_tool+y}
  6645. then :
  6646. printf %s "(cached) " >&6
  6647. else $as_nop
  6648. lt_cv_path_mainfest_tool=no
  6649. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6650. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6651. cat conftest.err >&5
  6652. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6653. lt_cv_path_mainfest_tool=yes
  6654. fi
  6655. rm -f conftest*
  6656. fi
  6657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6658. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6659. if test yes != "$lt_cv_path_mainfest_tool"; then
  6660. MANIFEST_TOOL=:
  6661. fi
  6662. case $host_os in
  6663. rhapsody* | darwin*)
  6664. if test -n "$ac_tool_prefix"; then
  6665. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6666. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6668. printf %s "checking for $ac_word... " >&6; }
  6669. if test ${ac_cv_prog_DSYMUTIL+y}
  6670. then :
  6671. printf %s "(cached) " >&6
  6672. else $as_nop
  6673. if test -n "$DSYMUTIL"; then
  6674. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6675. else
  6676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677. for as_dir in $PATH
  6678. do
  6679. IFS=$as_save_IFS
  6680. case $as_dir in #(((
  6681. '') as_dir=./ ;;
  6682. */) ;;
  6683. *) as_dir=$as_dir/ ;;
  6684. esac
  6685. for ac_exec_ext in '' $ac_executable_extensions; do
  6686. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6687. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6689. break 2
  6690. fi
  6691. done
  6692. done
  6693. IFS=$as_save_IFS
  6694. fi
  6695. fi
  6696. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6697. if test -n "$DSYMUTIL"; then
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6699. printf "%s\n" "$DSYMUTIL" >&6; }
  6700. else
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. printf "%s\n" "no" >&6; }
  6703. fi
  6704. fi
  6705. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6706. ac_ct_DSYMUTIL=$DSYMUTIL
  6707. # Extract the first word of "dsymutil", so it can be a program name with args.
  6708. set dummy dsymutil; ac_word=$2
  6709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6710. printf %s "checking for $ac_word... " >&6; }
  6711. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6712. then :
  6713. printf %s "(cached) " >&6
  6714. else $as_nop
  6715. if test -n "$ac_ct_DSYMUTIL"; then
  6716. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6717. else
  6718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6719. for as_dir in $PATH
  6720. do
  6721. IFS=$as_save_IFS
  6722. case $as_dir in #(((
  6723. '') as_dir=./ ;;
  6724. */) ;;
  6725. *) as_dir=$as_dir/ ;;
  6726. esac
  6727. for ac_exec_ext in '' $ac_executable_extensions; do
  6728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6729. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6731. break 2
  6732. fi
  6733. done
  6734. done
  6735. IFS=$as_save_IFS
  6736. fi
  6737. fi
  6738. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6739. if test -n "$ac_ct_DSYMUTIL"; then
  6740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6741. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6742. else
  6743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6744. printf "%s\n" "no" >&6; }
  6745. fi
  6746. if test "x$ac_ct_DSYMUTIL" = x; then
  6747. DSYMUTIL=":"
  6748. else
  6749. case $cross_compiling:$ac_tool_warned in
  6750. yes:)
  6751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6752. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6753. ac_tool_warned=yes ;;
  6754. esac
  6755. DSYMUTIL=$ac_ct_DSYMUTIL
  6756. fi
  6757. else
  6758. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6759. fi
  6760. if test -n "$ac_tool_prefix"; then
  6761. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6762. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6764. printf %s "checking for $ac_word... " >&6; }
  6765. if test ${ac_cv_prog_NMEDIT+y}
  6766. then :
  6767. printf %s "(cached) " >&6
  6768. else $as_nop
  6769. if test -n "$NMEDIT"; then
  6770. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6771. else
  6772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6773. for as_dir in $PATH
  6774. do
  6775. IFS=$as_save_IFS
  6776. case $as_dir in #(((
  6777. '') as_dir=./ ;;
  6778. */) ;;
  6779. *) as_dir=$as_dir/ ;;
  6780. esac
  6781. for ac_exec_ext in '' $ac_executable_extensions; do
  6782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6783. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6785. break 2
  6786. fi
  6787. done
  6788. done
  6789. IFS=$as_save_IFS
  6790. fi
  6791. fi
  6792. NMEDIT=$ac_cv_prog_NMEDIT
  6793. if test -n "$NMEDIT"; then
  6794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6795. printf "%s\n" "$NMEDIT" >&6; }
  6796. else
  6797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6798. printf "%s\n" "no" >&6; }
  6799. fi
  6800. fi
  6801. if test -z "$ac_cv_prog_NMEDIT"; then
  6802. ac_ct_NMEDIT=$NMEDIT
  6803. # Extract the first word of "nmedit", so it can be a program name with args.
  6804. set dummy nmedit; ac_word=$2
  6805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6806. printf %s "checking for $ac_word... " >&6; }
  6807. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6808. then :
  6809. printf %s "(cached) " >&6
  6810. else $as_nop
  6811. if test -n "$ac_ct_NMEDIT"; then
  6812. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6813. else
  6814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6815. for as_dir in $PATH
  6816. do
  6817. IFS=$as_save_IFS
  6818. case $as_dir in #(((
  6819. '') as_dir=./ ;;
  6820. */) ;;
  6821. *) as_dir=$as_dir/ ;;
  6822. esac
  6823. for ac_exec_ext in '' $ac_executable_extensions; do
  6824. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6825. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6827. break 2
  6828. fi
  6829. done
  6830. done
  6831. IFS=$as_save_IFS
  6832. fi
  6833. fi
  6834. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6835. if test -n "$ac_ct_NMEDIT"; then
  6836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6837. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6838. else
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6840. printf "%s\n" "no" >&6; }
  6841. fi
  6842. if test "x$ac_ct_NMEDIT" = x; then
  6843. NMEDIT=":"
  6844. else
  6845. case $cross_compiling:$ac_tool_warned in
  6846. yes:)
  6847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6848. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6849. ac_tool_warned=yes ;;
  6850. esac
  6851. NMEDIT=$ac_ct_NMEDIT
  6852. fi
  6853. else
  6854. NMEDIT="$ac_cv_prog_NMEDIT"
  6855. fi
  6856. if test -n "$ac_tool_prefix"; then
  6857. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6858. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6860. printf %s "checking for $ac_word... " >&6; }
  6861. if test ${ac_cv_prog_LIPO+y}
  6862. then :
  6863. printf %s "(cached) " >&6
  6864. else $as_nop
  6865. if test -n "$LIPO"; then
  6866. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6867. else
  6868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6869. for as_dir in $PATH
  6870. do
  6871. IFS=$as_save_IFS
  6872. case $as_dir in #(((
  6873. '') as_dir=./ ;;
  6874. */) ;;
  6875. *) as_dir=$as_dir/ ;;
  6876. esac
  6877. for ac_exec_ext in '' $ac_executable_extensions; do
  6878. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6879. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6880. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6881. break 2
  6882. fi
  6883. done
  6884. done
  6885. IFS=$as_save_IFS
  6886. fi
  6887. fi
  6888. LIPO=$ac_cv_prog_LIPO
  6889. if test -n "$LIPO"; then
  6890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6891. printf "%s\n" "$LIPO" >&6; }
  6892. else
  6893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6894. printf "%s\n" "no" >&6; }
  6895. fi
  6896. fi
  6897. if test -z "$ac_cv_prog_LIPO"; then
  6898. ac_ct_LIPO=$LIPO
  6899. # Extract the first word of "lipo", so it can be a program name with args.
  6900. set dummy lipo; ac_word=$2
  6901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6902. printf %s "checking for $ac_word... " >&6; }
  6903. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6904. then :
  6905. printf %s "(cached) " >&6
  6906. else $as_nop
  6907. if test -n "$ac_ct_LIPO"; then
  6908. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6909. else
  6910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6911. for as_dir in $PATH
  6912. do
  6913. IFS=$as_save_IFS
  6914. case $as_dir in #(((
  6915. '') as_dir=./ ;;
  6916. */) ;;
  6917. *) as_dir=$as_dir/ ;;
  6918. esac
  6919. for ac_exec_ext in '' $ac_executable_extensions; do
  6920. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6921. ac_cv_prog_ac_ct_LIPO="lipo"
  6922. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6923. break 2
  6924. fi
  6925. done
  6926. done
  6927. IFS=$as_save_IFS
  6928. fi
  6929. fi
  6930. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6931. if test -n "$ac_ct_LIPO"; then
  6932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6933. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6934. else
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6936. printf "%s\n" "no" >&6; }
  6937. fi
  6938. if test "x$ac_ct_LIPO" = x; then
  6939. LIPO=":"
  6940. else
  6941. case $cross_compiling:$ac_tool_warned in
  6942. yes:)
  6943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6944. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6945. ac_tool_warned=yes ;;
  6946. esac
  6947. LIPO=$ac_ct_LIPO
  6948. fi
  6949. else
  6950. LIPO="$ac_cv_prog_LIPO"
  6951. fi
  6952. if test -n "$ac_tool_prefix"; then
  6953. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6954. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6956. printf %s "checking for $ac_word... " >&6; }
  6957. if test ${ac_cv_prog_OTOOL+y}
  6958. then :
  6959. printf %s "(cached) " >&6
  6960. else $as_nop
  6961. if test -n "$OTOOL"; then
  6962. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6963. else
  6964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6965. for as_dir in $PATH
  6966. do
  6967. IFS=$as_save_IFS
  6968. case $as_dir in #(((
  6969. '') as_dir=./ ;;
  6970. */) ;;
  6971. *) as_dir=$as_dir/ ;;
  6972. esac
  6973. for ac_exec_ext in '' $ac_executable_extensions; do
  6974. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6975. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6977. break 2
  6978. fi
  6979. done
  6980. done
  6981. IFS=$as_save_IFS
  6982. fi
  6983. fi
  6984. OTOOL=$ac_cv_prog_OTOOL
  6985. if test -n "$OTOOL"; then
  6986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6987. printf "%s\n" "$OTOOL" >&6; }
  6988. else
  6989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6990. printf "%s\n" "no" >&6; }
  6991. fi
  6992. fi
  6993. if test -z "$ac_cv_prog_OTOOL"; then
  6994. ac_ct_OTOOL=$OTOOL
  6995. # Extract the first word of "otool", so it can be a program name with args.
  6996. set dummy otool; ac_word=$2
  6997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6998. printf %s "checking for $ac_word... " >&6; }
  6999. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7000. then :
  7001. printf %s "(cached) " >&6
  7002. else $as_nop
  7003. if test -n "$ac_ct_OTOOL"; then
  7004. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7005. else
  7006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7007. for as_dir in $PATH
  7008. do
  7009. IFS=$as_save_IFS
  7010. case $as_dir in #(((
  7011. '') as_dir=./ ;;
  7012. */) ;;
  7013. *) as_dir=$as_dir/ ;;
  7014. esac
  7015. for ac_exec_ext in '' $ac_executable_extensions; do
  7016. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7017. ac_cv_prog_ac_ct_OTOOL="otool"
  7018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7019. break 2
  7020. fi
  7021. done
  7022. done
  7023. IFS=$as_save_IFS
  7024. fi
  7025. fi
  7026. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7027. if test -n "$ac_ct_OTOOL"; then
  7028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7029. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7030. else
  7031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7032. printf "%s\n" "no" >&6; }
  7033. fi
  7034. if test "x$ac_ct_OTOOL" = x; then
  7035. OTOOL=":"
  7036. else
  7037. case $cross_compiling:$ac_tool_warned in
  7038. yes:)
  7039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7040. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7041. ac_tool_warned=yes ;;
  7042. esac
  7043. OTOOL=$ac_ct_OTOOL
  7044. fi
  7045. else
  7046. OTOOL="$ac_cv_prog_OTOOL"
  7047. fi
  7048. if test -n "$ac_tool_prefix"; then
  7049. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7050. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7052. printf %s "checking for $ac_word... " >&6; }
  7053. if test ${ac_cv_prog_OTOOL64+y}
  7054. then :
  7055. printf %s "(cached) " >&6
  7056. else $as_nop
  7057. if test -n "$OTOOL64"; then
  7058. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7059. else
  7060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7061. for as_dir in $PATH
  7062. do
  7063. IFS=$as_save_IFS
  7064. case $as_dir in #(((
  7065. '') as_dir=./ ;;
  7066. */) ;;
  7067. *) as_dir=$as_dir/ ;;
  7068. esac
  7069. for ac_exec_ext in '' $ac_executable_extensions; do
  7070. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7071. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7073. break 2
  7074. fi
  7075. done
  7076. done
  7077. IFS=$as_save_IFS
  7078. fi
  7079. fi
  7080. OTOOL64=$ac_cv_prog_OTOOL64
  7081. if test -n "$OTOOL64"; then
  7082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7083. printf "%s\n" "$OTOOL64" >&6; }
  7084. else
  7085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7086. printf "%s\n" "no" >&6; }
  7087. fi
  7088. fi
  7089. if test -z "$ac_cv_prog_OTOOL64"; then
  7090. ac_ct_OTOOL64=$OTOOL64
  7091. # Extract the first word of "otool64", so it can be a program name with args.
  7092. set dummy otool64; ac_word=$2
  7093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7094. printf %s "checking for $ac_word... " >&6; }
  7095. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7096. then :
  7097. printf %s "(cached) " >&6
  7098. else $as_nop
  7099. if test -n "$ac_ct_OTOOL64"; then
  7100. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7101. else
  7102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7103. for as_dir in $PATH
  7104. do
  7105. IFS=$as_save_IFS
  7106. case $as_dir in #(((
  7107. '') as_dir=./ ;;
  7108. */) ;;
  7109. *) as_dir=$as_dir/ ;;
  7110. esac
  7111. for ac_exec_ext in '' $ac_executable_extensions; do
  7112. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7113. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7115. break 2
  7116. fi
  7117. done
  7118. done
  7119. IFS=$as_save_IFS
  7120. fi
  7121. fi
  7122. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7123. if test -n "$ac_ct_OTOOL64"; then
  7124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7125. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7126. else
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7128. printf "%s\n" "no" >&6; }
  7129. fi
  7130. if test "x$ac_ct_OTOOL64" = x; then
  7131. OTOOL64=":"
  7132. else
  7133. case $cross_compiling:$ac_tool_warned in
  7134. yes:)
  7135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7136. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7137. ac_tool_warned=yes ;;
  7138. esac
  7139. OTOOL64=$ac_ct_OTOOL64
  7140. fi
  7141. else
  7142. OTOOL64="$ac_cv_prog_OTOOL64"
  7143. fi
  7144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7145. printf %s "checking for -single_module linker flag... " >&6; }
  7146. if test ${lt_cv_apple_cc_single_mod+y}
  7147. then :
  7148. printf %s "(cached) " >&6
  7149. else $as_nop
  7150. lt_cv_apple_cc_single_mod=no
  7151. if test -z "$LT_MULTI_MODULE"; then
  7152. # By default we will add the -single_module flag. You can override
  7153. # by either setting the environment variable LT_MULTI_MODULE
  7154. # non-empty at configure time, or by adding -multi_module to the
  7155. # link flags.
  7156. rm -rf libconftest.dylib*
  7157. echo "int foo(void){return 1;}" > conftest.c
  7158. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7159. -dynamiclib -Wl,-single_module conftest.c" >&5
  7160. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7162. _lt_result=$?
  7163. # If there is a non-empty error log, and "single_module"
  7164. # appears in it, assume the flag caused a linker warning
  7165. if test -s conftest.err && $GREP single_module conftest.err; then
  7166. cat conftest.err >&5
  7167. # Otherwise, if the output was created with a 0 exit code from
  7168. # the compiler, it worked.
  7169. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7170. lt_cv_apple_cc_single_mod=yes
  7171. else
  7172. cat conftest.err >&5
  7173. fi
  7174. rm -rf libconftest.dylib*
  7175. rm -f conftest.*
  7176. fi
  7177. fi
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7179. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7181. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7182. if test ${lt_cv_ld_exported_symbols_list+y}
  7183. then :
  7184. printf %s "(cached) " >&6
  7185. else $as_nop
  7186. lt_cv_ld_exported_symbols_list=no
  7187. save_LDFLAGS=$LDFLAGS
  7188. echo "_main" > conftest.sym
  7189. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7191. /* end confdefs.h. */
  7192. int
  7193. main (void)
  7194. {
  7195. ;
  7196. return 0;
  7197. }
  7198. _ACEOF
  7199. if ac_fn_c_try_link "$LINENO"
  7200. then :
  7201. lt_cv_ld_exported_symbols_list=yes
  7202. else $as_nop
  7203. lt_cv_ld_exported_symbols_list=no
  7204. fi
  7205. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7206. conftest$ac_exeext conftest.$ac_ext
  7207. LDFLAGS=$save_LDFLAGS
  7208. fi
  7209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7210. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7212. printf %s "checking for -force_load linker flag... " >&6; }
  7213. if test ${lt_cv_ld_force_load+y}
  7214. then :
  7215. printf %s "(cached) " >&6
  7216. else $as_nop
  7217. lt_cv_ld_force_load=no
  7218. cat > conftest.c << _LT_EOF
  7219. int forced_loaded() { return 2;}
  7220. _LT_EOF
  7221. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7222. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7223. echo "$AR cru libconftest.a conftest.o" >&5
  7224. $AR cru libconftest.a conftest.o 2>&5
  7225. echo "$RANLIB libconftest.a" >&5
  7226. $RANLIB libconftest.a 2>&5
  7227. cat > conftest.c << _LT_EOF
  7228. int main() { return 0;}
  7229. _LT_EOF
  7230. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7231. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7232. _lt_result=$?
  7233. if test -s conftest.err && $GREP force_load conftest.err; then
  7234. cat conftest.err >&5
  7235. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7236. lt_cv_ld_force_load=yes
  7237. else
  7238. cat conftest.err >&5
  7239. fi
  7240. rm -f conftest.err libconftest.a conftest conftest.c
  7241. rm -rf conftest.dSYM
  7242. fi
  7243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7244. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7245. case $host_os in
  7246. rhapsody* | darwin1.[012])
  7247. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7248. darwin1.*)
  7249. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7250. darwin*)
  7251. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7252. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7253. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7254. *)
  7255. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7256. esac
  7257. ;;
  7258. esac
  7259. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7260. _lt_dar_single_mod='$single_module'
  7261. fi
  7262. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7263. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7264. else
  7265. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7266. fi
  7267. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7268. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7269. else
  7270. _lt_dsymutil=
  7271. fi
  7272. ;;
  7273. esac
  7274. # func_munge_path_list VARIABLE PATH
  7275. # -----------------------------------
  7276. # VARIABLE is name of variable containing _space_ separated list of
  7277. # directories to be munged by the contents of PATH, which is string
  7278. # having a format:
  7279. # "DIR[:DIR]:"
  7280. # string "DIR[ DIR]" will be prepended to VARIABLE
  7281. # ":DIR[:DIR]"
  7282. # string "DIR[ DIR]" will be appended to VARIABLE
  7283. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7284. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7285. # "DIRA[ DIRA]" will be appended to VARIABLE
  7286. # "DIR[:DIR]"
  7287. # VARIABLE will be replaced by "DIR[ DIR]"
  7288. func_munge_path_list ()
  7289. {
  7290. case x$2 in
  7291. x)
  7292. ;;
  7293. *:)
  7294. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7295. ;;
  7296. x:*)
  7297. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7298. ;;
  7299. *::*)
  7300. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7301. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7302. ;;
  7303. *)
  7304. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7305. ;;
  7306. esac
  7307. }
  7308. ac_header= ac_cache=
  7309. for ac_item in $ac_header_c_list
  7310. do
  7311. if test $ac_cache; then
  7312. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7313. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7314. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7315. fi
  7316. ac_header= ac_cache=
  7317. elif test $ac_header; then
  7318. ac_cache=$ac_item
  7319. else
  7320. ac_header=$ac_item
  7321. fi
  7322. done
  7323. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7324. then :
  7325. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7326. fi
  7327. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7328. "
  7329. if test "x$ac_cv_header_dlfcn_h" = xyes
  7330. then :
  7331. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7332. fi
  7333. # Set options
  7334. enable_win32_dll=yes
  7335. case $host in
  7336. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7337. if test -n "$ac_tool_prefix"; then
  7338. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7339. set dummy ${ac_tool_prefix}as; ac_word=$2
  7340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7341. printf %s "checking for $ac_word... " >&6; }
  7342. if test ${ac_cv_prog_AS+y}
  7343. then :
  7344. printf %s "(cached) " >&6
  7345. else $as_nop
  7346. if test -n "$AS"; then
  7347. ac_cv_prog_AS="$AS" # Let the user override the test.
  7348. else
  7349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7350. for as_dir in $PATH
  7351. do
  7352. IFS=$as_save_IFS
  7353. case $as_dir in #(((
  7354. '') as_dir=./ ;;
  7355. */) ;;
  7356. *) as_dir=$as_dir/ ;;
  7357. esac
  7358. for ac_exec_ext in '' $ac_executable_extensions; do
  7359. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7360. ac_cv_prog_AS="${ac_tool_prefix}as"
  7361. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7362. break 2
  7363. fi
  7364. done
  7365. done
  7366. IFS=$as_save_IFS
  7367. fi
  7368. fi
  7369. AS=$ac_cv_prog_AS
  7370. if test -n "$AS"; then
  7371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7372. printf "%s\n" "$AS" >&6; }
  7373. else
  7374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7375. printf "%s\n" "no" >&6; }
  7376. fi
  7377. fi
  7378. if test -z "$ac_cv_prog_AS"; then
  7379. ac_ct_AS=$AS
  7380. # Extract the first word of "as", so it can be a program name with args.
  7381. set dummy as; ac_word=$2
  7382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7383. printf %s "checking for $ac_word... " >&6; }
  7384. if test ${ac_cv_prog_ac_ct_AS+y}
  7385. then :
  7386. printf %s "(cached) " >&6
  7387. else $as_nop
  7388. if test -n "$ac_ct_AS"; then
  7389. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7390. else
  7391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7392. for as_dir in $PATH
  7393. do
  7394. IFS=$as_save_IFS
  7395. case $as_dir in #(((
  7396. '') as_dir=./ ;;
  7397. */) ;;
  7398. *) as_dir=$as_dir/ ;;
  7399. esac
  7400. for ac_exec_ext in '' $ac_executable_extensions; do
  7401. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7402. ac_cv_prog_ac_ct_AS="as"
  7403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7404. break 2
  7405. fi
  7406. done
  7407. done
  7408. IFS=$as_save_IFS
  7409. fi
  7410. fi
  7411. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7412. if test -n "$ac_ct_AS"; then
  7413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7414. printf "%s\n" "$ac_ct_AS" >&6; }
  7415. else
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7417. printf "%s\n" "no" >&6; }
  7418. fi
  7419. if test "x$ac_ct_AS" = x; then
  7420. AS="false"
  7421. else
  7422. case $cross_compiling:$ac_tool_warned in
  7423. yes:)
  7424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7425. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7426. ac_tool_warned=yes ;;
  7427. esac
  7428. AS=$ac_ct_AS
  7429. fi
  7430. else
  7431. AS="$ac_cv_prog_AS"
  7432. fi
  7433. if test -n "$ac_tool_prefix"; then
  7434. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7435. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7437. printf %s "checking for $ac_word... " >&6; }
  7438. if test ${ac_cv_prog_DLLTOOL+y}
  7439. then :
  7440. printf %s "(cached) " >&6
  7441. else $as_nop
  7442. if test -n "$DLLTOOL"; then
  7443. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7444. else
  7445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7446. for as_dir in $PATH
  7447. do
  7448. IFS=$as_save_IFS
  7449. case $as_dir in #(((
  7450. '') as_dir=./ ;;
  7451. */) ;;
  7452. *) as_dir=$as_dir/ ;;
  7453. esac
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7456. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7458. break 2
  7459. fi
  7460. done
  7461. done
  7462. IFS=$as_save_IFS
  7463. fi
  7464. fi
  7465. DLLTOOL=$ac_cv_prog_DLLTOOL
  7466. if test -n "$DLLTOOL"; then
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7468. printf "%s\n" "$DLLTOOL" >&6; }
  7469. else
  7470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7471. printf "%s\n" "no" >&6; }
  7472. fi
  7473. fi
  7474. if test -z "$ac_cv_prog_DLLTOOL"; then
  7475. ac_ct_DLLTOOL=$DLLTOOL
  7476. # Extract the first word of "dlltool", so it can be a program name with args.
  7477. set dummy dlltool; ac_word=$2
  7478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7479. printf %s "checking for $ac_word... " >&6; }
  7480. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7481. then :
  7482. printf %s "(cached) " >&6
  7483. else $as_nop
  7484. if test -n "$ac_ct_DLLTOOL"; then
  7485. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7486. else
  7487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7488. for as_dir in $PATH
  7489. do
  7490. IFS=$as_save_IFS
  7491. case $as_dir in #(((
  7492. '') as_dir=./ ;;
  7493. */) ;;
  7494. *) as_dir=$as_dir/ ;;
  7495. esac
  7496. for ac_exec_ext in '' $ac_executable_extensions; do
  7497. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7498. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7500. break 2
  7501. fi
  7502. done
  7503. done
  7504. IFS=$as_save_IFS
  7505. fi
  7506. fi
  7507. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7508. if test -n "$ac_ct_DLLTOOL"; then
  7509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7510. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7511. else
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7513. printf "%s\n" "no" >&6; }
  7514. fi
  7515. if test "x$ac_ct_DLLTOOL" = x; then
  7516. DLLTOOL="false"
  7517. else
  7518. case $cross_compiling:$ac_tool_warned in
  7519. yes:)
  7520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7521. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7522. ac_tool_warned=yes ;;
  7523. esac
  7524. DLLTOOL=$ac_ct_DLLTOOL
  7525. fi
  7526. else
  7527. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7528. fi
  7529. if test -n "$ac_tool_prefix"; then
  7530. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7531. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7533. printf %s "checking for $ac_word... " >&6; }
  7534. if test ${ac_cv_prog_OBJDUMP+y}
  7535. then :
  7536. printf %s "(cached) " >&6
  7537. else $as_nop
  7538. if test -n "$OBJDUMP"; then
  7539. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7540. else
  7541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7542. for as_dir in $PATH
  7543. do
  7544. IFS=$as_save_IFS
  7545. case $as_dir in #(((
  7546. '') as_dir=./ ;;
  7547. */) ;;
  7548. *) as_dir=$as_dir/ ;;
  7549. esac
  7550. for ac_exec_ext in '' $ac_executable_extensions; do
  7551. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7552. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7554. break 2
  7555. fi
  7556. done
  7557. done
  7558. IFS=$as_save_IFS
  7559. fi
  7560. fi
  7561. OBJDUMP=$ac_cv_prog_OBJDUMP
  7562. if test -n "$OBJDUMP"; then
  7563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7564. printf "%s\n" "$OBJDUMP" >&6; }
  7565. else
  7566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7567. printf "%s\n" "no" >&6; }
  7568. fi
  7569. fi
  7570. if test -z "$ac_cv_prog_OBJDUMP"; then
  7571. ac_ct_OBJDUMP=$OBJDUMP
  7572. # Extract the first word of "objdump", so it can be a program name with args.
  7573. set dummy objdump; ac_word=$2
  7574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7575. printf %s "checking for $ac_word... " >&6; }
  7576. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7577. then :
  7578. printf %s "(cached) " >&6
  7579. else $as_nop
  7580. if test -n "$ac_ct_OBJDUMP"; then
  7581. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7582. else
  7583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7584. for as_dir in $PATH
  7585. do
  7586. IFS=$as_save_IFS
  7587. case $as_dir in #(((
  7588. '') as_dir=./ ;;
  7589. */) ;;
  7590. *) as_dir=$as_dir/ ;;
  7591. esac
  7592. for ac_exec_ext in '' $ac_executable_extensions; do
  7593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7594. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7596. break 2
  7597. fi
  7598. done
  7599. done
  7600. IFS=$as_save_IFS
  7601. fi
  7602. fi
  7603. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7604. if test -n "$ac_ct_OBJDUMP"; then
  7605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7606. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7607. else
  7608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7609. printf "%s\n" "no" >&6; }
  7610. fi
  7611. if test "x$ac_ct_OBJDUMP" = x; then
  7612. OBJDUMP="false"
  7613. else
  7614. case $cross_compiling:$ac_tool_warned in
  7615. yes:)
  7616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7617. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7618. ac_tool_warned=yes ;;
  7619. esac
  7620. OBJDUMP=$ac_ct_OBJDUMP
  7621. fi
  7622. else
  7623. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7624. fi
  7625. ;;
  7626. esac
  7627. test -z "$AS" && AS=as
  7628. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7629. test -z "$OBJDUMP" && OBJDUMP=objdump
  7630. enable_dlopen=no
  7631. # Check whether --enable-shared was given.
  7632. if test ${enable_shared+y}
  7633. then :
  7634. enableval=$enable_shared; p=${PACKAGE-default}
  7635. case $enableval in
  7636. yes) enable_shared=yes ;;
  7637. no) enable_shared=no ;;
  7638. *)
  7639. enable_shared=no
  7640. # Look at the argument we got. We use all the common list separators.
  7641. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7642. for pkg in $enableval; do
  7643. IFS=$lt_save_ifs
  7644. if test "X$pkg" = "X$p"; then
  7645. enable_shared=yes
  7646. fi
  7647. done
  7648. IFS=$lt_save_ifs
  7649. ;;
  7650. esac
  7651. else $as_nop
  7652. enable_shared=yes
  7653. fi
  7654. # Check whether --enable-static was given.
  7655. if test ${enable_static+y}
  7656. then :
  7657. enableval=$enable_static; p=${PACKAGE-default}
  7658. case $enableval in
  7659. yes) enable_static=yes ;;
  7660. no) enable_static=no ;;
  7661. *)
  7662. enable_static=no
  7663. # Look at the argument we got. We use all the common list separators.
  7664. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7665. for pkg in $enableval; do
  7666. IFS=$lt_save_ifs
  7667. if test "X$pkg" = "X$p"; then
  7668. enable_static=yes
  7669. fi
  7670. done
  7671. IFS=$lt_save_ifs
  7672. ;;
  7673. esac
  7674. else $as_nop
  7675. enable_static=yes
  7676. fi
  7677. # Check whether --with-pic was given.
  7678. if test ${with_pic+y}
  7679. then :
  7680. withval=$with_pic; lt_p=${PACKAGE-default}
  7681. case $withval in
  7682. yes|no) pic_mode=$withval ;;
  7683. *)
  7684. pic_mode=default
  7685. # Look at the argument we got. We use all the common list separators.
  7686. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7687. for lt_pkg in $withval; do
  7688. IFS=$lt_save_ifs
  7689. if test "X$lt_pkg" = "X$lt_p"; then
  7690. pic_mode=yes
  7691. fi
  7692. done
  7693. IFS=$lt_save_ifs
  7694. ;;
  7695. esac
  7696. else $as_nop
  7697. pic_mode=default
  7698. fi
  7699. # Check whether --enable-fast-install was given.
  7700. if test ${enable_fast_install+y}
  7701. then :
  7702. enableval=$enable_fast_install; p=${PACKAGE-default}
  7703. case $enableval in
  7704. yes) enable_fast_install=yes ;;
  7705. no) enable_fast_install=no ;;
  7706. *)
  7707. enable_fast_install=no
  7708. # Look at the argument we got. We use all the common list separators.
  7709. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7710. for pkg in $enableval; do
  7711. IFS=$lt_save_ifs
  7712. if test "X$pkg" = "X$p"; then
  7713. enable_fast_install=yes
  7714. fi
  7715. done
  7716. IFS=$lt_save_ifs
  7717. ;;
  7718. esac
  7719. else $as_nop
  7720. enable_fast_install=yes
  7721. fi
  7722. shared_archive_member_spec=
  7723. case $host,$enable_shared in
  7724. power*-*-aix[5-9]*,yes)
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7726. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7727. # Check whether --with-aix-soname was given.
  7728. if test ${with_aix_soname+y}
  7729. then :
  7730. withval=$with_aix_soname; case $withval in
  7731. aix|svr4|both)
  7732. ;;
  7733. *)
  7734. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7735. ;;
  7736. esac
  7737. lt_cv_with_aix_soname=$with_aix_soname
  7738. else $as_nop
  7739. if test ${lt_cv_with_aix_soname+y}
  7740. then :
  7741. printf %s "(cached) " >&6
  7742. else $as_nop
  7743. lt_cv_with_aix_soname=aix
  7744. fi
  7745. with_aix_soname=$lt_cv_with_aix_soname
  7746. fi
  7747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7748. printf "%s\n" "$with_aix_soname" >&6; }
  7749. if test aix != "$with_aix_soname"; then
  7750. # For the AIX way of multilib, we name the shared archive member
  7751. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7752. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7753. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7754. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7755. if test 64 = "${OBJECT_MODE-32}"; then
  7756. shared_archive_member_spec=shr_64
  7757. else
  7758. shared_archive_member_spec=shr
  7759. fi
  7760. fi
  7761. ;;
  7762. *)
  7763. with_aix_soname=aix
  7764. ;;
  7765. esac
  7766. # This can be used to rebuild libtool when needed
  7767. LIBTOOL_DEPS=$ltmain
  7768. # Always use our own libtool.
  7769. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7770. test -z "$LN_S" && LN_S="ln -s"
  7771. if test -n "${ZSH_VERSION+set}"; then
  7772. setopt NO_GLOB_SUBST
  7773. fi
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7775. printf %s "checking for objdir... " >&6; }
  7776. if test ${lt_cv_objdir+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. rm -f .libs 2>/dev/null
  7781. mkdir .libs 2>/dev/null
  7782. if test -d .libs; then
  7783. lt_cv_objdir=.libs
  7784. else
  7785. # MS-DOS does not allow filenames that begin with a dot.
  7786. lt_cv_objdir=_libs
  7787. fi
  7788. rmdir .libs 2>/dev/null
  7789. fi
  7790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7791. printf "%s\n" "$lt_cv_objdir" >&6; }
  7792. objdir=$lt_cv_objdir
  7793. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7794. case $host_os in
  7795. aix3*)
  7796. # AIX sometimes has problems with the GCC collect2 program. For some
  7797. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7798. # vanish in a puff of smoke.
  7799. if test set != "${COLLECT_NAMES+set}"; then
  7800. COLLECT_NAMES=
  7801. export COLLECT_NAMES
  7802. fi
  7803. ;;
  7804. esac
  7805. # Global variables:
  7806. ofile=libtool
  7807. can_build_shared=yes
  7808. # All known linkers require a '.a' archive for static linking (except MSVC,
  7809. # which needs '.lib').
  7810. libext=a
  7811. with_gnu_ld=$lt_cv_prog_gnu_ld
  7812. old_CC=$CC
  7813. old_CFLAGS=$CFLAGS
  7814. # Set sane defaults for various variables
  7815. test -z "$CC" && CC=cc
  7816. test -z "$LTCC" && LTCC=$CC
  7817. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7818. test -z "$LD" && LD=ld
  7819. test -z "$ac_objext" && ac_objext=o
  7820. func_cc_basename $compiler
  7821. cc_basename=$func_cc_basename_result
  7822. # Only perform the check for file, if the check method requires it
  7823. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7824. case $deplibs_check_method in
  7825. file_magic*)
  7826. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7828. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7829. if test ${lt_cv_path_MAGIC_CMD+y}
  7830. then :
  7831. printf %s "(cached) " >&6
  7832. else $as_nop
  7833. case $MAGIC_CMD in
  7834. [\\/*] | ?:[\\/]*)
  7835. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7836. ;;
  7837. *)
  7838. lt_save_MAGIC_CMD=$MAGIC_CMD
  7839. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7840. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7841. for ac_dir in $ac_dummy; do
  7842. IFS=$lt_save_ifs
  7843. test -z "$ac_dir" && ac_dir=.
  7844. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7845. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7846. if test -n "$file_magic_test_file"; then
  7847. case $deplibs_check_method in
  7848. "file_magic "*)
  7849. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7850. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7851. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7852. $EGREP "$file_magic_regex" > /dev/null; then
  7853. :
  7854. else
  7855. cat <<_LT_EOF 1>&2
  7856. *** Warning: the command libtool uses to detect shared libraries,
  7857. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7858. *** The result is that libtool may fail to recognize shared libraries
  7859. *** as such. This will affect the creation of libtool libraries that
  7860. *** depend on shared libraries, but programs linked with such libtool
  7861. *** libraries will work regardless of this problem. Nevertheless, you
  7862. *** may want to report the problem to your system manager and/or to
  7863. *** bug-libtool@gnu.org
  7864. _LT_EOF
  7865. fi ;;
  7866. esac
  7867. fi
  7868. break
  7869. fi
  7870. done
  7871. IFS=$lt_save_ifs
  7872. MAGIC_CMD=$lt_save_MAGIC_CMD
  7873. ;;
  7874. esac
  7875. fi
  7876. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7877. if test -n "$MAGIC_CMD"; then
  7878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7879. printf "%s\n" "$MAGIC_CMD" >&6; }
  7880. else
  7881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7882. printf "%s\n" "no" >&6; }
  7883. fi
  7884. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7885. if test -n "$ac_tool_prefix"; then
  7886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7887. printf %s "checking for file... " >&6; }
  7888. if test ${lt_cv_path_MAGIC_CMD+y}
  7889. then :
  7890. printf %s "(cached) " >&6
  7891. else $as_nop
  7892. case $MAGIC_CMD in
  7893. [\\/*] | ?:[\\/]*)
  7894. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7895. ;;
  7896. *)
  7897. lt_save_MAGIC_CMD=$MAGIC_CMD
  7898. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7899. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7900. for ac_dir in $ac_dummy; do
  7901. IFS=$lt_save_ifs
  7902. test -z "$ac_dir" && ac_dir=.
  7903. if test -f "$ac_dir/file"; then
  7904. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7905. if test -n "$file_magic_test_file"; then
  7906. case $deplibs_check_method in
  7907. "file_magic "*)
  7908. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7909. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7910. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7911. $EGREP "$file_magic_regex" > /dev/null; then
  7912. :
  7913. else
  7914. cat <<_LT_EOF 1>&2
  7915. *** Warning: the command libtool uses to detect shared libraries,
  7916. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7917. *** The result is that libtool may fail to recognize shared libraries
  7918. *** as such. This will affect the creation of libtool libraries that
  7919. *** depend on shared libraries, but programs linked with such libtool
  7920. *** libraries will work regardless of this problem. Nevertheless, you
  7921. *** may want to report the problem to your system manager and/or to
  7922. *** bug-libtool@gnu.org
  7923. _LT_EOF
  7924. fi ;;
  7925. esac
  7926. fi
  7927. break
  7928. fi
  7929. done
  7930. IFS=$lt_save_ifs
  7931. MAGIC_CMD=$lt_save_MAGIC_CMD
  7932. ;;
  7933. esac
  7934. fi
  7935. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7936. if test -n "$MAGIC_CMD"; then
  7937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7938. printf "%s\n" "$MAGIC_CMD" >&6; }
  7939. else
  7940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7941. printf "%s\n" "no" >&6; }
  7942. fi
  7943. else
  7944. MAGIC_CMD=:
  7945. fi
  7946. fi
  7947. fi
  7948. ;;
  7949. esac
  7950. # Use C for the default configuration in the libtool script
  7951. lt_save_CC=$CC
  7952. ac_ext=c
  7953. ac_cpp='$CPP $CPPFLAGS'
  7954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7957. # Source file extension for C test sources.
  7958. ac_ext=c
  7959. # Object file extension for compiled C test sources.
  7960. objext=o
  7961. objext=$objext
  7962. # Code to be used in simple compile tests
  7963. lt_simple_compile_test_code="int some_variable = 0;"
  7964. # Code to be used in simple link tests
  7965. lt_simple_link_test_code='int main(){return(0);}'
  7966. # If no C compiler was specified, use CC.
  7967. LTCC=${LTCC-"$CC"}
  7968. # If no C compiler flags were specified, use CFLAGS.
  7969. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7970. # Allow CC to be a program name with arguments.
  7971. compiler=$CC
  7972. # Save the default compiler, since it gets overwritten when the other
  7973. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7974. compiler_DEFAULT=$CC
  7975. # save warnings/boilerplate of simple test code
  7976. ac_outfile=conftest.$ac_objext
  7977. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7978. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7979. _lt_compiler_boilerplate=`cat conftest.err`
  7980. $RM conftest*
  7981. ac_outfile=conftest.$ac_objext
  7982. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7983. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7984. _lt_linker_boilerplate=`cat conftest.err`
  7985. $RM -r conftest*
  7986. ## CAVEAT EMPTOR:
  7987. ## There is no encapsulation within the following macros, do not change
  7988. ## the running order or otherwise move them around unless you know exactly
  7989. ## what you are doing...
  7990. if test -n "$compiler"; then
  7991. lt_prog_compiler_no_builtin_flag=
  7992. if test yes = "$GCC"; then
  7993. case $cc_basename in
  7994. nvcc*)
  7995. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7996. *)
  7997. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7998. esac
  7999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8000. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8001. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8002. then :
  8003. printf %s "(cached) " >&6
  8004. else $as_nop
  8005. lt_cv_prog_compiler_rtti_exceptions=no
  8006. ac_outfile=conftest.$ac_objext
  8007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8008. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8009. # Insert the option either (1) after the last *FLAGS variable, or
  8010. # (2) before a word containing "conftest.", or (3) at the end.
  8011. # Note that $ac_compile itself does not contain backslashes and begins
  8012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8013. # The option is referenced via a variable to avoid confusing sed.
  8014. lt_compile=`echo "$ac_compile" | $SED \
  8015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8017. -e 's:$: $lt_compiler_flag:'`
  8018. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8019. (eval "$lt_compile" 2>conftest.err)
  8020. ac_status=$?
  8021. cat conftest.err >&5
  8022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8023. if (exit $ac_status) && test -s "$ac_outfile"; then
  8024. # The compiler can only warn and ignore the option if not recognized
  8025. # So say no if there are warnings other than the usual output.
  8026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8027. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8028. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8029. lt_cv_prog_compiler_rtti_exceptions=yes
  8030. fi
  8031. fi
  8032. $RM conftest*
  8033. fi
  8034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8035. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8036. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8037. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8038. else
  8039. :
  8040. fi
  8041. fi
  8042. lt_prog_compiler_wl=
  8043. lt_prog_compiler_pic=
  8044. lt_prog_compiler_static=
  8045. if test yes = "$GCC"; then
  8046. lt_prog_compiler_wl='-Wl,'
  8047. lt_prog_compiler_static='-static'
  8048. case $host_os in
  8049. aix*)
  8050. # All AIX code is PIC.
  8051. if test ia64 = "$host_cpu"; then
  8052. # AIX 5 now supports IA64 processor
  8053. lt_prog_compiler_static='-Bstatic'
  8054. fi
  8055. lt_prog_compiler_pic='-fPIC'
  8056. ;;
  8057. amigaos*)
  8058. case $host_cpu in
  8059. powerpc)
  8060. # see comment about AmigaOS4 .so support
  8061. lt_prog_compiler_pic='-fPIC'
  8062. ;;
  8063. m68k)
  8064. # FIXME: we need at least 68020 code to build shared libraries, but
  8065. # adding the '-m68020' flag to GCC prevents building anything better,
  8066. # like '-m68040'.
  8067. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8068. ;;
  8069. esac
  8070. ;;
  8071. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8072. # PIC is the default for these OSes.
  8073. ;;
  8074. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8075. # This hack is so that the source file can tell whether it is being
  8076. # built for inclusion in a dll (and should export symbols for example).
  8077. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8078. # (--disable-auto-import) libraries
  8079. lt_prog_compiler_pic='-DDLL_EXPORT'
  8080. case $host_os in
  8081. os2*)
  8082. lt_prog_compiler_static='$wl-static'
  8083. ;;
  8084. esac
  8085. ;;
  8086. darwin* | rhapsody*)
  8087. # PIC is the default on this platform
  8088. # Common symbols not allowed in MH_DYLIB files
  8089. lt_prog_compiler_pic='-fno-common'
  8090. ;;
  8091. haiku*)
  8092. # PIC is the default for Haiku.
  8093. # The "-static" flag exists, but is broken.
  8094. lt_prog_compiler_static=
  8095. ;;
  8096. hpux*)
  8097. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8098. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8099. # sets the default TLS model and affects inlining.
  8100. case $host_cpu in
  8101. hppa*64*)
  8102. # +Z the default
  8103. ;;
  8104. *)
  8105. lt_prog_compiler_pic='-fPIC'
  8106. ;;
  8107. esac
  8108. ;;
  8109. interix[3-9]*)
  8110. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8111. # Instead, we relocate shared libraries at runtime.
  8112. ;;
  8113. msdosdjgpp*)
  8114. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8115. # on systems that don't support them.
  8116. lt_prog_compiler_can_build_shared=no
  8117. enable_shared=no
  8118. ;;
  8119. *nto* | *qnx*)
  8120. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8121. # it will coredump.
  8122. lt_prog_compiler_pic='-fPIC -shared'
  8123. ;;
  8124. sysv4*MP*)
  8125. if test -d /usr/nec; then
  8126. lt_prog_compiler_pic=-Kconform_pic
  8127. fi
  8128. ;;
  8129. *)
  8130. lt_prog_compiler_pic='-fPIC'
  8131. ;;
  8132. esac
  8133. case $cc_basename in
  8134. nvcc*) # Cuda Compiler Driver 2.2
  8135. lt_prog_compiler_wl='-Xlinker '
  8136. if test -n "$lt_prog_compiler_pic"; then
  8137. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8138. fi
  8139. ;;
  8140. esac
  8141. else
  8142. # PORTME Check for flag to pass linker flags through the system compiler.
  8143. case $host_os in
  8144. aix*)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. if test ia64 = "$host_cpu"; then
  8147. # AIX 5 now supports IA64 processor
  8148. lt_prog_compiler_static='-Bstatic'
  8149. else
  8150. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8151. fi
  8152. ;;
  8153. darwin* | rhapsody*)
  8154. # PIC is the default on this platform
  8155. # Common symbols not allowed in MH_DYLIB files
  8156. lt_prog_compiler_pic='-fno-common'
  8157. case $cc_basename in
  8158. nagfor*)
  8159. # NAG Fortran compiler
  8160. lt_prog_compiler_wl='-Wl,-Wl,,'
  8161. lt_prog_compiler_pic='-PIC'
  8162. lt_prog_compiler_static='-Bstatic'
  8163. ;;
  8164. esac
  8165. ;;
  8166. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8167. # This hack is so that the source file can tell whether it is being
  8168. # built for inclusion in a dll (and should export symbols for example).
  8169. lt_prog_compiler_pic='-DDLL_EXPORT'
  8170. case $host_os in
  8171. os2*)
  8172. lt_prog_compiler_static='$wl-static'
  8173. ;;
  8174. esac
  8175. ;;
  8176. hpux9* | hpux10* | hpux11*)
  8177. lt_prog_compiler_wl='-Wl,'
  8178. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8179. # not for PA HP-UX.
  8180. case $host_cpu in
  8181. hppa*64*|ia64*)
  8182. # +Z the default
  8183. ;;
  8184. *)
  8185. lt_prog_compiler_pic='+Z'
  8186. ;;
  8187. esac
  8188. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8189. lt_prog_compiler_static='$wl-a ${wl}archive'
  8190. ;;
  8191. irix5* | irix6* | nonstopux*)
  8192. lt_prog_compiler_wl='-Wl,'
  8193. # PIC (with -KPIC) is the default.
  8194. lt_prog_compiler_static='-non_shared'
  8195. ;;
  8196. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8197. case $cc_basename in
  8198. # old Intel for x86_64, which still supported -KPIC.
  8199. ecc*)
  8200. lt_prog_compiler_wl='-Wl,'
  8201. lt_prog_compiler_pic='-KPIC'
  8202. lt_prog_compiler_static='-static'
  8203. ;;
  8204. # icc used to be incompatible with GCC.
  8205. # ICC 10 doesn't accept -KPIC any more.
  8206. icc* | ifort*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. lt_prog_compiler_pic='-fPIC'
  8209. lt_prog_compiler_static='-static'
  8210. ;;
  8211. # Lahey Fortran 8.1.
  8212. lf95*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. lt_prog_compiler_pic='--shared'
  8215. lt_prog_compiler_static='--static'
  8216. ;;
  8217. nagfor*)
  8218. # NAG Fortran compiler
  8219. lt_prog_compiler_wl='-Wl,-Wl,,'
  8220. lt_prog_compiler_pic='-PIC'
  8221. lt_prog_compiler_static='-Bstatic'
  8222. ;;
  8223. tcc*)
  8224. # Fabrice Bellard et al's Tiny C Compiler
  8225. lt_prog_compiler_wl='-Wl,'
  8226. lt_prog_compiler_pic='-fPIC'
  8227. lt_prog_compiler_static='-static'
  8228. ;;
  8229. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8230. # Portland Group compilers (*not* the Pentium gcc compiler,
  8231. # which looks to be a dead project)
  8232. lt_prog_compiler_wl='-Wl,'
  8233. lt_prog_compiler_pic='-fpic'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. ;;
  8236. ccc*)
  8237. lt_prog_compiler_wl='-Wl,'
  8238. # All Alpha code is PIC.
  8239. lt_prog_compiler_static='-non_shared'
  8240. ;;
  8241. xl* | bgxl* | bgf* | mpixl*)
  8242. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8243. lt_prog_compiler_wl='-Wl,'
  8244. lt_prog_compiler_pic='-qpic'
  8245. lt_prog_compiler_static='-qstaticlink'
  8246. ;;
  8247. *)
  8248. case `$CC -V 2>&1 | sed 5q` in
  8249. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8250. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8251. lt_prog_compiler_pic='-KPIC'
  8252. lt_prog_compiler_static='-Bstatic'
  8253. lt_prog_compiler_wl=''
  8254. ;;
  8255. *Sun\ F* | *Sun*Fortran*)
  8256. lt_prog_compiler_pic='-KPIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. lt_prog_compiler_wl='-Qoption ld '
  8259. ;;
  8260. *Sun\ C*)
  8261. # Sun C 5.9
  8262. lt_prog_compiler_pic='-KPIC'
  8263. lt_prog_compiler_static='-Bstatic'
  8264. lt_prog_compiler_wl='-Wl,'
  8265. ;;
  8266. *Intel*\ [CF]*Compiler*)
  8267. lt_prog_compiler_wl='-Wl,'
  8268. lt_prog_compiler_pic='-fPIC'
  8269. lt_prog_compiler_static='-static'
  8270. ;;
  8271. *Portland\ Group*)
  8272. lt_prog_compiler_wl='-Wl,'
  8273. lt_prog_compiler_pic='-fpic'
  8274. lt_prog_compiler_static='-Bstatic'
  8275. ;;
  8276. esac
  8277. ;;
  8278. esac
  8279. ;;
  8280. newsos6)
  8281. lt_prog_compiler_pic='-KPIC'
  8282. lt_prog_compiler_static='-Bstatic'
  8283. ;;
  8284. *nto* | *qnx*)
  8285. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8286. # it will coredump.
  8287. lt_prog_compiler_pic='-fPIC -shared'
  8288. ;;
  8289. osf3* | osf4* | osf5*)
  8290. lt_prog_compiler_wl='-Wl,'
  8291. # All OSF/1 code is PIC.
  8292. lt_prog_compiler_static='-non_shared'
  8293. ;;
  8294. rdos*)
  8295. lt_prog_compiler_static='-non_shared'
  8296. ;;
  8297. solaris*)
  8298. lt_prog_compiler_pic='-KPIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. case $cc_basename in
  8301. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8302. lt_prog_compiler_wl='-Qoption ld ';;
  8303. *)
  8304. lt_prog_compiler_wl='-Wl,';;
  8305. esac
  8306. ;;
  8307. sunos4*)
  8308. lt_prog_compiler_wl='-Qoption ld '
  8309. lt_prog_compiler_pic='-PIC'
  8310. lt_prog_compiler_static='-Bstatic'
  8311. ;;
  8312. sysv4 | sysv4.2uw2* | sysv4.3*)
  8313. lt_prog_compiler_wl='-Wl,'
  8314. lt_prog_compiler_pic='-KPIC'
  8315. lt_prog_compiler_static='-Bstatic'
  8316. ;;
  8317. sysv4*MP*)
  8318. if test -d /usr/nec; then
  8319. lt_prog_compiler_pic='-Kconform_pic'
  8320. lt_prog_compiler_static='-Bstatic'
  8321. fi
  8322. ;;
  8323. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8324. lt_prog_compiler_wl='-Wl,'
  8325. lt_prog_compiler_pic='-KPIC'
  8326. lt_prog_compiler_static='-Bstatic'
  8327. ;;
  8328. unicos*)
  8329. lt_prog_compiler_wl='-Wl,'
  8330. lt_prog_compiler_can_build_shared=no
  8331. ;;
  8332. uts4*)
  8333. lt_prog_compiler_pic='-pic'
  8334. lt_prog_compiler_static='-Bstatic'
  8335. ;;
  8336. *)
  8337. lt_prog_compiler_can_build_shared=no
  8338. ;;
  8339. esac
  8340. fi
  8341. case $host_os in
  8342. # For platforms that do not support PIC, -DPIC is meaningless:
  8343. *djgpp*)
  8344. lt_prog_compiler_pic=
  8345. ;;
  8346. *)
  8347. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8348. ;;
  8349. esac
  8350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8351. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8352. if test ${lt_cv_prog_compiler_pic+y}
  8353. then :
  8354. printf %s "(cached) " >&6
  8355. else $as_nop
  8356. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8357. fi
  8358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8359. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8360. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8361. #
  8362. # Check to make sure the PIC flag actually works.
  8363. #
  8364. if test -n "$lt_prog_compiler_pic"; then
  8365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8366. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8367. if test ${lt_cv_prog_compiler_pic_works+y}
  8368. then :
  8369. printf %s "(cached) " >&6
  8370. else $as_nop
  8371. lt_cv_prog_compiler_pic_works=no
  8372. ac_outfile=conftest.$ac_objext
  8373. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8374. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8375. # Insert the option either (1) after the last *FLAGS variable, or
  8376. # (2) before a word containing "conftest.", or (3) at the end.
  8377. # Note that $ac_compile itself does not contain backslashes and begins
  8378. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8379. # The option is referenced via a variable to avoid confusing sed.
  8380. lt_compile=`echo "$ac_compile" | $SED \
  8381. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8383. -e 's:$: $lt_compiler_flag:'`
  8384. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8385. (eval "$lt_compile" 2>conftest.err)
  8386. ac_status=$?
  8387. cat conftest.err >&5
  8388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8389. if (exit $ac_status) && test -s "$ac_outfile"; then
  8390. # The compiler can only warn and ignore the option if not recognized
  8391. # So say no if there are warnings other than the usual output.
  8392. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8393. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8394. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8395. lt_cv_prog_compiler_pic_works=yes
  8396. fi
  8397. fi
  8398. $RM conftest*
  8399. fi
  8400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8401. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8402. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8403. case $lt_prog_compiler_pic in
  8404. "" | " "*) ;;
  8405. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8406. esac
  8407. else
  8408. lt_prog_compiler_pic=
  8409. lt_prog_compiler_can_build_shared=no
  8410. fi
  8411. fi
  8412. #
  8413. # Check to make sure the static flag actually works.
  8414. #
  8415. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8417. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8418. if test ${lt_cv_prog_compiler_static_works+y}
  8419. then :
  8420. printf %s "(cached) " >&6
  8421. else $as_nop
  8422. lt_cv_prog_compiler_static_works=no
  8423. save_LDFLAGS=$LDFLAGS
  8424. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8425. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8426. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8427. # The linker can only warn and ignore the option if not recognized
  8428. # So say no if there are warnings
  8429. if test -s conftest.err; then
  8430. # Append any errors to the config.log.
  8431. cat conftest.err 1>&5
  8432. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8433. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8434. if diff conftest.exp conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_static_works=yes
  8436. fi
  8437. else
  8438. lt_cv_prog_compiler_static_works=yes
  8439. fi
  8440. fi
  8441. $RM -r conftest*
  8442. LDFLAGS=$save_LDFLAGS
  8443. fi
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8445. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8446. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8447. :
  8448. else
  8449. lt_prog_compiler_static=
  8450. fi
  8451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8452. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8453. if test ${lt_cv_prog_compiler_c_o+y}
  8454. then :
  8455. printf %s "(cached) " >&6
  8456. else $as_nop
  8457. lt_cv_prog_compiler_c_o=no
  8458. $RM -r conftest 2>/dev/null
  8459. mkdir conftest
  8460. cd conftest
  8461. mkdir out
  8462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8463. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8464. # Insert the option either (1) after the last *FLAGS variable, or
  8465. # (2) before a word containing "conftest.", or (3) at the end.
  8466. # Note that $ac_compile itself does not contain backslashes and begins
  8467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8468. lt_compile=`echo "$ac_compile" | $SED \
  8469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8471. -e 's:$: $lt_compiler_flag:'`
  8472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8473. (eval "$lt_compile" 2>out/conftest.err)
  8474. ac_status=$?
  8475. cat out/conftest.err >&5
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8478. then
  8479. # The compiler can only warn and ignore the option if not recognized
  8480. # So say no if there are warnings
  8481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8482. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8483. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8484. lt_cv_prog_compiler_c_o=yes
  8485. fi
  8486. fi
  8487. chmod u+w . 2>&5
  8488. $RM conftest*
  8489. # SGI C++ compiler will create directory out/ii_files/ for
  8490. # template instantiation
  8491. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8492. $RM out/* && rmdir out
  8493. cd ..
  8494. $RM -r conftest
  8495. $RM conftest*
  8496. fi
  8497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8498. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8500. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8501. if test ${lt_cv_prog_compiler_c_o+y}
  8502. then :
  8503. printf %s "(cached) " >&6
  8504. else $as_nop
  8505. lt_cv_prog_compiler_c_o=no
  8506. $RM -r conftest 2>/dev/null
  8507. mkdir conftest
  8508. cd conftest
  8509. mkdir out
  8510. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8511. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8512. # Insert the option either (1) after the last *FLAGS variable, or
  8513. # (2) before a word containing "conftest.", or (3) at the end.
  8514. # Note that $ac_compile itself does not contain backslashes and begins
  8515. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8516. lt_compile=`echo "$ac_compile" | $SED \
  8517. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8518. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8519. -e 's:$: $lt_compiler_flag:'`
  8520. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8521. (eval "$lt_compile" 2>out/conftest.err)
  8522. ac_status=$?
  8523. cat out/conftest.err >&5
  8524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8525. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8526. then
  8527. # The compiler can only warn and ignore the option if not recognized
  8528. # So say no if there are warnings
  8529. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8530. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8531. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8532. lt_cv_prog_compiler_c_o=yes
  8533. fi
  8534. fi
  8535. chmod u+w . 2>&5
  8536. $RM conftest*
  8537. # SGI C++ compiler will create directory out/ii_files/ for
  8538. # template instantiation
  8539. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8540. $RM out/* && rmdir out
  8541. cd ..
  8542. $RM -r conftest
  8543. $RM conftest*
  8544. fi
  8545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8546. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8547. hard_links=nottested
  8548. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8549. # do not overwrite the value of need_locks provided by the user
  8550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8551. printf %s "checking if we can lock with hard links... " >&6; }
  8552. hard_links=yes
  8553. $RM conftest*
  8554. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8555. touch conftest.a
  8556. ln conftest.a conftest.b 2>&5 || hard_links=no
  8557. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8559. printf "%s\n" "$hard_links" >&6; }
  8560. if test no = "$hard_links"; then
  8561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8562. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8563. need_locks=warn
  8564. fi
  8565. else
  8566. need_locks=no
  8567. fi
  8568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8569. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8570. runpath_var=
  8571. allow_undefined_flag=
  8572. always_export_symbols=no
  8573. archive_cmds=
  8574. archive_expsym_cmds=
  8575. compiler_needs_object=no
  8576. enable_shared_with_static_runtimes=no
  8577. export_dynamic_flag_spec=
  8578. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8579. hardcode_automatic=no
  8580. hardcode_direct=no
  8581. hardcode_direct_absolute=no
  8582. hardcode_libdir_flag_spec=
  8583. hardcode_libdir_separator=
  8584. hardcode_minus_L=no
  8585. hardcode_shlibpath_var=unsupported
  8586. inherit_rpath=no
  8587. link_all_deplibs=unknown
  8588. module_cmds=
  8589. module_expsym_cmds=
  8590. old_archive_from_new_cmds=
  8591. old_archive_from_expsyms_cmds=
  8592. thread_safe_flag_spec=
  8593. whole_archive_flag_spec=
  8594. # include_expsyms should be a list of space-separated symbols to be *always*
  8595. # included in the symbol list
  8596. include_expsyms=
  8597. # exclude_expsyms can be an extended regexp of symbols to exclude
  8598. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8599. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8600. # as well as any symbol that contains 'd'.
  8601. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8602. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8603. # platforms (ab)use it in PIC code, but their linkers get confused if
  8604. # the symbol is explicitly referenced. Since portable code cannot
  8605. # rely on this symbol name, it's probably fine to never include it in
  8606. # preloaded symbol tables.
  8607. # Exclude shared library initialization/finalization symbols.
  8608. extract_expsyms_cmds=
  8609. case $host_os in
  8610. cygwin* | mingw* | pw32* | cegcc*)
  8611. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8612. # When not using gcc, we currently assume that we are using
  8613. # Microsoft Visual C++.
  8614. if test yes != "$GCC"; then
  8615. with_gnu_ld=no
  8616. fi
  8617. ;;
  8618. interix*)
  8619. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8620. with_gnu_ld=yes
  8621. ;;
  8622. openbsd* | bitrig*)
  8623. with_gnu_ld=no
  8624. ;;
  8625. esac
  8626. ld_shlibs=yes
  8627. # On some targets, GNU ld is compatible enough with the native linker
  8628. # that we're better off using the native interface for both.
  8629. lt_use_gnu_ld_interface=no
  8630. if test yes = "$with_gnu_ld"; then
  8631. case $host_os in
  8632. aix*)
  8633. # The AIX port of GNU ld has always aspired to compatibility
  8634. # with the native linker. However, as the warning in the GNU ld
  8635. # block says, versions before 2.19.5* couldn't really create working
  8636. # shared libraries, regardless of the interface used.
  8637. case `$LD -v 2>&1` in
  8638. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8639. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8640. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8641. *)
  8642. lt_use_gnu_ld_interface=yes
  8643. ;;
  8644. esac
  8645. ;;
  8646. *)
  8647. lt_use_gnu_ld_interface=yes
  8648. ;;
  8649. esac
  8650. fi
  8651. if test yes = "$lt_use_gnu_ld_interface"; then
  8652. # If archive_cmds runs LD, not CC, wlarc should be empty
  8653. wlarc='$wl'
  8654. # Set some defaults for GNU ld with shared library support. These
  8655. # are reset later if shared libraries are not supported. Putting them
  8656. # here allows them to be overridden if necessary.
  8657. runpath_var=LD_RUN_PATH
  8658. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8659. export_dynamic_flag_spec='$wl--export-dynamic'
  8660. # ancient GNU ld didn't support --whole-archive et. al.
  8661. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8662. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8663. else
  8664. whole_archive_flag_spec=
  8665. fi
  8666. supports_anon_versioning=no
  8667. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8668. *GNU\ gold*) supports_anon_versioning=yes ;;
  8669. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8670. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8671. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8672. *\ 2.11.*) ;; # other 2.11 versions
  8673. *) supports_anon_versioning=yes ;;
  8674. esac
  8675. # See if GNU ld supports shared libraries.
  8676. case $host_os in
  8677. aix[3-9]*)
  8678. # On AIX/PPC, the GNU linker is very broken
  8679. if test ia64 != "$host_cpu"; then
  8680. ld_shlibs=no
  8681. cat <<_LT_EOF 1>&2
  8682. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8683. *** to be unable to reliably create shared libraries on AIX.
  8684. *** Therefore, libtool is disabling shared libraries support. If you
  8685. *** really care for shared libraries, you may want to install binutils
  8686. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8687. *** You will then need to restart the configuration process.
  8688. _LT_EOF
  8689. fi
  8690. ;;
  8691. amigaos*)
  8692. case $host_cpu in
  8693. powerpc)
  8694. # see comment about AmigaOS4 .so support
  8695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8696. archive_expsym_cmds=''
  8697. ;;
  8698. m68k)
  8699. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8700. hardcode_libdir_flag_spec='-L$libdir'
  8701. hardcode_minus_L=yes
  8702. ;;
  8703. esac
  8704. ;;
  8705. beos*)
  8706. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8707. allow_undefined_flag=unsupported
  8708. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8709. # support --undefined. This deserves some investigation. FIXME
  8710. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8711. else
  8712. ld_shlibs=no
  8713. fi
  8714. ;;
  8715. cygwin* | mingw* | pw32* | cegcc*)
  8716. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8717. # as there is no search path for DLLs.
  8718. hardcode_libdir_flag_spec='-L$libdir'
  8719. export_dynamic_flag_spec='$wl--export-all-symbols'
  8720. allow_undefined_flag=unsupported
  8721. always_export_symbols=no
  8722. enable_shared_with_static_runtimes=yes
  8723. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8724. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8725. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8727. # If the export-symbols file already is a .def file, use it as
  8728. # is; otherwise, prepend EXPORTS...
  8729. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8730. cp $export_symbols $output_objdir/$soname.def;
  8731. else
  8732. echo EXPORTS > $output_objdir/$soname.def;
  8733. cat $export_symbols >> $output_objdir/$soname.def;
  8734. fi~
  8735. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8736. else
  8737. ld_shlibs=no
  8738. fi
  8739. ;;
  8740. haiku*)
  8741. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8742. link_all_deplibs=yes
  8743. ;;
  8744. os2*)
  8745. hardcode_libdir_flag_spec='-L$libdir'
  8746. hardcode_minus_L=yes
  8747. allow_undefined_flag=unsupported
  8748. shrext_cmds=.dll
  8749. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8750. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8751. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8752. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8753. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8754. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8755. emximp -o $lib $output_objdir/$libname.def'
  8756. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8757. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8758. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8759. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8760. prefix_cmds="$SED"~
  8761. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8762. prefix_cmds="$prefix_cmds -e 1d";
  8763. fi~
  8764. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8765. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8766. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8767. emximp -o $lib $output_objdir/$libname.def'
  8768. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8769. enable_shared_with_static_runtimes=yes
  8770. file_list_spec='@'
  8771. ;;
  8772. interix[3-9]*)
  8773. hardcode_direct=no
  8774. hardcode_shlibpath_var=no
  8775. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8776. export_dynamic_flag_spec='$wl-E'
  8777. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8778. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8779. # default) and relocated if they conflict, which is a slow very memory
  8780. # consuming and fragmenting process. To avoid this, we pick a random,
  8781. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8782. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8783. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8784. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8785. ;;
  8786. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8787. tmp_diet=no
  8788. if test linux-dietlibc = "$host_os"; then
  8789. case $cc_basename in
  8790. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8791. esac
  8792. fi
  8793. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8794. && test no = "$tmp_diet"
  8795. then
  8796. tmp_addflag=' $pic_flag'
  8797. tmp_sharedflag='-shared'
  8798. case $cc_basename,$host_cpu in
  8799. pgcc*) # Portland Group C compiler
  8800. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8801. tmp_addflag=' $pic_flag'
  8802. ;;
  8803. pgf77* | pgf90* | pgf95* | pgfortran*)
  8804. # Portland Group f77 and f90 compilers
  8805. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8806. tmp_addflag=' $pic_flag -Mnomain' ;;
  8807. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8808. tmp_addflag=' -i_dynamic' ;;
  8809. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8810. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8811. ifc* | ifort*) # Intel Fortran compiler
  8812. tmp_addflag=' -nofor_main' ;;
  8813. lf95*) # Lahey Fortran 8.1
  8814. whole_archive_flag_spec=
  8815. tmp_sharedflag='--shared' ;;
  8816. nagfor*) # NAGFOR 5.3
  8817. tmp_sharedflag='-Wl,-shared' ;;
  8818. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8819. tmp_sharedflag='-qmkshrobj'
  8820. tmp_addflag= ;;
  8821. nvcc*) # Cuda Compiler Driver 2.2
  8822. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8823. compiler_needs_object=yes
  8824. ;;
  8825. esac
  8826. case `$CC -V 2>&1 | sed 5q` in
  8827. *Sun\ C*) # Sun C 5.9
  8828. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8829. compiler_needs_object=yes
  8830. tmp_sharedflag='-G' ;;
  8831. *Sun\ F*) # Sun Fortran 8.3
  8832. tmp_sharedflag='-G' ;;
  8833. esac
  8834. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8835. if test yes = "$supports_anon_versioning"; then
  8836. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8837. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8838. echo "local: *; };" >> $output_objdir/$libname.ver~
  8839. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8840. fi
  8841. case $cc_basename in
  8842. tcc*)
  8843. export_dynamic_flag_spec='-rdynamic'
  8844. ;;
  8845. xlf* | bgf* | bgxlf* | mpixlf*)
  8846. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8847. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8848. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8849. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8850. if test yes = "$supports_anon_versioning"; then
  8851. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8852. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8853. echo "local: *; };" >> $output_objdir/$libname.ver~
  8854. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8855. fi
  8856. ;;
  8857. esac
  8858. else
  8859. ld_shlibs=no
  8860. fi
  8861. ;;
  8862. netbsd*)
  8863. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8864. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8865. wlarc=
  8866. else
  8867. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8868. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8869. fi
  8870. ;;
  8871. solaris*)
  8872. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8873. ld_shlibs=no
  8874. cat <<_LT_EOF 1>&2
  8875. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8876. *** create shared libraries on Solaris systems. Therefore, libtool
  8877. *** is disabling shared libraries support. We urge you to upgrade GNU
  8878. *** binutils to release 2.9.1 or newer. Another option is to modify
  8879. *** your PATH or compiler configuration so that the native linker is
  8880. *** used, and then restart.
  8881. _LT_EOF
  8882. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8883. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8884. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8885. else
  8886. ld_shlibs=no
  8887. fi
  8888. ;;
  8889. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8890. case `$LD -v 2>&1` in
  8891. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8892. ld_shlibs=no
  8893. cat <<_LT_EOF 1>&2
  8894. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8895. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8896. *** is disabling shared libraries support. We urge you to upgrade GNU
  8897. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8898. *** your PATH or compiler configuration so that the native linker is
  8899. *** used, and then restart.
  8900. _LT_EOF
  8901. ;;
  8902. *)
  8903. # For security reasons, it is highly recommended that you always
  8904. # use absolute paths for naming shared libraries, and exclude the
  8905. # DT_RUNPATH tag from executables and libraries. But doing so
  8906. # requires that you compile everything twice, which is a pain.
  8907. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8908. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8909. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8910. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8911. else
  8912. ld_shlibs=no
  8913. fi
  8914. ;;
  8915. esac
  8916. ;;
  8917. sunos4*)
  8918. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8919. wlarc=
  8920. hardcode_direct=yes
  8921. hardcode_shlibpath_var=no
  8922. ;;
  8923. *)
  8924. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8925. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8926. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8927. else
  8928. ld_shlibs=no
  8929. fi
  8930. ;;
  8931. esac
  8932. if test no = "$ld_shlibs"; then
  8933. runpath_var=
  8934. hardcode_libdir_flag_spec=
  8935. export_dynamic_flag_spec=
  8936. whole_archive_flag_spec=
  8937. fi
  8938. else
  8939. # PORTME fill in a description of your system's linker (not GNU ld)
  8940. case $host_os in
  8941. aix3*)
  8942. allow_undefined_flag=unsupported
  8943. always_export_symbols=yes
  8944. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8945. # Note: this linker hardcodes the directories in LIBPATH if there
  8946. # are no directories specified by -L.
  8947. hardcode_minus_L=yes
  8948. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8949. # Neither direct hardcoding nor static linking is supported with a
  8950. # broken collect2.
  8951. hardcode_direct=unsupported
  8952. fi
  8953. ;;
  8954. aix[4-9]*)
  8955. if test ia64 = "$host_cpu"; then
  8956. # On IA64, the linker does run time linking by default, so we don't
  8957. # have to do anything special.
  8958. aix_use_runtimelinking=no
  8959. exp_sym_flag='-Bexport'
  8960. no_entry_flag=
  8961. else
  8962. # If we're using GNU nm, then we don't want the "-C" option.
  8963. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8964. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8965. # weak defined symbols like other global defined symbols, whereas
  8966. # GNU nm marks them as "W".
  8967. # While the 'weak' keyword is ignored in the Export File, we need
  8968. # it in the Import File for the 'aix-soname' feature, so we have
  8969. # to replace the "-B" option with "-P" for AIX nm.
  8970. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8971. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8972. else
  8973. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8974. fi
  8975. aix_use_runtimelinking=no
  8976. # Test if we are trying to use run time linking or normal
  8977. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8978. # have runtime linking enabled, and use it for executables.
  8979. # For shared libraries, we enable/disable runtime linking
  8980. # depending on the kind of the shared library created -
  8981. # when "with_aix_soname,aix_use_runtimelinking" is:
  8982. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8983. # "aix,yes" lib.so shared, rtl:yes, for executables
  8984. # lib.a static archive
  8985. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8986. # lib.a(lib.so.V) shared, rtl:no, for executables
  8987. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8988. # lib.a(lib.so.V) shared, rtl:no
  8989. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8990. # lib.a static archive
  8991. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8992. for ld_flag in $LDFLAGS; do
  8993. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8994. aix_use_runtimelinking=yes
  8995. break
  8996. fi
  8997. done
  8998. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8999. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9000. # so we don't have lib.a shared libs to link our executables.
  9001. # We have to force runtime linking in this case.
  9002. aix_use_runtimelinking=yes
  9003. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9004. fi
  9005. ;;
  9006. esac
  9007. exp_sym_flag='-bexport'
  9008. no_entry_flag='-bnoentry'
  9009. fi
  9010. # When large executables or shared objects are built, AIX ld can
  9011. # have problems creating the table of contents. If linking a library
  9012. # or program results in "error TOC overflow" add -mminimal-toc to
  9013. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9014. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9015. archive_cmds=''
  9016. hardcode_direct=yes
  9017. hardcode_direct_absolute=yes
  9018. hardcode_libdir_separator=':'
  9019. link_all_deplibs=yes
  9020. file_list_spec='$wl-f,'
  9021. case $with_aix_soname,$aix_use_runtimelinking in
  9022. aix,*) ;; # traditional, no import file
  9023. svr4,* | *,yes) # use import file
  9024. # The Import File defines what to hardcode.
  9025. hardcode_direct=no
  9026. hardcode_direct_absolute=no
  9027. ;;
  9028. esac
  9029. if test yes = "$GCC"; then
  9030. case $host_os in aix4.[012]|aix4.[012].*)
  9031. # We only want to do this on AIX 4.2 and lower, the check
  9032. # below for broken collect2 doesn't work under 4.3+
  9033. collect2name=`$CC -print-prog-name=collect2`
  9034. if test -f "$collect2name" &&
  9035. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9036. then
  9037. # We have reworked collect2
  9038. :
  9039. else
  9040. # We have old collect2
  9041. hardcode_direct=unsupported
  9042. # It fails to find uninstalled libraries when the uninstalled
  9043. # path is not listed in the libpath. Setting hardcode_minus_L
  9044. # to unsupported forces relinking
  9045. hardcode_minus_L=yes
  9046. hardcode_libdir_flag_spec='-L$libdir'
  9047. hardcode_libdir_separator=
  9048. fi
  9049. ;;
  9050. esac
  9051. shared_flag='-shared'
  9052. if test yes = "$aix_use_runtimelinking"; then
  9053. shared_flag="$shared_flag "'$wl-G'
  9054. fi
  9055. # Need to ensure runtime linking is disabled for the traditional
  9056. # shared library, or the linker may eventually find shared libraries
  9057. # /with/ Import File - we do not want to mix them.
  9058. shared_flag_aix='-shared'
  9059. shared_flag_svr4='-shared $wl-G'
  9060. else
  9061. # not using gcc
  9062. if test ia64 = "$host_cpu"; then
  9063. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9064. # chokes on -Wl,-G. The following line is correct:
  9065. shared_flag='-G'
  9066. else
  9067. if test yes = "$aix_use_runtimelinking"; then
  9068. shared_flag='$wl-G'
  9069. else
  9070. shared_flag='$wl-bM:SRE'
  9071. fi
  9072. shared_flag_aix='$wl-bM:SRE'
  9073. shared_flag_svr4='$wl-G'
  9074. fi
  9075. fi
  9076. export_dynamic_flag_spec='$wl-bexpall'
  9077. # It seems that -bexpall does not export symbols beginning with
  9078. # underscore (_), so it is better to generate a list of symbols to export.
  9079. always_export_symbols=yes
  9080. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9081. # Warning - without using the other runtime loading flags (-brtl),
  9082. # -berok will link without error, but may produce a broken library.
  9083. allow_undefined_flag='-berok'
  9084. # Determine the default libpath from the value encoded in an
  9085. # empty executable.
  9086. if test set = "${lt_cv_aix_libpath+set}"; then
  9087. aix_libpath=$lt_cv_aix_libpath
  9088. else
  9089. if test ${lt_cv_aix_libpath_+y}
  9090. then :
  9091. printf %s "(cached) " >&6
  9092. else $as_nop
  9093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9094. /* end confdefs.h. */
  9095. int
  9096. main (void)
  9097. {
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. if ac_fn_c_try_link "$LINENO"
  9103. then :
  9104. lt_aix_libpath_sed='
  9105. /Import File Strings/,/^$/ {
  9106. /^0/ {
  9107. s/^0 *\([^ ]*\) *$/\1/
  9108. p
  9109. }
  9110. }'
  9111. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9112. # Check for a 64-bit object if we didn't find anything.
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. fi
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. if test -z "$lt_cv_aix_libpath_"; then
  9120. lt_cv_aix_libpath_=/usr/lib:/lib
  9121. fi
  9122. fi
  9123. aix_libpath=$lt_cv_aix_libpath_
  9124. fi
  9125. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9126. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9127. else
  9128. if test ia64 = "$host_cpu"; then
  9129. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9130. allow_undefined_flag="-z nodefs"
  9131. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9132. else
  9133. # Determine the default libpath from the value encoded in an
  9134. # empty executable.
  9135. if test set = "${lt_cv_aix_libpath+set}"; then
  9136. aix_libpath=$lt_cv_aix_libpath
  9137. else
  9138. if test ${lt_cv_aix_libpath_+y}
  9139. then :
  9140. printf %s "(cached) " >&6
  9141. else $as_nop
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. int
  9145. main (void)
  9146. {
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. if ac_fn_c_try_link "$LINENO"
  9152. then :
  9153. lt_aix_libpath_sed='
  9154. /Import File Strings/,/^$/ {
  9155. /^0/ {
  9156. s/^0 *\([^ ]*\) *$/\1/
  9157. p
  9158. }
  9159. }'
  9160. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9161. # Check for a 64-bit object if we didn't find anything.
  9162. if test -z "$lt_cv_aix_libpath_"; then
  9163. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9164. fi
  9165. fi
  9166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9167. conftest$ac_exeext conftest.$ac_ext
  9168. if test -z "$lt_cv_aix_libpath_"; then
  9169. lt_cv_aix_libpath_=/usr/lib:/lib
  9170. fi
  9171. fi
  9172. aix_libpath=$lt_cv_aix_libpath_
  9173. fi
  9174. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9175. # Warning - without using the other run time loading flags,
  9176. # -berok will link without error, but may produce a broken library.
  9177. no_undefined_flag=' $wl-bernotok'
  9178. allow_undefined_flag=' $wl-berok'
  9179. if test yes = "$with_gnu_ld"; then
  9180. # We only use this code for GNU lds that support --whole-archive.
  9181. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9182. else
  9183. # Exported symbols can be pulled into shared objects from archives
  9184. whole_archive_flag_spec='$convenience'
  9185. fi
  9186. archive_cmds_need_lc=yes
  9187. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9188. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9189. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9190. if test svr4 != "$with_aix_soname"; then
  9191. # This is similar to how AIX traditionally builds its shared libraries.
  9192. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9193. fi
  9194. if test aix != "$with_aix_soname"; then
  9195. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9196. else
  9197. # used by -dlpreopen to get the symbols
  9198. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9199. fi
  9200. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9201. fi
  9202. fi
  9203. ;;
  9204. amigaos*)
  9205. case $host_cpu in
  9206. powerpc)
  9207. # see comment about AmigaOS4 .so support
  9208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9209. archive_expsym_cmds=''
  9210. ;;
  9211. m68k)
  9212. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9213. hardcode_libdir_flag_spec='-L$libdir'
  9214. hardcode_minus_L=yes
  9215. ;;
  9216. esac
  9217. ;;
  9218. bsdi[45]*)
  9219. export_dynamic_flag_spec=-rdynamic
  9220. ;;
  9221. cygwin* | mingw* | pw32* | cegcc*)
  9222. # When not using gcc, we currently assume that we are using
  9223. # Microsoft Visual C++.
  9224. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9225. # no search path for DLLs.
  9226. case $cc_basename in
  9227. cl*)
  9228. # Native MSVC
  9229. hardcode_libdir_flag_spec=' '
  9230. allow_undefined_flag=unsupported
  9231. always_export_symbols=yes
  9232. file_list_spec='@'
  9233. # Tell ltmain to make .lib files, not .a files.
  9234. libext=lib
  9235. # Tell ltmain to make .dll files, not .so files.
  9236. shrext_cmds=.dll
  9237. # FIXME: Setting linknames here is a bad hack.
  9238. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9239. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9240. cp "$export_symbols" "$output_objdir/$soname.def";
  9241. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9242. else
  9243. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9244. fi~
  9245. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9246. linknames='
  9247. # The linker will not automatically build a static lib if we build a DLL.
  9248. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9249. enable_shared_with_static_runtimes=yes
  9250. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9251. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9252. # Don't use ranlib
  9253. old_postinstall_cmds='chmod 644 $oldlib'
  9254. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9255. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9256. case $lt_outputfile in
  9257. *.exe|*.EXE) ;;
  9258. *)
  9259. lt_outputfile=$lt_outputfile.exe
  9260. lt_tool_outputfile=$lt_tool_outputfile.exe
  9261. ;;
  9262. esac~
  9263. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9264. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9265. $RM "$lt_outputfile.manifest";
  9266. fi'
  9267. ;;
  9268. *)
  9269. # Assume MSVC wrapper
  9270. hardcode_libdir_flag_spec=' '
  9271. allow_undefined_flag=unsupported
  9272. # Tell ltmain to make .lib files, not .a files.
  9273. libext=lib
  9274. # Tell ltmain to make .dll files, not .so files.
  9275. shrext_cmds=.dll
  9276. # FIXME: Setting linknames here is a bad hack.
  9277. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9278. # The linker will automatically build a .lib file if we build a DLL.
  9279. old_archive_from_new_cmds='true'
  9280. # FIXME: Should let the user specify the lib program.
  9281. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9282. enable_shared_with_static_runtimes=yes
  9283. ;;
  9284. esac
  9285. ;;
  9286. darwin* | rhapsody*)
  9287. archive_cmds_need_lc=no
  9288. hardcode_direct=no
  9289. hardcode_automatic=yes
  9290. hardcode_shlibpath_var=unsupported
  9291. if test yes = "$lt_cv_ld_force_load"; then
  9292. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9293. else
  9294. whole_archive_flag_spec=''
  9295. fi
  9296. link_all_deplibs=yes
  9297. allow_undefined_flag=$_lt_dar_allow_undefined
  9298. case $cc_basename in
  9299. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9300. *) _lt_dar_can_shared=$GCC ;;
  9301. esac
  9302. if test yes = "$_lt_dar_can_shared"; then
  9303. output_verbose_link_cmd=func_echo_all
  9304. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9305. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9306. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9307. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9308. else
  9309. ld_shlibs=no
  9310. fi
  9311. ;;
  9312. dgux*)
  9313. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9314. hardcode_libdir_flag_spec='-L$libdir'
  9315. hardcode_shlibpath_var=no
  9316. ;;
  9317. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9318. # support. Future versions do this automatically, but an explicit c++rt0.o
  9319. # does not break anything, and helps significantly (at the cost of a little
  9320. # extra space).
  9321. freebsd2.2*)
  9322. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9323. hardcode_libdir_flag_spec='-R$libdir'
  9324. hardcode_direct=yes
  9325. hardcode_shlibpath_var=no
  9326. ;;
  9327. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9328. freebsd2.*)
  9329. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9330. hardcode_direct=yes
  9331. hardcode_minus_L=yes
  9332. hardcode_shlibpath_var=no
  9333. ;;
  9334. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9335. freebsd* | dragonfly* | midnightbsd*)
  9336. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9337. hardcode_libdir_flag_spec='-R$libdir'
  9338. hardcode_direct=yes
  9339. hardcode_shlibpath_var=no
  9340. ;;
  9341. hpux9*)
  9342. if test yes = "$GCC"; then
  9343. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9344. else
  9345. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9346. fi
  9347. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9348. hardcode_libdir_separator=:
  9349. hardcode_direct=yes
  9350. # hardcode_minus_L: Not really in the search PATH,
  9351. # but as the default location of the library.
  9352. hardcode_minus_L=yes
  9353. export_dynamic_flag_spec='$wl-E'
  9354. ;;
  9355. hpux10*)
  9356. if test yes,no = "$GCC,$with_gnu_ld"; then
  9357. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9358. else
  9359. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9360. fi
  9361. if test no = "$with_gnu_ld"; then
  9362. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9363. hardcode_libdir_separator=:
  9364. hardcode_direct=yes
  9365. hardcode_direct_absolute=yes
  9366. export_dynamic_flag_spec='$wl-E'
  9367. # hardcode_minus_L: Not really in the search PATH,
  9368. # but as the default location of the library.
  9369. hardcode_minus_L=yes
  9370. fi
  9371. ;;
  9372. hpux11*)
  9373. if test yes,no = "$GCC,$with_gnu_ld"; then
  9374. case $host_cpu in
  9375. hppa*64*)
  9376. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9377. ;;
  9378. ia64*)
  9379. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9380. ;;
  9381. *)
  9382. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9383. ;;
  9384. esac
  9385. else
  9386. case $host_cpu in
  9387. hppa*64*)
  9388. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. ;;
  9390. ia64*)
  9391. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9392. ;;
  9393. *)
  9394. # Older versions of the 11.00 compiler do not understand -b yet
  9395. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9397. printf %s "checking if $CC understands -b... " >&6; }
  9398. if test ${lt_cv_prog_compiler__b+y}
  9399. then :
  9400. printf %s "(cached) " >&6
  9401. else $as_nop
  9402. lt_cv_prog_compiler__b=no
  9403. save_LDFLAGS=$LDFLAGS
  9404. LDFLAGS="$LDFLAGS -b"
  9405. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9406. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9407. # The linker can only warn and ignore the option if not recognized
  9408. # So say no if there are warnings
  9409. if test -s conftest.err; then
  9410. # Append any errors to the config.log.
  9411. cat conftest.err 1>&5
  9412. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9413. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9414. if diff conftest.exp conftest.er2 >/dev/null; then
  9415. lt_cv_prog_compiler__b=yes
  9416. fi
  9417. else
  9418. lt_cv_prog_compiler__b=yes
  9419. fi
  9420. fi
  9421. $RM -r conftest*
  9422. LDFLAGS=$save_LDFLAGS
  9423. fi
  9424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9425. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9426. if test yes = "$lt_cv_prog_compiler__b"; then
  9427. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9428. else
  9429. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9430. fi
  9431. ;;
  9432. esac
  9433. fi
  9434. if test no = "$with_gnu_ld"; then
  9435. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9436. hardcode_libdir_separator=:
  9437. case $host_cpu in
  9438. hppa*64*|ia64*)
  9439. hardcode_direct=no
  9440. hardcode_shlibpath_var=no
  9441. ;;
  9442. *)
  9443. hardcode_direct=yes
  9444. hardcode_direct_absolute=yes
  9445. export_dynamic_flag_spec='$wl-E'
  9446. # hardcode_minus_L: Not really in the search PATH,
  9447. # but as the default location of the library.
  9448. hardcode_minus_L=yes
  9449. ;;
  9450. esac
  9451. fi
  9452. ;;
  9453. irix5* | irix6* | nonstopux*)
  9454. if test yes = "$GCC"; then
  9455. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9456. # Try to use the -exported_symbol ld option, if it does not
  9457. # work, assume that -exports_file does not work either and
  9458. # implicitly export all symbols.
  9459. # This should be the same for all languages, so no per-tag cache variable.
  9460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9461. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9462. if test ${lt_cv_irix_exported_symbol+y}
  9463. then :
  9464. printf %s "(cached) " >&6
  9465. else $as_nop
  9466. save_LDFLAGS=$LDFLAGS
  9467. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9469. /* end confdefs.h. */
  9470. int foo (void) { return 0; }
  9471. _ACEOF
  9472. if ac_fn_c_try_link "$LINENO"
  9473. then :
  9474. lt_cv_irix_exported_symbol=yes
  9475. else $as_nop
  9476. lt_cv_irix_exported_symbol=no
  9477. fi
  9478. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. LDFLAGS=$save_LDFLAGS
  9481. fi
  9482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9483. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9484. if test yes = "$lt_cv_irix_exported_symbol"; then
  9485. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9486. fi
  9487. else
  9488. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9489. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9490. fi
  9491. archive_cmds_need_lc='no'
  9492. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9493. hardcode_libdir_separator=:
  9494. inherit_rpath=yes
  9495. link_all_deplibs=yes
  9496. ;;
  9497. linux*)
  9498. case $cc_basename in
  9499. tcc*)
  9500. # Fabrice Bellard et al's Tiny C Compiler
  9501. ld_shlibs=yes
  9502. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9503. ;;
  9504. esac
  9505. ;;
  9506. netbsd*)
  9507. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9508. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9509. else
  9510. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9511. fi
  9512. hardcode_libdir_flag_spec='-R$libdir'
  9513. hardcode_direct=yes
  9514. hardcode_shlibpath_var=no
  9515. ;;
  9516. newsos6)
  9517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9518. hardcode_direct=yes
  9519. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9520. hardcode_libdir_separator=:
  9521. hardcode_shlibpath_var=no
  9522. ;;
  9523. *nto* | *qnx*)
  9524. ;;
  9525. openbsd* | bitrig*)
  9526. if test -f /usr/libexec/ld.so; then
  9527. hardcode_direct=yes
  9528. hardcode_shlibpath_var=no
  9529. hardcode_direct_absolute=yes
  9530. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9531. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9532. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9533. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9534. export_dynamic_flag_spec='$wl-E'
  9535. else
  9536. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9537. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9538. fi
  9539. else
  9540. ld_shlibs=no
  9541. fi
  9542. ;;
  9543. os2*)
  9544. hardcode_libdir_flag_spec='-L$libdir'
  9545. hardcode_minus_L=yes
  9546. allow_undefined_flag=unsupported
  9547. shrext_cmds=.dll
  9548. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9549. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9550. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9551. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9552. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9553. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9554. emximp -o $lib $output_objdir/$libname.def'
  9555. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9556. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9557. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9558. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9559. prefix_cmds="$SED"~
  9560. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9561. prefix_cmds="$prefix_cmds -e 1d";
  9562. fi~
  9563. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9564. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9565. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9566. emximp -o $lib $output_objdir/$libname.def'
  9567. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9568. enable_shared_with_static_runtimes=yes
  9569. file_list_spec='@'
  9570. ;;
  9571. osf3*)
  9572. if test yes = "$GCC"; then
  9573. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9574. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9575. else
  9576. allow_undefined_flag=' -expect_unresolved \*'
  9577. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9578. fi
  9579. archive_cmds_need_lc='no'
  9580. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9581. hardcode_libdir_separator=:
  9582. ;;
  9583. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9584. if test yes = "$GCC"; then
  9585. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9586. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9587. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9588. else
  9589. allow_undefined_flag=' -expect_unresolved \*'
  9590. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9591. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9592. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9593. # Both c and cxx compiler support -rpath directly
  9594. hardcode_libdir_flag_spec='-rpath $libdir'
  9595. fi
  9596. archive_cmds_need_lc='no'
  9597. hardcode_libdir_separator=:
  9598. ;;
  9599. solaris*)
  9600. no_undefined_flag=' -z defs'
  9601. if test yes = "$GCC"; then
  9602. wlarc='$wl'
  9603. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9604. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9605. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9606. else
  9607. case `$CC -V 2>&1` in
  9608. *"Compilers 5.0"*)
  9609. wlarc=''
  9610. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9611. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9612. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9613. ;;
  9614. *)
  9615. wlarc='$wl'
  9616. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9617. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9618. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9619. ;;
  9620. esac
  9621. fi
  9622. hardcode_libdir_flag_spec='-R$libdir'
  9623. hardcode_shlibpath_var=no
  9624. case $host_os in
  9625. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9626. *)
  9627. # The compiler driver will combine and reorder linker options,
  9628. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9629. # but is careful enough not to reorder.
  9630. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9631. if test yes = "$GCC"; then
  9632. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9633. else
  9634. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9635. fi
  9636. ;;
  9637. esac
  9638. link_all_deplibs=yes
  9639. ;;
  9640. sunos4*)
  9641. if test sequent = "$host_vendor"; then
  9642. # Use $CC to link under sequent, because it throws in some extra .o
  9643. # files that make .init and .fini sections work.
  9644. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9645. else
  9646. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9647. fi
  9648. hardcode_libdir_flag_spec='-L$libdir'
  9649. hardcode_direct=yes
  9650. hardcode_minus_L=yes
  9651. hardcode_shlibpath_var=no
  9652. ;;
  9653. sysv4)
  9654. case $host_vendor in
  9655. sni)
  9656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9657. hardcode_direct=yes # is this really true???
  9658. ;;
  9659. siemens)
  9660. ## LD is ld it makes a PLAMLIB
  9661. ## CC just makes a GrossModule.
  9662. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9663. reload_cmds='$CC -r -o $output$reload_objs'
  9664. hardcode_direct=no
  9665. ;;
  9666. motorola)
  9667. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9668. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9669. ;;
  9670. esac
  9671. runpath_var='LD_RUN_PATH'
  9672. hardcode_shlibpath_var=no
  9673. ;;
  9674. sysv4.3*)
  9675. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9676. hardcode_shlibpath_var=no
  9677. export_dynamic_flag_spec='-Bexport'
  9678. ;;
  9679. sysv4*MP*)
  9680. if test -d /usr/nec; then
  9681. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9682. hardcode_shlibpath_var=no
  9683. runpath_var=LD_RUN_PATH
  9684. hardcode_runpath_var=yes
  9685. ld_shlibs=yes
  9686. fi
  9687. ;;
  9688. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9689. no_undefined_flag='$wl-z,text'
  9690. archive_cmds_need_lc=no
  9691. hardcode_shlibpath_var=no
  9692. runpath_var='LD_RUN_PATH'
  9693. if test yes = "$GCC"; then
  9694. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9695. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9696. else
  9697. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9698. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9699. fi
  9700. ;;
  9701. sysv5* | sco3.2v5* | sco5v6*)
  9702. # Note: We CANNOT use -z defs as we might desire, because we do not
  9703. # link with -lc, and that would cause any symbols used from libc to
  9704. # always be unresolved, which means just about no library would
  9705. # ever link correctly. If we're not using GNU ld we use -z text
  9706. # though, which does catch some bad symbols but isn't as heavy-handed
  9707. # as -z defs.
  9708. no_undefined_flag='$wl-z,text'
  9709. allow_undefined_flag='$wl-z,nodefs'
  9710. archive_cmds_need_lc=no
  9711. hardcode_shlibpath_var=no
  9712. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9713. hardcode_libdir_separator=':'
  9714. link_all_deplibs=yes
  9715. export_dynamic_flag_spec='$wl-Bexport'
  9716. runpath_var='LD_RUN_PATH'
  9717. if test yes = "$GCC"; then
  9718. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9719. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9720. else
  9721. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9722. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9723. fi
  9724. ;;
  9725. uts4*)
  9726. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9727. hardcode_libdir_flag_spec='-L$libdir'
  9728. hardcode_shlibpath_var=no
  9729. ;;
  9730. *)
  9731. ld_shlibs=no
  9732. ;;
  9733. esac
  9734. if test sni = "$host_vendor"; then
  9735. case $host in
  9736. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9737. export_dynamic_flag_spec='$wl-Blargedynsym'
  9738. ;;
  9739. esac
  9740. fi
  9741. fi
  9742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9743. printf "%s\n" "$ld_shlibs" >&6; }
  9744. test no = "$ld_shlibs" && can_build_shared=no
  9745. with_gnu_ld=$with_gnu_ld
  9746. #
  9747. # Do we need to explicitly link libc?
  9748. #
  9749. case "x$archive_cmds_need_lc" in
  9750. x|xyes)
  9751. # Assume -lc should be added
  9752. archive_cmds_need_lc=yes
  9753. if test yes,yes = "$GCC,$enable_shared"; then
  9754. case $archive_cmds in
  9755. *'~'*)
  9756. # FIXME: we may have to deal with multi-command sequences.
  9757. ;;
  9758. '$CC '*)
  9759. # Test whether the compiler implicitly links with -lc since on some
  9760. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9761. # to ld, don't add -lc before -lgcc.
  9762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9763. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9764. if test ${lt_cv_archive_cmds_need_lc+y}
  9765. then :
  9766. printf %s "(cached) " >&6
  9767. else $as_nop
  9768. $RM conftest*
  9769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9771. (eval $ac_compile) 2>&5
  9772. ac_status=$?
  9773. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9774. test $ac_status = 0; } 2>conftest.err; then
  9775. soname=conftest
  9776. lib=conftest
  9777. libobjs=conftest.$ac_objext
  9778. deplibs=
  9779. wl=$lt_prog_compiler_wl
  9780. pic_flag=$lt_prog_compiler_pic
  9781. compiler_flags=-v
  9782. linker_flags=-v
  9783. verstring=
  9784. output_objdir=.
  9785. libname=conftest
  9786. lt_save_allow_undefined_flag=$allow_undefined_flag
  9787. allow_undefined_flag=
  9788. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9789. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9790. ac_status=$?
  9791. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9792. test $ac_status = 0; }
  9793. then
  9794. lt_cv_archive_cmds_need_lc=no
  9795. else
  9796. lt_cv_archive_cmds_need_lc=yes
  9797. fi
  9798. allow_undefined_flag=$lt_save_allow_undefined_flag
  9799. else
  9800. cat conftest.err 1>&5
  9801. fi
  9802. $RM conftest*
  9803. fi
  9804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9805. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9806. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9807. ;;
  9808. esac
  9809. fi
  9810. ;;
  9811. esac
  9812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9813. printf %s "checking dynamic linker characteristics... " >&6; }
  9814. if test yes = "$GCC"; then
  9815. case $host_os in
  9816. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9817. *) lt_awk_arg='/^libraries:/' ;;
  9818. esac
  9819. case $host_os in
  9820. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9821. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9822. esac
  9823. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9824. case $lt_search_path_spec in
  9825. *\;*)
  9826. # if the path contains ";" then we assume it to be the separator
  9827. # otherwise default to the standard path separator (i.e. ":") - it is
  9828. # assumed that no part of a normal pathname contains ";" but that should
  9829. # okay in the real world where ";" in dirpaths is itself problematic.
  9830. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9831. ;;
  9832. *)
  9833. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9834. ;;
  9835. esac
  9836. # Ok, now we have the path, separated by spaces, we can step through it
  9837. # and add multilib dir if necessary...
  9838. lt_tmp_lt_search_path_spec=
  9839. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9840. # ...but if some path component already ends with the multilib dir we assume
  9841. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9842. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9843. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9844. lt_multi_os_dir=
  9845. ;;
  9846. esac
  9847. for lt_sys_path in $lt_search_path_spec; do
  9848. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9849. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9850. elif test -n "$lt_multi_os_dir"; then
  9851. test -d "$lt_sys_path" && \
  9852. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9853. fi
  9854. done
  9855. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9856. BEGIN {RS = " "; FS = "/|\n";} {
  9857. lt_foo = "";
  9858. lt_count = 0;
  9859. for (lt_i = NF; lt_i > 0; lt_i--) {
  9860. if ($lt_i != "" && $lt_i != ".") {
  9861. if ($lt_i == "..") {
  9862. lt_count++;
  9863. } else {
  9864. if (lt_count == 0) {
  9865. lt_foo = "/" $lt_i lt_foo;
  9866. } else {
  9867. lt_count--;
  9868. }
  9869. }
  9870. }
  9871. }
  9872. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9873. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9874. }'`
  9875. # AWK program above erroneously prepends '/' to C:/dos/paths
  9876. # for these hosts.
  9877. case $host_os in
  9878. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9879. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9880. esac
  9881. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9882. else
  9883. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9884. fi
  9885. library_names_spec=
  9886. libname_spec='lib$name'
  9887. soname_spec=
  9888. shrext_cmds=.so
  9889. postinstall_cmds=
  9890. postuninstall_cmds=
  9891. finish_cmds=
  9892. finish_eval=
  9893. shlibpath_var=
  9894. shlibpath_overrides_runpath=unknown
  9895. version_type=none
  9896. dynamic_linker="$host_os ld.so"
  9897. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9898. need_lib_prefix=unknown
  9899. hardcode_into_libs=no
  9900. # when you set need_version to no, make sure it does not cause -set_version
  9901. # flags to be left without arguments
  9902. need_version=unknown
  9903. case $host_os in
  9904. aix3*)
  9905. version_type=linux # correct to gnu/linux during the next big refactor
  9906. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9907. shlibpath_var=LIBPATH
  9908. # AIX 3 has no versioning support, so we append a major version to the name.
  9909. soname_spec='$libname$release$shared_ext$major'
  9910. ;;
  9911. aix[4-9]*)
  9912. version_type=linux # correct to gnu/linux during the next big refactor
  9913. need_lib_prefix=no
  9914. need_version=no
  9915. hardcode_into_libs=yes
  9916. if test ia64 = "$host_cpu"; then
  9917. # AIX 5 supports IA64
  9918. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. else
  9921. # With GCC up to 2.95.x, collect2 would create an import file
  9922. # for dependence libraries. The import file would start with
  9923. # the line '#! .'. This would cause the generated library to
  9924. # depend on '.', always an invalid library. This was fixed in
  9925. # development snapshots of GCC prior to 3.0.
  9926. case $host_os in
  9927. aix4 | aix4.[01] | aix4.[01].*)
  9928. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9929. echo ' yes '
  9930. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9931. :
  9932. else
  9933. can_build_shared=no
  9934. fi
  9935. ;;
  9936. esac
  9937. # Using Import Files as archive members, it is possible to support
  9938. # filename-based versioning of shared library archives on AIX. While
  9939. # this would work for both with and without runtime linking, it will
  9940. # prevent static linking of such archives. So we do filename-based
  9941. # shared library versioning with .so extension only, which is used
  9942. # when both runtime linking and shared linking is enabled.
  9943. # Unfortunately, runtime linking may impact performance, so we do
  9944. # not want this to be the default eventually. Also, we use the
  9945. # versioned .so libs for executables only if there is the -brtl
  9946. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9947. # To allow for filename-based versioning support, we need to create
  9948. # libNAME.so.V as an archive file, containing:
  9949. # *) an Import File, referring to the versioned filename of the
  9950. # archive as well as the shared archive member, telling the
  9951. # bitwidth (32 or 64) of that shared object, and providing the
  9952. # list of exported symbols of that shared object, eventually
  9953. # decorated with the 'weak' keyword
  9954. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9955. # it being seen by the linker.
  9956. # At run time we better use the real file rather than another symlink,
  9957. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9958. case $with_aix_soname,$aix_use_runtimelinking in
  9959. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9960. # soname into executable. Probably we can add versioning support to
  9961. # collect2, so additional links can be useful in future.
  9962. aix,yes) # traditional libtool
  9963. dynamic_linker='AIX unversionable lib.so'
  9964. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9965. # instead of lib<name>.a to let people know that these are not
  9966. # typical AIX shared libraries.
  9967. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9968. ;;
  9969. aix,no) # traditional AIX only
  9970. dynamic_linker='AIX lib.a(lib.so.V)'
  9971. # We preserve .a as extension for shared libraries through AIX4.2
  9972. # and later when we are not doing run time linking.
  9973. library_names_spec='$libname$release.a $libname.a'
  9974. soname_spec='$libname$release$shared_ext$major'
  9975. ;;
  9976. svr4,*) # full svr4 only
  9977. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9978. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9979. # We do not specify a path in Import Files, so LIBPATH fires.
  9980. shlibpath_overrides_runpath=yes
  9981. ;;
  9982. *,yes) # both, prefer svr4
  9983. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9984. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9985. # unpreferred sharedlib libNAME.a needs extra handling
  9986. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9987. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9988. # We do not specify a path in Import Files, so LIBPATH fires.
  9989. shlibpath_overrides_runpath=yes
  9990. ;;
  9991. *,no) # both, prefer aix
  9992. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9993. library_names_spec='$libname$release.a $libname.a'
  9994. soname_spec='$libname$release$shared_ext$major'
  9995. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9996. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9997. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9998. ;;
  9999. esac
  10000. shlibpath_var=LIBPATH
  10001. fi
  10002. ;;
  10003. amigaos*)
  10004. case $host_cpu in
  10005. powerpc)
  10006. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10007. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10008. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10009. ;;
  10010. m68k)
  10011. library_names_spec='$libname.ixlibrary $libname.a'
  10012. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10013. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10014. ;;
  10015. esac
  10016. ;;
  10017. beos*)
  10018. library_names_spec='$libname$shared_ext'
  10019. dynamic_linker="$host_os ld.so"
  10020. shlibpath_var=LIBRARY_PATH
  10021. ;;
  10022. bsdi[45]*)
  10023. version_type=linux # correct to gnu/linux during the next big refactor
  10024. need_version=no
  10025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10026. soname_spec='$libname$release$shared_ext$major'
  10027. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10028. shlibpath_var=LD_LIBRARY_PATH
  10029. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10030. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10031. # the default ld.so.conf also contains /usr/contrib/lib and
  10032. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10033. # libtool to hard-code these into programs
  10034. ;;
  10035. cygwin* | mingw* | pw32* | cegcc*)
  10036. version_type=windows
  10037. shrext_cmds=.dll
  10038. need_version=no
  10039. need_lib_prefix=no
  10040. case $GCC,$cc_basename in
  10041. yes,*)
  10042. # gcc
  10043. library_names_spec='$libname.dll.a'
  10044. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10045. postinstall_cmds='base_file=`basename \$file`~
  10046. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10047. dldir=$destdir/`dirname \$dlpath`~
  10048. test -d \$dldir || mkdir -p \$dldir~
  10049. $install_prog $dir/$dlname \$dldir/$dlname~
  10050. chmod a+x \$dldir/$dlname~
  10051. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10052. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10053. fi'
  10054. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10055. dlpath=$dir/\$dldll~
  10056. $RM \$dlpath'
  10057. shlibpath_overrides_runpath=yes
  10058. case $host_os in
  10059. cygwin*)
  10060. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10061. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10062. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10063. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10064. ;;
  10065. mingw* | cegcc*)
  10066. # MinGW DLLs use traditional 'lib' prefix
  10067. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10068. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10069. ;;
  10070. pw32*)
  10071. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10072. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10073. ;;
  10074. esac
  10075. dynamic_linker='Win32 ld.exe'
  10076. ;;
  10077. *,cl*)
  10078. # Native MSVC
  10079. libname_spec='$name'
  10080. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10081. library_names_spec='$libname.dll.lib'
  10082. case $build_os in
  10083. mingw*)
  10084. sys_lib_search_path_spec=
  10085. lt_save_ifs=$IFS
  10086. IFS=';'
  10087. for lt_path in $LIB
  10088. do
  10089. IFS=$lt_save_ifs
  10090. # Let DOS variable expansion print the short 8.3 style file name.
  10091. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10092. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10093. done
  10094. IFS=$lt_save_ifs
  10095. # Convert to MSYS style.
  10096. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10097. ;;
  10098. cygwin*)
  10099. # Convert to unix form, then to dos form, then back to unix form
  10100. # but this time dos style (no spaces!) so that the unix form looks
  10101. # like /cygdrive/c/PROGRA~1:/cygdr...
  10102. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10103. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10104. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10105. ;;
  10106. *)
  10107. sys_lib_search_path_spec=$LIB
  10108. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10109. # It is most probably a Windows format PATH.
  10110. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10111. else
  10112. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10113. fi
  10114. # FIXME: find the short name or the path components, as spaces are
  10115. # common. (e.g. "Program Files" -> "PROGRA~1")
  10116. ;;
  10117. esac
  10118. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10119. postinstall_cmds='base_file=`basename \$file`~
  10120. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10121. dldir=$destdir/`dirname \$dlpath`~
  10122. test -d \$dldir || mkdir -p \$dldir~
  10123. $install_prog $dir/$dlname \$dldir/$dlname'
  10124. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10125. dlpath=$dir/\$dldll~
  10126. $RM \$dlpath'
  10127. shlibpath_overrides_runpath=yes
  10128. dynamic_linker='Win32 link.exe'
  10129. ;;
  10130. *)
  10131. # Assume MSVC wrapper
  10132. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10133. dynamic_linker='Win32 ld.exe'
  10134. ;;
  10135. esac
  10136. # FIXME: first we should search . and the directory the executable is in
  10137. shlibpath_var=PATH
  10138. ;;
  10139. darwin* | rhapsody*)
  10140. dynamic_linker="$host_os dyld"
  10141. version_type=darwin
  10142. need_lib_prefix=no
  10143. need_version=no
  10144. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10145. soname_spec='$libname$release$major$shared_ext'
  10146. shlibpath_overrides_runpath=yes
  10147. shlibpath_var=DYLD_LIBRARY_PATH
  10148. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10149. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10150. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10151. ;;
  10152. dgux*)
  10153. version_type=linux # correct to gnu/linux during the next big refactor
  10154. need_lib_prefix=no
  10155. need_version=no
  10156. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10157. soname_spec='$libname$release$shared_ext$major'
  10158. shlibpath_var=LD_LIBRARY_PATH
  10159. ;;
  10160. freebsd* | dragonfly* | midnightbsd*)
  10161. # DragonFly does not have aout. When/if they implement a new
  10162. # versioning mechanism, adjust this.
  10163. if test -x /usr/bin/objformat; then
  10164. objformat=`/usr/bin/objformat`
  10165. else
  10166. case $host_os in
  10167. freebsd[23].*) objformat=aout ;;
  10168. *) objformat=elf ;;
  10169. esac
  10170. fi
  10171. version_type=freebsd-$objformat
  10172. case $version_type in
  10173. freebsd-elf*)
  10174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10175. soname_spec='$libname$release$shared_ext$major'
  10176. need_version=no
  10177. need_lib_prefix=no
  10178. ;;
  10179. freebsd-*)
  10180. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10181. need_version=yes
  10182. ;;
  10183. esac
  10184. shlibpath_var=LD_LIBRARY_PATH
  10185. case $host_os in
  10186. freebsd2.*)
  10187. shlibpath_overrides_runpath=yes
  10188. ;;
  10189. freebsd3.[01]* | freebsdelf3.[01]*)
  10190. shlibpath_overrides_runpath=yes
  10191. hardcode_into_libs=yes
  10192. ;;
  10193. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10194. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10195. shlibpath_overrides_runpath=no
  10196. hardcode_into_libs=yes
  10197. ;;
  10198. *) # from 4.6 on, and DragonFly
  10199. shlibpath_overrides_runpath=yes
  10200. hardcode_into_libs=yes
  10201. ;;
  10202. esac
  10203. ;;
  10204. haiku*)
  10205. version_type=linux # correct to gnu/linux during the next big refactor
  10206. need_lib_prefix=no
  10207. need_version=no
  10208. dynamic_linker="$host_os runtime_loader"
  10209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10210. soname_spec='$libname$release$shared_ext$major'
  10211. shlibpath_var=LIBRARY_PATH
  10212. shlibpath_overrides_runpath=no
  10213. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10214. hardcode_into_libs=yes
  10215. ;;
  10216. hpux9* | hpux10* | hpux11*)
  10217. # Give a soname corresponding to the major version so that dld.sl refuses to
  10218. # link against other versions.
  10219. version_type=sunos
  10220. need_lib_prefix=no
  10221. need_version=no
  10222. case $host_cpu in
  10223. ia64*)
  10224. shrext_cmds='.so'
  10225. hardcode_into_libs=yes
  10226. dynamic_linker="$host_os dld.so"
  10227. shlibpath_var=LD_LIBRARY_PATH
  10228. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10229. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10230. soname_spec='$libname$release$shared_ext$major'
  10231. if test 32 = "$HPUX_IA64_MODE"; then
  10232. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10233. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10234. else
  10235. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10236. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10237. fi
  10238. ;;
  10239. hppa*64*)
  10240. shrext_cmds='.sl'
  10241. hardcode_into_libs=yes
  10242. dynamic_linker="$host_os dld.sl"
  10243. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10244. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10245. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10246. soname_spec='$libname$release$shared_ext$major'
  10247. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10248. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10249. ;;
  10250. *)
  10251. shrext_cmds='.sl'
  10252. dynamic_linker="$host_os dld.sl"
  10253. shlibpath_var=SHLIB_PATH
  10254. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10255. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10256. soname_spec='$libname$release$shared_ext$major'
  10257. ;;
  10258. esac
  10259. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10260. postinstall_cmds='chmod 555 $lib'
  10261. # or fails outright, so override atomically:
  10262. install_override_mode=555
  10263. ;;
  10264. interix[3-9]*)
  10265. version_type=linux # correct to gnu/linux during the next big refactor
  10266. need_lib_prefix=no
  10267. need_version=no
  10268. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10269. soname_spec='$libname$release$shared_ext$major'
  10270. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10271. shlibpath_var=LD_LIBRARY_PATH
  10272. shlibpath_overrides_runpath=no
  10273. hardcode_into_libs=yes
  10274. ;;
  10275. irix5* | irix6* | nonstopux*)
  10276. case $host_os in
  10277. nonstopux*) version_type=nonstopux ;;
  10278. *)
  10279. if test yes = "$lt_cv_prog_gnu_ld"; then
  10280. version_type=linux # correct to gnu/linux during the next big refactor
  10281. else
  10282. version_type=irix
  10283. fi ;;
  10284. esac
  10285. need_lib_prefix=no
  10286. need_version=no
  10287. soname_spec='$libname$release$shared_ext$major'
  10288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10289. case $host_os in
  10290. irix5* | nonstopux*)
  10291. libsuff= shlibsuff=
  10292. ;;
  10293. *)
  10294. case $LD in # libtool.m4 will add one of these switches to LD
  10295. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10296. libsuff= shlibsuff= libmagic=32-bit;;
  10297. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10298. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10299. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10300. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10301. *) libsuff= shlibsuff= libmagic=never-match;;
  10302. esac
  10303. ;;
  10304. esac
  10305. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10306. shlibpath_overrides_runpath=no
  10307. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10308. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10309. hardcode_into_libs=yes
  10310. ;;
  10311. # No shared lib support for Linux oldld, aout, or coff.
  10312. linux*oldld* | linux*aout* | linux*coff*)
  10313. dynamic_linker=no
  10314. ;;
  10315. linux*android*)
  10316. version_type=none # Android doesn't support versioned libraries.
  10317. need_lib_prefix=no
  10318. need_version=no
  10319. library_names_spec='$libname$release$shared_ext'
  10320. soname_spec='$libname$release$shared_ext'
  10321. finish_cmds=
  10322. shlibpath_var=LD_LIBRARY_PATH
  10323. shlibpath_overrides_runpath=yes
  10324. # This implies no fast_install, which is unacceptable.
  10325. # Some rework will be needed to allow for fast_install
  10326. # before this can be enabled.
  10327. hardcode_into_libs=yes
  10328. dynamic_linker='Android linker'
  10329. # Don't embed -rpath directories since the linker doesn't support them.
  10330. hardcode_libdir_flag_spec='-L$libdir'
  10331. ;;
  10332. # This must be glibc/ELF.
  10333. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10334. version_type=linux # correct to gnu/linux during the next big refactor
  10335. need_lib_prefix=no
  10336. need_version=no
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10338. soname_spec='$libname$release$shared_ext$major'
  10339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10340. shlibpath_var=LD_LIBRARY_PATH
  10341. shlibpath_overrides_runpath=no
  10342. # Some binutils ld are patched to set DT_RUNPATH
  10343. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10344. then :
  10345. printf %s "(cached) " >&6
  10346. else $as_nop
  10347. lt_cv_shlibpath_overrides_runpath=no
  10348. save_LDFLAGS=$LDFLAGS
  10349. save_libdir=$libdir
  10350. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10351. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10353. /* end confdefs.h. */
  10354. int
  10355. main (void)
  10356. {
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. if ac_fn_c_try_link "$LINENO"
  10362. then :
  10363. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10364. then :
  10365. lt_cv_shlibpath_overrides_runpath=yes
  10366. fi
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LDFLAGS=$save_LDFLAGS
  10371. libdir=$save_libdir
  10372. fi
  10373. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10374. # This implies no fast_install, which is unacceptable.
  10375. # Some rework will be needed to allow for fast_install
  10376. # before this can be enabled.
  10377. hardcode_into_libs=yes
  10378. # Add ABI-specific directories to the system library path.
  10379. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10380. # Ideally, we could use ldconfig to report *all* directores which are
  10381. # searched for libraries, however this is still not possible. Aside from not
  10382. # being certain /sbin/ldconfig is available, command
  10383. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10384. # even though it is searched at run-time. Try to do the best guess by
  10385. # appending ld.so.conf contents (and includes) to the search path.
  10386. if test -f /etc/ld.so.conf; then
  10387. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10388. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10389. fi
  10390. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10391. # powerpc, because MkLinux only supported shared libraries with the
  10392. # GNU dynamic linker. Since this was broken with cross compilers,
  10393. # most powerpc-linux boxes support dynamic linking these days and
  10394. # people can always --disable-shared, the test was removed, and we
  10395. # assume the GNU/Linux dynamic linker is in use.
  10396. dynamic_linker='GNU/Linux ld.so'
  10397. ;;
  10398. netbsd*)
  10399. version_type=sunos
  10400. need_lib_prefix=no
  10401. need_version=no
  10402. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10403. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10404. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10405. dynamic_linker='NetBSD (a.out) ld.so'
  10406. else
  10407. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10408. soname_spec='$libname$release$shared_ext$major'
  10409. dynamic_linker='NetBSD ld.elf_so'
  10410. fi
  10411. shlibpath_var=LD_LIBRARY_PATH
  10412. shlibpath_overrides_runpath=yes
  10413. hardcode_into_libs=yes
  10414. ;;
  10415. newsos6)
  10416. version_type=linux # correct to gnu/linux during the next big refactor
  10417. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10418. shlibpath_var=LD_LIBRARY_PATH
  10419. shlibpath_overrides_runpath=yes
  10420. ;;
  10421. *nto* | *qnx*)
  10422. version_type=qnx
  10423. need_lib_prefix=no
  10424. need_version=no
  10425. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10426. soname_spec='$libname$release$shared_ext$major'
  10427. shlibpath_var=LD_LIBRARY_PATH
  10428. shlibpath_overrides_runpath=no
  10429. hardcode_into_libs=yes
  10430. dynamic_linker='ldqnx.so'
  10431. ;;
  10432. openbsd* | bitrig*)
  10433. version_type=sunos
  10434. sys_lib_dlsearch_path_spec=/usr/lib
  10435. need_lib_prefix=no
  10436. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10437. need_version=no
  10438. else
  10439. need_version=yes
  10440. fi
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=yes
  10445. ;;
  10446. os2*)
  10447. libname_spec='$name'
  10448. shrext_cmds=.dll
  10449. need_lib_prefix=no
  10450. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10451. # SDL customization: removed versioning support.
  10452. # version_type=windows
  10453. # need_version=no
  10454. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10455. # v=$($ECHO $release$versuffix | tr -d .-);
  10456. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10457. # $ECHO $n$v`$shared_ext'
  10458. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10459. library_names_spec='${libname}_dll.$libext'
  10460. dynamic_linker='OS/2 ld.exe'
  10461. shlibpath_var=BEGINLIBPATH
  10462. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10463. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10464. postinstall_cmds='base_file=`basename \$file`~
  10465. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10466. dldir=$destdir/`dirname \$dlpath`~
  10467. test -d \$dldir || mkdir -p \$dldir~
  10468. $install_prog $dir/$dlname \$dldir/$dlname~
  10469. chmod a+x \$dldir/$dlname~
  10470. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10471. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10472. fi'
  10473. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10474. dlpath=$dir/\$dldll~
  10475. $RM \$dlpath'
  10476. ;;
  10477. osf3* | osf4* | osf5*)
  10478. version_type=osf
  10479. need_lib_prefix=no
  10480. need_version=no
  10481. soname_spec='$libname$release$shared_ext$major'
  10482. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10483. shlibpath_var=LD_LIBRARY_PATH
  10484. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10485. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10486. ;;
  10487. rdos*)
  10488. dynamic_linker=no
  10489. ;;
  10490. solaris*)
  10491. version_type=linux # correct to gnu/linux during the next big refactor
  10492. need_lib_prefix=no
  10493. need_version=no
  10494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10495. soname_spec='$libname$release$shared_ext$major'
  10496. shlibpath_var=LD_LIBRARY_PATH
  10497. shlibpath_overrides_runpath=yes
  10498. hardcode_into_libs=yes
  10499. # ldd complains unless libraries are executable
  10500. postinstall_cmds='chmod +x $lib'
  10501. ;;
  10502. sunos4*)
  10503. version_type=sunos
  10504. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10505. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10506. shlibpath_var=LD_LIBRARY_PATH
  10507. shlibpath_overrides_runpath=yes
  10508. if test yes = "$with_gnu_ld"; then
  10509. need_lib_prefix=no
  10510. fi
  10511. need_version=yes
  10512. ;;
  10513. sysv4 | sysv4.3*)
  10514. version_type=linux # correct to gnu/linux during the next big refactor
  10515. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10516. soname_spec='$libname$release$shared_ext$major'
  10517. shlibpath_var=LD_LIBRARY_PATH
  10518. case $host_vendor in
  10519. sni)
  10520. shlibpath_overrides_runpath=no
  10521. need_lib_prefix=no
  10522. runpath_var=LD_RUN_PATH
  10523. ;;
  10524. siemens)
  10525. need_lib_prefix=no
  10526. ;;
  10527. motorola)
  10528. need_lib_prefix=no
  10529. need_version=no
  10530. shlibpath_overrides_runpath=no
  10531. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10532. ;;
  10533. esac
  10534. ;;
  10535. sysv4*MP*)
  10536. if test -d /usr/nec; then
  10537. version_type=linux # correct to gnu/linux during the next big refactor
  10538. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10539. soname_spec='$libname$shared_ext.$major'
  10540. shlibpath_var=LD_LIBRARY_PATH
  10541. fi
  10542. ;;
  10543. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10544. version_type=sco
  10545. need_lib_prefix=no
  10546. need_version=no
  10547. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10548. soname_spec='$libname$release$shared_ext$major'
  10549. shlibpath_var=LD_LIBRARY_PATH
  10550. shlibpath_overrides_runpath=yes
  10551. hardcode_into_libs=yes
  10552. if test yes = "$with_gnu_ld"; then
  10553. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10554. else
  10555. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10556. case $host_os in
  10557. sco3.2v5*)
  10558. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10559. ;;
  10560. esac
  10561. fi
  10562. sys_lib_dlsearch_path_spec='/usr/lib'
  10563. ;;
  10564. tpf*)
  10565. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10566. version_type=linux # correct to gnu/linux during the next big refactor
  10567. need_lib_prefix=no
  10568. need_version=no
  10569. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10570. shlibpath_var=LD_LIBRARY_PATH
  10571. shlibpath_overrides_runpath=no
  10572. hardcode_into_libs=yes
  10573. ;;
  10574. uts4*)
  10575. version_type=linux # correct to gnu/linux during the next big refactor
  10576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10577. soname_spec='$libname$release$shared_ext$major'
  10578. shlibpath_var=LD_LIBRARY_PATH
  10579. ;;
  10580. *)
  10581. dynamic_linker=no
  10582. ;;
  10583. esac
  10584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10585. printf "%s\n" "$dynamic_linker" >&6; }
  10586. test no = "$dynamic_linker" && can_build_shared=no
  10587. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10588. if test yes = "$GCC"; then
  10589. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10590. fi
  10591. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10592. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10593. fi
  10594. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10595. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10596. fi
  10597. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10598. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10599. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10600. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10601. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10602. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10604. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10605. hardcode_action=
  10606. if test -n "$hardcode_libdir_flag_spec" ||
  10607. test -n "$runpath_var" ||
  10608. test yes = "$hardcode_automatic"; then
  10609. # We can hardcode non-existent directories.
  10610. if test no != "$hardcode_direct" &&
  10611. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10612. # have to relink, otherwise we might link with an installed library
  10613. # when we should be linking with a yet-to-be-installed one
  10614. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10615. test no != "$hardcode_minus_L"; then
  10616. # Linking always hardcodes the temporary library directory.
  10617. hardcode_action=relink
  10618. else
  10619. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10620. hardcode_action=immediate
  10621. fi
  10622. else
  10623. # We cannot hardcode anything, or else we can only hardcode existing
  10624. # directories.
  10625. hardcode_action=unsupported
  10626. fi
  10627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10628. printf "%s\n" "$hardcode_action" >&6; }
  10629. if test relink = "$hardcode_action" ||
  10630. test yes = "$inherit_rpath"; then
  10631. # Fast installation is not supported
  10632. enable_fast_install=no
  10633. elif test yes = "$shlibpath_overrides_runpath" ||
  10634. test no = "$enable_shared"; then
  10635. # Fast installation is not necessary
  10636. enable_fast_install=needless
  10637. fi
  10638. if test yes != "$enable_dlopen"; then
  10639. enable_dlopen=unknown
  10640. enable_dlopen_self=unknown
  10641. enable_dlopen_self_static=unknown
  10642. else
  10643. lt_cv_dlopen=no
  10644. lt_cv_dlopen_libs=
  10645. case $host_os in
  10646. beos*)
  10647. lt_cv_dlopen=load_add_on
  10648. lt_cv_dlopen_libs=
  10649. lt_cv_dlopen_self=yes
  10650. ;;
  10651. mingw* | pw32* | cegcc*)
  10652. lt_cv_dlopen=LoadLibrary
  10653. lt_cv_dlopen_libs=
  10654. ;;
  10655. cygwin*)
  10656. lt_cv_dlopen=dlopen
  10657. lt_cv_dlopen_libs=
  10658. ;;
  10659. darwin*)
  10660. # if libdl is installed we need to link against it
  10661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10662. printf %s "checking for dlopen in -ldl... " >&6; }
  10663. if test ${ac_cv_lib_dl_dlopen+y}
  10664. then :
  10665. printf %s "(cached) " >&6
  10666. else $as_nop
  10667. ac_check_lib_save_LIBS=$LIBS
  10668. LIBS="-ldl $LIBS"
  10669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10670. /* end confdefs.h. */
  10671. /* Override any GCC internal prototype to avoid an error.
  10672. Use char because int might match the return type of a GCC
  10673. builtin and then its argument prototype would still apply. */
  10674. char dlopen ();
  10675. int
  10676. main (void)
  10677. {
  10678. return dlopen ();
  10679. ;
  10680. return 0;
  10681. }
  10682. _ACEOF
  10683. if ac_fn_c_try_link "$LINENO"
  10684. then :
  10685. ac_cv_lib_dl_dlopen=yes
  10686. else $as_nop
  10687. ac_cv_lib_dl_dlopen=no
  10688. fi
  10689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10690. conftest$ac_exeext conftest.$ac_ext
  10691. LIBS=$ac_check_lib_save_LIBS
  10692. fi
  10693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10694. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10695. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10696. then :
  10697. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10698. else $as_nop
  10699. lt_cv_dlopen=dyld
  10700. lt_cv_dlopen_libs=
  10701. lt_cv_dlopen_self=yes
  10702. fi
  10703. ;;
  10704. tpf*)
  10705. # Don't try to run any link tests for TPF. We know it's impossible
  10706. # because TPF is a cross-compiler, and we know how we open DSOs.
  10707. lt_cv_dlopen=dlopen
  10708. lt_cv_dlopen_libs=
  10709. lt_cv_dlopen_self=no
  10710. ;;
  10711. *)
  10712. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10713. if test "x$ac_cv_func_shl_load" = xyes
  10714. then :
  10715. lt_cv_dlopen=shl_load
  10716. else $as_nop
  10717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10718. printf %s "checking for shl_load in -ldld... " >&6; }
  10719. if test ${ac_cv_lib_dld_shl_load+y}
  10720. then :
  10721. printf %s "(cached) " >&6
  10722. else $as_nop
  10723. ac_check_lib_save_LIBS=$LIBS
  10724. LIBS="-ldld $LIBS"
  10725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10726. /* end confdefs.h. */
  10727. /* Override any GCC internal prototype to avoid an error.
  10728. Use char because int might match the return type of a GCC
  10729. builtin and then its argument prototype would still apply. */
  10730. char shl_load ();
  10731. int
  10732. main (void)
  10733. {
  10734. return shl_load ();
  10735. ;
  10736. return 0;
  10737. }
  10738. _ACEOF
  10739. if ac_fn_c_try_link "$LINENO"
  10740. then :
  10741. ac_cv_lib_dld_shl_load=yes
  10742. else $as_nop
  10743. ac_cv_lib_dld_shl_load=no
  10744. fi
  10745. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10746. conftest$ac_exeext conftest.$ac_ext
  10747. LIBS=$ac_check_lib_save_LIBS
  10748. fi
  10749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10750. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10751. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10752. then :
  10753. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10754. else $as_nop
  10755. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10756. if test "x$ac_cv_func_dlopen" = xyes
  10757. then :
  10758. lt_cv_dlopen=dlopen
  10759. else $as_nop
  10760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10761. printf %s "checking for dlopen in -ldl... " >&6; }
  10762. if test ${ac_cv_lib_dl_dlopen+y}
  10763. then :
  10764. printf %s "(cached) " >&6
  10765. else $as_nop
  10766. ac_check_lib_save_LIBS=$LIBS
  10767. LIBS="-ldl $LIBS"
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. /* Override any GCC internal prototype to avoid an error.
  10771. Use char because int might match the return type of a GCC
  10772. builtin and then its argument prototype would still apply. */
  10773. char dlopen ();
  10774. int
  10775. main (void)
  10776. {
  10777. return dlopen ();
  10778. ;
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_c_try_link "$LINENO"
  10783. then :
  10784. ac_cv_lib_dl_dlopen=yes
  10785. else $as_nop
  10786. ac_cv_lib_dl_dlopen=no
  10787. fi
  10788. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10789. conftest$ac_exeext conftest.$ac_ext
  10790. LIBS=$ac_check_lib_save_LIBS
  10791. fi
  10792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10793. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10794. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10795. then :
  10796. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10797. else $as_nop
  10798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10799. printf %s "checking for dlopen in -lsvld... " >&6; }
  10800. if test ${ac_cv_lib_svld_dlopen+y}
  10801. then :
  10802. printf %s "(cached) " >&6
  10803. else $as_nop
  10804. ac_check_lib_save_LIBS=$LIBS
  10805. LIBS="-lsvld $LIBS"
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. /* Override any GCC internal prototype to avoid an error.
  10809. Use char because int might match the return type of a GCC
  10810. builtin and then its argument prototype would still apply. */
  10811. char dlopen ();
  10812. int
  10813. main (void)
  10814. {
  10815. return dlopen ();
  10816. ;
  10817. return 0;
  10818. }
  10819. _ACEOF
  10820. if ac_fn_c_try_link "$LINENO"
  10821. then :
  10822. ac_cv_lib_svld_dlopen=yes
  10823. else $as_nop
  10824. ac_cv_lib_svld_dlopen=no
  10825. fi
  10826. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10827. conftest$ac_exeext conftest.$ac_ext
  10828. LIBS=$ac_check_lib_save_LIBS
  10829. fi
  10830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10831. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10832. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10833. then :
  10834. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10835. else $as_nop
  10836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10837. printf %s "checking for dld_link in -ldld... " >&6; }
  10838. if test ${ac_cv_lib_dld_dld_link+y}
  10839. then :
  10840. printf %s "(cached) " >&6
  10841. else $as_nop
  10842. ac_check_lib_save_LIBS=$LIBS
  10843. LIBS="-ldld $LIBS"
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. /* Override any GCC internal prototype to avoid an error.
  10847. Use char because int might match the return type of a GCC
  10848. builtin and then its argument prototype would still apply. */
  10849. char dld_link ();
  10850. int
  10851. main (void)
  10852. {
  10853. return dld_link ();
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_link "$LINENO"
  10859. then :
  10860. ac_cv_lib_dld_dld_link=yes
  10861. else $as_nop
  10862. ac_cv_lib_dld_dld_link=no
  10863. fi
  10864. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10865. conftest$ac_exeext conftest.$ac_ext
  10866. LIBS=$ac_check_lib_save_LIBS
  10867. fi
  10868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10869. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10870. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10871. then :
  10872. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10873. fi
  10874. fi
  10875. fi
  10876. fi
  10877. fi
  10878. fi
  10879. ;;
  10880. esac
  10881. if test no = "$lt_cv_dlopen"; then
  10882. enable_dlopen=no
  10883. else
  10884. enable_dlopen=yes
  10885. fi
  10886. case $lt_cv_dlopen in
  10887. dlopen)
  10888. save_CPPFLAGS=$CPPFLAGS
  10889. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10890. save_LDFLAGS=$LDFLAGS
  10891. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10892. save_LIBS=$LIBS
  10893. LIBS="$lt_cv_dlopen_libs $LIBS"
  10894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10895. printf %s "checking whether a program can dlopen itself... " >&6; }
  10896. if test ${lt_cv_dlopen_self+y}
  10897. then :
  10898. printf %s "(cached) " >&6
  10899. else $as_nop
  10900. if test yes = "$cross_compiling"; then :
  10901. lt_cv_dlopen_self=cross
  10902. else
  10903. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10904. lt_status=$lt_dlunknown
  10905. cat > conftest.$ac_ext <<_LT_EOF
  10906. #line $LINENO "configure"
  10907. #include "confdefs.h"
  10908. #if HAVE_DLFCN_H
  10909. #include <dlfcn.h>
  10910. #endif
  10911. #include <stdio.h>
  10912. #ifdef RTLD_GLOBAL
  10913. # define LT_DLGLOBAL RTLD_GLOBAL
  10914. #else
  10915. # ifdef DL_GLOBAL
  10916. # define LT_DLGLOBAL DL_GLOBAL
  10917. # else
  10918. # define LT_DLGLOBAL 0
  10919. # endif
  10920. #endif
  10921. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10922. find out it does not work in some platform. */
  10923. #ifndef LT_DLLAZY_OR_NOW
  10924. # ifdef RTLD_LAZY
  10925. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10926. # else
  10927. # ifdef DL_LAZY
  10928. # define LT_DLLAZY_OR_NOW DL_LAZY
  10929. # else
  10930. # ifdef RTLD_NOW
  10931. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10932. # else
  10933. # ifdef DL_NOW
  10934. # define LT_DLLAZY_OR_NOW DL_NOW
  10935. # else
  10936. # define LT_DLLAZY_OR_NOW 0
  10937. # endif
  10938. # endif
  10939. # endif
  10940. # endif
  10941. #endif
  10942. /* When -fvisibility=hidden is used, assume the code has been annotated
  10943. correspondingly for the symbols needed. */
  10944. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10945. int fnord () __attribute__((visibility("default")));
  10946. #endif
  10947. int fnord () { return 42; }
  10948. int main ()
  10949. {
  10950. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10951. int status = $lt_dlunknown;
  10952. if (self)
  10953. {
  10954. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10955. else
  10956. {
  10957. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10958. else puts (dlerror ());
  10959. }
  10960. /* dlclose (self); */
  10961. }
  10962. else
  10963. puts (dlerror ());
  10964. return status;
  10965. }
  10966. _LT_EOF
  10967. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10968. (eval $ac_link) 2>&5
  10969. ac_status=$?
  10970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10971. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10972. (./conftest; exit; ) >&5 2>/dev/null
  10973. lt_status=$?
  10974. case x$lt_status in
  10975. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10976. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10977. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10978. esac
  10979. else :
  10980. # compilation failed
  10981. lt_cv_dlopen_self=no
  10982. fi
  10983. fi
  10984. rm -fr conftest*
  10985. fi
  10986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10987. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10988. if test yes = "$lt_cv_dlopen_self"; then
  10989. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10991. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10992. if test ${lt_cv_dlopen_self_static+y}
  10993. then :
  10994. printf %s "(cached) " >&6
  10995. else $as_nop
  10996. if test yes = "$cross_compiling"; then :
  10997. lt_cv_dlopen_self_static=cross
  10998. else
  10999. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11000. lt_status=$lt_dlunknown
  11001. cat > conftest.$ac_ext <<_LT_EOF
  11002. #line $LINENO "configure"
  11003. #include "confdefs.h"
  11004. #if HAVE_DLFCN_H
  11005. #include <dlfcn.h>
  11006. #endif
  11007. #include <stdio.h>
  11008. #ifdef RTLD_GLOBAL
  11009. # define LT_DLGLOBAL RTLD_GLOBAL
  11010. #else
  11011. # ifdef DL_GLOBAL
  11012. # define LT_DLGLOBAL DL_GLOBAL
  11013. # else
  11014. # define LT_DLGLOBAL 0
  11015. # endif
  11016. #endif
  11017. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11018. find out it does not work in some platform. */
  11019. #ifndef LT_DLLAZY_OR_NOW
  11020. # ifdef RTLD_LAZY
  11021. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11022. # else
  11023. # ifdef DL_LAZY
  11024. # define LT_DLLAZY_OR_NOW DL_LAZY
  11025. # else
  11026. # ifdef RTLD_NOW
  11027. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11028. # else
  11029. # ifdef DL_NOW
  11030. # define LT_DLLAZY_OR_NOW DL_NOW
  11031. # else
  11032. # define LT_DLLAZY_OR_NOW 0
  11033. # endif
  11034. # endif
  11035. # endif
  11036. # endif
  11037. #endif
  11038. /* When -fvisibility=hidden is used, assume the code has been annotated
  11039. correspondingly for the symbols needed. */
  11040. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11041. int fnord () __attribute__((visibility("default")));
  11042. #endif
  11043. int fnord () { return 42; }
  11044. int main ()
  11045. {
  11046. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11047. int status = $lt_dlunknown;
  11048. if (self)
  11049. {
  11050. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11051. else
  11052. {
  11053. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11054. else puts (dlerror ());
  11055. }
  11056. /* dlclose (self); */
  11057. }
  11058. else
  11059. puts (dlerror ());
  11060. return status;
  11061. }
  11062. _LT_EOF
  11063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11064. (eval $ac_link) 2>&5
  11065. ac_status=$?
  11066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11067. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11068. (./conftest; exit; ) >&5 2>/dev/null
  11069. lt_status=$?
  11070. case x$lt_status in
  11071. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11072. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11073. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11074. esac
  11075. else :
  11076. # compilation failed
  11077. lt_cv_dlopen_self_static=no
  11078. fi
  11079. fi
  11080. rm -fr conftest*
  11081. fi
  11082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11083. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11084. fi
  11085. CPPFLAGS=$save_CPPFLAGS
  11086. LDFLAGS=$save_LDFLAGS
  11087. LIBS=$save_LIBS
  11088. ;;
  11089. esac
  11090. case $lt_cv_dlopen_self in
  11091. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11092. *) enable_dlopen_self=unknown ;;
  11093. esac
  11094. case $lt_cv_dlopen_self_static in
  11095. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11096. *) enable_dlopen_self_static=unknown ;;
  11097. esac
  11098. fi
  11099. striplib=
  11100. old_striplib=
  11101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11102. printf %s "checking whether stripping libraries is possible... " >&6; }
  11103. if test -z "$STRIP"; then
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11105. printf "%s\n" "no" >&6; }
  11106. else
  11107. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11108. old_striplib="$STRIP --strip-debug"
  11109. striplib="$STRIP --strip-unneeded"
  11110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11111. printf "%s\n" "yes" >&6; }
  11112. else
  11113. case $host_os in
  11114. darwin*)
  11115. # FIXME - insert some real tests, host_os isn't really good enough
  11116. striplib="$STRIP -x"
  11117. old_striplib="$STRIP -S"
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11119. printf "%s\n" "yes" >&6; }
  11120. ;;
  11121. freebsd*)
  11122. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11123. old_striplib="$STRIP --strip-debug"
  11124. striplib="$STRIP --strip-unneeded"
  11125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11126. printf "%s\n" "yes" >&6; }
  11127. else
  11128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. printf "%s\n" "no" >&6; }
  11130. fi
  11131. ;;
  11132. *)
  11133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11134. printf "%s\n" "no" >&6; }
  11135. ;;
  11136. esac
  11137. fi
  11138. fi
  11139. # Report what library types will actually be built
  11140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11141. printf %s "checking if libtool supports shared libraries... " >&6; }
  11142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11143. printf "%s\n" "$can_build_shared" >&6; }
  11144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11145. printf %s "checking whether to build shared libraries... " >&6; }
  11146. test no = "$can_build_shared" && enable_shared=no
  11147. # On AIX, shared libraries and static libraries use the same namespace, and
  11148. # are all built from PIC.
  11149. case $host_os in
  11150. aix3*)
  11151. test yes = "$enable_shared" && enable_static=no
  11152. if test -n "$RANLIB"; then
  11153. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11154. postinstall_cmds='$RANLIB $lib'
  11155. fi
  11156. ;;
  11157. aix[4-9]*)
  11158. if test ia64 != "$host_cpu"; then
  11159. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11160. yes,aix,yes) ;; # shared object as lib.so file only
  11161. yes,svr4,*) ;; # shared object as lib.so archive member only
  11162. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11163. esac
  11164. fi
  11165. ;;
  11166. esac
  11167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11168. printf "%s\n" "$enable_shared" >&6; }
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11170. printf %s "checking whether to build static libraries... " >&6; }
  11171. # Make sure either enable_shared or enable_static is yes.
  11172. test yes = "$enable_shared" || enable_static=yes
  11173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11174. printf "%s\n" "$enable_static" >&6; }
  11175. fi
  11176. ac_ext=c
  11177. ac_cpp='$CPP $CPPFLAGS'
  11178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11181. CC=$lt_save_CC
  11182. ac_config_commands="$ac_config_commands libtool"
  11183. # Only expand once:
  11184. if test -n "$ac_tool_prefix"; then
  11185. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11186. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11188. printf %s "checking for $ac_word... " >&6; }
  11189. if test ${ac_cv_prog_RC+y}
  11190. then :
  11191. printf %s "(cached) " >&6
  11192. else $as_nop
  11193. if test -n "$RC"; then
  11194. ac_cv_prog_RC="$RC" # Let the user override the test.
  11195. else
  11196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11197. for as_dir in $PATH
  11198. do
  11199. IFS=$as_save_IFS
  11200. case $as_dir in #(((
  11201. '') as_dir=./ ;;
  11202. */) ;;
  11203. *) as_dir=$as_dir/ ;;
  11204. esac
  11205. for ac_exec_ext in '' $ac_executable_extensions; do
  11206. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11207. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11208. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11209. break 2
  11210. fi
  11211. done
  11212. done
  11213. IFS=$as_save_IFS
  11214. fi
  11215. fi
  11216. RC=$ac_cv_prog_RC
  11217. if test -n "$RC"; then
  11218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11219. printf "%s\n" "$RC" >&6; }
  11220. else
  11221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11222. printf "%s\n" "no" >&6; }
  11223. fi
  11224. fi
  11225. if test -z "$ac_cv_prog_RC"; then
  11226. ac_ct_RC=$RC
  11227. # Extract the first word of "windres", so it can be a program name with args.
  11228. set dummy windres; ac_word=$2
  11229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11230. printf %s "checking for $ac_word... " >&6; }
  11231. if test ${ac_cv_prog_ac_ct_RC+y}
  11232. then :
  11233. printf %s "(cached) " >&6
  11234. else $as_nop
  11235. if test -n "$ac_ct_RC"; then
  11236. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11237. else
  11238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11239. for as_dir in $PATH
  11240. do
  11241. IFS=$as_save_IFS
  11242. case $as_dir in #(((
  11243. '') as_dir=./ ;;
  11244. */) ;;
  11245. *) as_dir=$as_dir/ ;;
  11246. esac
  11247. for ac_exec_ext in '' $ac_executable_extensions; do
  11248. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11249. ac_cv_prog_ac_ct_RC="windres"
  11250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11251. break 2
  11252. fi
  11253. done
  11254. done
  11255. IFS=$as_save_IFS
  11256. fi
  11257. fi
  11258. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11259. if test -n "$ac_ct_RC"; then
  11260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11261. printf "%s\n" "$ac_ct_RC" >&6; }
  11262. else
  11263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11264. printf "%s\n" "no" >&6; }
  11265. fi
  11266. if test "x$ac_ct_RC" = x; then
  11267. RC=""
  11268. else
  11269. case $cross_compiling:$ac_tool_warned in
  11270. yes:)
  11271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11272. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11273. ac_tool_warned=yes ;;
  11274. esac
  11275. RC=$ac_ct_RC
  11276. fi
  11277. else
  11278. RC="$ac_cv_prog_RC"
  11279. fi
  11280. # Source file extension for RC test sources.
  11281. ac_ext=rc
  11282. # Object file extension for compiled RC test sources.
  11283. objext=o
  11284. objext_RC=$objext
  11285. # Code to be used in simple compile tests
  11286. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11287. # Code to be used in simple link tests
  11288. lt_simple_link_test_code=$lt_simple_compile_test_code
  11289. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11290. # If no C compiler was specified, use CC.
  11291. LTCC=${LTCC-"$CC"}
  11292. # If no C compiler flags were specified, use CFLAGS.
  11293. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11294. # Allow CC to be a program name with arguments.
  11295. compiler=$CC
  11296. # save warnings/boilerplate of simple test code
  11297. ac_outfile=conftest.$ac_objext
  11298. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11299. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11300. _lt_compiler_boilerplate=`cat conftest.err`
  11301. $RM conftest*
  11302. ac_outfile=conftest.$ac_objext
  11303. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11304. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11305. _lt_linker_boilerplate=`cat conftest.err`
  11306. $RM -r conftest*
  11307. # Allow CC to be a program name with arguments.
  11308. lt_save_CC=$CC
  11309. lt_save_CFLAGS=$CFLAGS
  11310. lt_save_GCC=$GCC
  11311. GCC=
  11312. CC=${RC-"windres"}
  11313. CFLAGS=
  11314. compiler=$CC
  11315. compiler_RC=$CC
  11316. func_cc_basename $compiler
  11317. cc_basename=$func_cc_basename_result
  11318. lt_cv_prog_compiler_c_o_RC=yes
  11319. if test -n "$compiler"; then
  11320. :
  11321. fi
  11322. GCC=$lt_save_GCC
  11323. ac_ext=c
  11324. ac_cpp='$CPP $CPPFLAGS'
  11325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11328. CC=$lt_save_CC
  11329. CFLAGS=$lt_save_CFLAGS
  11330. # For historical reasons, the library name redundantly includes the major
  11331. # version twice: libSDL2-2.0.so.0.
  11332. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11333. LT_RELEASE=2.0
  11334. # Increment this if there is an incompatible change - but if that happens,
  11335. # we should rename the library from SDL2 to SDL3, at which point this would
  11336. # reset to 0 anyway.
  11337. LT_MAJOR=0
  11338. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11339. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11340. LT_REVISION=$SDL_INTERFACE_AGE
  11341. for ac_prog in gawk mawk nawk awk
  11342. do
  11343. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11344. set dummy $ac_prog; ac_word=$2
  11345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11346. printf %s "checking for $ac_word... " >&6; }
  11347. if test ${ac_cv_prog_AWK+y}
  11348. then :
  11349. printf %s "(cached) " >&6
  11350. else $as_nop
  11351. if test -n "$AWK"; then
  11352. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11353. else
  11354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11355. for as_dir in $PATH
  11356. do
  11357. IFS=$as_save_IFS
  11358. case $as_dir in #(((
  11359. '') as_dir=./ ;;
  11360. */) ;;
  11361. *) as_dir=$as_dir/ ;;
  11362. esac
  11363. for ac_exec_ext in '' $ac_executable_extensions; do
  11364. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11365. ac_cv_prog_AWK="$ac_prog"
  11366. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11367. break 2
  11368. fi
  11369. done
  11370. done
  11371. IFS=$as_save_IFS
  11372. fi
  11373. fi
  11374. AWK=$ac_cv_prog_AWK
  11375. if test -n "$AWK"; then
  11376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11377. printf "%s\n" "$AWK" >&6; }
  11378. else
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11380. printf "%s\n" "no" >&6; }
  11381. fi
  11382. test -n "$AWK" && break
  11383. done
  11384. ac_ext=c
  11385. ac_cpp='$CPP $CPPFLAGS'
  11386. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11387. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11388. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11389. if test -n "$ac_tool_prefix"; then
  11390. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11391. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11393. printf %s "checking for $ac_word... " >&6; }
  11394. if test ${ac_cv_prog_CC+y}
  11395. then :
  11396. printf %s "(cached) " >&6
  11397. else $as_nop
  11398. if test -n "$CC"; then
  11399. ac_cv_prog_CC="$CC" # Let the user override the test.
  11400. else
  11401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11402. for as_dir in $PATH
  11403. do
  11404. IFS=$as_save_IFS
  11405. case $as_dir in #(((
  11406. '') as_dir=./ ;;
  11407. */) ;;
  11408. *) as_dir=$as_dir/ ;;
  11409. esac
  11410. for ac_exec_ext in '' $ac_executable_extensions; do
  11411. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11412. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11413. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11414. break 2
  11415. fi
  11416. done
  11417. done
  11418. IFS=$as_save_IFS
  11419. fi
  11420. fi
  11421. CC=$ac_cv_prog_CC
  11422. if test -n "$CC"; then
  11423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11424. printf "%s\n" "$CC" >&6; }
  11425. else
  11426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11427. printf "%s\n" "no" >&6; }
  11428. fi
  11429. fi
  11430. if test -z "$ac_cv_prog_CC"; then
  11431. ac_ct_CC=$CC
  11432. # Extract the first word of "gcc", so it can be a program name with args.
  11433. set dummy gcc; ac_word=$2
  11434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11435. printf %s "checking for $ac_word... " >&6; }
  11436. if test ${ac_cv_prog_ac_ct_CC+y}
  11437. then :
  11438. printf %s "(cached) " >&6
  11439. else $as_nop
  11440. if test -n "$ac_ct_CC"; then
  11441. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11442. else
  11443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11444. for as_dir in $PATH
  11445. do
  11446. IFS=$as_save_IFS
  11447. case $as_dir in #(((
  11448. '') as_dir=./ ;;
  11449. */) ;;
  11450. *) as_dir=$as_dir/ ;;
  11451. esac
  11452. for ac_exec_ext in '' $ac_executable_extensions; do
  11453. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11454. ac_cv_prog_ac_ct_CC="gcc"
  11455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11456. break 2
  11457. fi
  11458. done
  11459. done
  11460. IFS=$as_save_IFS
  11461. fi
  11462. fi
  11463. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11464. if test -n "$ac_ct_CC"; then
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11466. printf "%s\n" "$ac_ct_CC" >&6; }
  11467. else
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11469. printf "%s\n" "no" >&6; }
  11470. fi
  11471. if test "x$ac_ct_CC" = x; then
  11472. CC=""
  11473. else
  11474. case $cross_compiling:$ac_tool_warned in
  11475. yes:)
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11477. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11478. ac_tool_warned=yes ;;
  11479. esac
  11480. CC=$ac_ct_CC
  11481. fi
  11482. else
  11483. CC="$ac_cv_prog_CC"
  11484. fi
  11485. if test -z "$CC"; then
  11486. if test -n "$ac_tool_prefix"; then
  11487. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11488. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11490. printf %s "checking for $ac_word... " >&6; }
  11491. if test ${ac_cv_prog_CC+y}
  11492. then :
  11493. printf %s "(cached) " >&6
  11494. else $as_nop
  11495. if test -n "$CC"; then
  11496. ac_cv_prog_CC="$CC" # Let the user override the test.
  11497. else
  11498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11499. for as_dir in $PATH
  11500. do
  11501. IFS=$as_save_IFS
  11502. case $as_dir in #(((
  11503. '') as_dir=./ ;;
  11504. */) ;;
  11505. *) as_dir=$as_dir/ ;;
  11506. esac
  11507. for ac_exec_ext in '' $ac_executable_extensions; do
  11508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11509. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11511. break 2
  11512. fi
  11513. done
  11514. done
  11515. IFS=$as_save_IFS
  11516. fi
  11517. fi
  11518. CC=$ac_cv_prog_CC
  11519. if test -n "$CC"; then
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11521. printf "%s\n" "$CC" >&6; }
  11522. else
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. printf "%s\n" "no" >&6; }
  11525. fi
  11526. fi
  11527. fi
  11528. if test -z "$CC"; then
  11529. # Extract the first word of "cc", so it can be a program name with args.
  11530. set dummy cc; ac_word=$2
  11531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11532. printf %s "checking for $ac_word... " >&6; }
  11533. if test ${ac_cv_prog_CC+y}
  11534. then :
  11535. printf %s "(cached) " >&6
  11536. else $as_nop
  11537. if test -n "$CC"; then
  11538. ac_cv_prog_CC="$CC" # Let the user override the test.
  11539. else
  11540. ac_prog_rejected=no
  11541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11542. for as_dir in $PATH
  11543. do
  11544. IFS=$as_save_IFS
  11545. case $as_dir in #(((
  11546. '') as_dir=./ ;;
  11547. */) ;;
  11548. *) as_dir=$as_dir/ ;;
  11549. esac
  11550. for ac_exec_ext in '' $ac_executable_extensions; do
  11551. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11552. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11553. ac_prog_rejected=yes
  11554. continue
  11555. fi
  11556. ac_cv_prog_CC="cc"
  11557. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11558. break 2
  11559. fi
  11560. done
  11561. done
  11562. IFS=$as_save_IFS
  11563. if test $ac_prog_rejected = yes; then
  11564. # We found a bogon in the path, so make sure we never use it.
  11565. set dummy $ac_cv_prog_CC
  11566. shift
  11567. if test $# != 0; then
  11568. # We chose a different compiler from the bogus one.
  11569. # However, it has the same basename, so the bogon will be chosen
  11570. # first if we set CC to just the basename; use the full file name.
  11571. shift
  11572. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11573. fi
  11574. fi
  11575. fi
  11576. fi
  11577. CC=$ac_cv_prog_CC
  11578. if test -n "$CC"; then
  11579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11580. printf "%s\n" "$CC" >&6; }
  11581. else
  11582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11583. printf "%s\n" "no" >&6; }
  11584. fi
  11585. fi
  11586. if test -z "$CC"; then
  11587. if test -n "$ac_tool_prefix"; then
  11588. for ac_prog in cl.exe
  11589. do
  11590. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11591. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11593. printf %s "checking for $ac_word... " >&6; }
  11594. if test ${ac_cv_prog_CC+y}
  11595. then :
  11596. printf %s "(cached) " >&6
  11597. else $as_nop
  11598. if test -n "$CC"; then
  11599. ac_cv_prog_CC="$CC" # Let the user override the test.
  11600. else
  11601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11602. for as_dir in $PATH
  11603. do
  11604. IFS=$as_save_IFS
  11605. case $as_dir in #(((
  11606. '') as_dir=./ ;;
  11607. */) ;;
  11608. *) as_dir=$as_dir/ ;;
  11609. esac
  11610. for ac_exec_ext in '' $ac_executable_extensions; do
  11611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11612. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11614. break 2
  11615. fi
  11616. done
  11617. done
  11618. IFS=$as_save_IFS
  11619. fi
  11620. fi
  11621. CC=$ac_cv_prog_CC
  11622. if test -n "$CC"; then
  11623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11624. printf "%s\n" "$CC" >&6; }
  11625. else
  11626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11627. printf "%s\n" "no" >&6; }
  11628. fi
  11629. test -n "$CC" && break
  11630. done
  11631. fi
  11632. if test -z "$CC"; then
  11633. ac_ct_CC=$CC
  11634. for ac_prog in cl.exe
  11635. do
  11636. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11637. set dummy $ac_prog; ac_word=$2
  11638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11639. printf %s "checking for $ac_word... " >&6; }
  11640. if test ${ac_cv_prog_ac_ct_CC+y}
  11641. then :
  11642. printf %s "(cached) " >&6
  11643. else $as_nop
  11644. if test -n "$ac_ct_CC"; then
  11645. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11646. else
  11647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11648. for as_dir in $PATH
  11649. do
  11650. IFS=$as_save_IFS
  11651. case $as_dir in #(((
  11652. '') as_dir=./ ;;
  11653. */) ;;
  11654. *) as_dir=$as_dir/ ;;
  11655. esac
  11656. for ac_exec_ext in '' $ac_executable_extensions; do
  11657. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11658. ac_cv_prog_ac_ct_CC="$ac_prog"
  11659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11660. break 2
  11661. fi
  11662. done
  11663. done
  11664. IFS=$as_save_IFS
  11665. fi
  11666. fi
  11667. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11668. if test -n "$ac_ct_CC"; then
  11669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11670. printf "%s\n" "$ac_ct_CC" >&6; }
  11671. else
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11673. printf "%s\n" "no" >&6; }
  11674. fi
  11675. test -n "$ac_ct_CC" && break
  11676. done
  11677. if test "x$ac_ct_CC" = x; then
  11678. CC=""
  11679. else
  11680. case $cross_compiling:$ac_tool_warned in
  11681. yes:)
  11682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11683. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11684. ac_tool_warned=yes ;;
  11685. esac
  11686. CC=$ac_ct_CC
  11687. fi
  11688. fi
  11689. fi
  11690. if test -z "$CC"; then
  11691. if test -n "$ac_tool_prefix"; then
  11692. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11693. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11695. printf %s "checking for $ac_word... " >&6; }
  11696. if test ${ac_cv_prog_CC+y}
  11697. then :
  11698. printf %s "(cached) " >&6
  11699. else $as_nop
  11700. if test -n "$CC"; then
  11701. ac_cv_prog_CC="$CC" # Let the user override the test.
  11702. else
  11703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11704. for as_dir in $PATH
  11705. do
  11706. IFS=$as_save_IFS
  11707. case $as_dir in #(((
  11708. '') as_dir=./ ;;
  11709. */) ;;
  11710. *) as_dir=$as_dir/ ;;
  11711. esac
  11712. for ac_exec_ext in '' $ac_executable_extensions; do
  11713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11714. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11716. break 2
  11717. fi
  11718. done
  11719. done
  11720. IFS=$as_save_IFS
  11721. fi
  11722. fi
  11723. CC=$ac_cv_prog_CC
  11724. if test -n "$CC"; then
  11725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11726. printf "%s\n" "$CC" >&6; }
  11727. else
  11728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11729. printf "%s\n" "no" >&6; }
  11730. fi
  11731. fi
  11732. if test -z "$ac_cv_prog_CC"; then
  11733. ac_ct_CC=$CC
  11734. # Extract the first word of "clang", so it can be a program name with args.
  11735. set dummy clang; ac_word=$2
  11736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11737. printf %s "checking for $ac_word... " >&6; }
  11738. if test ${ac_cv_prog_ac_ct_CC+y}
  11739. then :
  11740. printf %s "(cached) " >&6
  11741. else $as_nop
  11742. if test -n "$ac_ct_CC"; then
  11743. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11744. else
  11745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11746. for as_dir in $PATH
  11747. do
  11748. IFS=$as_save_IFS
  11749. case $as_dir in #(((
  11750. '') as_dir=./ ;;
  11751. */) ;;
  11752. *) as_dir=$as_dir/ ;;
  11753. esac
  11754. for ac_exec_ext in '' $ac_executable_extensions; do
  11755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11756. ac_cv_prog_ac_ct_CC="clang"
  11757. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11758. break 2
  11759. fi
  11760. done
  11761. done
  11762. IFS=$as_save_IFS
  11763. fi
  11764. fi
  11765. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11766. if test -n "$ac_ct_CC"; then
  11767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11768. printf "%s\n" "$ac_ct_CC" >&6; }
  11769. else
  11770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11771. printf "%s\n" "no" >&6; }
  11772. fi
  11773. if test "x$ac_ct_CC" = x; then
  11774. CC=""
  11775. else
  11776. case $cross_compiling:$ac_tool_warned in
  11777. yes:)
  11778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11779. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11780. ac_tool_warned=yes ;;
  11781. esac
  11782. CC=$ac_ct_CC
  11783. fi
  11784. else
  11785. CC="$ac_cv_prog_CC"
  11786. fi
  11787. fi
  11788. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11789. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11790. as_fn_error $? "no acceptable C compiler found in \$PATH
  11791. See \`config.log' for more details" "$LINENO" 5; }
  11792. # Provide some information about the compiler.
  11793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11794. set X $ac_compile
  11795. ac_compiler=$2
  11796. for ac_option in --version -v -V -qversion -version; do
  11797. { { ac_try="$ac_compiler $ac_option >&5"
  11798. case "(($ac_try" in
  11799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11800. *) ac_try_echo=$ac_try;;
  11801. esac
  11802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11803. printf "%s\n" "$ac_try_echo"; } >&5
  11804. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11805. ac_status=$?
  11806. if test -s conftest.err; then
  11807. sed '10a\
  11808. ... rest of stderr output deleted ...
  11809. 10q' conftest.err >conftest.er1
  11810. cat conftest.er1 >&5
  11811. fi
  11812. rm -f conftest.er1 conftest.err
  11813. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11814. test $ac_status = 0; }
  11815. done
  11816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11817. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11818. if test ${ac_cv_c_compiler_gnu+y}
  11819. then :
  11820. printf %s "(cached) " >&6
  11821. else $as_nop
  11822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11823. /* end confdefs.h. */
  11824. int
  11825. main (void)
  11826. {
  11827. #ifndef __GNUC__
  11828. choke me
  11829. #endif
  11830. ;
  11831. return 0;
  11832. }
  11833. _ACEOF
  11834. if ac_fn_c_try_compile "$LINENO"
  11835. then :
  11836. ac_compiler_gnu=yes
  11837. else $as_nop
  11838. ac_compiler_gnu=no
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11841. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11842. fi
  11843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11844. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11846. if test $ac_compiler_gnu = yes; then
  11847. GCC=yes
  11848. else
  11849. GCC=
  11850. fi
  11851. ac_test_CFLAGS=${CFLAGS+y}
  11852. ac_save_CFLAGS=$CFLAGS
  11853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11854. printf %s "checking whether $CC accepts -g... " >&6; }
  11855. if test ${ac_cv_prog_cc_g+y}
  11856. then :
  11857. printf %s "(cached) " >&6
  11858. else $as_nop
  11859. ac_save_c_werror_flag=$ac_c_werror_flag
  11860. ac_c_werror_flag=yes
  11861. ac_cv_prog_cc_g=no
  11862. CFLAGS="-g"
  11863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11864. /* end confdefs.h. */
  11865. int
  11866. main (void)
  11867. {
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. if ac_fn_c_try_compile "$LINENO"
  11873. then :
  11874. ac_cv_prog_cc_g=yes
  11875. else $as_nop
  11876. CFLAGS=""
  11877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11878. /* end confdefs.h. */
  11879. int
  11880. main (void)
  11881. {
  11882. ;
  11883. return 0;
  11884. }
  11885. _ACEOF
  11886. if ac_fn_c_try_compile "$LINENO"
  11887. then :
  11888. else $as_nop
  11889. ac_c_werror_flag=$ac_save_c_werror_flag
  11890. CFLAGS="-g"
  11891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11892. /* end confdefs.h. */
  11893. int
  11894. main (void)
  11895. {
  11896. ;
  11897. return 0;
  11898. }
  11899. _ACEOF
  11900. if ac_fn_c_try_compile "$LINENO"
  11901. then :
  11902. ac_cv_prog_cc_g=yes
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11905. fi
  11906. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11907. fi
  11908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11909. ac_c_werror_flag=$ac_save_c_werror_flag
  11910. fi
  11911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11912. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11913. if test $ac_test_CFLAGS; then
  11914. CFLAGS=$ac_save_CFLAGS
  11915. elif test $ac_cv_prog_cc_g = yes; then
  11916. if test "$GCC" = yes; then
  11917. CFLAGS="-g -O2"
  11918. else
  11919. CFLAGS="-g"
  11920. fi
  11921. else
  11922. if test "$GCC" = yes; then
  11923. CFLAGS="-O2"
  11924. else
  11925. CFLAGS=
  11926. fi
  11927. fi
  11928. ac_prog_cc_stdc=no
  11929. if test x$ac_prog_cc_stdc = xno
  11930. then :
  11931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11932. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11933. if test ${ac_cv_prog_cc_c11+y}
  11934. then :
  11935. printf %s "(cached) " >&6
  11936. else $as_nop
  11937. ac_cv_prog_cc_c11=no
  11938. ac_save_CC=$CC
  11939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11940. /* end confdefs.h. */
  11941. $ac_c_conftest_c11_program
  11942. _ACEOF
  11943. for ac_arg in '' -std=gnu11
  11944. do
  11945. CC="$ac_save_CC $ac_arg"
  11946. if ac_fn_c_try_compile "$LINENO"
  11947. then :
  11948. ac_cv_prog_cc_c11=$ac_arg
  11949. fi
  11950. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11951. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11952. done
  11953. rm -f conftest.$ac_ext
  11954. CC=$ac_save_CC
  11955. fi
  11956. if test "x$ac_cv_prog_cc_c11" = xno
  11957. then :
  11958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11959. printf "%s\n" "unsupported" >&6; }
  11960. else $as_nop
  11961. if test "x$ac_cv_prog_cc_c11" = x
  11962. then :
  11963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11964. printf "%s\n" "none needed" >&6; }
  11965. else $as_nop
  11966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11967. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11968. CC="$CC $ac_cv_prog_cc_c11"
  11969. fi
  11970. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11971. ac_prog_cc_stdc=c11
  11972. fi
  11973. fi
  11974. if test x$ac_prog_cc_stdc = xno
  11975. then :
  11976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11977. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11978. if test ${ac_cv_prog_cc_c99+y}
  11979. then :
  11980. printf %s "(cached) " >&6
  11981. else $as_nop
  11982. ac_cv_prog_cc_c99=no
  11983. ac_save_CC=$CC
  11984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11985. /* end confdefs.h. */
  11986. $ac_c_conftest_c99_program
  11987. _ACEOF
  11988. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11989. do
  11990. CC="$ac_save_CC $ac_arg"
  11991. if ac_fn_c_try_compile "$LINENO"
  11992. then :
  11993. ac_cv_prog_cc_c99=$ac_arg
  11994. fi
  11995. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11996. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11997. done
  11998. rm -f conftest.$ac_ext
  11999. CC=$ac_save_CC
  12000. fi
  12001. if test "x$ac_cv_prog_cc_c99" = xno
  12002. then :
  12003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12004. printf "%s\n" "unsupported" >&6; }
  12005. else $as_nop
  12006. if test "x$ac_cv_prog_cc_c99" = x
  12007. then :
  12008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12009. printf "%s\n" "none needed" >&6; }
  12010. else $as_nop
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12012. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12013. CC="$CC $ac_cv_prog_cc_c99"
  12014. fi
  12015. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12016. ac_prog_cc_stdc=c99
  12017. fi
  12018. fi
  12019. if test x$ac_prog_cc_stdc = xno
  12020. then :
  12021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12022. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12023. if test ${ac_cv_prog_cc_c89+y}
  12024. then :
  12025. printf %s "(cached) " >&6
  12026. else $as_nop
  12027. ac_cv_prog_cc_c89=no
  12028. ac_save_CC=$CC
  12029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12030. /* end confdefs.h. */
  12031. $ac_c_conftest_c89_program
  12032. _ACEOF
  12033. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12034. do
  12035. CC="$ac_save_CC $ac_arg"
  12036. if ac_fn_c_try_compile "$LINENO"
  12037. then :
  12038. ac_cv_prog_cc_c89=$ac_arg
  12039. fi
  12040. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12041. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12042. done
  12043. rm -f conftest.$ac_ext
  12044. CC=$ac_save_CC
  12045. fi
  12046. if test "x$ac_cv_prog_cc_c89" = xno
  12047. then :
  12048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12049. printf "%s\n" "unsupported" >&6; }
  12050. else $as_nop
  12051. if test "x$ac_cv_prog_cc_c89" = x
  12052. then :
  12053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12054. printf "%s\n" "none needed" >&6; }
  12055. else $as_nop
  12056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12057. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12058. CC="$CC $ac_cv_prog_cc_c89"
  12059. fi
  12060. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12061. ac_prog_cc_stdc=c89
  12062. fi
  12063. fi
  12064. ac_ext=c
  12065. ac_cpp='$CPP $CPPFLAGS'
  12066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12069. ac_ext=cpp
  12070. ac_cpp='$CXXCPP $CPPFLAGS'
  12071. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12072. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12073. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12074. if test -z "$CXX"; then
  12075. if test -n "$CCC"; then
  12076. CXX=$CCC
  12077. else
  12078. if test -n "$ac_tool_prefix"; then
  12079. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12080. do
  12081. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12082. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12084. printf %s "checking for $ac_word... " >&6; }
  12085. if test ${ac_cv_prog_CXX+y}
  12086. then :
  12087. printf %s "(cached) " >&6
  12088. else $as_nop
  12089. if test -n "$CXX"; then
  12090. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12091. else
  12092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12093. for as_dir in $PATH
  12094. do
  12095. IFS=$as_save_IFS
  12096. case $as_dir in #(((
  12097. '') as_dir=./ ;;
  12098. */) ;;
  12099. *) as_dir=$as_dir/ ;;
  12100. esac
  12101. for ac_exec_ext in '' $ac_executable_extensions; do
  12102. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12103. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12105. break 2
  12106. fi
  12107. done
  12108. done
  12109. IFS=$as_save_IFS
  12110. fi
  12111. fi
  12112. CXX=$ac_cv_prog_CXX
  12113. if test -n "$CXX"; then
  12114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12115. printf "%s\n" "$CXX" >&6; }
  12116. else
  12117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12118. printf "%s\n" "no" >&6; }
  12119. fi
  12120. test -n "$CXX" && break
  12121. done
  12122. fi
  12123. if test -z "$CXX"; then
  12124. ac_ct_CXX=$CXX
  12125. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12126. do
  12127. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12128. set dummy $ac_prog; ac_word=$2
  12129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12130. printf %s "checking for $ac_word... " >&6; }
  12131. if test ${ac_cv_prog_ac_ct_CXX+y}
  12132. then :
  12133. printf %s "(cached) " >&6
  12134. else $as_nop
  12135. if test -n "$ac_ct_CXX"; then
  12136. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12137. else
  12138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12139. for as_dir in $PATH
  12140. do
  12141. IFS=$as_save_IFS
  12142. case $as_dir in #(((
  12143. '') as_dir=./ ;;
  12144. */) ;;
  12145. *) as_dir=$as_dir/ ;;
  12146. esac
  12147. for ac_exec_ext in '' $ac_executable_extensions; do
  12148. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12149. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12151. break 2
  12152. fi
  12153. done
  12154. done
  12155. IFS=$as_save_IFS
  12156. fi
  12157. fi
  12158. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12159. if test -n "$ac_ct_CXX"; then
  12160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12161. printf "%s\n" "$ac_ct_CXX" >&6; }
  12162. else
  12163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12164. printf "%s\n" "no" >&6; }
  12165. fi
  12166. test -n "$ac_ct_CXX" && break
  12167. done
  12168. if test "x$ac_ct_CXX" = x; then
  12169. CXX="g++"
  12170. else
  12171. case $cross_compiling:$ac_tool_warned in
  12172. yes:)
  12173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12174. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12175. ac_tool_warned=yes ;;
  12176. esac
  12177. CXX=$ac_ct_CXX
  12178. fi
  12179. fi
  12180. fi
  12181. fi
  12182. # Provide some information about the compiler.
  12183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12184. set X $ac_compile
  12185. ac_compiler=$2
  12186. for ac_option in --version -v -V -qversion; do
  12187. { { ac_try="$ac_compiler $ac_option >&5"
  12188. case "(($ac_try" in
  12189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12190. *) ac_try_echo=$ac_try;;
  12191. esac
  12192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12193. printf "%s\n" "$ac_try_echo"; } >&5
  12194. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12195. ac_status=$?
  12196. if test -s conftest.err; then
  12197. sed '10a\
  12198. ... rest of stderr output deleted ...
  12199. 10q' conftest.err >conftest.er1
  12200. cat conftest.er1 >&5
  12201. fi
  12202. rm -f conftest.er1 conftest.err
  12203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12204. test $ac_status = 0; }
  12205. done
  12206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12207. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12208. if test ${ac_cv_cxx_compiler_gnu+y}
  12209. then :
  12210. printf %s "(cached) " >&6
  12211. else $as_nop
  12212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12213. /* end confdefs.h. */
  12214. int
  12215. main (void)
  12216. {
  12217. #ifndef __GNUC__
  12218. choke me
  12219. #endif
  12220. ;
  12221. return 0;
  12222. }
  12223. _ACEOF
  12224. if ac_fn_cxx_try_compile "$LINENO"
  12225. then :
  12226. ac_compiler_gnu=yes
  12227. else $as_nop
  12228. ac_compiler_gnu=no
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12231. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12232. fi
  12233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12234. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12236. if test $ac_compiler_gnu = yes; then
  12237. GXX=yes
  12238. else
  12239. GXX=
  12240. fi
  12241. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12242. ac_save_CXXFLAGS=$CXXFLAGS
  12243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12244. printf %s "checking whether $CXX accepts -g... " >&6; }
  12245. if test ${ac_cv_prog_cxx_g+y}
  12246. then :
  12247. printf %s "(cached) " >&6
  12248. else $as_nop
  12249. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12250. ac_cxx_werror_flag=yes
  12251. ac_cv_prog_cxx_g=no
  12252. CXXFLAGS="-g"
  12253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12254. /* end confdefs.h. */
  12255. int
  12256. main (void)
  12257. {
  12258. ;
  12259. return 0;
  12260. }
  12261. _ACEOF
  12262. if ac_fn_cxx_try_compile "$LINENO"
  12263. then :
  12264. ac_cv_prog_cxx_g=yes
  12265. else $as_nop
  12266. CXXFLAGS=""
  12267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12268. /* end confdefs.h. */
  12269. int
  12270. main (void)
  12271. {
  12272. ;
  12273. return 0;
  12274. }
  12275. _ACEOF
  12276. if ac_fn_cxx_try_compile "$LINENO"
  12277. then :
  12278. else $as_nop
  12279. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12280. CXXFLAGS="-g"
  12281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12282. /* end confdefs.h. */
  12283. int
  12284. main (void)
  12285. {
  12286. ;
  12287. return 0;
  12288. }
  12289. _ACEOF
  12290. if ac_fn_cxx_try_compile "$LINENO"
  12291. then :
  12292. ac_cv_prog_cxx_g=yes
  12293. fi
  12294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12297. fi
  12298. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12299. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12300. fi
  12301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12302. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12303. if test $ac_test_CXXFLAGS; then
  12304. CXXFLAGS=$ac_save_CXXFLAGS
  12305. elif test $ac_cv_prog_cxx_g = yes; then
  12306. if test "$GXX" = yes; then
  12307. CXXFLAGS="-g -O2"
  12308. else
  12309. CXXFLAGS="-g"
  12310. fi
  12311. else
  12312. if test "$GXX" = yes; then
  12313. CXXFLAGS="-O2"
  12314. else
  12315. CXXFLAGS=
  12316. fi
  12317. fi
  12318. ac_prog_cxx_stdcxx=no
  12319. if test x$ac_prog_cxx_stdcxx = xno
  12320. then :
  12321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12322. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12323. if test ${ac_cv_prog_cxx_11+y}
  12324. then :
  12325. printf %s "(cached) " >&6
  12326. else $as_nop
  12327. ac_cv_prog_cxx_11=no
  12328. ac_save_CXX=$CXX
  12329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12330. /* end confdefs.h. */
  12331. $ac_cxx_conftest_cxx11_program
  12332. _ACEOF
  12333. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12334. do
  12335. CXX="$ac_save_CXX $ac_arg"
  12336. if ac_fn_cxx_try_compile "$LINENO"
  12337. then :
  12338. ac_cv_prog_cxx_cxx11=$ac_arg
  12339. fi
  12340. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12341. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12342. done
  12343. rm -f conftest.$ac_ext
  12344. CXX=$ac_save_CXX
  12345. fi
  12346. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12347. then :
  12348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12349. printf "%s\n" "unsupported" >&6; }
  12350. else $as_nop
  12351. if test "x$ac_cv_prog_cxx_cxx11" = x
  12352. then :
  12353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12354. printf "%s\n" "none needed" >&6; }
  12355. else $as_nop
  12356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12357. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12358. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12359. fi
  12360. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12361. ac_prog_cxx_stdcxx=cxx11
  12362. fi
  12363. fi
  12364. if test x$ac_prog_cxx_stdcxx = xno
  12365. then :
  12366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12367. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12368. if test ${ac_cv_prog_cxx_98+y}
  12369. then :
  12370. printf %s "(cached) " >&6
  12371. else $as_nop
  12372. ac_cv_prog_cxx_98=no
  12373. ac_save_CXX=$CXX
  12374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12375. /* end confdefs.h. */
  12376. $ac_cxx_conftest_cxx98_program
  12377. _ACEOF
  12378. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12379. do
  12380. CXX="$ac_save_CXX $ac_arg"
  12381. if ac_fn_cxx_try_compile "$LINENO"
  12382. then :
  12383. ac_cv_prog_cxx_cxx98=$ac_arg
  12384. fi
  12385. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12386. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12387. done
  12388. rm -f conftest.$ac_ext
  12389. CXX=$ac_save_CXX
  12390. fi
  12391. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12392. then :
  12393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12394. printf "%s\n" "unsupported" >&6; }
  12395. else $as_nop
  12396. if test "x$ac_cv_prog_cxx_cxx98" = x
  12397. then :
  12398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12399. printf "%s\n" "none needed" >&6; }
  12400. else $as_nop
  12401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12402. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12403. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12404. fi
  12405. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12406. ac_prog_cxx_stdcxx=cxx98
  12407. fi
  12408. fi
  12409. ac_ext=c
  12410. ac_cpp='$CPP $CPPFLAGS'
  12411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12414. func_stripname_cnf ()
  12415. {
  12416. case $2 in
  12417. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12418. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12419. esac
  12420. } # func_stripname_cnf
  12421. if test -n "$CXX" && ( test no != "$CXX" &&
  12422. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12423. (test g++ != "$CXX"))); then
  12424. ac_ext=cpp
  12425. ac_cpp='$CXXCPP $CPPFLAGS'
  12426. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12427. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12428. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12430. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12431. if test -z "$CXXCPP"; then
  12432. if test ${ac_cv_prog_CXXCPP+y}
  12433. then :
  12434. printf %s "(cached) " >&6
  12435. else $as_nop
  12436. # Double quotes because $CXX needs to be expanded
  12437. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12438. do
  12439. ac_preproc_ok=false
  12440. for ac_cxx_preproc_warn_flag in '' yes
  12441. do
  12442. # Use a header file that comes with gcc, so configuring glibc
  12443. # with a fresh cross-compiler works.
  12444. # On the NeXT, cc -E runs the code through the compiler's parser,
  12445. # not just through cpp. "Syntax error" is here to catch this case.
  12446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12447. /* end confdefs.h. */
  12448. #include <limits.h>
  12449. Syntax error
  12450. _ACEOF
  12451. if ac_fn_cxx_try_cpp "$LINENO"
  12452. then :
  12453. else $as_nop
  12454. # Broken: fails on valid input.
  12455. continue
  12456. fi
  12457. rm -f conftest.err conftest.i conftest.$ac_ext
  12458. # OK, works on sane cases. Now check whether nonexistent headers
  12459. # can be detected and how.
  12460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12461. /* end confdefs.h. */
  12462. #include <ac_nonexistent.h>
  12463. _ACEOF
  12464. if ac_fn_cxx_try_cpp "$LINENO"
  12465. then :
  12466. # Broken: success on invalid input.
  12467. continue
  12468. else $as_nop
  12469. # Passes both tests.
  12470. ac_preproc_ok=:
  12471. break
  12472. fi
  12473. rm -f conftest.err conftest.i conftest.$ac_ext
  12474. done
  12475. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12476. rm -f conftest.i conftest.err conftest.$ac_ext
  12477. if $ac_preproc_ok
  12478. then :
  12479. break
  12480. fi
  12481. done
  12482. ac_cv_prog_CXXCPP=$CXXCPP
  12483. fi
  12484. CXXCPP=$ac_cv_prog_CXXCPP
  12485. else
  12486. ac_cv_prog_CXXCPP=$CXXCPP
  12487. fi
  12488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12489. printf "%s\n" "$CXXCPP" >&6; }
  12490. ac_preproc_ok=false
  12491. for ac_cxx_preproc_warn_flag in '' yes
  12492. do
  12493. # Use a header file that comes with gcc, so configuring glibc
  12494. # with a fresh cross-compiler works.
  12495. # On the NeXT, cc -E runs the code through the compiler's parser,
  12496. # not just through cpp. "Syntax error" is here to catch this case.
  12497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12498. /* end confdefs.h. */
  12499. #include <limits.h>
  12500. Syntax error
  12501. _ACEOF
  12502. if ac_fn_cxx_try_cpp "$LINENO"
  12503. then :
  12504. else $as_nop
  12505. # Broken: fails on valid input.
  12506. continue
  12507. fi
  12508. rm -f conftest.err conftest.i conftest.$ac_ext
  12509. # OK, works on sane cases. Now check whether nonexistent headers
  12510. # can be detected and how.
  12511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12512. /* end confdefs.h. */
  12513. #include <ac_nonexistent.h>
  12514. _ACEOF
  12515. if ac_fn_cxx_try_cpp "$LINENO"
  12516. then :
  12517. # Broken: success on invalid input.
  12518. continue
  12519. else $as_nop
  12520. # Passes both tests.
  12521. ac_preproc_ok=:
  12522. break
  12523. fi
  12524. rm -f conftest.err conftest.i conftest.$ac_ext
  12525. done
  12526. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12527. rm -f conftest.i conftest.err conftest.$ac_ext
  12528. if $ac_preproc_ok
  12529. then :
  12530. else $as_nop
  12531. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12532. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12533. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12534. See \`config.log' for more details" "$LINENO" 5; }
  12535. fi
  12536. ac_ext=c
  12537. ac_cpp='$CPP $CPPFLAGS'
  12538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12541. else
  12542. _lt_caught_CXX_error=yes
  12543. fi
  12544. ac_ext=cpp
  12545. ac_cpp='$CXXCPP $CPPFLAGS'
  12546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12549. archive_cmds_need_lc_CXX=no
  12550. allow_undefined_flag_CXX=
  12551. always_export_symbols_CXX=no
  12552. archive_expsym_cmds_CXX=
  12553. compiler_needs_object_CXX=no
  12554. export_dynamic_flag_spec_CXX=
  12555. hardcode_direct_CXX=no
  12556. hardcode_direct_absolute_CXX=no
  12557. hardcode_libdir_flag_spec_CXX=
  12558. hardcode_libdir_separator_CXX=
  12559. hardcode_minus_L_CXX=no
  12560. hardcode_shlibpath_var_CXX=unsupported
  12561. hardcode_automatic_CXX=no
  12562. inherit_rpath_CXX=no
  12563. module_cmds_CXX=
  12564. module_expsym_cmds_CXX=
  12565. link_all_deplibs_CXX=unknown
  12566. old_archive_cmds_CXX=$old_archive_cmds
  12567. reload_flag_CXX=$reload_flag
  12568. reload_cmds_CXX=$reload_cmds
  12569. no_undefined_flag_CXX=
  12570. whole_archive_flag_spec_CXX=
  12571. enable_shared_with_static_runtimes_CXX=no
  12572. # Source file extension for C++ test sources.
  12573. ac_ext=cpp
  12574. # Object file extension for compiled C++ test sources.
  12575. objext=o
  12576. objext_CXX=$objext
  12577. # No sense in running all these tests if we already determined that
  12578. # the CXX compiler isn't working. Some variables (like enable_shared)
  12579. # are currently assumed to apply to all compilers on this platform,
  12580. # and will be corrupted by setting them based on a non-working compiler.
  12581. if test yes != "$_lt_caught_CXX_error"; then
  12582. # Code to be used in simple compile tests
  12583. lt_simple_compile_test_code="int some_variable = 0;"
  12584. # Code to be used in simple link tests
  12585. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12586. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12587. # If no C compiler was specified, use CC.
  12588. LTCC=${LTCC-"$CC"}
  12589. # If no C compiler flags were specified, use CFLAGS.
  12590. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12591. # Allow CC to be a program name with arguments.
  12592. compiler=$CC
  12593. # save warnings/boilerplate of simple test code
  12594. ac_outfile=conftest.$ac_objext
  12595. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12596. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12597. _lt_compiler_boilerplate=`cat conftest.err`
  12598. $RM conftest*
  12599. ac_outfile=conftest.$ac_objext
  12600. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12601. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12602. _lt_linker_boilerplate=`cat conftest.err`
  12603. $RM -r conftest*
  12604. # Allow CC to be a program name with arguments.
  12605. lt_save_CC=$CC
  12606. lt_save_CFLAGS=$CFLAGS
  12607. lt_save_LD=$LD
  12608. lt_save_GCC=$GCC
  12609. GCC=$GXX
  12610. lt_save_with_gnu_ld=$with_gnu_ld
  12611. lt_save_path_LD=$lt_cv_path_LD
  12612. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12613. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12614. else
  12615. $as_unset lt_cv_prog_gnu_ld
  12616. fi
  12617. if test -n "${lt_cv_path_LDCXX+set}"; then
  12618. lt_cv_path_LD=$lt_cv_path_LDCXX
  12619. else
  12620. $as_unset lt_cv_path_LD
  12621. fi
  12622. test -z "${LDCXX+set}" || LD=$LDCXX
  12623. CC=${CXX-"c++"}
  12624. CFLAGS=$CXXFLAGS
  12625. compiler=$CC
  12626. compiler_CXX=$CC
  12627. func_cc_basename $compiler
  12628. cc_basename=$func_cc_basename_result
  12629. if test -n "$compiler"; then
  12630. # We don't want -fno-exception when compiling C++ code, so set the
  12631. # no_builtin_flag separately
  12632. if test yes = "$GXX"; then
  12633. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12634. else
  12635. lt_prog_compiler_no_builtin_flag_CXX=
  12636. fi
  12637. if test yes = "$GXX"; then
  12638. # Set up default GNU C++ configuration
  12639. # Check whether --with-gnu-ld was given.
  12640. if test ${with_gnu_ld+y}
  12641. then :
  12642. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12643. else $as_nop
  12644. with_gnu_ld=no
  12645. fi
  12646. ac_prog=ld
  12647. if test yes = "$GCC"; then
  12648. # Check if gcc -print-prog-name=ld gives a path.
  12649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12650. printf %s "checking for ld used by $CC... " >&6; }
  12651. case $host in
  12652. *-*-mingw*)
  12653. # gcc leaves a trailing carriage return, which upsets mingw
  12654. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12655. *)
  12656. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12657. esac
  12658. case $ac_prog in
  12659. # Accept absolute paths.
  12660. [\\/]* | ?:[\\/]*)
  12661. re_direlt='/[^/][^/]*/\.\./'
  12662. # Canonicalize the pathname of ld
  12663. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12664. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12665. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12666. done
  12667. test -z "$LD" && LD=$ac_prog
  12668. ;;
  12669. "")
  12670. # If it fails, then pretend we aren't using GCC.
  12671. ac_prog=ld
  12672. ;;
  12673. *)
  12674. # If it is relative, then search for the first ld in PATH.
  12675. with_gnu_ld=unknown
  12676. ;;
  12677. esac
  12678. elif test yes = "$with_gnu_ld"; then
  12679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12680. printf %s "checking for GNU ld... " >&6; }
  12681. else
  12682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12683. printf %s "checking for non-GNU ld... " >&6; }
  12684. fi
  12685. if test ${lt_cv_path_LD+y}
  12686. then :
  12687. printf %s "(cached) " >&6
  12688. else $as_nop
  12689. if test -z "$LD"; then
  12690. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12691. for ac_dir in $PATH; do
  12692. IFS=$lt_save_ifs
  12693. test -z "$ac_dir" && ac_dir=.
  12694. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12695. lt_cv_path_LD=$ac_dir/$ac_prog
  12696. # Check to see if the program is GNU ld. I'd rather use --version,
  12697. # but apparently some variants of GNU ld only accept -v.
  12698. # Break only if it was the GNU/non-GNU ld that we prefer.
  12699. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12700. *GNU* | *'with BFD'*)
  12701. test no != "$with_gnu_ld" && break
  12702. ;;
  12703. *)
  12704. test yes != "$with_gnu_ld" && break
  12705. ;;
  12706. esac
  12707. fi
  12708. done
  12709. IFS=$lt_save_ifs
  12710. else
  12711. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12712. fi
  12713. fi
  12714. LD=$lt_cv_path_LD
  12715. if test -n "$LD"; then
  12716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12717. printf "%s\n" "$LD" >&6; }
  12718. else
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12720. printf "%s\n" "no" >&6; }
  12721. fi
  12722. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12724. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12725. if test ${lt_cv_prog_gnu_ld+y}
  12726. then :
  12727. printf %s "(cached) " >&6
  12728. else $as_nop
  12729. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12730. case `$LD -v 2>&1 </dev/null` in
  12731. *GNU* | *'with BFD'*)
  12732. lt_cv_prog_gnu_ld=yes
  12733. ;;
  12734. *)
  12735. lt_cv_prog_gnu_ld=no
  12736. ;;
  12737. esac
  12738. fi
  12739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12740. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12741. with_gnu_ld=$lt_cv_prog_gnu_ld
  12742. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12743. # archiving commands below assume that GNU ld is being used.
  12744. if test yes = "$with_gnu_ld"; then
  12745. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12746. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12747. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12748. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12749. # If archive_cmds runs LD, not CC, wlarc should be empty
  12750. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12751. # investigate it a little bit more. (MM)
  12752. wlarc='$wl'
  12753. # ancient GNU ld didn't support --whole-archive et. al.
  12754. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12755. $GREP 'no-whole-archive' > /dev/null; then
  12756. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12757. else
  12758. whole_archive_flag_spec_CXX=
  12759. fi
  12760. else
  12761. with_gnu_ld=no
  12762. wlarc=
  12763. # A generic and very simple default shared library creation
  12764. # command for GNU C++ for the case where it uses the native
  12765. # linker, instead of GNU ld. If possible, this setting should
  12766. # overridden to take advantage of the native linker features on
  12767. # the platform it is being used on.
  12768. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12769. fi
  12770. # Commands to make compiler produce verbose output that lists
  12771. # what "hidden" libraries, object files and flags are used when
  12772. # linking a shared library.
  12773. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12774. else
  12775. GXX=no
  12776. with_gnu_ld=no
  12777. wlarc=
  12778. fi
  12779. # PORTME: fill in a description of your system's C++ link characteristics
  12780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12781. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12782. ld_shlibs_CXX=yes
  12783. case $host_os in
  12784. aix3*)
  12785. # FIXME: insert proper C++ library support
  12786. ld_shlibs_CXX=no
  12787. ;;
  12788. aix[4-9]*)
  12789. if test ia64 = "$host_cpu"; then
  12790. # On IA64, the linker does run time linking by default, so we don't
  12791. # have to do anything special.
  12792. aix_use_runtimelinking=no
  12793. exp_sym_flag='-Bexport'
  12794. no_entry_flag=
  12795. else
  12796. aix_use_runtimelinking=no
  12797. # Test if we are trying to use run time linking or normal
  12798. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12799. # have runtime linking enabled, and use it for executables.
  12800. # For shared libraries, we enable/disable runtime linking
  12801. # depending on the kind of the shared library created -
  12802. # when "with_aix_soname,aix_use_runtimelinking" is:
  12803. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12804. # "aix,yes" lib.so shared, rtl:yes, for executables
  12805. # lib.a static archive
  12806. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12807. # lib.a(lib.so.V) shared, rtl:no, for executables
  12808. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12809. # lib.a(lib.so.V) shared, rtl:no
  12810. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12811. # lib.a static archive
  12812. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12813. for ld_flag in $LDFLAGS; do
  12814. case $ld_flag in
  12815. *-brtl*)
  12816. aix_use_runtimelinking=yes
  12817. break
  12818. ;;
  12819. esac
  12820. done
  12821. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12822. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12823. # so we don't have lib.a shared libs to link our executables.
  12824. # We have to force runtime linking in this case.
  12825. aix_use_runtimelinking=yes
  12826. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12827. fi
  12828. ;;
  12829. esac
  12830. exp_sym_flag='-bexport'
  12831. no_entry_flag='-bnoentry'
  12832. fi
  12833. # When large executables or shared objects are built, AIX ld can
  12834. # have problems creating the table of contents. If linking a library
  12835. # or program results in "error TOC overflow" add -mminimal-toc to
  12836. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12837. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12838. archive_cmds_CXX=''
  12839. hardcode_direct_CXX=yes
  12840. hardcode_direct_absolute_CXX=yes
  12841. hardcode_libdir_separator_CXX=':'
  12842. link_all_deplibs_CXX=yes
  12843. file_list_spec_CXX='$wl-f,'
  12844. case $with_aix_soname,$aix_use_runtimelinking in
  12845. aix,*) ;; # no import file
  12846. svr4,* | *,yes) # use import file
  12847. # The Import File defines what to hardcode.
  12848. hardcode_direct_CXX=no
  12849. hardcode_direct_absolute_CXX=no
  12850. ;;
  12851. esac
  12852. if test yes = "$GXX"; then
  12853. case $host_os in aix4.[012]|aix4.[012].*)
  12854. # We only want to do this on AIX 4.2 and lower, the check
  12855. # below for broken collect2 doesn't work under 4.3+
  12856. collect2name=`$CC -print-prog-name=collect2`
  12857. if test -f "$collect2name" &&
  12858. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12859. then
  12860. # We have reworked collect2
  12861. :
  12862. else
  12863. # We have old collect2
  12864. hardcode_direct_CXX=unsupported
  12865. # It fails to find uninstalled libraries when the uninstalled
  12866. # path is not listed in the libpath. Setting hardcode_minus_L
  12867. # to unsupported forces relinking
  12868. hardcode_minus_L_CXX=yes
  12869. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12870. hardcode_libdir_separator_CXX=
  12871. fi
  12872. esac
  12873. shared_flag='-shared'
  12874. if test yes = "$aix_use_runtimelinking"; then
  12875. shared_flag=$shared_flag' $wl-G'
  12876. fi
  12877. # Need to ensure runtime linking is disabled for the traditional
  12878. # shared library, or the linker may eventually find shared libraries
  12879. # /with/ Import File - we do not want to mix them.
  12880. shared_flag_aix='-shared'
  12881. shared_flag_svr4='-shared $wl-G'
  12882. else
  12883. # not using gcc
  12884. if test ia64 = "$host_cpu"; then
  12885. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12886. # chokes on -Wl,-G. The following line is correct:
  12887. shared_flag='-G'
  12888. else
  12889. if test yes = "$aix_use_runtimelinking"; then
  12890. shared_flag='$wl-G'
  12891. else
  12892. shared_flag='$wl-bM:SRE'
  12893. fi
  12894. shared_flag_aix='$wl-bM:SRE'
  12895. shared_flag_svr4='$wl-G'
  12896. fi
  12897. fi
  12898. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12899. # It seems that -bexpall does not export symbols beginning with
  12900. # underscore (_), so it is better to generate a list of symbols to
  12901. # export.
  12902. always_export_symbols_CXX=yes
  12903. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12904. # Warning - without using the other runtime loading flags (-brtl),
  12905. # -berok will link without error, but may produce a broken library.
  12906. # The "-G" linker flag allows undefined symbols.
  12907. no_undefined_flag_CXX='-bernotok'
  12908. # Determine the default libpath from the value encoded in an empty
  12909. # executable.
  12910. if test set = "${lt_cv_aix_libpath+set}"; then
  12911. aix_libpath=$lt_cv_aix_libpath
  12912. else
  12913. if test ${lt_cv_aix_libpath__CXX+y}
  12914. then :
  12915. printf %s "(cached) " >&6
  12916. else $as_nop
  12917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12918. /* end confdefs.h. */
  12919. int
  12920. main (void)
  12921. {
  12922. ;
  12923. return 0;
  12924. }
  12925. _ACEOF
  12926. if ac_fn_cxx_try_link "$LINENO"
  12927. then :
  12928. lt_aix_libpath_sed='
  12929. /Import File Strings/,/^$/ {
  12930. /^0/ {
  12931. s/^0 *\([^ ]*\) *$/\1/
  12932. p
  12933. }
  12934. }'
  12935. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12936. # Check for a 64-bit object if we didn't find anything.
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. fi
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12945. fi
  12946. fi
  12947. aix_libpath=$lt_cv_aix_libpath__CXX
  12948. fi
  12949. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12950. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12951. else
  12952. if test ia64 = "$host_cpu"; then
  12953. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12954. allow_undefined_flag_CXX="-z nodefs"
  12955. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  12956. else
  12957. # Determine the default libpath from the value encoded in an
  12958. # empty executable.
  12959. if test set = "${lt_cv_aix_libpath+set}"; then
  12960. aix_libpath=$lt_cv_aix_libpath
  12961. else
  12962. if test ${lt_cv_aix_libpath__CXX+y}
  12963. then :
  12964. printf %s "(cached) " >&6
  12965. else $as_nop
  12966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12967. /* end confdefs.h. */
  12968. int
  12969. main (void)
  12970. {
  12971. ;
  12972. return 0;
  12973. }
  12974. _ACEOF
  12975. if ac_fn_cxx_try_link "$LINENO"
  12976. then :
  12977. lt_aix_libpath_sed='
  12978. /Import File Strings/,/^$/ {
  12979. /^0/ {
  12980. s/^0 *\([^ ]*\) *$/\1/
  12981. p
  12982. }
  12983. }'
  12984. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12985. # Check for a 64-bit object if we didn't find anything.
  12986. if test -z "$lt_cv_aix_libpath__CXX"; then
  12987. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12988. fi
  12989. fi
  12990. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12991. conftest$ac_exeext conftest.$ac_ext
  12992. if test -z "$lt_cv_aix_libpath__CXX"; then
  12993. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12994. fi
  12995. fi
  12996. aix_libpath=$lt_cv_aix_libpath__CXX
  12997. fi
  12998. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12999. # Warning - without using the other run time loading flags,
  13000. # -berok will link without error, but may produce a broken library.
  13001. no_undefined_flag_CXX=' $wl-bernotok'
  13002. allow_undefined_flag_CXX=' $wl-berok'
  13003. if test yes = "$with_gnu_ld"; then
  13004. # We only use this code for GNU lds that support --whole-archive.
  13005. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13006. else
  13007. # Exported symbols can be pulled into shared objects from archives
  13008. whole_archive_flag_spec_CXX='$convenience'
  13009. fi
  13010. archive_cmds_need_lc_CXX=yes
  13011. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13012. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13013. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13014. if test svr4 != "$with_aix_soname"; then
  13015. # This is similar to how AIX traditionally builds its shared
  13016. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13017. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  13018. fi
  13019. if test aix != "$with_aix_soname"; then
  13020. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  13021. else
  13022. # used by -dlpreopen to get the symbols
  13023. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13024. fi
  13025. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13026. fi
  13027. fi
  13028. ;;
  13029. beos*)
  13030. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13031. allow_undefined_flag_CXX=unsupported
  13032. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13033. # support --undefined. This deserves some investigation. FIXME
  13034. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13035. else
  13036. ld_shlibs_CXX=no
  13037. fi
  13038. ;;
  13039. chorus*)
  13040. case $cc_basename in
  13041. *)
  13042. # FIXME: insert proper C++ library support
  13043. ld_shlibs_CXX=no
  13044. ;;
  13045. esac
  13046. ;;
  13047. cygwin* | mingw* | pw32* | cegcc*)
  13048. case $GXX,$cc_basename in
  13049. ,cl* | no,cl*)
  13050. # Native MSVC
  13051. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13052. # no search path for DLLs.
  13053. hardcode_libdir_flag_spec_CXX=' '
  13054. allow_undefined_flag_CXX=unsupported
  13055. always_export_symbols_CXX=yes
  13056. file_list_spec_CXX='@'
  13057. # Tell ltmain to make .lib files, not .a files.
  13058. libext=lib
  13059. # Tell ltmain to make .dll files, not .so files.
  13060. shrext_cmds=.dll
  13061. # FIXME: Setting linknames here is a bad hack.
  13062. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13063. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13064. cp "$export_symbols" "$output_objdir/$soname.def";
  13065. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13066. else
  13067. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13068. fi~
  13069. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13070. linknames='
  13071. # The linker will not automatically build a static lib if we build a DLL.
  13072. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13073. enable_shared_with_static_runtimes_CXX=yes
  13074. # Don't use ranlib
  13075. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13076. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13077. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13078. case $lt_outputfile in
  13079. *.exe|*.EXE) ;;
  13080. *)
  13081. lt_outputfile=$lt_outputfile.exe
  13082. lt_tool_outputfile=$lt_tool_outputfile.exe
  13083. ;;
  13084. esac~
  13085. func_to_tool_file "$lt_outputfile"~
  13086. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13087. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13088. $RM "$lt_outputfile.manifest";
  13089. fi'
  13090. ;;
  13091. *)
  13092. # g++
  13093. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13094. # as there is no search path for DLLs.
  13095. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13096. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13097. allow_undefined_flag_CXX=unsupported
  13098. always_export_symbols_CXX=no
  13099. enable_shared_with_static_runtimes_CXX=yes
  13100. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13101. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13102. # If the export-symbols file already is a .def file, use it as
  13103. # is; otherwise, prepend EXPORTS...
  13104. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13105. cp $export_symbols $output_objdir/$soname.def;
  13106. else
  13107. echo EXPORTS > $output_objdir/$soname.def;
  13108. cat $export_symbols >> $output_objdir/$soname.def;
  13109. fi~
  13110. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13111. else
  13112. ld_shlibs_CXX=no
  13113. fi
  13114. ;;
  13115. esac
  13116. ;;
  13117. darwin* | rhapsody*)
  13118. archive_cmds_need_lc_CXX=no
  13119. hardcode_direct_CXX=no
  13120. hardcode_automatic_CXX=yes
  13121. hardcode_shlibpath_var_CXX=unsupported
  13122. if test yes = "$lt_cv_ld_force_load"; then
  13123. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13124. else
  13125. whole_archive_flag_spec_CXX=''
  13126. fi
  13127. link_all_deplibs_CXX=yes
  13128. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13129. case $cc_basename in
  13130. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13131. *) _lt_dar_can_shared=$GCC ;;
  13132. esac
  13133. if test yes = "$_lt_dar_can_shared"; then
  13134. output_verbose_link_cmd=func_echo_all
  13135. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13136. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13137. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13138. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  13139. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13140. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13141. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13142. fi
  13143. else
  13144. ld_shlibs_CXX=no
  13145. fi
  13146. ;;
  13147. os2*)
  13148. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13149. hardcode_minus_L_CXX=yes
  13150. allow_undefined_flag_CXX=unsupported
  13151. shrext_cmds=.dll
  13152. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13153. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13154. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13155. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13156. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13157. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13158. emximp -o $lib $output_objdir/$libname.def'
  13159. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13160. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13161. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13162. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13163. prefix_cmds="$SED"~
  13164. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13165. prefix_cmds="$prefix_cmds -e 1d";
  13166. fi~
  13167. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13168. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13169. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13170. emximp -o $lib $output_objdir/$libname.def'
  13171. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13172. enable_shared_with_static_runtimes_CXX=yes
  13173. file_list_spec_CXX='@'
  13174. ;;
  13175. dgux*)
  13176. case $cc_basename in
  13177. ec++*)
  13178. # FIXME: insert proper C++ library support
  13179. ld_shlibs_CXX=no
  13180. ;;
  13181. ghcx*)
  13182. # Green Hills C++ Compiler
  13183. # FIXME: insert proper C++ library support
  13184. ld_shlibs_CXX=no
  13185. ;;
  13186. *)
  13187. # FIXME: insert proper C++ library support
  13188. ld_shlibs_CXX=no
  13189. ;;
  13190. esac
  13191. ;;
  13192. freebsd2.*)
  13193. # C++ shared libraries reported to be fairly broken before
  13194. # switch to ELF
  13195. ld_shlibs_CXX=no
  13196. ;;
  13197. freebsd-elf*)
  13198. archive_cmds_need_lc_CXX=no
  13199. ;;
  13200. freebsd* | dragonfly* | midnightbsd*)
  13201. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13202. # conventions
  13203. ld_shlibs_CXX=yes
  13204. ;;
  13205. haiku*)
  13206. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13207. link_all_deplibs_CXX=yes
  13208. ;;
  13209. hpux9*)
  13210. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13211. hardcode_libdir_separator_CXX=:
  13212. export_dynamic_flag_spec_CXX='$wl-E'
  13213. hardcode_direct_CXX=yes
  13214. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13215. # but as the default
  13216. # location of the library.
  13217. case $cc_basename in
  13218. CC*)
  13219. # FIXME: insert proper C++ library support
  13220. ld_shlibs_CXX=no
  13221. ;;
  13222. aCC*)
  13223. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13224. # Commands to make compiler produce verbose output that lists
  13225. # what "hidden" libraries, object files and flags are used when
  13226. # linking a shared library.
  13227. #
  13228. # There doesn't appear to be a way to prevent this compiler from
  13229. # explicitly linking system object files so we need to strip them
  13230. # from the output so that they don't get included in the library
  13231. # dependencies.
  13232. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13233. ;;
  13234. *)
  13235. if test yes = "$GXX"; then
  13236. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13237. else
  13238. # FIXME: insert proper C++ library support
  13239. ld_shlibs_CXX=no
  13240. fi
  13241. ;;
  13242. esac
  13243. ;;
  13244. hpux10*|hpux11*)
  13245. if test no = "$with_gnu_ld"; then
  13246. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13247. hardcode_libdir_separator_CXX=:
  13248. case $host_cpu in
  13249. hppa*64*|ia64*)
  13250. ;;
  13251. *)
  13252. export_dynamic_flag_spec_CXX='$wl-E'
  13253. ;;
  13254. esac
  13255. fi
  13256. case $host_cpu in
  13257. hppa*64*|ia64*)
  13258. hardcode_direct_CXX=no
  13259. hardcode_shlibpath_var_CXX=no
  13260. ;;
  13261. *)
  13262. hardcode_direct_CXX=yes
  13263. hardcode_direct_absolute_CXX=yes
  13264. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13265. # but as the default
  13266. # location of the library.
  13267. ;;
  13268. esac
  13269. case $cc_basename in
  13270. CC*)
  13271. # FIXME: insert proper C++ library support
  13272. ld_shlibs_CXX=no
  13273. ;;
  13274. aCC*)
  13275. case $host_cpu in
  13276. hppa*64*)
  13277. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13278. ;;
  13279. ia64*)
  13280. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13281. ;;
  13282. *)
  13283. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13284. ;;
  13285. esac
  13286. # Commands to make compiler produce verbose output that lists
  13287. # what "hidden" libraries, object files and flags are used when
  13288. # linking a shared library.
  13289. #
  13290. # There doesn't appear to be a way to prevent this compiler from
  13291. # explicitly linking system object files so we need to strip them
  13292. # from the output so that they don't get included in the library
  13293. # dependencies.
  13294. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13295. ;;
  13296. *)
  13297. if test yes = "$GXX"; then
  13298. if test no = "$with_gnu_ld"; then
  13299. case $host_cpu in
  13300. hppa*64*)
  13301. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13302. ;;
  13303. ia64*)
  13304. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13305. ;;
  13306. *)
  13307. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13308. ;;
  13309. esac
  13310. fi
  13311. else
  13312. # FIXME: insert proper C++ library support
  13313. ld_shlibs_CXX=no
  13314. fi
  13315. ;;
  13316. esac
  13317. ;;
  13318. interix[3-9]*)
  13319. hardcode_direct_CXX=no
  13320. hardcode_shlibpath_var_CXX=no
  13321. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13322. export_dynamic_flag_spec_CXX='$wl-E'
  13323. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13324. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13325. # default) and relocated if they conflict, which is a slow very memory
  13326. # consuming and fragmenting process. To avoid this, we pick a random,
  13327. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13328. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13329. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13330. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13331. ;;
  13332. irix5* | irix6*)
  13333. case $cc_basename in
  13334. CC*)
  13335. # SGI C++
  13336. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13337. # Archives containing C++ object files must be created using
  13338. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13339. # necessary to make sure instantiated templates are included
  13340. # in the archive.
  13341. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13342. ;;
  13343. *)
  13344. if test yes = "$GXX"; then
  13345. if test no = "$with_gnu_ld"; then
  13346. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13347. else
  13348. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13349. fi
  13350. fi
  13351. link_all_deplibs_CXX=yes
  13352. ;;
  13353. esac
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13355. hardcode_libdir_separator_CXX=:
  13356. inherit_rpath_CXX=yes
  13357. ;;
  13358. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13359. case $cc_basename in
  13360. KCC*)
  13361. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13362. # KCC will only create a shared library if the output file
  13363. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13364. # to its proper name (with version) after linking.
  13365. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13366. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13367. # Commands to make compiler produce verbose output that lists
  13368. # what "hidden" libraries, object files and flags are used when
  13369. # linking a shared library.
  13370. #
  13371. # There doesn't appear to be a way to prevent this compiler from
  13372. # explicitly linking system object files so we need to strip them
  13373. # from the output so that they don't get included in the library
  13374. # dependencies.
  13375. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13376. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13377. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13378. # Archives containing C++ object files must be created using
  13379. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13380. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13381. ;;
  13382. icpc* | ecpc* )
  13383. # Intel C++
  13384. with_gnu_ld=yes
  13385. # version 8.0 and above of icpc choke on multiply defined symbols
  13386. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13387. # earlier do not add the objects themselves.
  13388. case `$CC -V 2>&1` in
  13389. *"Version 7."*)
  13390. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13391. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13392. ;;
  13393. *) # Version 8.0 or newer
  13394. tmp_idyn=
  13395. case $host_cpu in
  13396. ia64*) tmp_idyn=' -i_dynamic';;
  13397. esac
  13398. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13399. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13400. ;;
  13401. esac
  13402. archive_cmds_need_lc_CXX=no
  13403. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13404. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13405. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13406. ;;
  13407. pgCC* | pgcpp*)
  13408. # Portland Group C++ compiler
  13409. case `$CC -V` in
  13410. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13411. prelink_cmds_CXX='tpldir=Template.dir~
  13412. rm -rf $tpldir~
  13413. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13414. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13415. old_archive_cmds_CXX='tpldir=Template.dir~
  13416. rm -rf $tpldir~
  13417. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13418. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13419. $RANLIB $oldlib'
  13420. archive_cmds_CXX='tpldir=Template.dir~
  13421. rm -rf $tpldir~
  13422. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13423. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13424. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13425. rm -rf $tpldir~
  13426. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13427. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13428. ;;
  13429. *) # Version 6 and above use weak symbols
  13430. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13431. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13432. ;;
  13433. esac
  13434. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13435. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13436. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13437. ;;
  13438. cxx*)
  13439. # Compaq C++
  13440. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13441. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13442. runpath_var=LD_RUN_PATH
  13443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13444. hardcode_libdir_separator_CXX=:
  13445. # Commands to make compiler produce verbose output that lists
  13446. # what "hidden" libraries, object files and flags are used when
  13447. # linking a shared library.
  13448. #
  13449. # There doesn't appear to be a way to prevent this compiler from
  13450. # explicitly linking system object files so we need to strip them
  13451. # from the output so that they don't get included in the library
  13452. # dependencies.
  13453. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13454. ;;
  13455. xl* | mpixl* | bgxl*)
  13456. # IBM XL 8.0 on PPC, with GNU ld
  13457. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13458. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13459. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13460. if test yes = "$supports_anon_versioning"; then
  13461. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13462. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13463. echo "local: *; };" >> $output_objdir/$libname.ver~
  13464. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13465. fi
  13466. ;;
  13467. *)
  13468. case `$CC -V 2>&1 | sed 5q` in
  13469. *Sun\ C*)
  13470. # Sun C++ 5.9
  13471. no_undefined_flag_CXX=' -zdefs'
  13472. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13473. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13474. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13475. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13476. compiler_needs_object_CXX=yes
  13477. # Not sure whether something based on
  13478. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13479. # would be better.
  13480. output_verbose_link_cmd='func_echo_all'
  13481. # Archives containing C++ object files must be created using
  13482. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13483. # necessary to make sure instantiated templates are included
  13484. # in the archive.
  13485. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13486. ;;
  13487. esac
  13488. ;;
  13489. esac
  13490. ;;
  13491. lynxos*)
  13492. # FIXME: insert proper C++ library support
  13493. ld_shlibs_CXX=no
  13494. ;;
  13495. m88k*)
  13496. # FIXME: insert proper C++ library support
  13497. ld_shlibs_CXX=no
  13498. ;;
  13499. mvs*)
  13500. case $cc_basename in
  13501. cxx*)
  13502. # FIXME: insert proper C++ library support
  13503. ld_shlibs_CXX=no
  13504. ;;
  13505. *)
  13506. # FIXME: insert proper C++ library support
  13507. ld_shlibs_CXX=no
  13508. ;;
  13509. esac
  13510. ;;
  13511. netbsd*)
  13512. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13513. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13514. wlarc=
  13515. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13516. hardcode_direct_CXX=yes
  13517. hardcode_shlibpath_var_CXX=no
  13518. fi
  13519. # Workaround some broken pre-1.5 toolchains
  13520. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13521. ;;
  13522. *nto* | *qnx*)
  13523. ld_shlibs_CXX=yes
  13524. ;;
  13525. openbsd* | bitrig*)
  13526. if test -f /usr/libexec/ld.so; then
  13527. hardcode_direct_CXX=yes
  13528. hardcode_shlibpath_var_CXX=no
  13529. hardcode_direct_absolute_CXX=yes
  13530. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13531. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13532. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13533. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13534. export_dynamic_flag_spec_CXX='$wl-E'
  13535. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13536. fi
  13537. output_verbose_link_cmd=func_echo_all
  13538. else
  13539. ld_shlibs_CXX=no
  13540. fi
  13541. ;;
  13542. osf3* | osf4* | osf5*)
  13543. case $cc_basename in
  13544. KCC*)
  13545. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13546. # KCC will only create a shared library if the output file
  13547. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13548. # to its proper name (with version) after linking.
  13549. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13550. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13551. hardcode_libdir_separator_CXX=:
  13552. # Archives containing C++ object files must be created using
  13553. # the KAI C++ compiler.
  13554. case $host in
  13555. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13556. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13557. esac
  13558. ;;
  13559. RCC*)
  13560. # Rational C++ 2.4.1
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. ;;
  13564. cxx*)
  13565. case $host in
  13566. osf3*)
  13567. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13568. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13569. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13570. ;;
  13571. *)
  13572. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13573. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13574. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13575. echo "-hidden">> $lib.exp~
  13576. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13577. $RM $lib.exp'
  13578. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13579. ;;
  13580. esac
  13581. hardcode_libdir_separator_CXX=:
  13582. # Commands to make compiler produce verbose output that lists
  13583. # what "hidden" libraries, object files and flags are used when
  13584. # linking a shared library.
  13585. #
  13586. # There doesn't appear to be a way to prevent this compiler from
  13587. # explicitly linking system object files so we need to strip them
  13588. # from the output so that they don't get included in the library
  13589. # dependencies.
  13590. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13591. ;;
  13592. *)
  13593. if test yes,no = "$GXX,$with_gnu_ld"; then
  13594. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13595. case $host in
  13596. osf3*)
  13597. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13598. ;;
  13599. *)
  13600. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13601. ;;
  13602. esac
  13603. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13604. hardcode_libdir_separator_CXX=:
  13605. # Commands to make compiler produce verbose output that lists
  13606. # what "hidden" libraries, object files and flags are used when
  13607. # linking a shared library.
  13608. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13609. else
  13610. # FIXME: insert proper C++ library support
  13611. ld_shlibs_CXX=no
  13612. fi
  13613. ;;
  13614. esac
  13615. ;;
  13616. psos*)
  13617. # FIXME: insert proper C++ library support
  13618. ld_shlibs_CXX=no
  13619. ;;
  13620. sunos4*)
  13621. case $cc_basename in
  13622. CC*)
  13623. # Sun C++ 4.x
  13624. # FIXME: insert proper C++ library support
  13625. ld_shlibs_CXX=no
  13626. ;;
  13627. lcc*)
  13628. # Lucid
  13629. # FIXME: insert proper C++ library support
  13630. ld_shlibs_CXX=no
  13631. ;;
  13632. *)
  13633. # FIXME: insert proper C++ library support
  13634. ld_shlibs_CXX=no
  13635. ;;
  13636. esac
  13637. ;;
  13638. solaris*)
  13639. case $cc_basename in
  13640. CC* | sunCC*)
  13641. # Sun C++ 4.2, 5.x and Centerline C++
  13642. archive_cmds_need_lc_CXX=yes
  13643. no_undefined_flag_CXX=' -zdefs'
  13644. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13645. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13646. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13647. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13648. hardcode_shlibpath_var_CXX=no
  13649. case $host_os in
  13650. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13651. *)
  13652. # The compiler driver will combine and reorder linker options,
  13653. # but understands '-z linker_flag'.
  13654. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13655. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13656. ;;
  13657. esac
  13658. link_all_deplibs_CXX=yes
  13659. output_verbose_link_cmd='func_echo_all'
  13660. # Archives containing C++ object files must be created using
  13661. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13662. # necessary to make sure instantiated templates are included
  13663. # in the archive.
  13664. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13665. ;;
  13666. gcx*)
  13667. # Green Hills C++ Compiler
  13668. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13669. # The C++ compiler must be used to create the archive.
  13670. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13671. ;;
  13672. *)
  13673. # GNU C++ compiler with Solaris linker
  13674. if test yes,no = "$GXX,$with_gnu_ld"; then
  13675. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13676. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13677. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13678. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13679. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13680. # Commands to make compiler produce verbose output that lists
  13681. # what "hidden" libraries, object files and flags are used when
  13682. # linking a shared library.
  13683. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13684. else
  13685. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13686. # platform.
  13687. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13688. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13689. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13690. # Commands to make compiler produce verbose output that lists
  13691. # what "hidden" libraries, object files and flags are used when
  13692. # linking a shared library.
  13693. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13694. fi
  13695. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13696. case $host_os in
  13697. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13698. *)
  13699. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13700. ;;
  13701. esac
  13702. fi
  13703. ;;
  13704. esac
  13705. ;;
  13706. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13707. no_undefined_flag_CXX='$wl-z,text'
  13708. archive_cmds_need_lc_CXX=no
  13709. hardcode_shlibpath_var_CXX=no
  13710. runpath_var='LD_RUN_PATH'
  13711. case $cc_basename in
  13712. CC*)
  13713. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13714. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13715. ;;
  13716. *)
  13717. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13718. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13719. ;;
  13720. esac
  13721. ;;
  13722. sysv5* | sco3.2v5* | sco5v6*)
  13723. # Note: We CANNOT use -z defs as we might desire, because we do not
  13724. # link with -lc, and that would cause any symbols used from libc to
  13725. # always be unresolved, which means just about no library would
  13726. # ever link correctly. If we're not using GNU ld we use -z text
  13727. # though, which does catch some bad symbols but isn't as heavy-handed
  13728. # as -z defs.
  13729. no_undefined_flag_CXX='$wl-z,text'
  13730. allow_undefined_flag_CXX='$wl-z,nodefs'
  13731. archive_cmds_need_lc_CXX=no
  13732. hardcode_shlibpath_var_CXX=no
  13733. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13734. hardcode_libdir_separator_CXX=':'
  13735. link_all_deplibs_CXX=yes
  13736. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13737. runpath_var='LD_RUN_PATH'
  13738. case $cc_basename in
  13739. CC*)
  13740. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13741. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13742. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13743. '"$old_archive_cmds_CXX"
  13744. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13745. '"$reload_cmds_CXX"
  13746. ;;
  13747. *)
  13748. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13749. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13750. ;;
  13751. esac
  13752. ;;
  13753. tandem*)
  13754. case $cc_basename in
  13755. NCC*)
  13756. # NonStop-UX NCC 3.20
  13757. # FIXME: insert proper C++ library support
  13758. ld_shlibs_CXX=no
  13759. ;;
  13760. *)
  13761. # FIXME: insert proper C++ library support
  13762. ld_shlibs_CXX=no
  13763. ;;
  13764. esac
  13765. ;;
  13766. vxworks*)
  13767. # FIXME: insert proper C++ library support
  13768. ld_shlibs_CXX=no
  13769. ;;
  13770. *)
  13771. # FIXME: insert proper C++ library support
  13772. ld_shlibs_CXX=no
  13773. ;;
  13774. esac
  13775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13776. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13777. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13778. GCC_CXX=$GXX
  13779. LD_CXX=$LD
  13780. ## CAVEAT EMPTOR:
  13781. ## There is no encapsulation within the following macros, do not change
  13782. ## the running order or otherwise move them around unless you know exactly
  13783. ## what you are doing...
  13784. # Dependencies to place before and after the object being linked:
  13785. predep_objects_CXX=
  13786. postdep_objects_CXX=
  13787. predeps_CXX=
  13788. postdeps_CXX=
  13789. compiler_lib_search_path_CXX=
  13790. cat > conftest.$ac_ext <<_LT_EOF
  13791. class Foo
  13792. {
  13793. public:
  13794. Foo (void) { a = 0; }
  13795. private:
  13796. int a;
  13797. };
  13798. _LT_EOF
  13799. _lt_libdeps_save_CFLAGS=$CFLAGS
  13800. case "$CC $CFLAGS " in #(
  13801. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13802. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13803. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13804. esac
  13805. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13806. (eval $ac_compile) 2>&5
  13807. ac_status=$?
  13808. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13809. test $ac_status = 0; }; then
  13810. # Parse the compiler output and extract the necessary
  13811. # objects, libraries and library flags.
  13812. # Sentinel used to keep track of whether or not we are before
  13813. # the conftest object file.
  13814. pre_test_object_deps_done=no
  13815. for p in `eval "$output_verbose_link_cmd"`; do
  13816. case $prev$p in
  13817. -L* | -R* | -l*)
  13818. # Some compilers place space between "-{L,R}" and the path.
  13819. # Remove the space.
  13820. if test x-L = "x$p" ||
  13821. test x-R = "x$p" ||
  13822. test x-l = "x$p"; then
  13823. prev=$p
  13824. continue
  13825. fi
  13826. # Expand the sysroot to ease extracting the directories later.
  13827. if test -z "$prev"; then
  13828. case $p in
  13829. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13830. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13831. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13832. esac
  13833. fi
  13834. case $p in
  13835. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13836. esac
  13837. if test no = "$pre_test_object_deps_done"; then
  13838. case $prev in
  13839. -L | -R)
  13840. # Internal compiler library paths should come after those
  13841. # provided the user. The postdeps already come after the
  13842. # user supplied libs so there is no need to process them.
  13843. if test -z "$compiler_lib_search_path_CXX"; then
  13844. compiler_lib_search_path_CXX=$prev$p
  13845. else
  13846. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13847. fi
  13848. ;;
  13849. # The "-l" case would never come before the object being
  13850. # linked, so don't bother handling this case.
  13851. esac
  13852. else
  13853. if test -z "$postdeps_CXX"; then
  13854. postdeps_CXX=$prev$p
  13855. else
  13856. postdeps_CXX="${postdeps_CXX} $prev$p"
  13857. fi
  13858. fi
  13859. prev=
  13860. ;;
  13861. *.lto.$objext) ;; # Ignore GCC LTO objects
  13862. *.$objext)
  13863. # This assumes that the test object file only shows up
  13864. # once in the compiler output.
  13865. if test "$p" = "conftest.$objext"; then
  13866. pre_test_object_deps_done=yes
  13867. continue
  13868. fi
  13869. if test no = "$pre_test_object_deps_done"; then
  13870. if test -z "$predep_objects_CXX"; then
  13871. predep_objects_CXX=$p
  13872. else
  13873. predep_objects_CXX="$predep_objects_CXX $p"
  13874. fi
  13875. else
  13876. if test -z "$postdep_objects_CXX"; then
  13877. postdep_objects_CXX=$p
  13878. else
  13879. postdep_objects_CXX="$postdep_objects_CXX $p"
  13880. fi
  13881. fi
  13882. ;;
  13883. *) ;; # Ignore the rest.
  13884. esac
  13885. done
  13886. # Clean up.
  13887. rm -f a.out a.exe
  13888. else
  13889. echo "libtool.m4: error: problem compiling CXX test program"
  13890. fi
  13891. $RM -f confest.$objext
  13892. CFLAGS=$_lt_libdeps_save_CFLAGS
  13893. # PORTME: override above test on systems where it is broken
  13894. case $host_os in
  13895. interix[3-9]*)
  13896. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13897. # hack all around it, let's just trust "g++" to DTRT.
  13898. predep_objects_CXX=
  13899. postdep_objects_CXX=
  13900. postdeps_CXX=
  13901. ;;
  13902. esac
  13903. case " $postdeps_CXX " in
  13904. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13905. esac
  13906. compiler_lib_search_dirs_CXX=
  13907. if test -n "${compiler_lib_search_path_CXX}"; then
  13908. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13909. fi
  13910. lt_prog_compiler_wl_CXX=
  13911. lt_prog_compiler_pic_CXX=
  13912. lt_prog_compiler_static_CXX=
  13913. # C++ specific cases for pic, static, wl, etc.
  13914. if test yes = "$GXX"; then
  13915. lt_prog_compiler_wl_CXX='-Wl,'
  13916. lt_prog_compiler_static_CXX='-static'
  13917. case $host_os in
  13918. aix*)
  13919. # All AIX code is PIC.
  13920. if test ia64 = "$host_cpu"; then
  13921. # AIX 5 now supports IA64 processor
  13922. lt_prog_compiler_static_CXX='-Bstatic'
  13923. fi
  13924. lt_prog_compiler_pic_CXX='-fPIC'
  13925. ;;
  13926. amigaos*)
  13927. case $host_cpu in
  13928. powerpc)
  13929. # see comment about AmigaOS4 .so support
  13930. lt_prog_compiler_pic_CXX='-fPIC'
  13931. ;;
  13932. m68k)
  13933. # FIXME: we need at least 68020 code to build shared libraries, but
  13934. # adding the '-m68020' flag to GCC prevents building anything better,
  13935. # like '-m68040'.
  13936. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13937. ;;
  13938. esac
  13939. ;;
  13940. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13941. # PIC is the default for these OSes.
  13942. ;;
  13943. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13944. # This hack is so that the source file can tell whether it is being
  13945. # built for inclusion in a dll (and should export symbols for example).
  13946. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13947. # (--disable-auto-import) libraries
  13948. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13949. case $host_os in
  13950. os2*)
  13951. lt_prog_compiler_static_CXX='$wl-static'
  13952. ;;
  13953. esac
  13954. ;;
  13955. darwin* | rhapsody*)
  13956. # PIC is the default on this platform
  13957. # Common symbols not allowed in MH_DYLIB files
  13958. lt_prog_compiler_pic_CXX='-fno-common'
  13959. ;;
  13960. *djgpp*)
  13961. # DJGPP does not support shared libraries at all
  13962. lt_prog_compiler_pic_CXX=
  13963. ;;
  13964. haiku*)
  13965. # PIC is the default for Haiku.
  13966. # The "-static" flag exists, but is broken.
  13967. lt_prog_compiler_static_CXX=
  13968. ;;
  13969. interix[3-9]*)
  13970. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13971. # Instead, we relocate shared libraries at runtime.
  13972. ;;
  13973. sysv4*MP*)
  13974. if test -d /usr/nec; then
  13975. lt_prog_compiler_pic_CXX=-Kconform_pic
  13976. fi
  13977. ;;
  13978. hpux*)
  13979. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13980. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13981. # sets the default TLS model and affects inlining.
  13982. case $host_cpu in
  13983. hppa*64*)
  13984. ;;
  13985. *)
  13986. lt_prog_compiler_pic_CXX='-fPIC'
  13987. ;;
  13988. esac
  13989. ;;
  13990. *qnx* | *nto*)
  13991. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13992. # it will coredump.
  13993. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13994. ;;
  13995. *)
  13996. lt_prog_compiler_pic_CXX='-fPIC'
  13997. ;;
  13998. esac
  13999. else
  14000. case $host_os in
  14001. aix[4-9]*)
  14002. # All AIX code is PIC.
  14003. if test ia64 = "$host_cpu"; then
  14004. # AIX 5 now supports IA64 processor
  14005. lt_prog_compiler_static_CXX='-Bstatic'
  14006. else
  14007. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14008. fi
  14009. ;;
  14010. chorus*)
  14011. case $cc_basename in
  14012. cxch68*)
  14013. # Green Hills C++ Compiler
  14014. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14015. ;;
  14016. esac
  14017. ;;
  14018. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14019. # This hack is so that the source file can tell whether it is being
  14020. # built for inclusion in a dll (and should export symbols for example).
  14021. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14022. ;;
  14023. dgux*)
  14024. case $cc_basename in
  14025. ec++*)
  14026. lt_prog_compiler_pic_CXX='-KPIC'
  14027. ;;
  14028. ghcx*)
  14029. # Green Hills C++ Compiler
  14030. lt_prog_compiler_pic_CXX='-pic'
  14031. ;;
  14032. *)
  14033. ;;
  14034. esac
  14035. ;;
  14036. freebsd* | dragonfly* | midnightbsd*)
  14037. # FreeBSD uses GNU C++
  14038. ;;
  14039. hpux9* | hpux10* | hpux11*)
  14040. case $cc_basename in
  14041. CC*)
  14042. lt_prog_compiler_wl_CXX='-Wl,'
  14043. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14044. if test ia64 != "$host_cpu"; then
  14045. lt_prog_compiler_pic_CXX='+Z'
  14046. fi
  14047. ;;
  14048. aCC*)
  14049. lt_prog_compiler_wl_CXX='-Wl,'
  14050. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14051. case $host_cpu in
  14052. hppa*64*|ia64*)
  14053. # +Z the default
  14054. ;;
  14055. *)
  14056. lt_prog_compiler_pic_CXX='+Z'
  14057. ;;
  14058. esac
  14059. ;;
  14060. *)
  14061. ;;
  14062. esac
  14063. ;;
  14064. interix*)
  14065. # This is c89, which is MS Visual C++ (no shared libs)
  14066. # Anyone wants to do a port?
  14067. ;;
  14068. irix5* | irix6* | nonstopux*)
  14069. case $cc_basename in
  14070. CC*)
  14071. lt_prog_compiler_wl_CXX='-Wl,'
  14072. lt_prog_compiler_static_CXX='-non_shared'
  14073. # CC pic flag -KPIC is the default.
  14074. ;;
  14075. *)
  14076. ;;
  14077. esac
  14078. ;;
  14079. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14080. case $cc_basename in
  14081. KCC*)
  14082. # KAI C++ Compiler
  14083. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14084. lt_prog_compiler_pic_CXX='-fPIC'
  14085. ;;
  14086. ecpc* )
  14087. # old Intel C++ for x86_64, which still supported -KPIC.
  14088. lt_prog_compiler_wl_CXX='-Wl,'
  14089. lt_prog_compiler_pic_CXX='-KPIC'
  14090. lt_prog_compiler_static_CXX='-static'
  14091. ;;
  14092. icpc* )
  14093. # Intel C++, used to be incompatible with GCC.
  14094. # ICC 10 doesn't accept -KPIC any more.
  14095. lt_prog_compiler_wl_CXX='-Wl,'
  14096. lt_prog_compiler_pic_CXX='-fPIC'
  14097. lt_prog_compiler_static_CXX='-static'
  14098. ;;
  14099. pgCC* | pgcpp*)
  14100. # Portland Group C++ compiler
  14101. lt_prog_compiler_wl_CXX='-Wl,'
  14102. lt_prog_compiler_pic_CXX='-fpic'
  14103. lt_prog_compiler_static_CXX='-Bstatic'
  14104. ;;
  14105. cxx*)
  14106. # Compaq C++
  14107. # Make sure the PIC flag is empty. It appears that all Alpha
  14108. # Linux and Compaq Tru64 Unix objects are PIC.
  14109. lt_prog_compiler_pic_CXX=
  14110. lt_prog_compiler_static_CXX='-non_shared'
  14111. ;;
  14112. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14113. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14114. lt_prog_compiler_wl_CXX='-Wl,'
  14115. lt_prog_compiler_pic_CXX='-qpic'
  14116. lt_prog_compiler_static_CXX='-qstaticlink'
  14117. ;;
  14118. *)
  14119. case `$CC -V 2>&1 | sed 5q` in
  14120. *Sun\ C*)
  14121. # Sun C++ 5.9
  14122. lt_prog_compiler_pic_CXX='-KPIC'
  14123. lt_prog_compiler_static_CXX='-Bstatic'
  14124. lt_prog_compiler_wl_CXX='-Qoption ld '
  14125. ;;
  14126. esac
  14127. ;;
  14128. esac
  14129. ;;
  14130. lynxos*)
  14131. ;;
  14132. m88k*)
  14133. ;;
  14134. mvs*)
  14135. case $cc_basename in
  14136. cxx*)
  14137. lt_prog_compiler_pic_CXX='-W c,exportall'
  14138. ;;
  14139. *)
  14140. ;;
  14141. esac
  14142. ;;
  14143. netbsd*)
  14144. ;;
  14145. *qnx* | *nto*)
  14146. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14147. # it will coredump.
  14148. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14149. ;;
  14150. osf3* | osf4* | osf5*)
  14151. case $cc_basename in
  14152. KCC*)
  14153. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14154. ;;
  14155. RCC*)
  14156. # Rational C++ 2.4.1
  14157. lt_prog_compiler_pic_CXX='-pic'
  14158. ;;
  14159. cxx*)
  14160. # Digital/Compaq C++
  14161. lt_prog_compiler_wl_CXX='-Wl,'
  14162. # Make sure the PIC flag is empty. It appears that all Alpha
  14163. # Linux and Compaq Tru64 Unix objects are PIC.
  14164. lt_prog_compiler_pic_CXX=
  14165. lt_prog_compiler_static_CXX='-non_shared'
  14166. ;;
  14167. *)
  14168. ;;
  14169. esac
  14170. ;;
  14171. psos*)
  14172. ;;
  14173. solaris*)
  14174. case $cc_basename in
  14175. CC* | sunCC*)
  14176. # Sun C++ 4.2, 5.x and Centerline C++
  14177. lt_prog_compiler_pic_CXX='-KPIC'
  14178. lt_prog_compiler_static_CXX='-Bstatic'
  14179. lt_prog_compiler_wl_CXX='-Qoption ld '
  14180. ;;
  14181. gcx*)
  14182. # Green Hills C++ Compiler
  14183. lt_prog_compiler_pic_CXX='-PIC'
  14184. ;;
  14185. *)
  14186. ;;
  14187. esac
  14188. ;;
  14189. sunos4*)
  14190. case $cc_basename in
  14191. CC*)
  14192. # Sun C++ 4.x
  14193. lt_prog_compiler_pic_CXX='-pic'
  14194. lt_prog_compiler_static_CXX='-Bstatic'
  14195. ;;
  14196. lcc*)
  14197. # Lucid
  14198. lt_prog_compiler_pic_CXX='-pic'
  14199. ;;
  14200. *)
  14201. ;;
  14202. esac
  14203. ;;
  14204. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14205. case $cc_basename in
  14206. CC*)
  14207. lt_prog_compiler_wl_CXX='-Wl,'
  14208. lt_prog_compiler_pic_CXX='-KPIC'
  14209. lt_prog_compiler_static_CXX='-Bstatic'
  14210. ;;
  14211. esac
  14212. ;;
  14213. tandem*)
  14214. case $cc_basename in
  14215. NCC*)
  14216. # NonStop-UX NCC 3.20
  14217. lt_prog_compiler_pic_CXX='-KPIC'
  14218. ;;
  14219. *)
  14220. ;;
  14221. esac
  14222. ;;
  14223. vxworks*)
  14224. ;;
  14225. *)
  14226. lt_prog_compiler_can_build_shared_CXX=no
  14227. ;;
  14228. esac
  14229. fi
  14230. case $host_os in
  14231. # For platforms that do not support PIC, -DPIC is meaningless:
  14232. *djgpp*)
  14233. lt_prog_compiler_pic_CXX=
  14234. ;;
  14235. *)
  14236. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14237. ;;
  14238. esac
  14239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14240. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14241. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14242. then :
  14243. printf %s "(cached) " >&6
  14244. else $as_nop
  14245. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14246. fi
  14247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14248. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14249. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14250. #
  14251. # Check to make sure the PIC flag actually works.
  14252. #
  14253. if test -n "$lt_prog_compiler_pic_CXX"; then
  14254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14255. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14256. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14257. then :
  14258. printf %s "(cached) " >&6
  14259. else $as_nop
  14260. lt_cv_prog_compiler_pic_works_CXX=no
  14261. ac_outfile=conftest.$ac_objext
  14262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14263. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14264. # Insert the option either (1) after the last *FLAGS variable, or
  14265. # (2) before a word containing "conftest.", or (3) at the end.
  14266. # Note that $ac_compile itself does not contain backslashes and begins
  14267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14268. # The option is referenced via a variable to avoid confusing sed.
  14269. lt_compile=`echo "$ac_compile" | $SED \
  14270. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14271. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14272. -e 's:$: $lt_compiler_flag:'`
  14273. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14274. (eval "$lt_compile" 2>conftest.err)
  14275. ac_status=$?
  14276. cat conftest.err >&5
  14277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14278. if (exit $ac_status) && test -s "$ac_outfile"; then
  14279. # The compiler can only warn and ignore the option if not recognized
  14280. # So say no if there are warnings other than the usual output.
  14281. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14283. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14284. lt_cv_prog_compiler_pic_works_CXX=yes
  14285. fi
  14286. fi
  14287. $RM conftest*
  14288. fi
  14289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14290. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14291. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14292. case $lt_prog_compiler_pic_CXX in
  14293. "" | " "*) ;;
  14294. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14295. esac
  14296. else
  14297. lt_prog_compiler_pic_CXX=
  14298. lt_prog_compiler_can_build_shared_CXX=no
  14299. fi
  14300. fi
  14301. #
  14302. # Check to make sure the static flag actually works.
  14303. #
  14304. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14306. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14307. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14308. then :
  14309. printf %s "(cached) " >&6
  14310. else $as_nop
  14311. lt_cv_prog_compiler_static_works_CXX=no
  14312. save_LDFLAGS=$LDFLAGS
  14313. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14314. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14315. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14316. # The linker can only warn and ignore the option if not recognized
  14317. # So say no if there are warnings
  14318. if test -s conftest.err; then
  14319. # Append any errors to the config.log.
  14320. cat conftest.err 1>&5
  14321. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14322. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14323. if diff conftest.exp conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_static_works_CXX=yes
  14325. fi
  14326. else
  14327. lt_cv_prog_compiler_static_works_CXX=yes
  14328. fi
  14329. fi
  14330. $RM -r conftest*
  14331. LDFLAGS=$save_LDFLAGS
  14332. fi
  14333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14334. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14335. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14336. :
  14337. else
  14338. lt_prog_compiler_static_CXX=
  14339. fi
  14340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14341. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14342. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14343. then :
  14344. printf %s "(cached) " >&6
  14345. else $as_nop
  14346. lt_cv_prog_compiler_c_o_CXX=no
  14347. $RM -r conftest 2>/dev/null
  14348. mkdir conftest
  14349. cd conftest
  14350. mkdir out
  14351. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14352. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14353. # Insert the option either (1) after the last *FLAGS variable, or
  14354. # (2) before a word containing "conftest.", or (3) at the end.
  14355. # Note that $ac_compile itself does not contain backslashes and begins
  14356. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14357. lt_compile=`echo "$ac_compile" | $SED \
  14358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14360. -e 's:$: $lt_compiler_flag:'`
  14361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14362. (eval "$lt_compile" 2>out/conftest.err)
  14363. ac_status=$?
  14364. cat out/conftest.err >&5
  14365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14366. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14367. then
  14368. # The compiler can only warn and ignore the option if not recognized
  14369. # So say no if there are warnings
  14370. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14371. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14372. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14373. lt_cv_prog_compiler_c_o_CXX=yes
  14374. fi
  14375. fi
  14376. chmod u+w . 2>&5
  14377. $RM conftest*
  14378. # SGI C++ compiler will create directory out/ii_files/ for
  14379. # template instantiation
  14380. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14381. $RM out/* && rmdir out
  14382. cd ..
  14383. $RM -r conftest
  14384. $RM conftest*
  14385. fi
  14386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14387. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14389. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14390. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14391. then :
  14392. printf %s "(cached) " >&6
  14393. else $as_nop
  14394. lt_cv_prog_compiler_c_o_CXX=no
  14395. $RM -r conftest 2>/dev/null
  14396. mkdir conftest
  14397. cd conftest
  14398. mkdir out
  14399. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14400. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14401. # Insert the option either (1) after the last *FLAGS variable, or
  14402. # (2) before a word containing "conftest.", or (3) at the end.
  14403. # Note that $ac_compile itself does not contain backslashes and begins
  14404. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14405. lt_compile=`echo "$ac_compile" | $SED \
  14406. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14407. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14408. -e 's:$: $lt_compiler_flag:'`
  14409. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14410. (eval "$lt_compile" 2>out/conftest.err)
  14411. ac_status=$?
  14412. cat out/conftest.err >&5
  14413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14414. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14415. then
  14416. # The compiler can only warn and ignore the option if not recognized
  14417. # So say no if there are warnings
  14418. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14419. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14420. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14421. lt_cv_prog_compiler_c_o_CXX=yes
  14422. fi
  14423. fi
  14424. chmod u+w . 2>&5
  14425. $RM conftest*
  14426. # SGI C++ compiler will create directory out/ii_files/ for
  14427. # template instantiation
  14428. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14429. $RM out/* && rmdir out
  14430. cd ..
  14431. $RM -r conftest
  14432. $RM conftest*
  14433. fi
  14434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14435. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14436. hard_links=nottested
  14437. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14438. # do not overwrite the value of need_locks provided by the user
  14439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14440. printf %s "checking if we can lock with hard links... " >&6; }
  14441. hard_links=yes
  14442. $RM conftest*
  14443. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14444. touch conftest.a
  14445. ln conftest.a conftest.b 2>&5 || hard_links=no
  14446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14448. printf "%s\n" "$hard_links" >&6; }
  14449. if test no = "$hard_links"; then
  14450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14451. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14452. need_locks=warn
  14453. fi
  14454. else
  14455. need_locks=no
  14456. fi
  14457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14458. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14459. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14460. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14461. case $host_os in
  14462. aix[4-9]*)
  14463. # If we're using GNU nm, then we don't want the "-C" option.
  14464. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14465. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14466. # weak defined symbols like other global defined symbols, whereas
  14467. # GNU nm marks them as "W".
  14468. # While the 'weak' keyword is ignored in the Export File, we need
  14469. # it in the Import File for the 'aix-soname' feature, so we have
  14470. # to replace the "-B" option with "-P" for AIX nm.
  14471. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14472. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14473. else
  14474. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14475. fi
  14476. ;;
  14477. pw32*)
  14478. export_symbols_cmds_CXX=$ltdll_cmds
  14479. ;;
  14480. cygwin* | mingw* | cegcc*)
  14481. case $cc_basename in
  14482. cl*)
  14483. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14484. ;;
  14485. *)
  14486. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14487. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14488. ;;
  14489. esac
  14490. ;;
  14491. *)
  14492. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14493. ;;
  14494. esac
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14496. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14497. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14498. with_gnu_ld_CXX=$with_gnu_ld
  14499. #
  14500. # Do we need to explicitly link libc?
  14501. #
  14502. case "x$archive_cmds_need_lc_CXX" in
  14503. x|xyes)
  14504. # Assume -lc should be added
  14505. archive_cmds_need_lc_CXX=yes
  14506. if test yes,yes = "$GCC,$enable_shared"; then
  14507. case $archive_cmds_CXX in
  14508. *'~'*)
  14509. # FIXME: we may have to deal with multi-command sequences.
  14510. ;;
  14511. '$CC '*)
  14512. # Test whether the compiler implicitly links with -lc since on some
  14513. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14514. # to ld, don't add -lc before -lgcc.
  14515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14516. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14517. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14518. then :
  14519. printf %s "(cached) " >&6
  14520. else $as_nop
  14521. $RM conftest*
  14522. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14524. (eval $ac_compile) 2>&5
  14525. ac_status=$?
  14526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14527. test $ac_status = 0; } 2>conftest.err; then
  14528. soname=conftest
  14529. lib=conftest
  14530. libobjs=conftest.$ac_objext
  14531. deplibs=
  14532. wl=$lt_prog_compiler_wl_CXX
  14533. pic_flag=$lt_prog_compiler_pic_CXX
  14534. compiler_flags=-v
  14535. linker_flags=-v
  14536. verstring=
  14537. output_objdir=.
  14538. libname=conftest
  14539. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14540. allow_undefined_flag_CXX=
  14541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14542. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14543. ac_status=$?
  14544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14545. test $ac_status = 0; }
  14546. then
  14547. lt_cv_archive_cmds_need_lc_CXX=no
  14548. else
  14549. lt_cv_archive_cmds_need_lc_CXX=yes
  14550. fi
  14551. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14552. else
  14553. cat conftest.err 1>&5
  14554. fi
  14555. $RM conftest*
  14556. fi
  14557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14558. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14559. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14560. ;;
  14561. esac
  14562. fi
  14563. ;;
  14564. esac
  14565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14566. printf %s "checking dynamic linker characteristics... " >&6; }
  14567. library_names_spec=
  14568. libname_spec='lib$name'
  14569. soname_spec=
  14570. shrext_cmds=.so
  14571. postinstall_cmds=
  14572. postuninstall_cmds=
  14573. finish_cmds=
  14574. finish_eval=
  14575. shlibpath_var=
  14576. shlibpath_overrides_runpath=unknown
  14577. version_type=none
  14578. dynamic_linker="$host_os ld.so"
  14579. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14580. need_lib_prefix=unknown
  14581. hardcode_into_libs=no
  14582. # when you set need_version to no, make sure it does not cause -set_version
  14583. # flags to be left without arguments
  14584. need_version=unknown
  14585. case $host_os in
  14586. aix3*)
  14587. version_type=linux # correct to gnu/linux during the next big refactor
  14588. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14589. shlibpath_var=LIBPATH
  14590. # AIX 3 has no versioning support, so we append a major version to the name.
  14591. soname_spec='$libname$release$shared_ext$major'
  14592. ;;
  14593. aix[4-9]*)
  14594. version_type=linux # correct to gnu/linux during the next big refactor
  14595. need_lib_prefix=no
  14596. need_version=no
  14597. hardcode_into_libs=yes
  14598. if test ia64 = "$host_cpu"; then
  14599. # AIX 5 supports IA64
  14600. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14601. shlibpath_var=LD_LIBRARY_PATH
  14602. else
  14603. # With GCC up to 2.95.x, collect2 would create an import file
  14604. # for dependence libraries. The import file would start with
  14605. # the line '#! .'. This would cause the generated library to
  14606. # depend on '.', always an invalid library. This was fixed in
  14607. # development snapshots of GCC prior to 3.0.
  14608. case $host_os in
  14609. aix4 | aix4.[01] | aix4.[01].*)
  14610. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14611. echo ' yes '
  14612. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14613. :
  14614. else
  14615. can_build_shared=no
  14616. fi
  14617. ;;
  14618. esac
  14619. # Using Import Files as archive members, it is possible to support
  14620. # filename-based versioning of shared library archives on AIX. While
  14621. # this would work for both with and without runtime linking, it will
  14622. # prevent static linking of such archives. So we do filename-based
  14623. # shared library versioning with .so extension only, which is used
  14624. # when both runtime linking and shared linking is enabled.
  14625. # Unfortunately, runtime linking may impact performance, so we do
  14626. # not want this to be the default eventually. Also, we use the
  14627. # versioned .so libs for executables only if there is the -brtl
  14628. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14629. # To allow for filename-based versioning support, we need to create
  14630. # libNAME.so.V as an archive file, containing:
  14631. # *) an Import File, referring to the versioned filename of the
  14632. # archive as well as the shared archive member, telling the
  14633. # bitwidth (32 or 64) of that shared object, and providing the
  14634. # list of exported symbols of that shared object, eventually
  14635. # decorated with the 'weak' keyword
  14636. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14637. # it being seen by the linker.
  14638. # At run time we better use the real file rather than another symlink,
  14639. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14640. case $with_aix_soname,$aix_use_runtimelinking in
  14641. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14642. # soname into executable. Probably we can add versioning support to
  14643. # collect2, so additional links can be useful in future.
  14644. aix,yes) # traditional libtool
  14645. dynamic_linker='AIX unversionable lib.so'
  14646. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14647. # instead of lib<name>.a to let people know that these are not
  14648. # typical AIX shared libraries.
  14649. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14650. ;;
  14651. aix,no) # traditional AIX only
  14652. dynamic_linker='AIX lib.a(lib.so.V)'
  14653. # We preserve .a as extension for shared libraries through AIX4.2
  14654. # and later when we are not doing run time linking.
  14655. library_names_spec='$libname$release.a $libname.a'
  14656. soname_spec='$libname$release$shared_ext$major'
  14657. ;;
  14658. svr4,*) # full svr4 only
  14659. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14660. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14661. # We do not specify a path in Import Files, so LIBPATH fires.
  14662. shlibpath_overrides_runpath=yes
  14663. ;;
  14664. *,yes) # both, prefer svr4
  14665. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14666. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14667. # unpreferred sharedlib libNAME.a needs extra handling
  14668. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14669. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14670. # We do not specify a path in Import Files, so LIBPATH fires.
  14671. shlibpath_overrides_runpath=yes
  14672. ;;
  14673. *,no) # both, prefer aix
  14674. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14675. library_names_spec='$libname$release.a $libname.a'
  14676. soname_spec='$libname$release$shared_ext$major'
  14677. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14678. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14679. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14680. ;;
  14681. esac
  14682. shlibpath_var=LIBPATH
  14683. fi
  14684. ;;
  14685. amigaos*)
  14686. case $host_cpu in
  14687. powerpc)
  14688. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14689. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14690. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14691. ;;
  14692. m68k)
  14693. library_names_spec='$libname.ixlibrary $libname.a'
  14694. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14695. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14696. ;;
  14697. esac
  14698. ;;
  14699. beos*)
  14700. library_names_spec='$libname$shared_ext'
  14701. dynamic_linker="$host_os ld.so"
  14702. shlibpath_var=LIBRARY_PATH
  14703. ;;
  14704. bsdi[45]*)
  14705. version_type=linux # correct to gnu/linux during the next big refactor
  14706. need_version=no
  14707. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14708. soname_spec='$libname$release$shared_ext$major'
  14709. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14710. shlibpath_var=LD_LIBRARY_PATH
  14711. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14712. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14713. # the default ld.so.conf also contains /usr/contrib/lib and
  14714. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14715. # libtool to hard-code these into programs
  14716. ;;
  14717. cygwin* | mingw* | pw32* | cegcc*)
  14718. version_type=windows
  14719. shrext_cmds=.dll
  14720. need_version=no
  14721. need_lib_prefix=no
  14722. case $GCC,$cc_basename in
  14723. yes,*)
  14724. # gcc
  14725. library_names_spec='$libname.dll.a'
  14726. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14727. postinstall_cmds='base_file=`basename \$file`~
  14728. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14729. dldir=$destdir/`dirname \$dlpath`~
  14730. test -d \$dldir || mkdir -p \$dldir~
  14731. $install_prog $dir/$dlname \$dldir/$dlname~
  14732. chmod a+x \$dldir/$dlname~
  14733. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14734. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14735. fi'
  14736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14737. dlpath=$dir/\$dldll~
  14738. $RM \$dlpath'
  14739. shlibpath_overrides_runpath=yes
  14740. case $host_os in
  14741. cygwin*)
  14742. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14743. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14744. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14745. ;;
  14746. mingw* | cegcc*)
  14747. # MinGW DLLs use traditional 'lib' prefix
  14748. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14749. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14750. ;;
  14751. pw32*)
  14752. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14753. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14754. ;;
  14755. esac
  14756. dynamic_linker='Win32 ld.exe'
  14757. ;;
  14758. *,cl*)
  14759. # Native MSVC
  14760. libname_spec='$name'
  14761. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14762. library_names_spec='$libname.dll.lib'
  14763. case $build_os in
  14764. mingw*)
  14765. sys_lib_search_path_spec=
  14766. lt_save_ifs=$IFS
  14767. IFS=';'
  14768. for lt_path in $LIB
  14769. do
  14770. IFS=$lt_save_ifs
  14771. # Let DOS variable expansion print the short 8.3 style file name.
  14772. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14773. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14774. done
  14775. IFS=$lt_save_ifs
  14776. # Convert to MSYS style.
  14777. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14778. ;;
  14779. cygwin*)
  14780. # Convert to unix form, then to dos form, then back to unix form
  14781. # but this time dos style (no spaces!) so that the unix form looks
  14782. # like /cygdrive/c/PROGRA~1:/cygdr...
  14783. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14784. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14785. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14786. ;;
  14787. *)
  14788. sys_lib_search_path_spec=$LIB
  14789. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14790. # It is most probably a Windows format PATH.
  14791. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14792. else
  14793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14794. fi
  14795. # FIXME: find the short name or the path components, as spaces are
  14796. # common. (e.g. "Program Files" -> "PROGRA~1")
  14797. ;;
  14798. esac
  14799. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14800. postinstall_cmds='base_file=`basename \$file`~
  14801. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14802. dldir=$destdir/`dirname \$dlpath`~
  14803. test -d \$dldir || mkdir -p \$dldir~
  14804. $install_prog $dir/$dlname \$dldir/$dlname'
  14805. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14806. dlpath=$dir/\$dldll~
  14807. $RM \$dlpath'
  14808. shlibpath_overrides_runpath=yes
  14809. dynamic_linker='Win32 link.exe'
  14810. ;;
  14811. *)
  14812. # Assume MSVC wrapper
  14813. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14814. dynamic_linker='Win32 ld.exe'
  14815. ;;
  14816. esac
  14817. # FIXME: first we should search . and the directory the executable is in
  14818. shlibpath_var=PATH
  14819. ;;
  14820. darwin* | rhapsody*)
  14821. dynamic_linker="$host_os dyld"
  14822. version_type=darwin
  14823. need_lib_prefix=no
  14824. need_version=no
  14825. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14826. soname_spec='$libname$release$major$shared_ext'
  14827. shlibpath_overrides_runpath=yes
  14828. shlibpath_var=DYLD_LIBRARY_PATH
  14829. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14830. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14831. ;;
  14832. dgux*)
  14833. version_type=linux # correct to gnu/linux during the next big refactor
  14834. need_lib_prefix=no
  14835. need_version=no
  14836. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14837. soname_spec='$libname$release$shared_ext$major'
  14838. shlibpath_var=LD_LIBRARY_PATH
  14839. ;;
  14840. freebsd* | dragonfly* | midnightbsd*)
  14841. # DragonFly does not have aout. When/if they implement a new
  14842. # versioning mechanism, adjust this.
  14843. if test -x /usr/bin/objformat; then
  14844. objformat=`/usr/bin/objformat`
  14845. else
  14846. case $host_os in
  14847. freebsd[23].*) objformat=aout ;;
  14848. *) objformat=elf ;;
  14849. esac
  14850. fi
  14851. version_type=freebsd-$objformat
  14852. case $version_type in
  14853. freebsd-elf*)
  14854. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14855. soname_spec='$libname$release$shared_ext$major'
  14856. need_version=no
  14857. need_lib_prefix=no
  14858. ;;
  14859. freebsd-*)
  14860. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14861. need_version=yes
  14862. ;;
  14863. esac
  14864. shlibpath_var=LD_LIBRARY_PATH
  14865. case $host_os in
  14866. freebsd2.*)
  14867. shlibpath_overrides_runpath=yes
  14868. ;;
  14869. freebsd3.[01]* | freebsdelf3.[01]*)
  14870. shlibpath_overrides_runpath=yes
  14871. hardcode_into_libs=yes
  14872. ;;
  14873. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14874. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14875. shlibpath_overrides_runpath=no
  14876. hardcode_into_libs=yes
  14877. ;;
  14878. *) # from 4.6 on, and DragonFly
  14879. shlibpath_overrides_runpath=yes
  14880. hardcode_into_libs=yes
  14881. ;;
  14882. esac
  14883. ;;
  14884. haiku*)
  14885. version_type=linux # correct to gnu/linux during the next big refactor
  14886. need_lib_prefix=no
  14887. need_version=no
  14888. dynamic_linker="$host_os runtime_loader"
  14889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14890. soname_spec='$libname$release$shared_ext$major'
  14891. shlibpath_var=LIBRARY_PATH
  14892. shlibpath_overrides_runpath=no
  14893. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14894. hardcode_into_libs=yes
  14895. ;;
  14896. hpux9* | hpux10* | hpux11*)
  14897. # Give a soname corresponding to the major version so that dld.sl refuses to
  14898. # link against other versions.
  14899. version_type=sunos
  14900. need_lib_prefix=no
  14901. need_version=no
  14902. case $host_cpu in
  14903. ia64*)
  14904. shrext_cmds='.so'
  14905. hardcode_into_libs=yes
  14906. dynamic_linker="$host_os dld.so"
  14907. shlibpath_var=LD_LIBRARY_PATH
  14908. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14909. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14910. soname_spec='$libname$release$shared_ext$major'
  14911. if test 32 = "$HPUX_IA64_MODE"; then
  14912. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14913. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14914. else
  14915. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14916. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14917. fi
  14918. ;;
  14919. hppa*64*)
  14920. shrext_cmds='.sl'
  14921. hardcode_into_libs=yes
  14922. dynamic_linker="$host_os dld.sl"
  14923. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14924. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14925. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14926. soname_spec='$libname$release$shared_ext$major'
  14927. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14928. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14929. ;;
  14930. *)
  14931. shrext_cmds='.sl'
  14932. dynamic_linker="$host_os dld.sl"
  14933. shlibpath_var=SHLIB_PATH
  14934. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14935. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14936. soname_spec='$libname$release$shared_ext$major'
  14937. ;;
  14938. esac
  14939. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14940. postinstall_cmds='chmod 555 $lib'
  14941. # or fails outright, so override atomically:
  14942. install_override_mode=555
  14943. ;;
  14944. interix[3-9]*)
  14945. version_type=linux # correct to gnu/linux during the next big refactor
  14946. need_lib_prefix=no
  14947. need_version=no
  14948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14949. soname_spec='$libname$release$shared_ext$major'
  14950. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14951. shlibpath_var=LD_LIBRARY_PATH
  14952. shlibpath_overrides_runpath=no
  14953. hardcode_into_libs=yes
  14954. ;;
  14955. irix5* | irix6* | nonstopux*)
  14956. case $host_os in
  14957. nonstopux*) version_type=nonstopux ;;
  14958. *)
  14959. if test yes = "$lt_cv_prog_gnu_ld"; then
  14960. version_type=linux # correct to gnu/linux during the next big refactor
  14961. else
  14962. version_type=irix
  14963. fi ;;
  14964. esac
  14965. need_lib_prefix=no
  14966. need_version=no
  14967. soname_spec='$libname$release$shared_ext$major'
  14968. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14969. case $host_os in
  14970. irix5* | nonstopux*)
  14971. libsuff= shlibsuff=
  14972. ;;
  14973. *)
  14974. case $LD in # libtool.m4 will add one of these switches to LD
  14975. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14976. libsuff= shlibsuff= libmagic=32-bit;;
  14977. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14978. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14979. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14980. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14981. *) libsuff= shlibsuff= libmagic=never-match;;
  14982. esac
  14983. ;;
  14984. esac
  14985. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14986. shlibpath_overrides_runpath=no
  14987. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14988. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14989. hardcode_into_libs=yes
  14990. ;;
  14991. # No shared lib support for Linux oldld, aout, or coff.
  14992. linux*oldld* | linux*aout* | linux*coff*)
  14993. dynamic_linker=no
  14994. ;;
  14995. linux*android*)
  14996. version_type=none # Android doesn't support versioned libraries.
  14997. need_lib_prefix=no
  14998. need_version=no
  14999. library_names_spec='$libname$release$shared_ext'
  15000. soname_spec='$libname$release$shared_ext'
  15001. finish_cmds=
  15002. shlibpath_var=LD_LIBRARY_PATH
  15003. shlibpath_overrides_runpath=yes
  15004. # This implies no fast_install, which is unacceptable.
  15005. # Some rework will be needed to allow for fast_install
  15006. # before this can be enabled.
  15007. hardcode_into_libs=yes
  15008. dynamic_linker='Android linker'
  15009. # Don't embed -rpath directories since the linker doesn't support them.
  15010. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15011. ;;
  15012. # This must be glibc/ELF.
  15013. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15014. version_type=linux # correct to gnu/linux during the next big refactor
  15015. need_lib_prefix=no
  15016. need_version=no
  15017. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15018. soname_spec='$libname$release$shared_ext$major'
  15019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15020. shlibpath_var=LD_LIBRARY_PATH
  15021. shlibpath_overrides_runpath=no
  15022. # Some binutils ld are patched to set DT_RUNPATH
  15023. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15024. then :
  15025. printf %s "(cached) " >&6
  15026. else $as_nop
  15027. lt_cv_shlibpath_overrides_runpath=no
  15028. save_LDFLAGS=$LDFLAGS
  15029. save_libdir=$libdir
  15030. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15031. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15033. /* end confdefs.h. */
  15034. int
  15035. main (void)
  15036. {
  15037. ;
  15038. return 0;
  15039. }
  15040. _ACEOF
  15041. if ac_fn_cxx_try_link "$LINENO"
  15042. then :
  15043. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15044. then :
  15045. lt_cv_shlibpath_overrides_runpath=yes
  15046. fi
  15047. fi
  15048. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15049. conftest$ac_exeext conftest.$ac_ext
  15050. LDFLAGS=$save_LDFLAGS
  15051. libdir=$save_libdir
  15052. fi
  15053. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15054. # This implies no fast_install, which is unacceptable.
  15055. # Some rework will be needed to allow for fast_install
  15056. # before this can be enabled.
  15057. hardcode_into_libs=yes
  15058. # Add ABI-specific directories to the system library path.
  15059. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15060. # Ideally, we could use ldconfig to report *all* directores which are
  15061. # searched for libraries, however this is still not possible. Aside from not
  15062. # being certain /sbin/ldconfig is available, command
  15063. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15064. # even though it is searched at run-time. Try to do the best guess by
  15065. # appending ld.so.conf contents (and includes) to the search path.
  15066. if test -f /etc/ld.so.conf; then
  15067. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  15068. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15069. fi
  15070. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15071. # powerpc, because MkLinux only supported shared libraries with the
  15072. # GNU dynamic linker. Since this was broken with cross compilers,
  15073. # most powerpc-linux boxes support dynamic linking these days and
  15074. # people can always --disable-shared, the test was removed, and we
  15075. # assume the GNU/Linux dynamic linker is in use.
  15076. dynamic_linker='GNU/Linux ld.so'
  15077. ;;
  15078. netbsd*)
  15079. version_type=sunos
  15080. need_lib_prefix=no
  15081. need_version=no
  15082. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15083. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15085. dynamic_linker='NetBSD (a.out) ld.so'
  15086. else
  15087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15088. soname_spec='$libname$release$shared_ext$major'
  15089. dynamic_linker='NetBSD ld.elf_so'
  15090. fi
  15091. shlibpath_var=LD_LIBRARY_PATH
  15092. shlibpath_overrides_runpath=yes
  15093. hardcode_into_libs=yes
  15094. ;;
  15095. newsos6)
  15096. version_type=linux # correct to gnu/linux during the next big refactor
  15097. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15098. shlibpath_var=LD_LIBRARY_PATH
  15099. shlibpath_overrides_runpath=yes
  15100. ;;
  15101. *nto* | *qnx*)
  15102. version_type=qnx
  15103. need_lib_prefix=no
  15104. need_version=no
  15105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15106. soname_spec='$libname$release$shared_ext$major'
  15107. shlibpath_var=LD_LIBRARY_PATH
  15108. shlibpath_overrides_runpath=no
  15109. hardcode_into_libs=yes
  15110. dynamic_linker='ldqnx.so'
  15111. ;;
  15112. openbsd* | bitrig*)
  15113. version_type=sunos
  15114. sys_lib_dlsearch_path_spec=/usr/lib
  15115. need_lib_prefix=no
  15116. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15117. need_version=no
  15118. else
  15119. need_version=yes
  15120. fi
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. shlibpath_overrides_runpath=yes
  15125. ;;
  15126. os2*)
  15127. libname_spec='$name'
  15128. shrext_cmds=.dll
  15129. need_lib_prefix=no
  15130. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15131. # SDL customization: removed versioning support.
  15132. # version_type=windows
  15133. # need_version=no
  15134. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15135. # v=$($ECHO $release$versuffix | tr -d .-);
  15136. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15137. # $ECHO $n$v`$shared_ext'
  15138. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15139. library_names_spec='${libname}_dll.$libext'
  15140. dynamic_linker='OS/2 ld.exe'
  15141. shlibpath_var=BEGINLIBPATH
  15142. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15143. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15144. postinstall_cmds='base_file=`basename \$file`~
  15145. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15146. dldir=$destdir/`dirname \$dlpath`~
  15147. test -d \$dldir || mkdir -p \$dldir~
  15148. $install_prog $dir/$dlname \$dldir/$dlname~
  15149. chmod a+x \$dldir/$dlname~
  15150. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15151. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15152. fi'
  15153. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15154. dlpath=$dir/\$dldll~
  15155. $RM \$dlpath'
  15156. ;;
  15157. osf3* | osf4* | osf5*)
  15158. version_type=osf
  15159. need_lib_prefix=no
  15160. need_version=no
  15161. soname_spec='$libname$release$shared_ext$major'
  15162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15163. shlibpath_var=LD_LIBRARY_PATH
  15164. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15165. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15166. ;;
  15167. rdos*)
  15168. dynamic_linker=no
  15169. ;;
  15170. solaris*)
  15171. version_type=linux # correct to gnu/linux during the next big refactor
  15172. need_lib_prefix=no
  15173. need_version=no
  15174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15175. soname_spec='$libname$release$shared_ext$major'
  15176. shlibpath_var=LD_LIBRARY_PATH
  15177. shlibpath_overrides_runpath=yes
  15178. hardcode_into_libs=yes
  15179. # ldd complains unless libraries are executable
  15180. postinstall_cmds='chmod +x $lib'
  15181. ;;
  15182. sunos4*)
  15183. version_type=sunos
  15184. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15185. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15186. shlibpath_var=LD_LIBRARY_PATH
  15187. shlibpath_overrides_runpath=yes
  15188. if test yes = "$with_gnu_ld"; then
  15189. need_lib_prefix=no
  15190. fi
  15191. need_version=yes
  15192. ;;
  15193. sysv4 | sysv4.3*)
  15194. version_type=linux # correct to gnu/linux during the next big refactor
  15195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15196. soname_spec='$libname$release$shared_ext$major'
  15197. shlibpath_var=LD_LIBRARY_PATH
  15198. case $host_vendor in
  15199. sni)
  15200. shlibpath_overrides_runpath=no
  15201. need_lib_prefix=no
  15202. runpath_var=LD_RUN_PATH
  15203. ;;
  15204. siemens)
  15205. need_lib_prefix=no
  15206. ;;
  15207. motorola)
  15208. need_lib_prefix=no
  15209. need_version=no
  15210. shlibpath_overrides_runpath=no
  15211. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15212. ;;
  15213. esac
  15214. ;;
  15215. sysv4*MP*)
  15216. if test -d /usr/nec; then
  15217. version_type=linux # correct to gnu/linux during the next big refactor
  15218. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15219. soname_spec='$libname$shared_ext.$major'
  15220. shlibpath_var=LD_LIBRARY_PATH
  15221. fi
  15222. ;;
  15223. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15224. version_type=sco
  15225. need_lib_prefix=no
  15226. need_version=no
  15227. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15228. soname_spec='$libname$release$shared_ext$major'
  15229. shlibpath_var=LD_LIBRARY_PATH
  15230. shlibpath_overrides_runpath=yes
  15231. hardcode_into_libs=yes
  15232. if test yes = "$with_gnu_ld"; then
  15233. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15234. else
  15235. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15236. case $host_os in
  15237. sco3.2v5*)
  15238. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15239. ;;
  15240. esac
  15241. fi
  15242. sys_lib_dlsearch_path_spec='/usr/lib'
  15243. ;;
  15244. tpf*)
  15245. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15246. version_type=linux # correct to gnu/linux during the next big refactor
  15247. need_lib_prefix=no
  15248. need_version=no
  15249. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15250. shlibpath_var=LD_LIBRARY_PATH
  15251. shlibpath_overrides_runpath=no
  15252. hardcode_into_libs=yes
  15253. ;;
  15254. uts4*)
  15255. version_type=linux # correct to gnu/linux during the next big refactor
  15256. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15257. soname_spec='$libname$release$shared_ext$major'
  15258. shlibpath_var=LD_LIBRARY_PATH
  15259. ;;
  15260. *)
  15261. dynamic_linker=no
  15262. ;;
  15263. esac
  15264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15265. printf "%s\n" "$dynamic_linker" >&6; }
  15266. test no = "$dynamic_linker" && can_build_shared=no
  15267. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15268. if test yes = "$GCC"; then
  15269. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15270. fi
  15271. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15272. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15273. fi
  15274. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15275. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15276. fi
  15277. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15278. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15279. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15280. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15281. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15282. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15284. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15285. hardcode_action_CXX=
  15286. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15287. test -n "$runpath_var_CXX" ||
  15288. test yes = "$hardcode_automatic_CXX"; then
  15289. # We can hardcode non-existent directories.
  15290. if test no != "$hardcode_direct_CXX" &&
  15291. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15292. # have to relink, otherwise we might link with an installed library
  15293. # when we should be linking with a yet-to-be-installed one
  15294. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15295. test no != "$hardcode_minus_L_CXX"; then
  15296. # Linking always hardcodes the temporary library directory.
  15297. hardcode_action_CXX=relink
  15298. else
  15299. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15300. hardcode_action_CXX=immediate
  15301. fi
  15302. else
  15303. # We cannot hardcode anything, or else we can only hardcode existing
  15304. # directories.
  15305. hardcode_action_CXX=unsupported
  15306. fi
  15307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15308. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15309. if test relink = "$hardcode_action_CXX" ||
  15310. test yes = "$inherit_rpath_CXX"; then
  15311. # Fast installation is not supported
  15312. enable_fast_install=no
  15313. elif test yes = "$shlibpath_overrides_runpath" ||
  15314. test no = "$enable_shared"; then
  15315. # Fast installation is not necessary
  15316. enable_fast_install=needless
  15317. fi
  15318. fi # test -n "$compiler"
  15319. CC=$lt_save_CC
  15320. CFLAGS=$lt_save_CFLAGS
  15321. LDCXX=$LD
  15322. LD=$lt_save_LD
  15323. GCC=$lt_save_GCC
  15324. with_gnu_ld=$lt_save_with_gnu_ld
  15325. lt_cv_path_LDCXX=$lt_cv_path_LD
  15326. lt_cv_path_LD=$lt_save_path_LD
  15327. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15328. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15329. fi # test yes != "$_lt_caught_CXX_error"
  15330. ac_ext=c
  15331. ac_cpp='$CPP $CPPFLAGS'
  15332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15336. printf %s "checking for egrep... " >&6; }
  15337. if test ${ac_cv_path_EGREP+y}
  15338. then :
  15339. printf %s "(cached) " >&6
  15340. else $as_nop
  15341. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15342. then ac_cv_path_EGREP="$GREP -E"
  15343. else
  15344. if test -z "$EGREP"; then
  15345. ac_path_EGREP_found=false
  15346. # Loop through the user's path and test for each of PROGNAME-LIST
  15347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15348. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15349. do
  15350. IFS=$as_save_IFS
  15351. case $as_dir in #(((
  15352. '') as_dir=./ ;;
  15353. */) ;;
  15354. *) as_dir=$as_dir/ ;;
  15355. esac
  15356. for ac_prog in egrep
  15357. do
  15358. for ac_exec_ext in '' $ac_executable_extensions; do
  15359. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15360. as_fn_executable_p "$ac_path_EGREP" || continue
  15361. # Check for GNU ac_path_EGREP and select it if it is found.
  15362. # Check for GNU $ac_path_EGREP
  15363. case `"$ac_path_EGREP" --version 2>&1` in
  15364. *GNU*)
  15365. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15366. *)
  15367. ac_count=0
  15368. printf %s 0123456789 >"conftest.in"
  15369. while :
  15370. do
  15371. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15372. mv "conftest.tmp" "conftest.in"
  15373. cp "conftest.in" "conftest.nl"
  15374. printf "%s\n" 'EGREP' >> "conftest.nl"
  15375. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15376. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15377. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15378. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15379. # Best one so far, save it but keep looking for a better one
  15380. ac_cv_path_EGREP="$ac_path_EGREP"
  15381. ac_path_EGREP_max=$ac_count
  15382. fi
  15383. # 10*(2^10) chars as input seems more than enough
  15384. test $ac_count -gt 10 && break
  15385. done
  15386. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15387. esac
  15388. $ac_path_EGREP_found && break 3
  15389. done
  15390. done
  15391. done
  15392. IFS=$as_save_IFS
  15393. if test -z "$ac_cv_path_EGREP"; then
  15394. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15395. fi
  15396. else
  15397. ac_cv_path_EGREP=$EGREP
  15398. fi
  15399. fi
  15400. fi
  15401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15402. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15403. EGREP="$ac_cv_path_EGREP"
  15404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15405. printf %s "checking for fgrep... " >&6; }
  15406. if test ${ac_cv_path_FGREP+y}
  15407. then :
  15408. printf %s "(cached) " >&6
  15409. else $as_nop
  15410. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15411. then ac_cv_path_FGREP="$GREP -F"
  15412. else
  15413. if test -z "$FGREP"; then
  15414. ac_path_FGREP_found=false
  15415. # Loop through the user's path and test for each of PROGNAME-LIST
  15416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15417. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15418. do
  15419. IFS=$as_save_IFS
  15420. case $as_dir in #(((
  15421. '') as_dir=./ ;;
  15422. */) ;;
  15423. *) as_dir=$as_dir/ ;;
  15424. esac
  15425. for ac_prog in fgrep
  15426. do
  15427. for ac_exec_ext in '' $ac_executable_extensions; do
  15428. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15429. as_fn_executable_p "$ac_path_FGREP" || continue
  15430. # Check for GNU ac_path_FGREP and select it if it is found.
  15431. # Check for GNU $ac_path_FGREP
  15432. case `"$ac_path_FGREP" --version 2>&1` in
  15433. *GNU*)
  15434. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15435. *)
  15436. ac_count=0
  15437. printf %s 0123456789 >"conftest.in"
  15438. while :
  15439. do
  15440. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15441. mv "conftest.tmp" "conftest.in"
  15442. cp "conftest.in" "conftest.nl"
  15443. printf "%s\n" 'FGREP' >> "conftest.nl"
  15444. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15445. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15446. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15447. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15448. # Best one so far, save it but keep looking for a better one
  15449. ac_cv_path_FGREP="$ac_path_FGREP"
  15450. ac_path_FGREP_max=$ac_count
  15451. fi
  15452. # 10*(2^10) chars as input seems more than enough
  15453. test $ac_count -gt 10 && break
  15454. done
  15455. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15456. esac
  15457. $ac_path_FGREP_found && break 3
  15458. done
  15459. done
  15460. done
  15461. IFS=$as_save_IFS
  15462. if test -z "$ac_cv_path_FGREP"; then
  15463. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15464. fi
  15465. else
  15466. ac_cv_path_FGREP=$FGREP
  15467. fi
  15468. fi
  15469. fi
  15470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15471. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15472. FGREP="$ac_cv_path_FGREP"
  15473. # Find a good install program. We prefer a C program (faster),
  15474. # so one script is as good as another. But avoid the broken or
  15475. # incompatible versions:
  15476. # SysV /etc/install, /usr/sbin/install
  15477. # SunOS /usr/etc/install
  15478. # IRIX /sbin/install
  15479. # AIX /bin/install
  15480. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15481. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15482. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15483. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15484. # OS/2's system install, which has a completely different semantic
  15485. # ./install, which can be erroneously created by make from ./install.sh.
  15486. # Reject install programs that cannot install multiple files.
  15487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15488. printf %s "checking for a BSD-compatible install... " >&6; }
  15489. if test -z "$INSTALL"; then
  15490. if test ${ac_cv_path_install+y}
  15491. then :
  15492. printf %s "(cached) " >&6
  15493. else $as_nop
  15494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15495. for as_dir in $PATH
  15496. do
  15497. IFS=$as_save_IFS
  15498. case $as_dir in #(((
  15499. '') as_dir=./ ;;
  15500. */) ;;
  15501. *) as_dir=$as_dir/ ;;
  15502. esac
  15503. # Account for fact that we put trailing slashes in our PATH walk.
  15504. case $as_dir in #((
  15505. ./ | /[cC]/* | \
  15506. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15507. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15508. /usr/ucb/* ) ;;
  15509. *)
  15510. # OSF1 and SCO ODT 3.0 have their own names for install.
  15511. # Don't use installbsd from OSF since it installs stuff as root
  15512. # by default.
  15513. for ac_prog in ginstall scoinst install; do
  15514. for ac_exec_ext in '' $ac_executable_extensions; do
  15515. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15516. if test $ac_prog = install &&
  15517. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15518. # AIX install. It has an incompatible calling convention.
  15519. :
  15520. elif test $ac_prog = install &&
  15521. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15522. # program-specific install script used by HP pwplus--don't use.
  15523. :
  15524. else
  15525. rm -rf conftest.one conftest.two conftest.dir
  15526. echo one > conftest.one
  15527. echo two > conftest.two
  15528. mkdir conftest.dir
  15529. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15530. test -s conftest.one && test -s conftest.two &&
  15531. test -s conftest.dir/conftest.one &&
  15532. test -s conftest.dir/conftest.two
  15533. then
  15534. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15535. break 3
  15536. fi
  15537. fi
  15538. fi
  15539. done
  15540. done
  15541. ;;
  15542. esac
  15543. done
  15544. IFS=$as_save_IFS
  15545. rm -rf conftest.one conftest.two conftest.dir
  15546. fi
  15547. if test ${ac_cv_path_install+y}; then
  15548. INSTALL=$ac_cv_path_install
  15549. else
  15550. # As a last resort, use the slow shell script. Don't cache a
  15551. # value for INSTALL within a source directory, because that will
  15552. # break other packages using the cache if that directory is
  15553. # removed, or if the value is a relative name.
  15554. INSTALL=$ac_install_sh
  15555. fi
  15556. fi
  15557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15558. printf "%s\n" "$INSTALL" >&6; }
  15559. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15560. # It thinks the first close brace ends the variable substitution.
  15561. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15562. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15563. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15565. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15566. set x ${MAKE-make}
  15567. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15568. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15569. then :
  15570. printf %s "(cached) " >&6
  15571. else $as_nop
  15572. cat >conftest.make <<\_ACEOF
  15573. SHELL = /bin/sh
  15574. all:
  15575. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15576. _ACEOF
  15577. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15578. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15579. *@@@%%%=?*=@@@%%%*)
  15580. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15581. *)
  15582. eval ac_cv_prog_make_${ac_make}_set=no;;
  15583. esac
  15584. rm -f conftest.make
  15585. fi
  15586. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15588. printf "%s\n" "yes" >&6; }
  15589. SET_MAKE=
  15590. else
  15591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15592. printf "%s\n" "no" >&6; }
  15593. SET_MAKE="MAKE=${MAKE-make}"
  15594. fi
  15595. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15596. if test -n "$ac_tool_prefix"; then
  15597. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15598. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15600. printf %s "checking for $ac_word... " >&6; }
  15601. if test ${ac_cv_path_PKG_CONFIG+y}
  15602. then :
  15603. printf %s "(cached) " >&6
  15604. else $as_nop
  15605. case $PKG_CONFIG in
  15606. [\\/]* | ?:[\\/]*)
  15607. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15608. ;;
  15609. *)
  15610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15611. for as_dir in $PATH
  15612. do
  15613. IFS=$as_save_IFS
  15614. case $as_dir in #(((
  15615. '') as_dir=./ ;;
  15616. */) ;;
  15617. *) as_dir=$as_dir/ ;;
  15618. esac
  15619. for ac_exec_ext in '' $ac_executable_extensions; do
  15620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15621. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15623. break 2
  15624. fi
  15625. done
  15626. done
  15627. IFS=$as_save_IFS
  15628. ;;
  15629. esac
  15630. fi
  15631. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15632. if test -n "$PKG_CONFIG"; then
  15633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15634. printf "%s\n" "$PKG_CONFIG" >&6; }
  15635. else
  15636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15637. printf "%s\n" "no" >&6; }
  15638. fi
  15639. fi
  15640. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15641. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15642. # Extract the first word of "pkg-config", so it can be a program name with args.
  15643. set dummy pkg-config; ac_word=$2
  15644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15645. printf %s "checking for $ac_word... " >&6; }
  15646. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15647. then :
  15648. printf %s "(cached) " >&6
  15649. else $as_nop
  15650. case $ac_pt_PKG_CONFIG in
  15651. [\\/]* | ?:[\\/]*)
  15652. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15653. ;;
  15654. *)
  15655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15656. for as_dir in $PATH
  15657. do
  15658. IFS=$as_save_IFS
  15659. case $as_dir in #(((
  15660. '') as_dir=./ ;;
  15661. */) ;;
  15662. *) as_dir=$as_dir/ ;;
  15663. esac
  15664. for ac_exec_ext in '' $ac_executable_extensions; do
  15665. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15666. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15668. break 2
  15669. fi
  15670. done
  15671. done
  15672. IFS=$as_save_IFS
  15673. ;;
  15674. esac
  15675. fi
  15676. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15677. if test -n "$ac_pt_PKG_CONFIG"; then
  15678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15679. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15680. else
  15681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15682. printf "%s\n" "no" >&6; }
  15683. fi
  15684. if test "x$ac_pt_PKG_CONFIG" = x; then
  15685. PKG_CONFIG=""
  15686. else
  15687. case $cross_compiling:$ac_tool_warned in
  15688. yes:)
  15689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15690. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15691. ac_tool_warned=yes ;;
  15692. esac
  15693. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15694. fi
  15695. else
  15696. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15697. fi
  15698. fi
  15699. if test -n "$PKG_CONFIG"; then
  15700. _pkg_min_version=0.9.0
  15701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15702. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15703. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15705. printf "%s\n" "yes" >&6; }
  15706. else
  15707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15708. printf "%s\n" "no" >&6; }
  15709. PKG_CONFIG=""
  15710. fi
  15711. fi
  15712. if test -z "$AWK" ; then
  15713. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15714. fi
  15715. for ac_prog in gsort sort
  15716. do
  15717. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15718. set dummy $ac_prog; ac_word=$2
  15719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15720. printf %s "checking for $ac_word... " >&6; }
  15721. if test ${ac_cv_prog_SORT+y}
  15722. then :
  15723. printf %s "(cached) " >&6
  15724. else $as_nop
  15725. if test -n "$SORT"; then
  15726. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15727. else
  15728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15729. for as_dir in $PATH
  15730. do
  15731. IFS=$as_save_IFS
  15732. case $as_dir in #(((
  15733. '') as_dir=./ ;;
  15734. */) ;;
  15735. *) as_dir=$as_dir/ ;;
  15736. esac
  15737. for ac_exec_ext in '' $ac_executable_extensions; do
  15738. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15739. ac_cv_prog_SORT="$ac_prog"
  15740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15741. break 2
  15742. fi
  15743. done
  15744. done
  15745. IFS=$as_save_IFS
  15746. fi
  15747. fi
  15748. SORT=$ac_cv_prog_SORT
  15749. if test -n "$SORT"; then
  15750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15751. printf "%s\n" "$SORT" >&6; }
  15752. else
  15753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15754. printf "%s\n" "no" >&6; }
  15755. fi
  15756. test -n "$SORT" && break
  15757. done
  15758. test -n "$SORT" || SORT="false"
  15759. if ! "$SORT" -V </dev/null >/dev/null
  15760. then :
  15761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15762. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15763. fi
  15764. # Check whether --enable-largefile was given.
  15765. if test ${enable_largefile+y}
  15766. then :
  15767. enableval=$enable_largefile;
  15768. fi
  15769. if test "$enable_largefile" != no; then
  15770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15771. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15772. if test ${ac_cv_sys_largefile_CC+y}
  15773. then :
  15774. printf %s "(cached) " >&6
  15775. else $as_nop
  15776. ac_cv_sys_largefile_CC=no
  15777. if test "$GCC" != yes; then
  15778. ac_save_CC=$CC
  15779. while :; do
  15780. # IRIX 6.2 and later do not support large files by default,
  15781. # so use the C compiler's -n32 option if that helps.
  15782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15783. /* end confdefs.h. */
  15784. #include <sys/types.h>
  15785. /* Check that off_t can represent 2**63 - 1 correctly.
  15786. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15787. since some C++ compilers masquerading as C compilers
  15788. incorrectly reject 9223372036854775807. */
  15789. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15790. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15791. && LARGE_OFF_T % 2147483647 == 1)
  15792. ? 1 : -1];
  15793. int
  15794. main (void)
  15795. {
  15796. ;
  15797. return 0;
  15798. }
  15799. _ACEOF
  15800. if ac_fn_c_try_compile "$LINENO"
  15801. then :
  15802. break
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15805. CC="$CC -n32"
  15806. if ac_fn_c_try_compile "$LINENO"
  15807. then :
  15808. ac_cv_sys_largefile_CC=' -n32'; break
  15809. fi
  15810. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15811. break
  15812. done
  15813. CC=$ac_save_CC
  15814. rm -f conftest.$ac_ext
  15815. fi
  15816. fi
  15817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15818. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15819. if test "$ac_cv_sys_largefile_CC" != no; then
  15820. CC=$CC$ac_cv_sys_largefile_CC
  15821. fi
  15822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15823. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15824. if test ${ac_cv_sys_file_offset_bits+y}
  15825. then :
  15826. printf %s "(cached) " >&6
  15827. else $as_nop
  15828. while :; do
  15829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15830. /* end confdefs.h. */
  15831. #include <sys/types.h>
  15832. /* Check that off_t can represent 2**63 - 1 correctly.
  15833. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15834. since some C++ compilers masquerading as C compilers
  15835. incorrectly reject 9223372036854775807. */
  15836. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15837. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15838. && LARGE_OFF_T % 2147483647 == 1)
  15839. ? 1 : -1];
  15840. int
  15841. main (void)
  15842. {
  15843. ;
  15844. return 0;
  15845. }
  15846. _ACEOF
  15847. if ac_fn_c_try_compile "$LINENO"
  15848. then :
  15849. ac_cv_sys_file_offset_bits=no; break
  15850. fi
  15851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15853. /* end confdefs.h. */
  15854. #define _FILE_OFFSET_BITS 64
  15855. #include <sys/types.h>
  15856. /* Check that off_t can represent 2**63 - 1 correctly.
  15857. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15858. since some C++ compilers masquerading as C compilers
  15859. incorrectly reject 9223372036854775807. */
  15860. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15861. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15862. && LARGE_OFF_T % 2147483647 == 1)
  15863. ? 1 : -1];
  15864. int
  15865. main (void)
  15866. {
  15867. ;
  15868. return 0;
  15869. }
  15870. _ACEOF
  15871. if ac_fn_c_try_compile "$LINENO"
  15872. then :
  15873. ac_cv_sys_file_offset_bits=64; break
  15874. fi
  15875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15876. ac_cv_sys_file_offset_bits=unknown
  15877. break
  15878. done
  15879. fi
  15880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15881. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15882. case $ac_cv_sys_file_offset_bits in #(
  15883. no | unknown) ;;
  15884. *)
  15885. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15886. ;;
  15887. esac
  15888. rm -rf conftest*
  15889. if test $ac_cv_sys_file_offset_bits = unknown; then
  15890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15891. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15892. if test ${ac_cv_sys_large_files+y}
  15893. then :
  15894. printf %s "(cached) " >&6
  15895. else $as_nop
  15896. while :; do
  15897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15898. /* end confdefs.h. */
  15899. #include <sys/types.h>
  15900. /* Check that off_t can represent 2**63 - 1 correctly.
  15901. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15902. since some C++ compilers masquerading as C compilers
  15903. incorrectly reject 9223372036854775807. */
  15904. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15905. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15906. && LARGE_OFF_T % 2147483647 == 1)
  15907. ? 1 : -1];
  15908. int
  15909. main (void)
  15910. {
  15911. ;
  15912. return 0;
  15913. }
  15914. _ACEOF
  15915. if ac_fn_c_try_compile "$LINENO"
  15916. then :
  15917. ac_cv_sys_large_files=no; break
  15918. fi
  15919. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15921. /* end confdefs.h. */
  15922. #define _LARGE_FILES 1
  15923. #include <sys/types.h>
  15924. /* Check that off_t can represent 2**63 - 1 correctly.
  15925. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15926. since some C++ compilers masquerading as C compilers
  15927. incorrectly reject 9223372036854775807. */
  15928. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15929. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15930. && LARGE_OFF_T % 2147483647 == 1)
  15931. ? 1 : -1];
  15932. int
  15933. main (void)
  15934. {
  15935. ;
  15936. return 0;
  15937. }
  15938. _ACEOF
  15939. if ac_fn_c_try_compile "$LINENO"
  15940. then :
  15941. ac_cv_sys_large_files=1; break
  15942. fi
  15943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15944. ac_cv_sys_large_files=unknown
  15945. break
  15946. done
  15947. fi
  15948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15949. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15950. case $ac_cv_sys_large_files in #(
  15951. no | unknown) ;;
  15952. *)
  15953. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15954. ;;
  15955. esac
  15956. rm -rf conftest*
  15957. fi
  15958. fi
  15959. case "$host" in
  15960. *-*-mingw*)
  15961. # Except on msys, where make can't handle full pathnames (bug 1972)
  15962. ;;
  15963. *)
  15964. srcdir=`cd $srcdir && pwd`
  15965. ;;
  15966. esac
  15967. INCLUDE="-I$srcdir/include"
  15968. case "$host" in
  15969. *-*-nto-qnx*)
  15970. ;;
  15971. *)
  15972. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15973. ;;
  15974. esac
  15975. case "$host" in
  15976. *-*-haiku*)
  15977. LINKER='$(CXX)'
  15978. LIBTOOLLINKERTAG='CXX'
  15979. ;;
  15980. *)
  15981. LINKER='$(CC)'
  15982. LIBTOOLLINKERTAG='CC'
  15983. ;;
  15984. esac
  15985. if test x$srcdir != x.; then
  15986. INCLUDE="-Iinclude $INCLUDE"
  15987. elif test -d .git; then
  15988. as_fn_error $? "
  15989. *** When building from a git clone you should configure and build in a
  15990. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15991. " "$LINENO" 5
  15992. fi
  15993. BASE_CFLAGS=""
  15994. BASE_LDFLAGS=""
  15995. case "$host" in
  15996. *-*-cygwin*)
  15997. # We build SDL on cygwin without the UNIX emulation layer
  15998. save_CFLAGS="$CFLAGS"
  15999. have_no_cygwin=no
  16000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16001. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16002. CFLAGS="$save_CFLAGS -mno-cygwin"
  16003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16004. /* end confdefs.h. */
  16005. int
  16006. main (void)
  16007. {
  16008. ;
  16009. return 0;
  16010. }
  16011. _ACEOF
  16012. if ac_fn_c_try_compile "$LINENO"
  16013. then :
  16014. have_no_cygwin=yes
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16018. printf "%s\n" "$have_no_cygwin" >&6; }
  16019. CFLAGS="$save_CFLAGS"
  16020. if test x$have_no_cygwin = xyes; then
  16021. BASE_CFLAGS="-mno-cygwin"
  16022. BASE_LDFLAGS="-mno-cygwin"
  16023. fi
  16024. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16025. ;;
  16026. esac
  16027. # Uncomment the following line if you want to force SDL and applications
  16028. # built with it to be compiled for a particular architecture.
  16029. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16030. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16031. # The default optimization for SDL is -O3 (Bug #31)
  16032. if test "x$orig_CFLAGS" = x; then
  16033. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16034. fi
  16035. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16036. BUILD_LDFLAGS="$LDFLAGS"
  16037. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16038. ## These are common directories to find software packages
  16039. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16040. # if test -d $path/include; then
  16041. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16042. # fi
  16043. # if test -d $path/lib; then
  16044. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16045. # fi
  16046. #done
  16047. SDL_CFLAGS="$BASE_CFLAGS"
  16048. SDL_LIBS="-lSDL2"
  16049. if test "x$BASE_LDFLAGS" != x; then
  16050. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16051. fi
  16052. if test "x$EXTRA_CFLAGS" != x; then
  16053. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16054. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16055. fi
  16056. if test "x$EXTRA_LDFLAGS" != x; then
  16057. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16058. fi
  16059. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16060. find_lib()
  16061. {
  16062. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16063. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16064. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16065. if test "$cross_compiling" = yes; then
  16066. host_lib_path=""
  16067. else
  16068. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16069. fi
  16070. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16071. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  16072. if test x$lib != x; then
  16073. echo $lib
  16074. return
  16075. fi
  16076. done
  16077. }
  16078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16079. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16080. if test ${ac_cv_c_const+y}
  16081. then :
  16082. printf %s "(cached) " >&6
  16083. else $as_nop
  16084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16085. /* end confdefs.h. */
  16086. int
  16087. main (void)
  16088. {
  16089. #ifndef __cplusplus
  16090. /* Ultrix mips cc rejects this sort of thing. */
  16091. typedef int charset[2];
  16092. const charset cs = { 0, 0 };
  16093. /* SunOS 4.1.1 cc rejects this. */
  16094. char const *const *pcpcc;
  16095. char **ppc;
  16096. /* NEC SVR4.0.2 mips cc rejects this. */
  16097. struct point {int x, y;};
  16098. static struct point const zero = {0,0};
  16099. /* IBM XL C 1.02.0.0 rejects this.
  16100. It does not let you subtract one const X* pointer from another in
  16101. an arm of an if-expression whose if-part is not a constant
  16102. expression */
  16103. const char *g = "string";
  16104. pcpcc = &g + (g ? g-g : 0);
  16105. /* HPUX 7.0 cc rejects these. */
  16106. ++pcpcc;
  16107. ppc = (char**) pcpcc;
  16108. pcpcc = (char const *const *) ppc;
  16109. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16110. char tx;
  16111. char *t = &tx;
  16112. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16113. *t++ = 0;
  16114. if (s) return 0;
  16115. }
  16116. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16117. int x[] = {25, 17};
  16118. const int *foo = &x[0];
  16119. ++foo;
  16120. }
  16121. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16122. typedef const int *iptr;
  16123. iptr p = 0;
  16124. ++p;
  16125. }
  16126. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16127. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16128. struct s { int j; const int *ap[3]; } bx;
  16129. struct s *b = &bx; b->j = 5;
  16130. }
  16131. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16132. const int foo = 10;
  16133. if (!foo) return 0;
  16134. }
  16135. return !cs[0] && !zero.x;
  16136. #endif
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. if ac_fn_c_try_compile "$LINENO"
  16142. then :
  16143. ac_cv_c_const=yes
  16144. else $as_nop
  16145. ac_cv_c_const=no
  16146. fi
  16147. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16148. fi
  16149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16150. printf "%s\n" "$ac_cv_c_const" >&6; }
  16151. if test $ac_cv_c_const = no; then
  16152. printf "%s\n" "#define const /**/" >>confdefs.h
  16153. fi
  16154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16155. printf %s "checking for inline... " >&6; }
  16156. if test ${ac_cv_c_inline+y}
  16157. then :
  16158. printf %s "(cached) " >&6
  16159. else $as_nop
  16160. ac_cv_c_inline=no
  16161. for ac_kw in inline __inline__ __inline; do
  16162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16163. /* end confdefs.h. */
  16164. #ifndef __cplusplus
  16165. typedef int foo_t;
  16166. static $ac_kw foo_t static_foo (void) {return 0; }
  16167. $ac_kw foo_t foo (void) {return 0; }
  16168. #endif
  16169. _ACEOF
  16170. if ac_fn_c_try_compile "$LINENO"
  16171. then :
  16172. ac_cv_c_inline=$ac_kw
  16173. fi
  16174. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16175. test "$ac_cv_c_inline" != no && break
  16176. done
  16177. fi
  16178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16179. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16180. case $ac_cv_c_inline in
  16181. inline | yes) ;;
  16182. *)
  16183. case $ac_cv_c_inline in
  16184. no) ac_val=;;
  16185. *) ac_val=$ac_cv_c_inline;;
  16186. esac
  16187. cat >>confdefs.h <<_ACEOF
  16188. #ifndef __cplusplus
  16189. #define inline $ac_val
  16190. #endif
  16191. _ACEOF
  16192. ;;
  16193. esac
  16194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16195. printf %s "checking for working volatile... " >&6; }
  16196. if test ${ac_cv_c_volatile+y}
  16197. then :
  16198. printf %s "(cached) " >&6
  16199. else $as_nop
  16200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16201. /* end confdefs.h. */
  16202. int
  16203. main (void)
  16204. {
  16205. volatile int x;
  16206. int * volatile y = (int *) 0;
  16207. return !x && !y;
  16208. ;
  16209. return 0;
  16210. }
  16211. _ACEOF
  16212. if ac_fn_c_try_compile "$LINENO"
  16213. then :
  16214. ac_cv_c_volatile=yes
  16215. else $as_nop
  16216. ac_cv_c_volatile=no
  16217. fi
  16218. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16219. fi
  16220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16221. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16222. if test $ac_cv_c_volatile = no; then
  16223. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16224. fi
  16225. # Check whether --enable-assertions was given.
  16226. if test ${enable_assertions+y}
  16227. then :
  16228. enableval=$enable_assertions;
  16229. else $as_nop
  16230. enable_assertions=auto
  16231. fi
  16232. case "$enable_assertions" in
  16233. auto) # Use optimization settings to determine assertion level
  16234. ;;
  16235. disabled)
  16236. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16237. ;;
  16238. release)
  16239. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16240. ;;
  16241. enabled)
  16242. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16243. ;;
  16244. paranoid)
  16245. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16246. ;;
  16247. *)
  16248. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16249. ;;
  16250. esac
  16251. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16252. # Check whether --enable-dependency-tracking was given.
  16253. if test ${enable_dependency_tracking+y}
  16254. then :
  16255. enableval=$enable_dependency_tracking;
  16256. else $as_nop
  16257. enable_dependency_tracking=yes
  16258. fi
  16259. if test x$enable_dependency_tracking = xyes; then
  16260. have_gcc_mmd_mt=no
  16261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16262. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16264. /* end confdefs.h. */
  16265. #if !defined(__GNUC__) || __GNUC__ < 3
  16266. #error Dependency tracking requires GCC 3.0 or newer
  16267. #endif
  16268. int
  16269. main (void)
  16270. {
  16271. ;
  16272. return 0;
  16273. }
  16274. _ACEOF
  16275. if ac_fn_c_try_compile "$LINENO"
  16276. then :
  16277. have_gcc_mmd_mt=yes
  16278. fi
  16279. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16281. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16282. if test x$have_gcc_mmd_mt = xyes; then
  16283. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16284. fi
  16285. fi
  16286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16287. printf %s "checking for linker option --no-undefined... " >&6; }
  16288. have_no_undefined=no
  16289. case "$host" in
  16290. *-*-openbsd*)
  16291. ;;
  16292. *)
  16293. save_LDFLAGS="$LDFLAGS"
  16294. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16296. /* end confdefs.h. */
  16297. int
  16298. main (void)
  16299. {
  16300. ;
  16301. return 0;
  16302. }
  16303. _ACEOF
  16304. if ac_fn_c_try_link "$LINENO"
  16305. then :
  16306. have_no_undefined=yes
  16307. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16308. fi
  16309. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16310. conftest$ac_exeext conftest.$ac_ext
  16311. LDFLAGS="$save_LDFLAGS"
  16312. ;;
  16313. esac
  16314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16315. printf "%s\n" "$have_no_undefined" >&6; }
  16316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16317. printf %s "checking for linker option --dynamicbase... " >&6; }
  16318. have_dynamicbase=no
  16319. case "$host" in
  16320. *)
  16321. save_LDFLAGS="$LDFLAGS"
  16322. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16324. /* end confdefs.h. */
  16325. int
  16326. main (void)
  16327. {
  16328. ;
  16329. return 0;
  16330. }
  16331. _ACEOF
  16332. if ac_fn_c_try_link "$LINENO"
  16333. then :
  16334. have_dynamicbase=yes
  16335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16338. conftest$ac_exeext conftest.$ac_ext
  16339. LDFLAGS="$save_LDFLAGS"
  16340. ;;
  16341. esac
  16342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16343. printf "%s\n" "$have_dynamicbase" >&6; }
  16344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16345. printf %s "checking for linker option --nxcompat... " >&6; }
  16346. have_nxcompat=no
  16347. case "$host" in
  16348. *)
  16349. save_LDFLAGS="$LDFLAGS"
  16350. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16352. /* end confdefs.h. */
  16353. int
  16354. main (void)
  16355. {
  16356. ;
  16357. return 0;
  16358. }
  16359. _ACEOF
  16360. if ac_fn_c_try_link "$LINENO"
  16361. then :
  16362. have_nxcompat=yes
  16363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16364. fi
  16365. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16366. conftest$ac_exeext conftest.$ac_ext
  16367. LDFLAGS="$save_LDFLAGS"
  16368. ;;
  16369. esac
  16370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16371. printf "%s\n" "$have_nxcompat" >&6; }
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16373. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16374. have_high_entropy_va=no
  16375. case "$host" in
  16376. *)
  16377. save_LDFLAGS="$LDFLAGS"
  16378. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16380. /* end confdefs.h. */
  16381. int
  16382. main (void)
  16383. {
  16384. ;
  16385. return 0;
  16386. }
  16387. _ACEOF
  16388. if ac_fn_c_try_link "$LINENO"
  16389. then :
  16390. have_high_entropy_va=yes
  16391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16392. fi
  16393. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16394. conftest$ac_exeext conftest.$ac_ext
  16395. LDFLAGS="$save_LDFLAGS"
  16396. ;;
  16397. esac
  16398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16399. printf "%s\n" "$have_high_entropy_va" >&6; }
  16400. # Check whether --enable-libc was given.
  16401. if test ${enable_libc+y}
  16402. then :
  16403. enableval=$enable_libc;
  16404. else $as_nop
  16405. enable_libc=yes
  16406. fi
  16407. # Check whether --enable-system-iconv was given.
  16408. if test ${enable_system_iconv+y}
  16409. then :
  16410. enableval=$enable_system_iconv;
  16411. else $as_nop
  16412. enable_system_iconv=yes
  16413. fi
  16414. if test x$enable_libc = xyes; then
  16415. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16416. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16417. if test "x$ac_cv_header_sys_types_h" = xyes
  16418. then :
  16419. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16420. fi
  16421. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16422. if test "x$ac_cv_header_stdio_h" = xyes
  16423. then :
  16424. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16425. fi
  16426. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16427. if test "x$ac_cv_header_stdlib_h" = xyes
  16428. then :
  16429. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16430. fi
  16431. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16432. if test "x$ac_cv_header_stddef_h" = xyes
  16433. then :
  16434. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16435. fi
  16436. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16437. if test "x$ac_cv_header_stdarg_h" = xyes
  16438. then :
  16439. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16440. fi
  16441. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16442. if test "x$ac_cv_header_malloc_h" = xyes
  16443. then :
  16444. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16445. fi
  16446. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16447. if test "x$ac_cv_header_memory_h" = xyes
  16448. then :
  16449. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16450. fi
  16451. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16452. if test "x$ac_cv_header_string_h" = xyes
  16453. then :
  16454. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16455. fi
  16456. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16457. if test "x$ac_cv_header_strings_h" = xyes
  16458. then :
  16459. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16460. fi
  16461. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16462. if test "x$ac_cv_header_wchar_h" = xyes
  16463. then :
  16464. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16465. fi
  16466. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16467. if test "x$ac_cv_header_inttypes_h" = xyes
  16468. then :
  16469. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16470. fi
  16471. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16472. if test "x$ac_cv_header_stdint_h" = xyes
  16473. then :
  16474. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16475. fi
  16476. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16477. if test "x$ac_cv_header_limits_h" = xyes
  16478. then :
  16479. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16480. fi
  16481. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16482. if test "x$ac_cv_header_ctype_h" = xyes
  16483. then :
  16484. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16485. fi
  16486. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16487. if test "x$ac_cv_header_math_h" = xyes
  16488. then :
  16489. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16490. fi
  16491. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16492. if test "x$ac_cv_header_float_h" = xyes
  16493. then :
  16494. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16495. fi
  16496. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16497. if test "x$ac_cv_header_iconv_h" = xyes
  16498. then :
  16499. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16500. fi
  16501. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16502. if test "x$ac_cv_header_signal_h" = xyes
  16503. then :
  16504. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16505. fi
  16506. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16507. if test "x$ac_cv_header_linux_input_h" = xyes
  16508. then :
  16509. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16510. fi
  16511. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16512. if test "x$ac_cv_type_size_t" = xyes
  16513. then :
  16514. else $as_nop
  16515. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16516. fi
  16517. ac_ext=c
  16518. ac_cpp='$CPP $CPPFLAGS'
  16519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16523. printf %s "checking how to run the C preprocessor... " >&6; }
  16524. # On Suns, sometimes $CPP names a directory.
  16525. if test -n "$CPP" && test -d "$CPP"; then
  16526. CPP=
  16527. fi
  16528. if test -z "$CPP"; then
  16529. if test ${ac_cv_prog_CPP+y}
  16530. then :
  16531. printf %s "(cached) " >&6
  16532. else $as_nop
  16533. # Double quotes because $CC needs to be expanded
  16534. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16535. do
  16536. ac_preproc_ok=false
  16537. for ac_c_preproc_warn_flag in '' yes
  16538. do
  16539. # Use a header file that comes with gcc, so configuring glibc
  16540. # with a fresh cross-compiler works.
  16541. # On the NeXT, cc -E runs the code through the compiler's parser,
  16542. # not just through cpp. "Syntax error" is here to catch this case.
  16543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16544. /* end confdefs.h. */
  16545. #include <limits.h>
  16546. Syntax error
  16547. _ACEOF
  16548. if ac_fn_c_try_cpp "$LINENO"
  16549. then :
  16550. else $as_nop
  16551. # Broken: fails on valid input.
  16552. continue
  16553. fi
  16554. rm -f conftest.err conftest.i conftest.$ac_ext
  16555. # OK, works on sane cases. Now check whether nonexistent headers
  16556. # can be detected and how.
  16557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16558. /* end confdefs.h. */
  16559. #include <ac_nonexistent.h>
  16560. _ACEOF
  16561. if ac_fn_c_try_cpp "$LINENO"
  16562. then :
  16563. # Broken: success on invalid input.
  16564. continue
  16565. else $as_nop
  16566. # Passes both tests.
  16567. ac_preproc_ok=:
  16568. break
  16569. fi
  16570. rm -f conftest.err conftest.i conftest.$ac_ext
  16571. done
  16572. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16573. rm -f conftest.i conftest.err conftest.$ac_ext
  16574. if $ac_preproc_ok
  16575. then :
  16576. break
  16577. fi
  16578. done
  16579. ac_cv_prog_CPP=$CPP
  16580. fi
  16581. CPP=$ac_cv_prog_CPP
  16582. else
  16583. ac_cv_prog_CPP=$CPP
  16584. fi
  16585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16586. printf "%s\n" "$CPP" >&6; }
  16587. ac_preproc_ok=false
  16588. for ac_c_preproc_warn_flag in '' yes
  16589. do
  16590. # Use a header file that comes with gcc, so configuring glibc
  16591. # with a fresh cross-compiler works.
  16592. # On the NeXT, cc -E runs the code through the compiler's parser,
  16593. # not just through cpp. "Syntax error" is here to catch this case.
  16594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16595. /* end confdefs.h. */
  16596. #include <limits.h>
  16597. Syntax error
  16598. _ACEOF
  16599. if ac_fn_c_try_cpp "$LINENO"
  16600. then :
  16601. else $as_nop
  16602. # Broken: fails on valid input.
  16603. continue
  16604. fi
  16605. rm -f conftest.err conftest.i conftest.$ac_ext
  16606. # OK, works on sane cases. Now check whether nonexistent headers
  16607. # can be detected and how.
  16608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16609. /* end confdefs.h. */
  16610. #include <ac_nonexistent.h>
  16611. _ACEOF
  16612. if ac_fn_c_try_cpp "$LINENO"
  16613. then :
  16614. # Broken: success on invalid input.
  16615. continue
  16616. else $as_nop
  16617. # Passes both tests.
  16618. ac_preproc_ok=:
  16619. break
  16620. fi
  16621. rm -f conftest.err conftest.i conftest.$ac_ext
  16622. done
  16623. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16624. rm -f conftest.i conftest.err conftest.$ac_ext
  16625. if $ac_preproc_ok
  16626. then :
  16627. else $as_nop
  16628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16629. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16630. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16631. See \`config.log' for more details" "$LINENO" 5; }
  16632. fi
  16633. ac_ext=c
  16634. ac_cpp='$CPP $CPPFLAGS'
  16635. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16636. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16637. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16639. printf %s "checking for M_PI in math.h... " >&6; }
  16640. if test ${ac_cv_define_M_PI+y}
  16641. then :
  16642. printf %s "(cached) " >&6
  16643. else $as_nop
  16644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16645. /* end confdefs.h. */
  16646. #include <math.h>
  16647. #ifdef M_PI
  16648. YES_IS_DEFINED
  16649. #endif
  16650. _ACEOF
  16651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16652. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16653. then :
  16654. ac_cv_define_M_PI=yes
  16655. else $as_nop
  16656. ac_cv_define_M_PI=no
  16657. fi
  16658. rm -rf conftest*
  16659. fi
  16660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16661. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16662. if test "$ac_cv_define_M_PI" = "yes" ; then
  16663. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16664. fi
  16665. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16666. # for constant arguments. Useless!
  16667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16668. printf %s "checking for working alloca.h... " >&6; }
  16669. if test ${ac_cv_working_alloca_h+y}
  16670. then :
  16671. printf %s "(cached) " >&6
  16672. else $as_nop
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. #include <alloca.h>
  16676. int
  16677. main (void)
  16678. {
  16679. char *p = (char *) alloca (2 * sizeof (int));
  16680. if (p) return 0;
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_link "$LINENO"
  16686. then :
  16687. ac_cv_working_alloca_h=yes
  16688. else $as_nop
  16689. ac_cv_working_alloca_h=no
  16690. fi
  16691. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16692. conftest$ac_exeext conftest.$ac_ext
  16693. fi
  16694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16695. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16696. if test $ac_cv_working_alloca_h = yes; then
  16697. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16698. fi
  16699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16700. printf %s "checking for alloca... " >&6; }
  16701. if test ${ac_cv_func_alloca_works+y}
  16702. then :
  16703. printf %s "(cached) " >&6
  16704. else $as_nop
  16705. if test $ac_cv_working_alloca_h = yes; then
  16706. ac_cv_func_alloca_works=yes
  16707. else
  16708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16709. /* end confdefs.h. */
  16710. #include <stdlib.h>
  16711. #include <stddef.h>
  16712. #ifndef alloca
  16713. # ifdef __GNUC__
  16714. # define alloca __builtin_alloca
  16715. # elif defined _MSC_VER
  16716. # include <malloc.h>
  16717. # define alloca _alloca
  16718. # else
  16719. # ifdef __cplusplus
  16720. extern "C"
  16721. # endif
  16722. void *alloca (size_t);
  16723. # endif
  16724. #endif
  16725. int
  16726. main (void)
  16727. {
  16728. char *p = (char *) alloca (1);
  16729. if (p) return 0;
  16730. ;
  16731. return 0;
  16732. }
  16733. _ACEOF
  16734. if ac_fn_c_try_link "$LINENO"
  16735. then :
  16736. ac_cv_func_alloca_works=yes
  16737. else $as_nop
  16738. ac_cv_func_alloca_works=no
  16739. fi
  16740. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16741. conftest$ac_exeext conftest.$ac_ext
  16742. fi
  16743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16744. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16745. fi
  16746. if test $ac_cv_func_alloca_works = yes; then
  16747. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16748. else
  16749. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16750. # that cause trouble. Some versions do not even contain alloca or
  16751. # contain a buggy version. If you still want to use their alloca,
  16752. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16753. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16754. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16756. printf %s "checking stack direction for C alloca... " >&6; }
  16757. if test ${ac_cv_c_stack_direction+y}
  16758. then :
  16759. printf %s "(cached) " >&6
  16760. else $as_nop
  16761. if test "$cross_compiling" = yes
  16762. then :
  16763. ac_cv_c_stack_direction=0
  16764. else $as_nop
  16765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16766. /* end confdefs.h. */
  16767. $ac_includes_default
  16768. int
  16769. find_stack_direction (int *addr, int depth)
  16770. {
  16771. int dir, dummy = 0;
  16772. if (! addr)
  16773. addr = &dummy;
  16774. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16775. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16776. return dir + dummy;
  16777. }
  16778. int
  16779. main (int argc, char **argv)
  16780. {
  16781. return find_stack_direction (0, argc + !argv + 20) < 0;
  16782. }
  16783. _ACEOF
  16784. if ac_fn_c_try_run "$LINENO"
  16785. then :
  16786. ac_cv_c_stack_direction=1
  16787. else $as_nop
  16788. ac_cv_c_stack_direction=-1
  16789. fi
  16790. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16791. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16792. fi
  16793. fi
  16794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16795. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16796. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16797. fi
  16798. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16799. if test "x$ac_cv_func_mprotect" = xyes
  16800. then :
  16801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16802. /* end confdefs.h. */
  16803. #include <sys/types.h>
  16804. #include <sys/mman.h>
  16805. int
  16806. main (void)
  16807. {
  16808. ;
  16809. return 0;
  16810. }
  16811. _ACEOF
  16812. if ac_fn_c_try_compile "$LINENO"
  16813. then :
  16814. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16815. fi
  16816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16817. fi
  16818. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16819. if test "x$ac_cv_func_malloc" = xyes
  16820. then :
  16821. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16822. fi
  16823. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16824. if test "x$ac_cv_func_calloc" = xyes
  16825. then :
  16826. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16827. fi
  16828. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16829. if test "x$ac_cv_func_realloc" = xyes
  16830. then :
  16831. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16832. fi
  16833. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16834. if test "x$ac_cv_func_free" = xyes
  16835. then :
  16836. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16837. fi
  16838. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16839. if test "x$ac_cv_func_getenv" = xyes
  16840. then :
  16841. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16842. fi
  16843. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16844. if test "x$ac_cv_func_setenv" = xyes
  16845. then :
  16846. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16847. fi
  16848. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16849. if test "x$ac_cv_func_putenv" = xyes
  16850. then :
  16851. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16852. fi
  16853. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16854. if test "x$ac_cv_func_unsetenv" = xyes
  16855. then :
  16856. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16857. fi
  16858. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16859. if test "x$ac_cv_func_bsearch" = xyes
  16860. then :
  16861. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16862. fi
  16863. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16864. if test "x$ac_cv_func_qsort" = xyes
  16865. then :
  16866. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16867. fi
  16868. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16869. if test "x$ac_cv_func_abs" = xyes
  16870. then :
  16871. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16872. fi
  16873. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16874. if test "x$ac_cv_func_bcopy" = xyes
  16875. then :
  16876. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16877. fi
  16878. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16879. if test "x$ac_cv_func_memset" = xyes
  16880. then :
  16881. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16882. fi
  16883. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16884. if test "x$ac_cv_func_memcmp" = xyes
  16885. then :
  16886. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16887. fi
  16888. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16889. if test "x$ac_cv_func_memcpy" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16894. if test "x$ac_cv_func_memmove" = xyes
  16895. then :
  16896. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16897. fi
  16898. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16899. if test "x$ac_cv_func_wcslen" = xyes
  16900. then :
  16901. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16902. fi
  16903. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16904. if test "x$ac_cv_func_wcslcpy" = xyes
  16905. then :
  16906. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16907. fi
  16908. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16909. if test "x$ac_cv_func_wcslcat" = xyes
  16910. then :
  16911. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16912. fi
  16913. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16914. if test "x$ac_cv_func__wcsdup" = xyes
  16915. then :
  16916. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16917. fi
  16918. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16919. if test "x$ac_cv_func_wcsdup" = xyes
  16920. then :
  16921. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16922. fi
  16923. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16924. if test "x$ac_cv_func_wcsstr" = xyes
  16925. then :
  16926. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16927. fi
  16928. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16929. if test "x$ac_cv_func_wcscmp" = xyes
  16930. then :
  16931. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16932. fi
  16933. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16934. if test "x$ac_cv_func_wcsncmp" = xyes
  16935. then :
  16936. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16937. fi
  16938. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16939. if test "x$ac_cv_func_wcscasecmp" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16942. fi
  16943. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16944. if test "x$ac_cv_func__wcsicmp" = xyes
  16945. then :
  16946. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16947. fi
  16948. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16949. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16950. then :
  16951. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16952. fi
  16953. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16954. if test "x$ac_cv_func__wcsnicmp" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16957. fi
  16958. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16959. if test "x$ac_cv_func_strlen" = xyes
  16960. then :
  16961. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16962. fi
  16963. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16964. if test "x$ac_cv_func_strlcpy" = xyes
  16965. then :
  16966. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16967. fi
  16968. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16969. if test "x$ac_cv_func_strlcat" = xyes
  16970. then :
  16971. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16972. fi
  16973. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16974. if test "x$ac_cv_func__strrev" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16977. fi
  16978. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16979. if test "x$ac_cv_func__strupr" = xyes
  16980. then :
  16981. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16982. fi
  16983. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16984. if test "x$ac_cv_func__strlwr" = xyes
  16985. then :
  16986. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16987. fi
  16988. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16989. if test "x$ac_cv_func_index" = xyes
  16990. then :
  16991. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16992. fi
  16993. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16994. if test "x$ac_cv_func_rindex" = xyes
  16995. then :
  16996. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16997. fi
  16998. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16999. if test "x$ac_cv_func_strchr" = xyes
  17000. then :
  17001. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17002. fi
  17003. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17004. if test "x$ac_cv_func_strrchr" = xyes
  17005. then :
  17006. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17007. fi
  17008. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17009. if test "x$ac_cv_func_strstr" = xyes
  17010. then :
  17011. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17012. fi
  17013. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17014. if test "x$ac_cv_func_strtok_r" = xyes
  17015. then :
  17016. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17017. fi
  17018. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17019. if test "x$ac_cv_func_itoa" = xyes
  17020. then :
  17021. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17022. fi
  17023. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17024. if test "x$ac_cv_func__ltoa" = xyes
  17025. then :
  17026. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17027. fi
  17028. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17029. if test "x$ac_cv_func__uitoa" = xyes
  17030. then :
  17031. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17032. fi
  17033. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17034. if test "x$ac_cv_func__ultoa" = xyes
  17035. then :
  17036. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17037. fi
  17038. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17039. if test "x$ac_cv_func_strtod" = xyes
  17040. then :
  17041. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17042. fi
  17043. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17044. if test "x$ac_cv_func_strtol" = xyes
  17045. then :
  17046. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17047. fi
  17048. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17049. if test "x$ac_cv_func_strtoul" = xyes
  17050. then :
  17051. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17052. fi
  17053. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17054. if test "x$ac_cv_func__i64toa" = xyes
  17055. then :
  17056. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17057. fi
  17058. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17059. if test "x$ac_cv_func__ui64toa" = xyes
  17060. then :
  17061. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17062. fi
  17063. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17064. if test "x$ac_cv_func_strtoll" = xyes
  17065. then :
  17066. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17067. fi
  17068. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17069. if test "x$ac_cv_func_strtoull" = xyes
  17070. then :
  17071. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17072. fi
  17073. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17074. if test "x$ac_cv_func_atoi" = xyes
  17075. then :
  17076. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17077. fi
  17078. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17079. if test "x$ac_cv_func_atof" = xyes
  17080. then :
  17081. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17082. fi
  17083. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17084. if test "x$ac_cv_func_strcmp" = xyes
  17085. then :
  17086. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17087. fi
  17088. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17089. if test "x$ac_cv_func_strncmp" = xyes
  17090. then :
  17091. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17092. fi
  17093. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17094. if test "x$ac_cv_func__stricmp" = xyes
  17095. then :
  17096. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17097. fi
  17098. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17099. if test "x$ac_cv_func_strcasecmp" = xyes
  17100. then :
  17101. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17104. if test "x$ac_cv_func__strnicmp" = xyes
  17105. then :
  17106. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17109. if test "x$ac_cv_func_strncasecmp" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17114. if test "x$ac_cv_func_strcasestr" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17119. if test "x$ac_cv_func_vsscanf" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17124. if test "x$ac_cv_func_vsnprintf" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17129. if test "x$ac_cv_func_fopen64" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17134. if test "x$ac_cv_func_fseeko" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17139. if test "x$ac_cv_func_fseeko64" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17144. if test "x$ac_cv_func_sigaction" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17149. if test "x$ac_cv_func_setjmp" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17154. if test "x$ac_cv_func_nanosleep" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17159. if test "x$ac_cv_func_sysconf" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17164. if test "x$ac_cv_func_sysctlbyname" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17169. if test "x$ac_cv_func_getauxval" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17174. if test "x$ac_cv_func_elf_aux_info" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17179. if test "x$ac_cv_func_poll" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17184. if test "x$ac_cv_func__Exit" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17187. fi
  17188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17189. printf %s "checking for pow in -lm... " >&6; }
  17190. if test ${ac_cv_lib_m_pow+y}
  17191. then :
  17192. printf %s "(cached) " >&6
  17193. else $as_nop
  17194. ac_check_lib_save_LIBS=$LIBS
  17195. LIBS="-lm $LIBS"
  17196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17197. /* end confdefs.h. */
  17198. /* Override any GCC internal prototype to avoid an error.
  17199. Use char because int might match the return type of a GCC
  17200. builtin and then its argument prototype would still apply. */
  17201. char pow ();
  17202. int
  17203. main (void)
  17204. {
  17205. return pow ();
  17206. ;
  17207. return 0;
  17208. }
  17209. _ACEOF
  17210. if ac_fn_c_try_link "$LINENO"
  17211. then :
  17212. ac_cv_lib_m_pow=yes
  17213. else $as_nop
  17214. ac_cv_lib_m_pow=no
  17215. fi
  17216. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17217. conftest$ac_exeext conftest.$ac_ext
  17218. LIBS=$ac_check_lib_save_LIBS
  17219. fi
  17220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17221. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17222. if test "x$ac_cv_lib_m_pow" = xyes
  17223. then :
  17224. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17225. fi
  17226. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17227. if test "x$ac_cv_func_acos" = xyes
  17228. then :
  17229. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17230. fi
  17231. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17232. if test "x$ac_cv_func_acosf" = xyes
  17233. then :
  17234. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17235. fi
  17236. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17237. if test "x$ac_cv_func_asin" = xyes
  17238. then :
  17239. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17240. fi
  17241. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17242. if test "x$ac_cv_func_asinf" = xyes
  17243. then :
  17244. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17245. fi
  17246. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17247. if test "x$ac_cv_func_atan" = xyes
  17248. then :
  17249. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17250. fi
  17251. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17252. if test "x$ac_cv_func_atanf" = xyes
  17253. then :
  17254. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17255. fi
  17256. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17257. if test "x$ac_cv_func_atan2" = xyes
  17258. then :
  17259. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17260. fi
  17261. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17262. if test "x$ac_cv_func_atan2f" = xyes
  17263. then :
  17264. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17265. fi
  17266. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17267. if test "x$ac_cv_func_ceil" = xyes
  17268. then :
  17269. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17270. fi
  17271. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17272. if test "x$ac_cv_func_ceilf" = xyes
  17273. then :
  17274. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17275. fi
  17276. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17277. if test "x$ac_cv_func_copysign" = xyes
  17278. then :
  17279. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17280. fi
  17281. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17282. if test "x$ac_cv_func_copysignf" = xyes
  17283. then :
  17284. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17285. fi
  17286. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17287. if test "x$ac_cv_func_cos" = xyes
  17288. then :
  17289. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17290. fi
  17291. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17292. if test "x$ac_cv_func_cosf" = xyes
  17293. then :
  17294. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17295. fi
  17296. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17297. if test "x$ac_cv_func_exp" = xyes
  17298. then :
  17299. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17300. fi
  17301. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17302. if test "x$ac_cv_func_expf" = xyes
  17303. then :
  17304. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17305. fi
  17306. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17307. if test "x$ac_cv_func_fabs" = xyes
  17308. then :
  17309. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17310. fi
  17311. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17312. if test "x$ac_cv_func_fabsf" = xyes
  17313. then :
  17314. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17315. fi
  17316. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17317. if test "x$ac_cv_func_floor" = xyes
  17318. then :
  17319. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17320. fi
  17321. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17322. if test "x$ac_cv_func_floorf" = xyes
  17323. then :
  17324. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17325. fi
  17326. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17327. if test "x$ac_cv_func_trunc" = xyes
  17328. then :
  17329. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17330. fi
  17331. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17332. if test "x$ac_cv_func_truncf" = xyes
  17333. then :
  17334. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17335. fi
  17336. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17337. if test "x$ac_cv_func_fmod" = xyes
  17338. then :
  17339. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17340. fi
  17341. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17342. if test "x$ac_cv_func_fmodf" = xyes
  17343. then :
  17344. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17345. fi
  17346. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17347. if test "x$ac_cv_func_log" = xyes
  17348. then :
  17349. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17350. fi
  17351. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17352. if test "x$ac_cv_func_logf" = xyes
  17353. then :
  17354. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17355. fi
  17356. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17357. if test "x$ac_cv_func_log10" = xyes
  17358. then :
  17359. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17360. fi
  17361. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17362. if test "x$ac_cv_func_log10f" = xyes
  17363. then :
  17364. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17365. fi
  17366. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17367. if test "x$ac_cv_func_lround" = xyes
  17368. then :
  17369. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17370. fi
  17371. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17372. if test "x$ac_cv_func_lroundf" = xyes
  17373. then :
  17374. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17375. fi
  17376. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17377. if test "x$ac_cv_func_pow" = xyes
  17378. then :
  17379. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17380. fi
  17381. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17382. if test "x$ac_cv_func_powf" = xyes
  17383. then :
  17384. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17385. fi
  17386. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17387. if test "x$ac_cv_func_round" = xyes
  17388. then :
  17389. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17390. fi
  17391. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17392. if test "x$ac_cv_func_roundf" = xyes
  17393. then :
  17394. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17395. fi
  17396. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17397. if test "x$ac_cv_func_scalbn" = xyes
  17398. then :
  17399. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17400. fi
  17401. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17402. if test "x$ac_cv_func_scalbnf" = xyes
  17403. then :
  17404. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17405. fi
  17406. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17407. if test "x$ac_cv_func_sin" = xyes
  17408. then :
  17409. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17410. fi
  17411. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17412. if test "x$ac_cv_func_sinf" = xyes
  17413. then :
  17414. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17415. fi
  17416. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17417. if test "x$ac_cv_func_sqrt" = xyes
  17418. then :
  17419. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17420. fi
  17421. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17422. if test "x$ac_cv_func_sqrtf" = xyes
  17423. then :
  17424. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17425. fi
  17426. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17427. if test "x$ac_cv_func_tan" = xyes
  17428. then :
  17429. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17430. fi
  17431. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17432. if test "x$ac_cv_func_tanf" = xyes
  17433. then :
  17434. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17435. fi
  17436. if test x$enable_system_iconv = xyes; then
  17437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17438. printf %s "checking for iconv_open in -liconv... " >&6; }
  17439. if test ${ac_cv_lib_iconv_iconv_open+y}
  17440. then :
  17441. printf %s "(cached) " >&6
  17442. else $as_nop
  17443. ac_check_lib_save_LIBS=$LIBS
  17444. LIBS="-liconv $LIBS"
  17445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17446. /* end confdefs.h. */
  17447. /* Override any GCC internal prototype to avoid an error.
  17448. Use char because int might match the return type of a GCC
  17449. builtin and then its argument prototype would still apply. */
  17450. char iconv_open ();
  17451. int
  17452. main (void)
  17453. {
  17454. return iconv_open ();
  17455. ;
  17456. return 0;
  17457. }
  17458. _ACEOF
  17459. if ac_fn_c_try_link "$LINENO"
  17460. then :
  17461. ac_cv_lib_iconv_iconv_open=yes
  17462. else $as_nop
  17463. ac_cv_lib_iconv_iconv_open=no
  17464. fi
  17465. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17466. conftest$ac_exeext conftest.$ac_ext
  17467. LIBS=$ac_check_lib_save_LIBS
  17468. fi
  17469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17470. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17471. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17472. then :
  17473. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17474. fi
  17475. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17476. if test "x$ac_cv_func_iconv" = xyes
  17477. then :
  17478. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17479. fi
  17480. fi
  17481. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17482. "
  17483. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17484. then :
  17485. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17486. fi
  17487. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17488. if test "x$ac_cv_header_libunwind_h" = xyes
  17489. then :
  17490. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17491. fi
  17492. fi
  17493. # Check whether --enable-gcc-atomics was given.
  17494. if test ${enable_gcc_atomics+y}
  17495. then :
  17496. enableval=$enable_gcc_atomics;
  17497. else $as_nop
  17498. enable_gcc_atomics=yes
  17499. fi
  17500. if test x$enable_gcc_atomics = xyes; then
  17501. have_gcc_atomics=no
  17502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17503. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17505. /* end confdefs.h. */
  17506. int
  17507. main (void)
  17508. {
  17509. int a;
  17510. void *x, *y, *z;
  17511. __sync_lock_test_and_set(&a, 4);
  17512. __sync_lock_test_and_set(&x, y);
  17513. __sync_fetch_and_add(&a, 1);
  17514. __sync_bool_compare_and_swap(&a, 5, 10);
  17515. __sync_bool_compare_and_swap(&x, y, z);
  17516. ;
  17517. return 0;
  17518. }
  17519. _ACEOF
  17520. if ac_fn_c_try_link "$LINENO"
  17521. then :
  17522. have_gcc_atomics=yes
  17523. fi
  17524. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17525. conftest$ac_exeext conftest.$ac_ext
  17526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17527. printf "%s\n" "$have_gcc_atomics" >&6; }
  17528. if test x$have_gcc_atomics = xyes; then
  17529. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17530. else
  17531. # See if we have the minimum operation needed for GCC atomics
  17532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17533. /* end confdefs.h. */
  17534. int
  17535. main (void)
  17536. {
  17537. int a;
  17538. __sync_lock_test_and_set(&a, 1);
  17539. __sync_lock_release(&a);
  17540. ;
  17541. return 0;
  17542. }
  17543. _ACEOF
  17544. if ac_fn_c_try_link "$LINENO"
  17545. then :
  17546. have_gcc_sync_lock_test_and_set=yes
  17547. fi
  17548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17549. conftest$ac_exeext conftest.$ac_ext
  17550. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17551. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17552. fi
  17553. fi
  17554. fi
  17555. # Standard C sources
  17556. SOURCES="$SOURCES $srcdir/src/*.c"
  17557. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17558. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17559. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17560. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17561. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17562. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17563. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17564. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17565. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17566. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17567. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17568. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17569. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17570. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17571. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17572. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17573. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17574. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17575. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17576. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17577. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17578. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17579. case "$host" in
  17580. *-*-emscripten*)
  17581. default_atomic=no
  17582. ;;
  17583. *)
  17584. default_atomic=yes
  17585. ;;
  17586. esac
  17587. # Check whether --enable-atomic was given.
  17588. if test ${enable_atomic+y}
  17589. then :
  17590. enableval=$enable_atomic;
  17591. else $as_nop
  17592. enable_atomic=$default_atomic
  17593. fi
  17594. if test x$enable_atomic != xyes; then
  17595. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17596. else
  17597. SUMMARY_modules="${SUMMARY_modules} atomic"
  17598. fi
  17599. # Check whether --enable-audio was given.
  17600. if test ${enable_audio+y}
  17601. then :
  17602. enableval=$enable_audio;
  17603. else $as_nop
  17604. enable_audio=yes
  17605. fi
  17606. if test x$enable_audio != xyes; then
  17607. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} audio"
  17610. fi
  17611. # Check whether --enable-video was given.
  17612. if test ${enable_video+y}
  17613. then :
  17614. enableval=$enable_video;
  17615. else $as_nop
  17616. enable_video=yes
  17617. fi
  17618. if test x$enable_video != xyes; then
  17619. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} video"
  17622. fi
  17623. # Check whether --enable-render was given.
  17624. if test ${enable_render+y}
  17625. then :
  17626. enableval=$enable_render;
  17627. else $as_nop
  17628. enable_render=yes
  17629. fi
  17630. if test x$enable_render != xyes; then
  17631. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17632. else
  17633. SUMMARY_modules="${SUMMARY_modules} render"
  17634. fi
  17635. # Check whether --enable-events was given.
  17636. if test ${enable_events+y}
  17637. then :
  17638. enableval=$enable_events;
  17639. else $as_nop
  17640. enable_events=yes
  17641. fi
  17642. if test x$enable_events != xyes; then
  17643. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17644. else
  17645. SUMMARY_modules="${SUMMARY_modules} events"
  17646. fi
  17647. # Check whether --enable-joystick was given.
  17648. if test ${enable_joystick+y}
  17649. then :
  17650. enableval=$enable_joystick;
  17651. else $as_nop
  17652. enable_joystick=yes
  17653. fi
  17654. if test x$enable_joystick != xyes; then
  17655. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17656. else
  17657. SUMMARY_modules="${SUMMARY_modules} joystick"
  17658. fi
  17659. # Check whether --enable-haptic was given.
  17660. if test ${enable_haptic+y}
  17661. then :
  17662. enableval=$enable_haptic;
  17663. else $as_nop
  17664. enable_haptic=yes
  17665. fi
  17666. if test x$enable_haptic != xyes; then
  17667. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17668. else
  17669. SUMMARY_modules="${SUMMARY_modules} haptic"
  17670. fi
  17671. # Check whether --enable-hidapi was given.
  17672. if test ${enable_hidapi+y}
  17673. then :
  17674. enableval=$enable_hidapi;
  17675. else $as_nop
  17676. enable_hidapi=yes
  17677. fi
  17678. if test x$enable_hidapi != xyes; then
  17679. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17680. else
  17681. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17682. fi
  17683. # Check whether --enable-sensor was given.
  17684. if test ${enable_sensor+y}
  17685. then :
  17686. enableval=$enable_sensor;
  17687. else $as_nop
  17688. enable_sensor=yes
  17689. fi
  17690. if test x$enable_sensor != xyes; then
  17691. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17692. else
  17693. SUMMARY_modules="${SUMMARY_modules} sensor"
  17694. fi
  17695. # Check whether --enable-power was given.
  17696. if test ${enable_power+y}
  17697. then :
  17698. enableval=$enable_power;
  17699. else $as_nop
  17700. enable_power=yes
  17701. fi
  17702. if test x$enable_power != xyes; then
  17703. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17704. else
  17705. SUMMARY_modules="${SUMMARY_modules} power"
  17706. fi
  17707. # Check whether --enable-filesystem was given.
  17708. if test ${enable_filesystem+y}
  17709. then :
  17710. enableval=$enable_filesystem;
  17711. else $as_nop
  17712. enable_filesystem=yes
  17713. fi
  17714. if test x$enable_filesystem != xyes; then
  17715. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17716. else
  17717. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17718. fi
  17719. # Many subsystems depend on threads, so leave them enabled by default
  17720. #AC_ARG_ENABLE(threads,
  17721. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17722. # , enable_threads=yes)
  17723. enable_threads=yes
  17724. if test x$enable_threads != xyes; then
  17725. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17726. else
  17727. SUMMARY_modules="${SUMMARY_modules} threads"
  17728. fi
  17729. # Check whether --enable-timers was given.
  17730. if test ${enable_timers+y}
  17731. then :
  17732. enableval=$enable_timers;
  17733. else $as_nop
  17734. enable_timers=yes
  17735. fi
  17736. if test x$enable_timers != xyes; then
  17737. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17738. else
  17739. SUMMARY_modules="${SUMMARY_modules} timers"
  17740. fi
  17741. # Check whether --enable-file was given.
  17742. if test ${enable_file+y}
  17743. then :
  17744. enableval=$enable_file;
  17745. else $as_nop
  17746. enable_file=yes
  17747. fi
  17748. if test x$enable_file != xyes; then
  17749. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17750. else
  17751. SUMMARY_modules="${SUMMARY_modules} file"
  17752. fi
  17753. # Check whether --enable-misc was given.
  17754. if test ${enable_misc+y}
  17755. then :
  17756. enableval=$enable_misc;
  17757. else $as_nop
  17758. enable_misc=yes
  17759. fi
  17760. if test x$enable_misc != xyes; then
  17761. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17762. else
  17763. SUMMARY_modules="${SUMMARY_modules} misc"
  17764. fi
  17765. # Check whether --enable-locale was given.
  17766. if test ${enable_locale+y}
  17767. then :
  17768. enableval=$enable_locale;
  17769. else $as_nop
  17770. enable_locale=yes
  17771. fi
  17772. if test x$enable_locale != xyes; then
  17773. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17774. else
  17775. SUMMARY_modules="${SUMMARY_modules} locale"
  17776. fi
  17777. # Check whether --enable-loadso was given.
  17778. if test ${enable_loadso+y}
  17779. then :
  17780. enableval=$enable_loadso;
  17781. else $as_nop
  17782. enable_loadso=yes
  17783. fi
  17784. if test x$enable_loadso != xyes; then
  17785. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17786. else
  17787. SUMMARY_modules="${SUMMARY_modules} loadso"
  17788. fi
  17789. # Check whether --enable-cpuinfo was given.
  17790. if test ${enable_cpuinfo+y}
  17791. then :
  17792. enableval=$enable_cpuinfo;
  17793. else $as_nop
  17794. enable_cpuinfo=yes
  17795. fi
  17796. if test x$enable_cpuinfo != xyes; then
  17797. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17798. else
  17799. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17800. fi
  17801. # Check whether --enable-assembly was given.
  17802. if test ${enable_assembly+y}
  17803. then :
  17804. enableval=$enable_assembly;
  17805. else $as_nop
  17806. enable_assembly=yes
  17807. fi
  17808. if test x$enable_assembly = xyes; then
  17809. SUMMARY_modules="${SUMMARY_modules} assembly"
  17810. # Make sure that we don't generate floating point code that would
  17811. # cause illegal instruction exceptions on older processors
  17812. case "$host" in
  17813. *-*-darwin*)
  17814. # Don't need to worry about Apple hardware, it's all SSE capable
  17815. default_ssemath=yes
  17816. ;;
  17817. *64-*-*)
  17818. # x86 64-bit architectures all have SSE instructions
  17819. default_ssemath=yes
  17820. ;;
  17821. *)
  17822. default_ssemath=no
  17823. ;;
  17824. esac
  17825. # Check whether --enable-ssemath was given.
  17826. if test ${enable_ssemath+y}
  17827. then :
  17828. enableval=$enable_ssemath;
  17829. else $as_nop
  17830. enable_ssemath=$default_ssemath
  17831. fi
  17832. if test x$enable_ssemath = xno; then
  17833. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17834. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17835. fi
  17836. fi
  17837. # Check whether --enable-mmx was given.
  17838. if test ${enable_mmx+y}
  17839. then :
  17840. enableval=$enable_mmx;
  17841. else $as_nop
  17842. enable_mmx=yes
  17843. fi
  17844. if test x$enable_mmx = xyes; then
  17845. save_CFLAGS="$CFLAGS"
  17846. have_gcc_mmx=no
  17847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17848. printf %s "checking for GCC -mmmx option... " >&6; }
  17849. mmx_CFLAGS="-mmmx"
  17850. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17852. /* end confdefs.h. */
  17853. #ifdef __MINGW32__
  17854. #include <_mingw.h>
  17855. #ifdef __MINGW64_VERSION_MAJOR
  17856. #include <intrin.h>
  17857. #else
  17858. #include <mmintrin.h>
  17859. #endif
  17860. #else
  17861. #include <mmintrin.h>
  17862. #endif
  17863. #ifndef __MMX__
  17864. #error Assembler CPP flag not enabled
  17865. #endif
  17866. int
  17867. main (void)
  17868. {
  17869. ;
  17870. return 0;
  17871. }
  17872. _ACEOF
  17873. if ac_fn_c_try_compile "$LINENO"
  17874. then :
  17875. have_gcc_mmx=yes
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17879. printf "%s\n" "$have_gcc_mmx" >&6; }
  17880. CFLAGS="$save_CFLAGS"
  17881. if test x$have_gcc_mmx = xyes; then
  17882. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17883. SUMMARY_math="${SUMMARY_math} mmx"
  17884. fi
  17885. fi
  17886. # Check whether --enable-3dnow was given.
  17887. if test ${enable_3dnow+y}
  17888. then :
  17889. enableval=$enable_3dnow;
  17890. else $as_nop
  17891. enable_3dnow=yes
  17892. fi
  17893. if test x$enable_3dnow = xyes; then
  17894. save_CFLAGS="$CFLAGS"
  17895. have_gcc_3dnow=no
  17896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17897. printf %s "checking for GCC -m3dnow option... " >&6; }
  17898. amd3dnow_CFLAGS="-m3dnow"
  17899. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17901. /* end confdefs.h. */
  17902. #include <mm3dnow.h>
  17903. #ifndef __3dNOW__
  17904. #error Assembler CPP flag not enabled
  17905. #endif
  17906. int
  17907. main (void)
  17908. {
  17909. void *p = 0;
  17910. _m_prefetch(p);
  17911. ;
  17912. return 0;
  17913. }
  17914. _ACEOF
  17915. if ac_fn_c_try_link "$LINENO"
  17916. then :
  17917. have_gcc_3dnow=yes
  17918. fi
  17919. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17920. conftest$ac_exeext conftest.$ac_ext
  17921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17922. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17923. CFLAGS="$save_CFLAGS"
  17924. if test x$have_gcc_3dnow = xyes; then
  17925. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17926. SUMMARY_math="${SUMMARY_math} 3dnow"
  17927. fi
  17928. fi
  17929. # Check whether --enable-sse was given.
  17930. if test ${enable_sse+y}
  17931. then :
  17932. enableval=$enable_sse;
  17933. else $as_nop
  17934. enable_sse=yes
  17935. fi
  17936. if test x$enable_sse = xyes; then
  17937. save_CFLAGS="$CFLAGS"
  17938. have_gcc_sse=no
  17939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17940. printf %s "checking for GCC -msse option... " >&6; }
  17941. sse_CFLAGS="-msse"
  17942. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17944. /* end confdefs.h. */
  17945. #ifdef __MINGW32__
  17946. #include <_mingw.h>
  17947. #ifdef __MINGW64_VERSION_MAJOR
  17948. #include <intrin.h>
  17949. #else
  17950. #include <xmmintrin.h>
  17951. #endif
  17952. #else
  17953. #include <xmmintrin.h>
  17954. #endif
  17955. #ifndef __SSE__
  17956. #error Assembler CPP flag not enabled
  17957. #endif
  17958. int
  17959. main (void)
  17960. {
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_compile "$LINENO"
  17966. then :
  17967. have_gcc_sse=yes
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17971. printf "%s\n" "$have_gcc_sse" >&6; }
  17972. CFLAGS="$save_CFLAGS"
  17973. if test x$have_gcc_sse = xyes; then
  17974. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17975. SUMMARY_math="${SUMMARY_math} sse"
  17976. fi
  17977. fi
  17978. # Check whether --enable-sse2 was given.
  17979. if test ${enable_sse2+y}
  17980. then :
  17981. enableval=$enable_sse2;
  17982. else $as_nop
  17983. enable_sse2=$default_ssemath
  17984. fi
  17985. if test x$enable_sse2 = xyes; then
  17986. save_CFLAGS="$CFLAGS"
  17987. have_gcc_sse2=no
  17988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17989. printf %s "checking for GCC -msse2 option... " >&6; }
  17990. sse2_CFLAGS="-msse2"
  17991. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. #ifdef __MINGW32__
  17995. #include <_mingw.h>
  17996. #ifdef __MINGW64_VERSION_MAJOR
  17997. #include <intrin.h>
  17998. #else
  17999. #include <emmintrin.h>
  18000. #endif
  18001. #else
  18002. #include <emmintrin.h>
  18003. #endif
  18004. #ifndef __SSE2__
  18005. #error Assembler CPP flag not enabled
  18006. #endif
  18007. int
  18008. main (void)
  18009. {
  18010. ;
  18011. return 0;
  18012. }
  18013. _ACEOF
  18014. if ac_fn_c_try_compile "$LINENO"
  18015. then :
  18016. have_gcc_sse2=yes
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18020. printf "%s\n" "$have_gcc_sse2" >&6; }
  18021. CFLAGS="$save_CFLAGS"
  18022. if test x$have_gcc_sse2 = xyes; then
  18023. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18024. SUMMARY_math="${SUMMARY_math} sse2"
  18025. fi
  18026. fi
  18027. # Check whether --enable-sse3 was given.
  18028. if test ${enable_sse3+y}
  18029. then :
  18030. enableval=$enable_sse3;
  18031. else $as_nop
  18032. enable_sse3=$default_ssemath
  18033. fi
  18034. if test x$enable_sse3 = xyes; then
  18035. save_CFLAGS="$CFLAGS"
  18036. have_gcc_sse3=no
  18037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18038. printf %s "checking for GCC -msse3 option... " >&6; }
  18039. sse3_CFLAGS="-msse3"
  18040. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. #ifdef __MINGW32__
  18044. #include <_mingw.h>
  18045. #ifdef __MINGW64_VERSION_MAJOR
  18046. #include <intrin.h>
  18047. #else
  18048. #include <pmmintrin.h>
  18049. #endif
  18050. #else
  18051. #include <pmmintrin.h>
  18052. #endif
  18053. #ifndef __SSE2__
  18054. #error Assembler CPP flag not enabled
  18055. #endif
  18056. int
  18057. main (void)
  18058. {
  18059. ;
  18060. return 0;
  18061. }
  18062. _ACEOF
  18063. if ac_fn_c_try_compile "$LINENO"
  18064. then :
  18065. have_gcc_sse3=yes
  18066. fi
  18067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18069. printf "%s\n" "$have_gcc_sse3" >&6; }
  18070. CFLAGS="$save_CFLAGS"
  18071. if test x$have_gcc_sse3 = xyes; then
  18072. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18073. SUMMARY_math="${SUMMARY_math} sse3"
  18074. fi
  18075. fi
  18076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18077. printf %s "checking for immintrin.h... " >&6; }
  18078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18079. /* end confdefs.h. */
  18080. #include <immintrin.h>
  18081. int
  18082. main (void)
  18083. {
  18084. ;
  18085. return 0;
  18086. }
  18087. _ACEOF
  18088. if ac_fn_c_try_compile "$LINENO"
  18089. then :
  18090. have_immintrin_h_hdr=yes
  18091. else $as_nop
  18092. have_immintrin_h_hdr=no
  18093. fi
  18094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18096. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18097. if test x$have_immintrin_h_hdr = xyes; then
  18098. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18099. fi
  18100. # Check whether --enable-altivec was given.
  18101. if test ${enable_altivec+y}
  18102. then :
  18103. enableval=$enable_altivec;
  18104. else $as_nop
  18105. enable_altivec=yes
  18106. fi
  18107. if test x$enable_altivec = xyes; then
  18108. save_CFLAGS="$CFLAGS"
  18109. have_gcc_altivec=no
  18110. have_altivec_h_hdr=no
  18111. altivec_CFLAGS="-maltivec"
  18112. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18114. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. #include <altivec.h>
  18118. vector unsigned int vzero() {
  18119. return vec_splat_u32(0);
  18120. }
  18121. int
  18122. main (void)
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"
  18129. then :
  18130. have_gcc_altivec=yes
  18131. have_altivec_h_hdr=yes
  18132. fi
  18133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18135. printf "%s\n" "$have_gcc_altivec" >&6; }
  18136. if test x$have_gcc_altivec = xno; then
  18137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18138. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18140. /* end confdefs.h. */
  18141. vector unsigned int vzero() {
  18142. return vec_splat_u32(0);
  18143. }
  18144. int
  18145. main (void)
  18146. {
  18147. ;
  18148. return 0;
  18149. }
  18150. _ACEOF
  18151. if ac_fn_c_try_compile "$LINENO"
  18152. then :
  18153. have_gcc_altivec=yes
  18154. fi
  18155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18157. printf "%s\n" "$have_gcc_altivec" >&6; }
  18158. fi
  18159. if test x$have_gcc_altivec = xno; then
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18161. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18162. altivec_CFLAGS="-faltivec"
  18163. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18165. /* end confdefs.h. */
  18166. #include <altivec.h>
  18167. vector unsigned int vzero() {
  18168. return vec_splat_u32(0);
  18169. }
  18170. int
  18171. main (void)
  18172. {
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. if ac_fn_c_try_compile "$LINENO"
  18178. then :
  18179. have_gcc_altivec=yes
  18180. have_altivec_h_hdr=yes
  18181. fi
  18182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18184. printf "%s\n" "$have_gcc_altivec" >&6; }
  18185. fi
  18186. if test x$have_gcc_altivec = xno; then
  18187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18188. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18190. /* end confdefs.h. */
  18191. vector unsigned int vzero() {
  18192. return vec_splat_u32(0);
  18193. }
  18194. int
  18195. main (void)
  18196. {
  18197. ;
  18198. return 0;
  18199. }
  18200. _ACEOF
  18201. if ac_fn_c_try_compile "$LINENO"
  18202. then :
  18203. have_gcc_altivec=yes
  18204. fi
  18205. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18207. printf "%s\n" "$have_gcc_altivec" >&6; }
  18208. fi
  18209. CFLAGS="$save_CFLAGS"
  18210. if test x$have_gcc_altivec = xyes; then
  18211. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18212. if test x$have_altivec_h_hdr = xyes; then
  18213. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18214. fi
  18215. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18216. SUMMARY_math="${SUMMARY_math} altivec"
  18217. fi
  18218. fi
  18219. fi
  18220. # Check whether --enable-lsx was given.
  18221. if test ${enable_lsx+y}
  18222. then :
  18223. enableval=$enable_lsx;
  18224. else $as_nop
  18225. enable_lsx=yes
  18226. fi
  18227. if test x$enable_lsx = xyes; then
  18228. save_CFLAGS="$CFLAGS"
  18229. have_gcc_lsx=no
  18230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18231. printf %s "checking for GCC -mlsx option... " >&6; }
  18232. lsx_CFLAGS="-mlsx"
  18233. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18235. /* end confdefs.h. */
  18236. #ifndef __loongarch_sx
  18237. #error Assembler CPP flag not enabled
  18238. #endif
  18239. int
  18240. main (void)
  18241. {
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. if ac_fn_c_try_compile "$LINENO"
  18247. then :
  18248. have_gcc_lsx=yes
  18249. fi
  18250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18252. printf "%s\n" "$have_gcc_lsx" >&6; }
  18253. CFLAGS="$save_CFLAGS"
  18254. if test x$have_gcc_lsx = xyes; then
  18255. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18256. SUMMARY_math="${SUMMARY_math} lsx"
  18257. fi
  18258. fi
  18259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18260. printf %s "checking for lsxintrin.h... " >&6; }
  18261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18262. /* end confdefs.h. */
  18263. #include <lsxintrin.h>
  18264. int
  18265. main (void)
  18266. {
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_compile "$LINENO"
  18272. then :
  18273. have_lsxintrin_h_hdr=yes
  18274. else $as_nop
  18275. have_lsxintrin_h_hdr=no
  18276. fi
  18277. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18279. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18280. if test x$have_lsxintrin_h_hdr = xyes; then
  18281. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18282. fi
  18283. # Check whether --enable-lasx was given.
  18284. if test ${enable_lasx+y}
  18285. then :
  18286. enableval=$enable_lasx;
  18287. else $as_nop
  18288. enable_LASX=yes
  18289. fi
  18290. if test x$enable_LASX = xyes; then
  18291. save_CFLAGS="$CFLAGS"
  18292. have_gcc_lasx=no
  18293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18294. printf %s "checking for GCC -mlasx option... " >&6; }
  18295. lasx_CFLAGS="-mlasx"
  18296. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18298. /* end confdefs.h. */
  18299. #ifndef __loongarch_asx
  18300. #error Assembler CPP flag not enabled
  18301. #endif
  18302. int
  18303. main (void)
  18304. {
  18305. ;
  18306. return 0;
  18307. }
  18308. _ACEOF
  18309. if ac_fn_c_try_compile "$LINENO"
  18310. then :
  18311. have_gcc_lasx=yes
  18312. fi
  18313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18315. printf "%s\n" "$have_gcc_lasx" >&6; }
  18316. CFLAGS="$save_CFLAGS"
  18317. if test x$have_gcc_lasx = xyes; then
  18318. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18319. SUMMARY_math="${SUMMARY_math} lasx"
  18320. fi
  18321. fi
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18323. printf %s "checking for lasxintrin.h... " >&6; }
  18324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18325. /* end confdefs.h. */
  18326. #include <lasxintrin.h>
  18327. int
  18328. main (void)
  18329. {
  18330. ;
  18331. return 0;
  18332. }
  18333. _ACEOF
  18334. if ac_fn_c_try_compile "$LINENO"
  18335. then :
  18336. have_lasxintrin_h_hdr=yes
  18337. else $as_nop
  18338. have_lasxintrin_h_hdr=no
  18339. fi
  18340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18342. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18343. if test x$have_lasxintrin_h_hdr = xyes; then
  18344. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18345. fi
  18346. CheckOSS()
  18347. {
  18348. # Check whether --enable-oss was given.
  18349. if test ${enable_oss+y}
  18350. then :
  18351. enableval=$enable_oss;
  18352. else $as_nop
  18353. enable_oss=maybe
  18354. fi
  18355. if test x$enable_oss = xmaybe; then
  18356. enable_oss=yes
  18357. fi
  18358. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18360. printf %s "checking for OSS audio support... " >&6; }
  18361. have_oss=no
  18362. if test x$have_oss != xyes; then
  18363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18364. /* end confdefs.h. */
  18365. #include <sys/soundcard.h>
  18366. int
  18367. main (void)
  18368. {
  18369. int arg = SNDCTL_DSP_SETFRAGMENT;
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_compile "$LINENO"
  18375. then :
  18376. have_oss=yes
  18377. fi
  18378. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18379. fi
  18380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18381. printf "%s\n" "$have_oss" >&6; }
  18382. if test x$have_oss = xyes; then
  18383. SUMMARY_audio="${SUMMARY_audio} oss"
  18384. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18385. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18386. have_audio=yes
  18387. # We may need to link with ossaudio emulation library
  18388. case "$host" in
  18389. *-*-netbsd*)
  18390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18391. esac
  18392. fi
  18393. fi
  18394. }
  18395. CheckALSA()
  18396. {
  18397. # Check whether --enable-alsa was given.
  18398. if test ${enable_alsa+y}
  18399. then :
  18400. enableval=$enable_alsa;
  18401. else $as_nop
  18402. enable_alsa=yes
  18403. fi
  18404. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18405. alsa_save_CFLAGS="$CFLAGS"
  18406. alsa_save_LDFLAGS="$LDFLAGS"
  18407. alsa_save_LIBS="$LIBS"
  18408. alsa_found=yes
  18409. # Check whether --with-alsa-prefix was given.
  18410. if test ${with_alsa_prefix+y}
  18411. then :
  18412. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18413. else $as_nop
  18414. alsa_prefix=""
  18415. fi
  18416. # Check whether --with-alsa-inc-prefix was given.
  18417. if test ${with_alsa_inc_prefix+y}
  18418. then :
  18419. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18420. else $as_nop
  18421. alsa_inc_prefix=""
  18422. fi
  18423. # Check whether --enable-alsatest was given.
  18424. if test ${enable_alsatest+y}
  18425. then :
  18426. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18427. else $as_nop
  18428. enable_alsatest=yes
  18429. fi
  18430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18431. printf %s "checking for ALSA CFLAGS... " >&6; }
  18432. if test "$alsa_inc_prefix" != "" ; then
  18433. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18434. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18435. fi
  18436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18437. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18439. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18440. if test "$alsa_prefix" != "" ; then
  18441. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18442. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18443. fi
  18444. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18445. LIBS=`echo $LIBS | sed 's/-lm//'`
  18446. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18447. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18448. LIBS=`echo $LIBS | sed 's/ //'`
  18449. LIBS="$ALSA_LIBS $LIBS"
  18450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18451. printf "%s\n" "$ALSA_LIBS" >&6; }
  18452. min_alsa_version=1.0.11
  18453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18454. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18455. no_alsa=""
  18456. alsa_min_major_version=`echo $min_alsa_version | \
  18457. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18458. alsa_min_minor_version=`echo $min_alsa_version | \
  18459. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18460. alsa_min_micro_version=`echo $min_alsa_version | \
  18461. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18462. ac_ext=c
  18463. ac_cpp='$CPP $CPPFLAGS'
  18464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18468. /* end confdefs.h. */
  18469. #include <alsa/asoundlib.h>
  18470. int
  18471. main (void)
  18472. {
  18473. /* ensure backward compatibility */
  18474. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18475. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18476. #endif
  18477. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18478. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18479. #endif
  18480. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18481. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18482. #endif
  18483. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18484. exit(0);
  18485. # else
  18486. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18487. # error not present
  18488. # endif
  18489. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18490. exit(0);
  18491. # else
  18492. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18493. # error not present
  18494. # endif
  18495. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18496. # error not present
  18497. # endif
  18498. # endif
  18499. # endif
  18500. exit(0);
  18501. ;
  18502. return 0;
  18503. }
  18504. _ACEOF
  18505. if ac_fn_c_try_compile "$LINENO"
  18506. then :
  18507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18508. printf "%s\n" "found." >&6; }
  18509. else $as_nop
  18510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18511. printf "%s\n" "not present." >&6; }
  18512. alsa_found=no
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18515. ac_ext=c
  18516. ac_cpp='$CPP $CPPFLAGS'
  18517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18520. if test "x$enable_alsatest" = "xyes"; then
  18521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18522. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18523. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18524. then :
  18525. printf %s "(cached) " >&6
  18526. else $as_nop
  18527. ac_check_lib_save_LIBS=$LIBS
  18528. LIBS="-lasound $LIBS"
  18529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18530. /* end confdefs.h. */
  18531. /* Override any GCC internal prototype to avoid an error.
  18532. Use char because int might match the return type of a GCC
  18533. builtin and then its argument prototype would still apply. */
  18534. char snd_ctl_open ();
  18535. int
  18536. main (void)
  18537. {
  18538. return snd_ctl_open ();
  18539. ;
  18540. return 0;
  18541. }
  18542. _ACEOF
  18543. if ac_fn_c_try_link "$LINENO"
  18544. then :
  18545. ac_cv_lib_asound_snd_ctl_open=yes
  18546. else $as_nop
  18547. ac_cv_lib_asound_snd_ctl_open=no
  18548. fi
  18549. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18550. conftest$ac_exeext conftest.$ac_ext
  18551. LIBS=$ac_check_lib_save_LIBS
  18552. fi
  18553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18554. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18555. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18556. then :
  18557. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18558. LIBS="-lasound $LIBS"
  18559. else $as_nop
  18560. alsa_found=no
  18561. fi
  18562. fi
  18563. if test "x$alsa_found" = "xyes" ; then
  18564. have_alsa=yes
  18565. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18566. LIBS=`echo $LIBS | sed 's/ //'`
  18567. LIBS="-lasound $LIBS"
  18568. fi
  18569. if test "x$alsa_found" = "xno" ; then
  18570. have_alsa=no
  18571. CFLAGS="$alsa_save_CFLAGS"
  18572. LDFLAGS="$alsa_save_LDFLAGS"
  18573. LIBS="$alsa_save_LIBS"
  18574. ALSA_CFLAGS=""
  18575. ALSA_LIBS=""
  18576. fi
  18577. # Restore all flags from before the ALSA detection runs
  18578. CFLAGS="$alsa_save_CFLAGS"
  18579. LDFLAGS="$alsa_save_LDFLAGS"
  18580. LIBS="$alsa_save_LIBS"
  18581. if test x$have_alsa = xyes; then
  18582. # Check whether --enable-alsa-shared was given.
  18583. if test ${enable_alsa_shared+y}
  18584. then :
  18585. enableval=$enable_alsa_shared;
  18586. else $as_nop
  18587. enable_alsa_shared=yes
  18588. fi
  18589. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18590. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18591. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18592. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18593. if test x$have_loadso != xyes && \
  18594. test x$enable_alsa_shared = xyes; then
  18595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18596. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18597. fi
  18598. if test x$have_loadso = xyes && \
  18599. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18600. echo "-- dynamic libasound -> $alsa_lib"
  18601. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18602. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18603. else
  18604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18605. SUMMARY_audio="${SUMMARY_audio} alsa"
  18606. fi
  18607. have_audio=yes
  18608. fi
  18609. fi
  18610. }
  18611. CheckJACK()
  18612. {
  18613. # Check whether --enable-jack was given.
  18614. if test ${enable_jack+y}
  18615. then :
  18616. enableval=$enable_jack;
  18617. else $as_nop
  18618. enable_jack=yes
  18619. fi
  18620. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18621. pkg_failed=no
  18622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18623. printf %s "checking for jack >= 0.125... " >&6; }
  18624. if test -n "$JACK_CFLAGS"; then
  18625. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18626. elif test -n "$PKG_CONFIG"; then
  18627. if test -n "$PKG_CONFIG" && \
  18628. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18629. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18630. ac_status=$?
  18631. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18632. test $ac_status = 0; }; then
  18633. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18634. test "x$?" != "x0" && pkg_failed=yes
  18635. else
  18636. pkg_failed=yes
  18637. fi
  18638. else
  18639. pkg_failed=untried
  18640. fi
  18641. if test -n "$JACK_LIBS"; then
  18642. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18643. elif test -n "$PKG_CONFIG"; then
  18644. if test -n "$PKG_CONFIG" && \
  18645. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18646. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18647. ac_status=$?
  18648. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18649. test $ac_status = 0; }; then
  18650. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18651. test "x$?" != "x0" && pkg_failed=yes
  18652. else
  18653. pkg_failed=yes
  18654. fi
  18655. else
  18656. pkg_failed=untried
  18657. fi
  18658. if test $pkg_failed = yes; then
  18659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18660. printf "%s\n" "no" >&6; }
  18661. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18662. _pkg_short_errors_supported=yes
  18663. else
  18664. _pkg_short_errors_supported=no
  18665. fi
  18666. if test $_pkg_short_errors_supported = yes; then
  18667. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18668. else
  18669. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18670. fi
  18671. # Put the nasty error message in config.log where it belongs
  18672. echo "$JACK_PKG_ERRORS" >&5
  18673. audio_jack=no
  18674. elif test $pkg_failed = untried; then
  18675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18676. printf "%s\n" "no" >&6; }
  18677. audio_jack=no
  18678. else
  18679. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18680. JACK_LIBS=$pkg_cv_JACK_LIBS
  18681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18682. printf "%s\n" "yes" >&6; }
  18683. audio_jack=yes
  18684. fi
  18685. if test x$audio_jack = xyes; then
  18686. # Check whether --enable-jack-shared was given.
  18687. if test ${enable_jack_shared+y}
  18688. then :
  18689. enableval=$enable_jack_shared;
  18690. else $as_nop
  18691. enable_jack_shared=yes
  18692. fi
  18693. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18694. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18695. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18696. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18697. if test x$have_loadso != xyes && \
  18698. test x$enable_jack_shared = xyes; then
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18700. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18701. fi
  18702. if test x$have_loadso = xyes && \
  18703. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18704. echo "-- dynamic libjack -> $jack_lib"
  18705. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18706. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18707. case "$host" in
  18708. # On Solaris, jack must be linked deferred explicitly
  18709. # to prevent undefined symbol failures.
  18710. *-*-solaris*)
  18711. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18713. esac
  18714. else
  18715. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18716. SUMMARY_audio="${SUMMARY_audio} jack"
  18717. fi
  18718. have_audio=yes
  18719. fi
  18720. fi
  18721. }
  18722. CheckESD()
  18723. {
  18724. # Check whether --enable-esd was given.
  18725. if test ${enable_esd+y}
  18726. then :
  18727. enableval=$enable_esd;
  18728. else $as_nop
  18729. enable_esd=yes
  18730. fi
  18731. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18732. pkg_failed=no
  18733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18734. printf %s "checking for esound >= 0.2.8... " >&6; }
  18735. if test -n "$ESD_CFLAGS"; then
  18736. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18737. elif test -n "$PKG_CONFIG"; then
  18738. if test -n "$PKG_CONFIG" && \
  18739. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18740. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18741. ac_status=$?
  18742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18743. test $ac_status = 0; }; then
  18744. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18745. test "x$?" != "x0" && pkg_failed=yes
  18746. else
  18747. pkg_failed=yes
  18748. fi
  18749. else
  18750. pkg_failed=untried
  18751. fi
  18752. if test -n "$ESD_LIBS"; then
  18753. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18754. elif test -n "$PKG_CONFIG"; then
  18755. if test -n "$PKG_CONFIG" && \
  18756. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18757. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18758. ac_status=$?
  18759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18760. test $ac_status = 0; }; then
  18761. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18762. test "x$?" != "x0" && pkg_failed=yes
  18763. else
  18764. pkg_failed=yes
  18765. fi
  18766. else
  18767. pkg_failed=untried
  18768. fi
  18769. if test $pkg_failed = yes; then
  18770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18771. printf "%s\n" "no" >&6; }
  18772. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18773. _pkg_short_errors_supported=yes
  18774. else
  18775. _pkg_short_errors_supported=no
  18776. fi
  18777. if test $_pkg_short_errors_supported = yes; then
  18778. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18779. else
  18780. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18781. fi
  18782. # Put the nasty error message in config.log where it belongs
  18783. echo "$ESD_PKG_ERRORS" >&5
  18784. have_esd=no
  18785. elif test $pkg_failed = untried; then
  18786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18787. printf "%s\n" "no" >&6; }
  18788. have_esd=no
  18789. else
  18790. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18791. ESD_LIBS=$pkg_cv_ESD_LIBS
  18792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18793. printf "%s\n" "yes" >&6; }
  18794. have_esd=yes
  18795. fi
  18796. if test x$have_esd = xno; then
  18797. # Check whether --with-esd-prefix was given.
  18798. if test ${with_esd_prefix+y}
  18799. then :
  18800. withval=$with_esd_prefix; esd_prefix="$withval"
  18801. else $as_nop
  18802. esd_prefix=""
  18803. fi
  18804. # Check whether --with-esd-exec-prefix was given.
  18805. if test ${with_esd_exec_prefix+y}
  18806. then :
  18807. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18808. else $as_nop
  18809. esd_exec_prefix=""
  18810. fi
  18811. # Check whether --enable-esdtest was given.
  18812. if test ${enable_esdtest+y}
  18813. then :
  18814. enableval=$enable_esdtest;
  18815. else $as_nop
  18816. enable_esdtest=yes
  18817. fi
  18818. if test x$esd_exec_prefix != x ; then
  18819. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18820. if test x${ESD_CONFIG+set} != xset ; then
  18821. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18822. fi
  18823. fi
  18824. if test x$esd_prefix != x ; then
  18825. esd_args="$esd_args --prefix=$esd_prefix"
  18826. if test x${ESD_CONFIG+set} != xset ; then
  18827. ESD_CONFIG=$esd_prefix/bin/esd-config
  18828. fi
  18829. fi
  18830. # Extract the first word of "esd-config", so it can be a program name with args.
  18831. set dummy esd-config; ac_word=$2
  18832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18833. printf %s "checking for $ac_word... " >&6; }
  18834. if test ${ac_cv_path_ESD_CONFIG+y}
  18835. then :
  18836. printf %s "(cached) " >&6
  18837. else $as_nop
  18838. case $ESD_CONFIG in
  18839. [\\/]* | ?:[\\/]*)
  18840. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18841. ;;
  18842. *)
  18843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18844. for as_dir in $PATH
  18845. do
  18846. IFS=$as_save_IFS
  18847. case $as_dir in #(((
  18848. '') as_dir=./ ;;
  18849. */) ;;
  18850. *) as_dir=$as_dir/ ;;
  18851. esac
  18852. for ac_exec_ext in '' $ac_executable_extensions; do
  18853. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18854. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18856. break 2
  18857. fi
  18858. done
  18859. done
  18860. IFS=$as_save_IFS
  18861. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18862. ;;
  18863. esac
  18864. fi
  18865. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18866. if test -n "$ESD_CONFIG"; then
  18867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18868. printf "%s\n" "$ESD_CONFIG" >&6; }
  18869. else
  18870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18871. printf "%s\n" "no" >&6; }
  18872. fi
  18873. min_esd_version=0.2.8
  18874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18875. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18876. no_esd=""
  18877. if test "$ESD_CONFIG" = "no" ; then
  18878. no_esd=yes
  18879. else
  18880. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18881. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18882. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18883. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18884. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18885. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18886. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18887. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18888. if test "x$enable_esdtest" = "xyes" ; then
  18889. ac_ext=c
  18890. ac_cpp='$CPP $CPPFLAGS'
  18891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18894. ac_save_CFLAGS="$CFLAGS"
  18895. ac_save_LIBS="$LIBS"
  18896. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18897. LIBS="$LIBS $ESD_LIBS"
  18898. rm -f conf.esdtest
  18899. if test "$cross_compiling" = yes
  18900. then :
  18901. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18902. else $as_nop
  18903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18904. /* end confdefs.h. */
  18905. #include <stdio.h>
  18906. #include <stdlib.h>
  18907. #include <esd.h>
  18908. int main (void)
  18909. {
  18910. int major, minor, micro;
  18911. FILE *fp = fopen("conf.esdtest", "w");
  18912. if (fp) fclose(fp);
  18913. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18914. printf("%s, bad version string\n", "$min_esd_version");
  18915. exit(1);
  18916. }
  18917. if (($esd_major_version > major) ||
  18918. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18919. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18920. {
  18921. return 0;
  18922. }
  18923. else
  18924. {
  18925. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18926. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18927. printf("*** best to upgrade to the required version.\n");
  18928. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18929. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18930. printf("*** config.cache before re-running configure\n");
  18931. return 1;
  18932. }
  18933. }
  18934. _ACEOF
  18935. if ac_fn_c_try_run "$LINENO"
  18936. then :
  18937. else $as_nop
  18938. no_esd=yes
  18939. fi
  18940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18942. fi
  18943. CFLAGS="$ac_save_CFLAGS"
  18944. LIBS="$ac_save_LIBS"
  18945. ac_ext=c
  18946. ac_cpp='$CPP $CPPFLAGS'
  18947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18950. fi
  18951. fi
  18952. if test "x$no_esd" = x ; then
  18953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18954. printf "%s\n" "yes" >&6; }
  18955. have_esd=yes
  18956. else
  18957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18958. printf "%s\n" "no" >&6; }
  18959. if test "$ESD_CONFIG" = "no" ; then
  18960. :
  18961. else
  18962. if test -f conf.esdtest ; then
  18963. :
  18964. else
  18965. echo "*** Could not run ESD test program, checking why..."
  18966. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18967. LIBS="$LIBS $ESD_LIBS"
  18968. ac_ext=c
  18969. ac_cpp='$CPP $CPPFLAGS'
  18970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18974. /* end confdefs.h. */
  18975. #include <stdio.h>
  18976. #include <esd.h>
  18977. int
  18978. main (void)
  18979. {
  18980. return 0;
  18981. ;
  18982. return 0;
  18983. }
  18984. _ACEOF
  18985. if ac_fn_c_try_link "$LINENO"
  18986. then :
  18987. echo "*** The test program compiled, but did not run. This usually means"
  18988. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18989. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18990. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18991. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18992. echo "*** is required on your system"
  18993. echo "***"
  18994. echo "*** If you have an old version installed, it is best to remove it, although"
  18995. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18996. else $as_nop
  18997. echo "*** The test program failed to compile or link. See the file config.log for the"
  18998. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18999. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19000. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19001. fi
  19002. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19003. conftest$ac_exeext conftest.$ac_ext
  19004. CFLAGS="$ac_save_CFLAGS"
  19005. LIBS="$ac_save_LIBS"
  19006. ac_ext=c
  19007. ac_cpp='$CPP $CPPFLAGS'
  19008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19011. fi
  19012. fi
  19013. ESD_CFLAGS=""
  19014. ESD_LIBS=""
  19015. have_esd=no
  19016. fi
  19017. rm -f conf.esdtest
  19018. fi
  19019. if test x$have_esd = xyes; then
  19020. # Check whether --enable-esd-shared was given.
  19021. if test ${enable_esd_shared+y}
  19022. then :
  19023. enableval=$enable_esd_shared;
  19024. else $as_nop
  19025. enable_esd_shared=yes
  19026. fi
  19027. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19028. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19030. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19031. if test x$have_loadso != xyes && \
  19032. test x$enable_esd_shared = xyes; then
  19033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19034. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19035. fi
  19036. if test x$have_loadso = xyes && \
  19037. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19038. echo "-- dynamic libesd -> $esd_lib"
  19039. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19040. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19041. else
  19042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19043. SUMMARY_audio="${SUMMARY_audio} esd"
  19044. fi
  19045. have_audio=yes
  19046. fi
  19047. fi
  19048. }
  19049. CheckPipewire()
  19050. {
  19051. # Check whether --enable-pipewire was given.
  19052. if test ${enable_pipewire+y}
  19053. then :
  19054. enableval=$enable_pipewire;
  19055. else $as_nop
  19056. enable_pipewire=yes
  19057. fi
  19058. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19059. pkg_failed=no
  19060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19061. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19062. if test -n "$PIPEWIRE_CFLAGS"; then
  19063. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19064. elif test -n "$PKG_CONFIG"; then
  19065. if test -n "$PKG_CONFIG" && \
  19066. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19067. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19068. ac_status=$?
  19069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19070. test $ac_status = 0; }; then
  19071. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19072. test "x$?" != "x0" && pkg_failed=yes
  19073. else
  19074. pkg_failed=yes
  19075. fi
  19076. else
  19077. pkg_failed=untried
  19078. fi
  19079. if test -n "$PIPEWIRE_LIBS"; then
  19080. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19081. elif test -n "$PKG_CONFIG"; then
  19082. if test -n "$PKG_CONFIG" && \
  19083. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19084. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19085. ac_status=$?
  19086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19087. test $ac_status = 0; }; then
  19088. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19089. test "x$?" != "x0" && pkg_failed=yes
  19090. else
  19091. pkg_failed=yes
  19092. fi
  19093. else
  19094. pkg_failed=untried
  19095. fi
  19096. if test $pkg_failed = yes; then
  19097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19098. printf "%s\n" "no" >&6; }
  19099. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19100. _pkg_short_errors_supported=yes
  19101. else
  19102. _pkg_short_errors_supported=no
  19103. fi
  19104. if test $_pkg_short_errors_supported = yes; then
  19105. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19106. else
  19107. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19108. fi
  19109. # Put the nasty error message in config.log where it belongs
  19110. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19111. audio_pipewire=no
  19112. elif test $pkg_failed = untried; then
  19113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19114. printf "%s\n" "no" >&6; }
  19115. audio_pipewire=no
  19116. else
  19117. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19118. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19120. printf "%s\n" "yes" >&6; }
  19121. audio_pipewire=yes
  19122. fi
  19123. if test x$audio_pipewire = xyes; then
  19124. # Check whether --enable-pipewire-shared was given.
  19125. if test ${enable_pipewire_shared+y}
  19126. then :
  19127. enableval=$enable_pipewire_shared;
  19128. else $as_nop
  19129. enable_pipewire_shared=yes
  19130. fi
  19131. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19132. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19133. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19134. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19135. if test x$have_loadso != xyes && \
  19136. test x$enable_pipewire_shared = xyes; then
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19138. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19139. fi
  19140. if test x$have_loadso = xyes && \
  19141. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19142. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19143. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19144. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19145. else
  19146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19147. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19148. fi
  19149. have_audio=yes
  19150. fi
  19151. fi
  19152. }
  19153. CheckPulseAudio()
  19154. {
  19155. # Check whether --enable-pulseaudio was given.
  19156. if test ${enable_pulseaudio+y}
  19157. then :
  19158. enableval=$enable_pulseaudio;
  19159. else $as_nop
  19160. enable_pulseaudio=yes
  19161. fi
  19162. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19163. pkg_failed=no
  19164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19165. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19166. if test -n "$PULSEAUDIO_CFLAGS"; then
  19167. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19168. elif test -n "$PKG_CONFIG"; then
  19169. if test -n "$PKG_CONFIG" && \
  19170. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19171. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19172. ac_status=$?
  19173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19174. test $ac_status = 0; }; then
  19175. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19176. test "x$?" != "x0" && pkg_failed=yes
  19177. else
  19178. pkg_failed=yes
  19179. fi
  19180. else
  19181. pkg_failed=untried
  19182. fi
  19183. if test -n "$PULSEAUDIO_LIBS"; then
  19184. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19185. elif test -n "$PKG_CONFIG"; then
  19186. if test -n "$PKG_CONFIG" && \
  19187. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19188. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19189. ac_status=$?
  19190. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19191. test $ac_status = 0; }; then
  19192. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19193. test "x$?" != "x0" && pkg_failed=yes
  19194. else
  19195. pkg_failed=yes
  19196. fi
  19197. else
  19198. pkg_failed=untried
  19199. fi
  19200. if test $pkg_failed = yes; then
  19201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19202. printf "%s\n" "no" >&6; }
  19203. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19204. _pkg_short_errors_supported=yes
  19205. else
  19206. _pkg_short_errors_supported=no
  19207. fi
  19208. if test $_pkg_short_errors_supported = yes; then
  19209. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19210. else
  19211. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19212. fi
  19213. # Put the nasty error message in config.log where it belongs
  19214. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19215. audio_pulseaudio=no
  19216. elif test $pkg_failed = untried; then
  19217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19218. printf "%s\n" "no" >&6; }
  19219. audio_pulseaudio=no
  19220. else
  19221. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19222. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19224. printf "%s\n" "yes" >&6; }
  19225. audio_pulseaudio=yes
  19226. fi
  19227. if test x$audio_pulseaudio = xyes; then
  19228. # Check whether --enable-pulseaudio-shared was given.
  19229. if test ${enable_pulseaudio_shared+y}
  19230. then :
  19231. enableval=$enable_pulseaudio_shared;
  19232. else $as_nop
  19233. enable_pulseaudio_shared=yes
  19234. fi
  19235. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19236. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19237. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19238. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19239. if test x$have_loadso != xyes && \
  19240. test x$enable_pulseaudio_shared = xyes; then
  19241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19242. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19243. fi
  19244. if test x$have_loadso = xyes && \
  19245. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19246. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19247. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19248. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19249. case "$host" in
  19250. # On Solaris, pulseaudio must be linked deferred explicitly
  19251. # to prevent undefined symbol failures.
  19252. *-*-solaris*)
  19253. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19255. esac
  19256. else
  19257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19258. SUMMARY_audio="${SUMMARY_audio} pulse"
  19259. fi
  19260. have_audio=yes
  19261. fi
  19262. fi
  19263. }
  19264. CheckARTSC()
  19265. {
  19266. # Check whether --enable-arts was given.
  19267. if test ${enable_arts+y}
  19268. then :
  19269. enableval=$enable_arts;
  19270. else $as_nop
  19271. enable_arts=yes
  19272. fi
  19273. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19274. # Extract the first word of "artsc-config", so it can be a program name with args.
  19275. set dummy artsc-config; ac_word=$2
  19276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19277. printf %s "checking for $ac_word... " >&6; }
  19278. if test ${ac_cv_path_ARTSCONFIG+y}
  19279. then :
  19280. printf %s "(cached) " >&6
  19281. else $as_nop
  19282. case $ARTSCONFIG in
  19283. [\\/]* | ?:[\\/]*)
  19284. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19285. ;;
  19286. *)
  19287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19288. for as_dir in $PATH
  19289. do
  19290. IFS=$as_save_IFS
  19291. case $as_dir in #(((
  19292. '') as_dir=./ ;;
  19293. */) ;;
  19294. *) as_dir=$as_dir/ ;;
  19295. esac
  19296. for ac_exec_ext in '' $ac_executable_extensions; do
  19297. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19298. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19300. break 2
  19301. fi
  19302. done
  19303. done
  19304. IFS=$as_save_IFS
  19305. ;;
  19306. esac
  19307. fi
  19308. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19309. if test -n "$ARTSCONFIG"; then
  19310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19311. printf "%s\n" "$ARTSCONFIG" >&6; }
  19312. else
  19313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19314. printf "%s\n" "no" >&6; }
  19315. fi
  19316. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19317. : # arts isn't installed
  19318. else
  19319. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19320. ARTS_LIBS=`$ARTSCONFIG --libs`
  19321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19322. printf %s "checking for aRts development environment... " >&6; }
  19323. audio_arts=no
  19324. save_CFLAGS="$CFLAGS"
  19325. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19327. /* end confdefs.h. */
  19328. #include <artsc.h>
  19329. int
  19330. main (void)
  19331. {
  19332. arts_stream_t stream;
  19333. ;
  19334. return 0;
  19335. }
  19336. _ACEOF
  19337. if ac_fn_c_try_compile "$LINENO"
  19338. then :
  19339. audio_arts=yes
  19340. fi
  19341. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19342. CFLAGS="$save_CFLAGS"
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19344. printf "%s\n" "$audio_arts" >&6; }
  19345. if test x$audio_arts = xyes; then
  19346. # Check whether --enable-arts-shared was given.
  19347. if test ${enable_arts_shared+y}
  19348. then :
  19349. enableval=$enable_arts_shared;
  19350. else $as_nop
  19351. enable_arts_shared=yes
  19352. fi
  19353. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19354. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19355. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19356. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19357. if test x$have_loadso != xyes && \
  19358. test x$enable_arts_shared = xyes; then
  19359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19360. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19361. fi
  19362. if test x$have_loadso = xyes && \
  19363. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19364. echo "-- dynamic libartsc -> $arts_lib"
  19365. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19366. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19367. else
  19368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19369. SUMMARY_audio="${SUMMARY_audio} arts"
  19370. fi
  19371. have_audio=yes
  19372. fi
  19373. fi
  19374. fi
  19375. }
  19376. CheckNAS()
  19377. {
  19378. # Check whether --enable-nas was given.
  19379. if test ${enable_nas+y}
  19380. then :
  19381. enableval=$enable_nas;
  19382. else $as_nop
  19383. enable_nas=yes
  19384. fi
  19385. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19386. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19387. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19388. then :
  19389. have_nas_hdr=yes
  19390. fi
  19391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19392. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19393. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19394. then :
  19395. printf %s "(cached) " >&6
  19396. else $as_nop
  19397. ac_check_lib_save_LIBS=$LIBS
  19398. LIBS="-laudio $LIBS"
  19399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19400. /* end confdefs.h. */
  19401. /* Override any GCC internal prototype to avoid an error.
  19402. Use char because int might match the return type of a GCC
  19403. builtin and then its argument prototype would still apply. */
  19404. char AuOpenServer ();
  19405. int
  19406. main (void)
  19407. {
  19408. return AuOpenServer ();
  19409. ;
  19410. return 0;
  19411. }
  19412. _ACEOF
  19413. if ac_fn_c_try_link "$LINENO"
  19414. then :
  19415. ac_cv_lib_audio_AuOpenServer=yes
  19416. else $as_nop
  19417. ac_cv_lib_audio_AuOpenServer=no
  19418. fi
  19419. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19420. conftest$ac_exeext conftest.$ac_ext
  19421. LIBS=$ac_check_lib_save_LIBS
  19422. fi
  19423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19424. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19425. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19426. then :
  19427. have_nas_lib=yes
  19428. fi
  19429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19430. printf %s "checking for NAS audio support... " >&6; }
  19431. have_nas=no
  19432. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19433. have_nas=yes
  19434. NAS_LIBS="-laudio"
  19435. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19436. have_nas=yes
  19437. NAS_CFLAGS="-I/usr/X11R6/include/"
  19438. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19439. fi
  19440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19441. printf "%s\n" "$have_nas" >&6; }
  19442. if test x$have_nas = xyes; then
  19443. # Check whether --enable-nas-shared was given.
  19444. if test ${enable_nas_shared+y}
  19445. then :
  19446. enableval=$enable_nas_shared;
  19447. else $as_nop
  19448. enable_nas_shared=yes
  19449. fi
  19450. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19451. if test x$have_loadso != xyes && \
  19452. test x$enable_nas_shared = xyes; then
  19453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19454. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19455. fi
  19456. if test x$have_loadso = xyes && \
  19457. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19458. echo "-- dynamic libaudio -> $nas_lib"
  19459. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19460. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19461. else
  19462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19463. SUMMARY_audio="${SUMMARY_audio} nas"
  19464. fi
  19465. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19466. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19467. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19468. have_audio=yes
  19469. fi
  19470. fi
  19471. }
  19472. CheckSNDIO()
  19473. {
  19474. # Check whether --enable-sndio was given.
  19475. if test ${enable_sndio+y}
  19476. then :
  19477. enableval=$enable_sndio;
  19478. else $as_nop
  19479. enable_sndio=yes
  19480. fi
  19481. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19482. pkg_failed=no
  19483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19484. printf %s "checking for sndio... " >&6; }
  19485. if test -n "$SNDIO_CFLAGS"; then
  19486. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19487. elif test -n "$PKG_CONFIG"; then
  19488. if test -n "$PKG_CONFIG" && \
  19489. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19490. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19491. ac_status=$?
  19492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19493. test $ac_status = 0; }; then
  19494. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19495. test "x$?" != "x0" && pkg_failed=yes
  19496. else
  19497. pkg_failed=yes
  19498. fi
  19499. else
  19500. pkg_failed=untried
  19501. fi
  19502. if test -n "$SNDIO_LIBS"; then
  19503. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19504. elif test -n "$PKG_CONFIG"; then
  19505. if test -n "$PKG_CONFIG" && \
  19506. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19507. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19508. ac_status=$?
  19509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19510. test $ac_status = 0; }; then
  19511. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19512. test "x$?" != "x0" && pkg_failed=yes
  19513. else
  19514. pkg_failed=yes
  19515. fi
  19516. else
  19517. pkg_failed=untried
  19518. fi
  19519. if test $pkg_failed = yes; then
  19520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19521. printf "%s\n" "no" >&6; }
  19522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19523. _pkg_short_errors_supported=yes
  19524. else
  19525. _pkg_short_errors_supported=no
  19526. fi
  19527. if test $_pkg_short_errors_supported = yes; then
  19528. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19529. else
  19530. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19531. fi
  19532. # Put the nasty error message in config.log where it belongs
  19533. echo "$SNDIO_PKG_ERRORS" >&5
  19534. audio_sndio=no
  19535. elif test $pkg_failed = untried; then
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19537. printf "%s\n" "no" >&6; }
  19538. audio_sndio=no
  19539. else
  19540. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19541. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19543. printf "%s\n" "yes" >&6; }
  19544. audio_sndio=yes
  19545. fi
  19546. if test x$audio_sndio = xyes; then
  19547. # Check whether --enable-sndio-shared was given.
  19548. if test ${enable_sndio_shared+y}
  19549. then :
  19550. enableval=$enable_sndio_shared;
  19551. else $as_nop
  19552. enable_sndio_shared=yes
  19553. fi
  19554. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19555. if test x$have_loadso != xyes && \
  19556. test x$enable_sndio_shared = xyes; then
  19557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19558. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19559. fi
  19560. if test x$have_loadso = xyes && \
  19561. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19562. echo "-- dynamic libsndio -> $sndio_lib"
  19563. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19564. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19565. else
  19566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19567. SUMMARY_audio="${SUMMARY_audio} sndio"
  19568. fi
  19569. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19570. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19571. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19572. have_audio=yes
  19573. fi
  19574. fi
  19575. }
  19576. CheckFusionSound()
  19577. {
  19578. # Check whether --enable-fusionsound was given.
  19579. if test ${enable_fusionsound+y}
  19580. then :
  19581. enableval=$enable_fusionsound;
  19582. else $as_nop
  19583. enable_fusionsound=no
  19584. fi
  19585. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19586. pkg_failed=no
  19587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19588. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19589. if test -n "$FUSIONSOUND_CFLAGS"; then
  19590. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19591. elif test -n "$PKG_CONFIG"; then
  19592. if test -n "$PKG_CONFIG" && \
  19593. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19594. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19595. ac_status=$?
  19596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19597. test $ac_status = 0; }; then
  19598. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19599. test "x$?" != "x0" && pkg_failed=yes
  19600. else
  19601. pkg_failed=yes
  19602. fi
  19603. else
  19604. pkg_failed=untried
  19605. fi
  19606. if test -n "$FUSIONSOUND_LIBS"; then
  19607. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19608. elif test -n "$PKG_CONFIG"; then
  19609. if test -n "$PKG_CONFIG" && \
  19610. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19611. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19612. ac_status=$?
  19613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19614. test $ac_status = 0; }; then
  19615. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19616. test "x$?" != "x0" && pkg_failed=yes
  19617. else
  19618. pkg_failed=yes
  19619. fi
  19620. else
  19621. pkg_failed=untried
  19622. fi
  19623. if test $pkg_failed = yes; then
  19624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19625. printf "%s\n" "no" >&6; }
  19626. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19627. _pkg_short_errors_supported=yes
  19628. else
  19629. _pkg_short_errors_supported=no
  19630. fi
  19631. if test $_pkg_short_errors_supported = yes; then
  19632. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19633. else
  19634. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19635. fi
  19636. # Put the nasty error message in config.log where it belongs
  19637. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19638. fusionsound=no
  19639. elif test $pkg_failed = untried; then
  19640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19641. printf "%s\n" "no" >&6; }
  19642. fusionsound=no
  19643. else
  19644. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19645. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19647. printf "%s\n" "yes" >&6; }
  19648. fusionsound=yes
  19649. fi
  19650. if test x$fusionsound = xyes; then
  19651. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19652. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19653. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19654. # Check whether --enable-fusionsound-shared was given.
  19655. if test ${enable_fusionsound_shared+y}
  19656. then :
  19657. enableval=$enable_fusionsound_shared;
  19658. else $as_nop
  19659. enable_fusionsound_shared=yes
  19660. fi
  19661. fusionsound_shared=no
  19662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19663. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19664. if test x$have_loadso != xyes && \
  19665. test x$enable_fusionsound_shared = xyes; then
  19666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19667. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19668. fi
  19669. if test x$have_loadso = xyes && \
  19670. test x$enable_fusionsound_shared = xyes; then
  19671. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19672. fusionsound_shared=yes
  19673. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19674. else
  19675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19676. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19677. fi
  19678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19679. printf "%s\n" "$fusionsound_shared" >&6; }
  19680. have_audio=yes
  19681. fi
  19682. fi
  19683. }
  19684. CheckDiskAudio()
  19685. {
  19686. # Check whether --enable-diskaudio was given.
  19687. if test ${enable_diskaudio+y}
  19688. then :
  19689. enableval=$enable_diskaudio;
  19690. else $as_nop
  19691. enable_diskaudio=yes
  19692. fi
  19693. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19694. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19695. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19696. SUMMARY_audio="${SUMMARY_audio} disk"
  19697. have_audio=yes
  19698. fi
  19699. }
  19700. CheckDummyAudio()
  19701. {
  19702. # Check whether --enable-dummyaudio was given.
  19703. if test ${enable_dummyaudio+y}
  19704. then :
  19705. enableval=$enable_dummyaudio;
  19706. else $as_nop
  19707. enable_dummyaudio=yes
  19708. fi
  19709. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19710. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19711. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19712. SUMMARY_audio="${SUMMARY_audio} dummy"
  19713. have_audio=yes
  19714. fi
  19715. }
  19716. CheckLibSampleRate()
  19717. {
  19718. # Check whether --enable-libsamplerate was given.
  19719. if test ${enable_libsamplerate+y}
  19720. then :
  19721. enableval=$enable_libsamplerate;
  19722. else $as_nop
  19723. enable_libsamplerate=yes
  19724. fi
  19725. if test x$enable_libsamplerate = xyes; then
  19726. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19727. if test "x$ac_cv_header_samplerate_h" = xyes
  19728. then :
  19729. have_samplerate_h_hdr=yes
  19730. else $as_nop
  19731. have_samplerate_h_hdr=no
  19732. fi
  19733. if test x$have_samplerate_h_hdr = xyes; then
  19734. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19735. # Check whether --enable-libsamplerate-shared was given.
  19736. if test ${enable_libsamplerate_shared+y}
  19737. then :
  19738. enableval=$enable_libsamplerate_shared;
  19739. else $as_nop
  19740. enable_libsamplerate_shared=yes
  19741. fi
  19742. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19743. if test x$have_loadso != xyes && \
  19744. test x$enable_libsamplerate_shared = xyes; then
  19745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19746. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19747. fi
  19748. if test x$have_loadso = xyes && \
  19749. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19750. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19751. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19752. else
  19753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19754. fi
  19755. fi
  19756. fi
  19757. }
  19758. CheckARM()
  19759. {
  19760. # Check whether --enable-arm-simd was given.
  19761. if test ${enable_arm_simd+y}
  19762. then :
  19763. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19764. else $as_nop
  19765. enable_arm_simd=no
  19766. fi
  19767. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19768. save_CFLAGS="$CFLAGS"
  19769. have_arm_simd=no
  19770. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19772. printf %s "checking for ARM SIMD... " >&6; }
  19773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19774. /* end confdefs.h. */
  19775. .text
  19776. .arch armv6
  19777. .object_arch armv4
  19778. .arm
  19779. .altmacro
  19780. #ifndef __ARM_EABI__
  19781. #error EABI is required (to be sure that calling conventions are compatible)
  19782. #endif
  19783. pld [r0]
  19784. uqadd8 r0, r0, r0
  19785. _ACEOF
  19786. if ac_fn_c_try_compile "$LINENO"
  19787. then :
  19788. have_arm_simd=yes
  19789. fi
  19790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19792. printf "%s\n" "$have_arm_simd" >&6; }
  19793. CFLAGS="$save_CFLAGS"
  19794. if test x$have_arm_simd = xyes; then
  19795. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19796. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19797. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19798. fi
  19799. fi
  19800. }
  19801. CheckNEON()
  19802. {
  19803. # Check whether --enable-arm-neon was given.
  19804. if test ${enable_arm_neon+y}
  19805. then :
  19806. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19807. else $as_nop
  19808. enable_arm_neon=no
  19809. fi
  19810. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19811. save_CFLAGS="$CFLAGS"
  19812. have_arm_neon=no
  19813. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19815. printf %s "checking for ARM NEON... " >&6; }
  19816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19817. /* end confdefs.h. */
  19818. .text
  19819. .fpu neon
  19820. .arch armv7a
  19821. .object_arch armv4
  19822. .eabi_attribute 10, 0
  19823. .arm
  19824. .altmacro
  19825. #ifndef __ARM_EABI__
  19826. #error EABI is required (to be sure that calling conventions are compatible)
  19827. #endif
  19828. pld [r0]
  19829. vmovn.u16 d0, q0
  19830. _ACEOF
  19831. if ac_fn_c_try_compile "$LINENO"
  19832. then :
  19833. have_arm_neon=yes
  19834. fi
  19835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19837. printf "%s\n" "$have_arm_neon" >&6; }
  19838. CFLAGS="$save_CFLAGS"
  19839. if test x$have_arm_neon = xyes; then
  19840. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19841. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19842. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19843. fi
  19844. fi
  19845. }
  19846. CheckObjectiveCARC()
  19847. {
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19849. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19850. have_clang_objc_arc=no
  19851. save_CFLAGS="$CFLAGS"
  19852. CFLAGS="$save_CFLAGS -fobjc-arc"
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. int x = 0;
  19856. int
  19857. main (void)
  19858. {
  19859. ;
  19860. return 0;
  19861. }
  19862. _ACEOF
  19863. if ac_fn_c_try_compile "$LINENO"
  19864. then :
  19865. have_clang_objc_arc=yes
  19866. fi
  19867. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19869. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19870. CFLAGS="$save_CFLAGS"
  19871. if test x$have_clang_objc_arc = xyes; then
  19872. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19873. fi
  19874. }
  19875. CheckGDwarf4()
  19876. {
  19877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19878. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19879. have_gcc_gdwarf4=no
  19880. save_CFLAGS="$CFLAGS"
  19881. CFLAGS="$save_CFLAGS -gdwarf-4"
  19882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19883. /* end confdefs.h. */
  19884. int x = 0;
  19885. int
  19886. main (void)
  19887. {
  19888. ;
  19889. return 0;
  19890. }
  19891. _ACEOF
  19892. if ac_fn_c_try_compile "$LINENO"
  19893. then :
  19894. have_gcc_gdwarf4=yes
  19895. fi
  19896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19898. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19899. CFLAGS="$save_CFLAGS"
  19900. if test x$have_gcc_gdwarf4 = xyes; then
  19901. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19902. fi
  19903. }
  19904. CheckVisibilityHidden()
  19905. {
  19906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19907. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19908. have_gcc_fvisibility=no
  19909. visibility_CFLAGS="-fvisibility=hidden"
  19910. save_CFLAGS="$CFLAGS"
  19911. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19913. /* end confdefs.h. */
  19914. #if !defined(__GNUC__) || __GNUC__ < 4
  19915. #error SDL only uses visibility attributes in GCC 4 or newer
  19916. #endif
  19917. int
  19918. main (void)
  19919. {
  19920. ;
  19921. return 0;
  19922. }
  19923. _ACEOF
  19924. if ac_fn_c_try_compile "$LINENO"
  19925. then :
  19926. have_gcc_fvisibility=yes
  19927. fi
  19928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19930. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19931. CFLAGS="$save_CFLAGS"
  19932. if test x$have_gcc_fvisibility = xyes; then
  19933. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19934. fi
  19935. }
  19936. CheckNoStrictAliasing()
  19937. {
  19938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19939. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19940. have_gcc_no_strict_aliasing=no
  19941. save_CFLAGS="$CFLAGS"
  19942. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19944. /* end confdefs.h. */
  19945. int x = 0;
  19946. int
  19947. main (void)
  19948. {
  19949. ;
  19950. return 0;
  19951. }
  19952. _ACEOF
  19953. if ac_fn_c_try_compile "$LINENO"
  19954. then :
  19955. have_gcc_no_strict_aliasing=yes
  19956. fi
  19957. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19959. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19960. CFLAGS="$save_CFLAGS"
  19961. if test x$have_gcc_no_strict_aliasing = xyes; then
  19962. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19963. fi
  19964. }
  19965. CheckWerror()
  19966. {
  19967. # Check whether --enable-werror was given.
  19968. if test ${enable_werror+y}
  19969. then :
  19970. enableval=$enable_werror; enable_werror=$enableval
  19971. else $as_nop
  19972. enable_werror=no
  19973. fi
  19974. if test x$enable_werror = xyes; then
  19975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19976. printf %s "checking for GCC -Werror option... " >&6; }
  19977. have_gcc_werror=no
  19978. save_CFLAGS="$CFLAGS"
  19979. CFLAGS="$save_CFLAGS -Werror"
  19980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19981. /* end confdefs.h. */
  19982. int x = 0;
  19983. int
  19984. main (void)
  19985. {
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. if ac_fn_c_try_compile "$LINENO"
  19991. then :
  19992. have_gcc_werror=yes
  19993. fi
  19994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19996. printf "%s\n" "$have_gcc_werror" >&6; }
  19997. CFLAGS="$save_CFLAGS"
  19998. if test x$have_gcc_werror = xyes; then
  19999. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20000. fi
  20001. fi
  20002. }
  20003. CheckNoErrorDeprecatedDeclarationsWerror()
  20004. {
  20005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20006. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20007. have_gcc_no_werror_deprecated_declarations=no
  20008. save_CFLAGS="$CFLAGS"
  20009. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20011. /* end confdefs.h. */
  20012. int x = 0;
  20013. int
  20014. main (void)
  20015. {
  20016. ;
  20017. return 0;
  20018. }
  20019. _ACEOF
  20020. if ac_fn_c_try_compile "$LINENO"
  20021. then :
  20022. have_gcc_no_werror_deprecated_declarations=yes
  20023. fi
  20024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20026. printf "%s\n" "$have_gcc_werror" >&6; }
  20027. CFLAGS="$save_CFLAGS"
  20028. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20029. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20030. fi
  20031. }
  20032. CheckDeclarationAfterStatement()
  20033. {
  20034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20035. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20036. have_gcc_declaration_after_statement=no
  20037. save_CFLAGS="$CFLAGS"
  20038. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20040. /* end confdefs.h. */
  20041. int x = 0;
  20042. int
  20043. main (void)
  20044. {
  20045. ;
  20046. return 0;
  20047. }
  20048. _ACEOF
  20049. if ac_fn_c_try_compile "$LINENO"
  20050. then :
  20051. have_gcc_declaration_after_statement=yes
  20052. fi
  20053. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20055. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20056. CFLAGS="$save_CFLAGS"
  20057. if test x$have_gcc_declaration_after_statement = xyes; then
  20058. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20059. fi
  20060. }
  20061. CheckWarnAll()
  20062. {
  20063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20064. printf %s "checking for GCC -Wall option... " >&6; }
  20065. have_gcc_Wall=no
  20066. save_CFLAGS="$CFLAGS"
  20067. CFLAGS="$save_CFLAGS -Wall"
  20068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20069. /* end confdefs.h. */
  20070. int x = 0;
  20071. int
  20072. main (void)
  20073. {
  20074. ;
  20075. return 0;
  20076. }
  20077. _ACEOF
  20078. if ac_fn_c_try_compile "$LINENO"
  20079. then :
  20080. have_gcc_Wall=yes
  20081. fi
  20082. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20084. printf "%s\n" "$have_gcc_Wall" >&6; }
  20085. CFLAGS="$save_CFLAGS"
  20086. if test x$have_gcc_Wall = xyes; then
  20087. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20089. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20090. need_gcc_Wno_multichar=no
  20091. case "$host" in
  20092. *-*-haiku*)
  20093. need_gcc_Wno_multichar=yes
  20094. ;;
  20095. esac
  20096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20097. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20098. if test x$need_gcc_Wno_multichar = xyes; then
  20099. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20100. fi
  20101. fi
  20102. }
  20103. CheckUnusedLocalTypedefs()
  20104. {
  20105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20106. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20107. have_gcc_unused_local_typedefs=no
  20108. save_CFLAGS="$CFLAGS"
  20109. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20111. /* end confdefs.h. */
  20112. int x = 0;
  20113. int
  20114. main (void)
  20115. {
  20116. ;
  20117. return 0;
  20118. }
  20119. _ACEOF
  20120. if ac_fn_c_try_compile "$LINENO"
  20121. then :
  20122. have_gcc_unused_local_typedefs=yes
  20123. fi
  20124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20126. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20127. CFLAGS="$save_CFLAGS"
  20128. if test x$have_gcc_unused_local_typedefs = xyes; then
  20129. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20130. fi
  20131. }
  20132. CheckWayland()
  20133. {
  20134. # Check whether --enable-video-wayland was given.
  20135. if test ${enable_video_wayland+y}
  20136. then :
  20137. enableval=$enable_video_wayland;
  20138. else $as_nop
  20139. enable_video_wayland=yes
  20140. fi
  20141. # Check whether --enable-video-wayland-qt-touch was given.
  20142. if test ${enable_video_wayland_qt_touch+y}
  20143. then :
  20144. enableval=$enable_video_wayland_qt_touch;
  20145. else $as_nop
  20146. enable_video_wayland_qt_touch=yes
  20147. fi
  20148. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20150. printf %s "checking for Wayland support... " >&6; }
  20151. video_wayland=no
  20152. if test x$video_opengl_egl = xyes && \
  20153. test x$video_opengles_v2 = xyes; then
  20154. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20155. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20156. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20157. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20158. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20159. then :
  20160. WAYLAND_SCANNER_CODE_MODE=private-code
  20161. else $as_nop
  20162. WAYLAND_SCANNER_CODE_MODE=code
  20163. fi
  20164. video_wayland=yes
  20165. fi
  20166. fi
  20167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20168. printf "%s\n" "$video_wayland" >&6; }
  20169. if test x$video_wayland = xyes; then
  20170. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20171. if test x$enable_video_wayland_qt_touch = xyes; then
  20172. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20173. fi
  20174. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20175. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20176. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20177. # Check whether --enable-wayland-shared was given.
  20178. if test ${enable_wayland_shared+y}
  20179. then :
  20180. enableval=$enable_wayland_shared;
  20181. else $as_nop
  20182. enable_wayland_shared=maybe
  20183. fi
  20184. case "$host" in
  20185. *)
  20186. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20187. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20188. if test x$wayland_egl_lib = x; then
  20189. # This works in Ubuntu 13.10, maybe others
  20190. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20191. fi
  20192. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20193. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20194. ;;
  20195. esac
  20196. if test x$enable_wayland_shared = xmaybe; then
  20197. enable_wayland_shared=yes
  20198. fi
  20199. if test x$have_loadso != xyes && \
  20200. test x$enable_wayland_shared = xyes; then
  20201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20202. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20203. enable_wayland_shared=no
  20204. fi
  20205. if test x$have_loadso = xyes && \
  20206. test x$enable_wayland_shared = xyes && \
  20207. test x$wayland_client_lib != x && \
  20208. test x$wayland_egl_lib != x && \
  20209. test x$wayland_cursor_lib != x && \
  20210. test x$xkbcommon_lib != x; then
  20211. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20212. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20213. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20214. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20215. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20216. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20217. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20218. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20219. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20220. else
  20221. enable_wayland_shared=no
  20222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20223. SUMMARY_video="${SUMMARY_video} wayland"
  20224. fi
  20225. have_video=yes
  20226. # Check whether --enable-libdecor was given.
  20227. if test ${enable_libdecor+y}
  20228. then :
  20229. enableval=$enable_libdecor;
  20230. else $as_nop
  20231. enable_libdecor=yes
  20232. fi
  20233. if test x$enable_libdecor = xyes; then
  20234. pkg_failed=no
  20235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20236. printf %s "checking for libdecor-0... " >&6; }
  20237. if test -n "$DECOR_CFLAGS"; then
  20238. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20239. elif test -n "$PKG_CONFIG"; then
  20240. if test -n "$PKG_CONFIG" && \
  20241. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20242. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20243. ac_status=$?
  20244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20245. test $ac_status = 0; }; then
  20246. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20247. test "x$?" != "x0" && pkg_failed=yes
  20248. else
  20249. pkg_failed=yes
  20250. fi
  20251. else
  20252. pkg_failed=untried
  20253. fi
  20254. if test -n "$DECOR_LIBS"; then
  20255. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20256. elif test -n "$PKG_CONFIG"; then
  20257. if test -n "$PKG_CONFIG" && \
  20258. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20259. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20260. ac_status=$?
  20261. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20262. test $ac_status = 0; }; then
  20263. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20264. test "x$?" != "x0" && pkg_failed=yes
  20265. else
  20266. pkg_failed=yes
  20267. fi
  20268. else
  20269. pkg_failed=untried
  20270. fi
  20271. if test $pkg_failed = yes; then
  20272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20273. printf "%s\n" "no" >&6; }
  20274. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20275. _pkg_short_errors_supported=yes
  20276. else
  20277. _pkg_short_errors_supported=no
  20278. fi
  20279. if test $_pkg_short_errors_supported = yes; then
  20280. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20281. else
  20282. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20283. fi
  20284. # Put the nasty error message in config.log where it belongs
  20285. echo "$DECOR_PKG_ERRORS" >&5
  20286. video_libdecor=no
  20287. elif test $pkg_failed = untried; then
  20288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20289. printf "%s\n" "no" >&6; }
  20290. video_libdecor=no
  20291. else
  20292. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20293. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20295. printf "%s\n" "yes" >&6; }
  20296. video_libdecor=yes
  20297. fi
  20298. if test x$video_libdecor = xyes; then
  20299. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20300. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20301. # Check whether --enable-libdecor-shared was given.
  20302. if test ${enable_libdecor_shared+y}
  20303. then :
  20304. enableval=$enable_libdecor_shared;
  20305. else $as_nop
  20306. enable_libdecor_shared=yes
  20307. fi
  20308. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20309. if test x$enable_wayland_shared != xyes; then
  20310. enable_libdecor_shared=no
  20311. fi
  20312. if test x$have_loadso != xyes && \
  20313. test x$enable_libdecor_shared = xyes; then
  20314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20315. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20316. fi
  20317. if test x$have_loadso = xyes && \
  20318. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20319. echo "-- dynamic libdecor -> $decor_lib"
  20320. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20321. else
  20322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20323. fi
  20324. saved_cflags=$CFLAGS
  20325. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20327. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20328. if test ${ac_cv_c_undeclared_builtin_options+y}
  20329. then :
  20330. printf %s "(cached) " >&6
  20331. else $as_nop
  20332. ac_save_CFLAGS=$CFLAGS
  20333. ac_cv_c_undeclared_builtin_options='cannot detect'
  20334. for ac_arg in '' -fno-builtin; do
  20335. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20336. # This test program should *not* compile successfully.
  20337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20338. /* end confdefs.h. */
  20339. int
  20340. main (void)
  20341. {
  20342. (void) strchr;
  20343. ;
  20344. return 0;
  20345. }
  20346. _ACEOF
  20347. if ac_fn_c_try_compile "$LINENO"
  20348. then :
  20349. else $as_nop
  20350. # This test program should compile successfully.
  20351. # No library function is consistently available on
  20352. # freestanding implementations, so test against a dummy
  20353. # declaration. Include always-available headers on the
  20354. # off chance that they somehow elicit warnings.
  20355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20356. /* end confdefs.h. */
  20357. #include <float.h>
  20358. #include <limits.h>
  20359. #include <stdarg.h>
  20360. #include <stddef.h>
  20361. extern void ac_decl (int, char *);
  20362. int
  20363. main (void)
  20364. {
  20365. (void) ac_decl (0, (char *) 0);
  20366. (void) ac_decl;
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. if ac_fn_c_try_compile "$LINENO"
  20372. then :
  20373. if test x"$ac_arg" = x
  20374. then :
  20375. ac_cv_c_undeclared_builtin_options='none needed'
  20376. else $as_nop
  20377. ac_cv_c_undeclared_builtin_options=$ac_arg
  20378. fi
  20379. break
  20380. fi
  20381. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20382. fi
  20383. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20384. done
  20385. CFLAGS=$ac_save_CFLAGS
  20386. fi
  20387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20388. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20389. case $ac_cv_c_undeclared_builtin_options in #(
  20390. 'cannot detect') :
  20391. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20392. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20393. as_fn_error $? "cannot make $CC report undeclared builtins
  20394. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20395. 'none needed') :
  20396. ac_c_undeclared_builtin_options='' ;; #(
  20397. *) :
  20398. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20399. esac
  20400. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20401. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20402. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20403. then :
  20404. ac_have_decl=1
  20405. else $as_nop
  20406. ac_have_decl=0
  20407. fi
  20408. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20409. if test $ac_have_decl = 1
  20410. then :
  20411. libdecor_get_min_max=yes
  20412. fi
  20413. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20414. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20415. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20416. then :
  20417. ac_have_decl=1
  20418. else $as_nop
  20419. ac_have_decl=0
  20420. fi
  20421. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20422. if test $ac_have_decl = 1
  20423. then :
  20424. libdecor_get_min_max=yes
  20425. fi
  20426. if test x$libdecor_get_min_max = xyes; then
  20427. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20428. fi
  20429. CFLAGS="$saved_cflags"
  20430. fi
  20431. fi
  20432. fi
  20433. fi
  20434. }
  20435. CheckNativeClient()
  20436. {
  20437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20438. /* end confdefs.h. */
  20439. #if !defined(__native_client__)
  20440. #error "NO NACL"
  20441. #endif
  20442. int
  20443. main (void)
  20444. {
  20445. ;
  20446. return 0;
  20447. }
  20448. _ACEOF
  20449. if ac_fn_c_try_compile "$LINENO"
  20450. then :
  20451. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20452. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20453. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20454. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20455. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20456. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20457. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20458. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20459. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20460. SUMMARY_audio="${SUMMARY_audio} nacl"
  20461. have_audio=yes
  20462. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20463. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20464. have_video=yes
  20465. fi
  20466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20467. }
  20468. CheckRPI()
  20469. {
  20470. # Check whether --enable-video-rpi was given.
  20471. if test ${enable_video_rpi+y}
  20472. then :
  20473. enableval=$enable_video_rpi;
  20474. else $as_nop
  20475. enable_video_rpi=yes
  20476. fi
  20477. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20478. pkg_failed=no
  20479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20480. printf %s "checking for bcm_host brcmegl... " >&6; }
  20481. if test -n "$RPI_CFLAGS"; then
  20482. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20483. elif test -n "$PKG_CONFIG"; then
  20484. if test -n "$PKG_CONFIG" && \
  20485. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20486. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20487. ac_status=$?
  20488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20489. test $ac_status = 0; }; then
  20490. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20491. test "x$?" != "x0" && pkg_failed=yes
  20492. else
  20493. pkg_failed=yes
  20494. fi
  20495. else
  20496. pkg_failed=untried
  20497. fi
  20498. if test -n "$RPI_LIBS"; then
  20499. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20500. elif test -n "$PKG_CONFIG"; then
  20501. if test -n "$PKG_CONFIG" && \
  20502. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20503. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20504. ac_status=$?
  20505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20506. test $ac_status = 0; }; then
  20507. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20508. test "x$?" != "x0" && pkg_failed=yes
  20509. else
  20510. pkg_failed=yes
  20511. fi
  20512. else
  20513. pkg_failed=untried
  20514. fi
  20515. if test $pkg_failed = yes; then
  20516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20517. printf "%s\n" "no" >&6; }
  20518. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20519. _pkg_short_errors_supported=yes
  20520. else
  20521. _pkg_short_errors_supported=no
  20522. fi
  20523. if test $_pkg_short_errors_supported = yes; then
  20524. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20525. else
  20526. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20527. fi
  20528. # Put the nasty error message in config.log where it belongs
  20529. echo "$RPI_PKG_ERRORS" >&5
  20530. video_rpi=no
  20531. elif test $pkg_failed = untried; then
  20532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20533. printf "%s\n" "no" >&6; }
  20534. video_rpi=no
  20535. else
  20536. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20537. RPI_LIBS=$pkg_cv_RPI_LIBS
  20538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20539. printf "%s\n" "yes" >&6; }
  20540. video_rpi=yes
  20541. fi
  20542. if test x$video_rpi = xno; then
  20543. if test x$ARCH = xnetbsd; then
  20544. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20545. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20546. else
  20547. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20548. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20549. fi
  20550. fi
  20551. # Save the original compiler flags and libraries
  20552. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20553. # Add the Raspberry Pi compiler flags and libraries
  20554. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20556. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20557. have_video_rpi=no
  20558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20559. /* end confdefs.h. */
  20560. #include <bcm_host.h>
  20561. #include <EGL/eglplatform.h>
  20562. int
  20563. main (void)
  20564. {
  20565. EGL_DISPMANX_WINDOW_T window;
  20566. bcm_host_init();
  20567. ;
  20568. return 0;
  20569. }
  20570. _ACEOF
  20571. if ac_fn_c_try_link "$LINENO"
  20572. then :
  20573. have_video_rpi=yes
  20574. fi
  20575. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20576. conftest$ac_exeext conftest.$ac_ext
  20577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20578. printf "%s\n" "$have_video_rpi" >&6; }
  20579. # Restore the compiler flags and libraries
  20580. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20581. if test x$have_video_rpi = xyes; then
  20582. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20583. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20584. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20586. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20587. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20588. SUMMARY_video="${SUMMARY_video} rpi"
  20589. have_video=yes
  20590. fi
  20591. fi
  20592. }
  20593. CheckX11()
  20594. {
  20595. # Check whether --enable-video-x11 was given.
  20596. if test ${enable_video_x11+y}
  20597. then :
  20598. enableval=$enable_video_x11;
  20599. else $as_nop
  20600. enable_video_x11=yes
  20601. case "$host" in
  20602. *-*-darwin*|*-ios-*)
  20603. enable_video_x11=no
  20604. ;;
  20605. esac
  20606. fi
  20607. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20608. case "$host" in
  20609. *-*-darwin*)
  20610. # This isn't necessary for X11, but fixes GLX detection
  20611. if test "x$x_includes" = xNONE && \
  20612. test "x$x_libraries" = xNONE && \
  20613. test -d /opt/X11/include && \
  20614. test -d /opt/X11/lib; then
  20615. x_includes="/opt/X11/include"
  20616. x_libraries="/opt/X11/lib"
  20617. fi
  20618. ;;
  20619. esac
  20620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20621. printf %s "checking for X... " >&6; }
  20622. # Check whether --with-x was given.
  20623. if test ${with_x+y}
  20624. then :
  20625. withval=$with_x;
  20626. fi
  20627. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20628. if test "x$with_x" = xno; then
  20629. # The user explicitly disabled X.
  20630. have_x=disabled
  20631. else
  20632. case $x_includes,$x_libraries in #(
  20633. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20634. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20635. then :
  20636. printf %s "(cached) " >&6
  20637. else $as_nop
  20638. # One or both of the vars are not set, and there is no cached value.
  20639. ac_x_includes=no
  20640. ac_x_libraries=no
  20641. # Do we need to do anything special at all?
  20642. ac_save_LIBS=$LIBS
  20643. LIBS="-lX11 $LIBS"
  20644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20645. /* end confdefs.h. */
  20646. #include <X11/Xlib.h>
  20647. int
  20648. main (void)
  20649. {
  20650. XrmInitialize ()
  20651. ;
  20652. return 0;
  20653. }
  20654. _ACEOF
  20655. if ac_fn_c_try_link "$LINENO"
  20656. then :
  20657. # We can compile and link X programs with no special options.
  20658. ac_x_includes=
  20659. ac_x_libraries=
  20660. fi
  20661. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20662. conftest$ac_exeext conftest.$ac_ext
  20663. LIBS="$ac_save_LIBS"
  20664. # If that didn't work, only try xmkmf and file system searches
  20665. # for native compilation.
  20666. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20667. then :
  20668. rm -f -r conftest.dir
  20669. if mkdir conftest.dir; then
  20670. cd conftest.dir
  20671. cat >Imakefile <<'_ACEOF'
  20672. incroot:
  20673. @echo incroot='${INCROOT}'
  20674. usrlibdir:
  20675. @echo usrlibdir='${USRLIBDIR}'
  20676. libdir:
  20677. @echo libdir='${LIBDIR}'
  20678. _ACEOF
  20679. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20680. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20681. for ac_var in incroot usrlibdir libdir; do
  20682. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20683. done
  20684. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20685. for ac_extension in a so sl dylib la dll; do
  20686. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20687. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20688. ac_im_usrlibdir=$ac_im_libdir; break
  20689. fi
  20690. done
  20691. # Screen out bogus values from the imake configuration. They are
  20692. # bogus both because they are the default anyway, and because
  20693. # using them would break gcc on systems where it needs fixed includes.
  20694. case $ac_im_incroot in
  20695. /usr/include) ac_x_includes= ;;
  20696. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20697. esac
  20698. case $ac_im_usrlibdir in
  20699. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20700. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20701. esac
  20702. fi
  20703. cd ..
  20704. rm -f -r conftest.dir
  20705. fi
  20706. # Standard set of common directories for X headers.
  20707. # Check X11 before X11Rn because it is often a symlink to the current release.
  20708. ac_x_header_dirs='
  20709. /usr/X11/include
  20710. /usr/X11R7/include
  20711. /usr/X11R6/include
  20712. /usr/X11R5/include
  20713. /usr/X11R4/include
  20714. /usr/include/X11
  20715. /usr/include/X11R7
  20716. /usr/include/X11R6
  20717. /usr/include/X11R5
  20718. /usr/include/X11R4
  20719. /usr/local/X11/include
  20720. /usr/local/X11R7/include
  20721. /usr/local/X11R6/include
  20722. /usr/local/X11R5/include
  20723. /usr/local/X11R4/include
  20724. /usr/local/include/X11
  20725. /usr/local/include/X11R7
  20726. /usr/local/include/X11R6
  20727. /usr/local/include/X11R5
  20728. /usr/local/include/X11R4
  20729. /opt/X11/include
  20730. /usr/X386/include
  20731. /usr/x386/include
  20732. /usr/XFree86/include/X11
  20733. /usr/include
  20734. /usr/local/include
  20735. /usr/unsupported/include
  20736. /usr/athena/include
  20737. /usr/local/x11r5/include
  20738. /usr/lpp/Xamples/include
  20739. /usr/openwin/include
  20740. /usr/openwin/share/include'
  20741. if test "$ac_x_includes" = no; then
  20742. # Guess where to find include files, by looking for Xlib.h.
  20743. # First, try using that file with no special directory specified.
  20744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20745. /* end confdefs.h. */
  20746. #include <X11/Xlib.h>
  20747. _ACEOF
  20748. if ac_fn_c_try_cpp "$LINENO"
  20749. then :
  20750. # We can compile using X headers with no special include directory.
  20751. ac_x_includes=
  20752. else $as_nop
  20753. for ac_dir in $ac_x_header_dirs; do
  20754. if test -r "$ac_dir/X11/Xlib.h"; then
  20755. ac_x_includes=$ac_dir
  20756. break
  20757. fi
  20758. done
  20759. fi
  20760. rm -f conftest.err conftest.i conftest.$ac_ext
  20761. fi # $ac_x_includes = no
  20762. if test "$ac_x_libraries" = no; then
  20763. # Check for the libraries.
  20764. # See if we find them without any special options.
  20765. # Don't add to $LIBS permanently.
  20766. ac_save_LIBS=$LIBS
  20767. LIBS="-lX11 $LIBS"
  20768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20769. /* end confdefs.h. */
  20770. #include <X11/Xlib.h>
  20771. int
  20772. main (void)
  20773. {
  20774. XrmInitialize ()
  20775. ;
  20776. return 0;
  20777. }
  20778. _ACEOF
  20779. if ac_fn_c_try_link "$LINENO"
  20780. then :
  20781. LIBS=$ac_save_LIBS
  20782. # We can link X programs with no special library path.
  20783. ac_x_libraries=
  20784. else $as_nop
  20785. LIBS=$ac_save_LIBS
  20786. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20787. do
  20788. # Don't even attempt the hair of trying to link an X program!
  20789. for ac_extension in a so sl dylib la dll; do
  20790. if test -r "$ac_dir/libX11.$ac_extension"; then
  20791. ac_x_libraries=$ac_dir
  20792. break 2
  20793. fi
  20794. done
  20795. done
  20796. fi
  20797. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20798. conftest$ac_exeext conftest.$ac_ext
  20799. fi # $ac_x_libraries = no
  20800. fi
  20801. # Record the results.
  20802. case $ac_x_includes,$ac_x_libraries in #(
  20803. no,* | *,no | *\'*) :
  20804. # Didn't find X, or a directory has "'" in its name.
  20805. ac_cv_have_x="have_x=no" ;; #(
  20806. *) :
  20807. # Record where we found X for the cache.
  20808. ac_cv_have_x="have_x=yes\
  20809. ac_x_includes='$ac_x_includes'\
  20810. ac_x_libraries='$ac_x_libraries'" ;;
  20811. esac
  20812. fi
  20813. ;; #(
  20814. *) have_x=yes;;
  20815. esac
  20816. eval "$ac_cv_have_x"
  20817. fi # $with_x != no
  20818. if test "$have_x" != yes; then
  20819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20820. printf "%s\n" "$have_x" >&6; }
  20821. no_x=yes
  20822. else
  20823. # If each of the values was on the command line, it overrides each guess.
  20824. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20825. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20826. # Update the cache value to reflect the command line values.
  20827. ac_cv_have_x="have_x=yes\
  20828. ac_x_includes='$x_includes'\
  20829. ac_x_libraries='$x_libraries'"
  20830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20831. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20832. fi
  20833. if test "$no_x" = yes; then
  20834. # Not all programs may use this symbol, but it does not hurt to define it.
  20835. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20836. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20837. else
  20838. if test -n "$x_includes"; then
  20839. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20840. fi
  20841. # It would also be nice to do this for all -L options, not just this one.
  20842. if test -n "$x_libraries"; then
  20843. X_LIBS="$X_LIBS -L$x_libraries"
  20844. # For Solaris; some versions of Sun CC require a space after -R and
  20845. # others require no space. Words are not sufficient . . . .
  20846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20847. printf %s "checking whether -R must be followed by a space... " >&6; }
  20848. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20849. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20850. ac_c_werror_flag=yes
  20851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20852. /* end confdefs.h. */
  20853. int
  20854. main (void)
  20855. {
  20856. ;
  20857. return 0;
  20858. }
  20859. _ACEOF
  20860. if ac_fn_c_try_link "$LINENO"
  20861. then :
  20862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20863. printf "%s\n" "no" >&6; }
  20864. X_LIBS="$X_LIBS -R$x_libraries"
  20865. else $as_nop
  20866. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20868. /* end confdefs.h. */
  20869. int
  20870. main (void)
  20871. {
  20872. ;
  20873. return 0;
  20874. }
  20875. _ACEOF
  20876. if ac_fn_c_try_link "$LINENO"
  20877. then :
  20878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20879. printf "%s\n" "yes" >&6; }
  20880. X_LIBS="$X_LIBS -R $x_libraries"
  20881. else $as_nop
  20882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20883. printf "%s\n" "neither works" >&6; }
  20884. fi
  20885. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20886. conftest$ac_exeext conftest.$ac_ext
  20887. fi
  20888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20889. conftest$ac_exeext conftest.$ac_ext
  20890. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20891. LIBS=$ac_xsave_LIBS
  20892. fi
  20893. # Check for system-dependent libraries X programs must link with.
  20894. # Do this before checking for the system-independent R6 libraries
  20895. # (-lICE), since we may need -lsocket or whatever for X linking.
  20896. if test "$ISC" = yes; then
  20897. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20898. else
  20899. # Martyn Johnson says this is needed for Ultrix, if the X
  20900. # libraries were built with DECnet support. And Karl Berry says
  20901. # the Alpha needs dnet_stub (dnet does not exist).
  20902. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. /* Override any GCC internal prototype to avoid an error.
  20906. Use char because int might match the return type of a GCC
  20907. builtin and then its argument prototype would still apply. */
  20908. char XOpenDisplay ();
  20909. int
  20910. main (void)
  20911. {
  20912. return XOpenDisplay ();
  20913. ;
  20914. return 0;
  20915. }
  20916. _ACEOF
  20917. if ac_fn_c_try_link "$LINENO"
  20918. then :
  20919. else $as_nop
  20920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20921. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20922. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20923. then :
  20924. printf %s "(cached) " >&6
  20925. else $as_nop
  20926. ac_check_lib_save_LIBS=$LIBS
  20927. LIBS="-ldnet $LIBS"
  20928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20929. /* end confdefs.h. */
  20930. /* Override any GCC internal prototype to avoid an error.
  20931. Use char because int might match the return type of a GCC
  20932. builtin and then its argument prototype would still apply. */
  20933. char dnet_ntoa ();
  20934. int
  20935. main (void)
  20936. {
  20937. return dnet_ntoa ();
  20938. ;
  20939. return 0;
  20940. }
  20941. _ACEOF
  20942. if ac_fn_c_try_link "$LINENO"
  20943. then :
  20944. ac_cv_lib_dnet_dnet_ntoa=yes
  20945. else $as_nop
  20946. ac_cv_lib_dnet_dnet_ntoa=no
  20947. fi
  20948. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20949. conftest$ac_exeext conftest.$ac_ext
  20950. LIBS=$ac_check_lib_save_LIBS
  20951. fi
  20952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20953. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20954. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20955. then :
  20956. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20957. fi
  20958. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20960. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20961. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20962. then :
  20963. printf %s "(cached) " >&6
  20964. else $as_nop
  20965. ac_check_lib_save_LIBS=$LIBS
  20966. LIBS="-ldnet_stub $LIBS"
  20967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20968. /* end confdefs.h. */
  20969. /* Override any GCC internal prototype to avoid an error.
  20970. Use char because int might match the return type of a GCC
  20971. builtin and then its argument prototype would still apply. */
  20972. char dnet_ntoa ();
  20973. int
  20974. main (void)
  20975. {
  20976. return dnet_ntoa ();
  20977. ;
  20978. return 0;
  20979. }
  20980. _ACEOF
  20981. if ac_fn_c_try_link "$LINENO"
  20982. then :
  20983. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20984. else $as_nop
  20985. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20986. fi
  20987. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20988. conftest$ac_exeext conftest.$ac_ext
  20989. LIBS=$ac_check_lib_save_LIBS
  20990. fi
  20991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20992. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20993. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20994. then :
  20995. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20996. fi
  20997. fi
  20998. fi
  20999. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21000. conftest$ac_exeext conftest.$ac_ext
  21001. LIBS="$ac_xsave_LIBS"
  21002. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21003. # to get the SysV transport functions.
  21004. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21005. # needs -lnsl.
  21006. # The nsl library prevents programs from opening the X display
  21007. # on Irix 5.2, according to T.E. Dickey.
  21008. # The functions gethostbyname, getservbyname, and inet_addr are
  21009. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21010. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21011. if test "x$ac_cv_func_gethostbyname" = xyes
  21012. then :
  21013. fi
  21014. if test $ac_cv_func_gethostbyname = no; then
  21015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21016. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21017. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21018. then :
  21019. printf %s "(cached) " >&6
  21020. else $as_nop
  21021. ac_check_lib_save_LIBS=$LIBS
  21022. LIBS="-lnsl $LIBS"
  21023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21024. /* end confdefs.h. */
  21025. /* Override any GCC internal prototype to avoid an error.
  21026. Use char because int might match the return type of a GCC
  21027. builtin and then its argument prototype would still apply. */
  21028. char gethostbyname ();
  21029. int
  21030. main (void)
  21031. {
  21032. return gethostbyname ();
  21033. ;
  21034. return 0;
  21035. }
  21036. _ACEOF
  21037. if ac_fn_c_try_link "$LINENO"
  21038. then :
  21039. ac_cv_lib_nsl_gethostbyname=yes
  21040. else $as_nop
  21041. ac_cv_lib_nsl_gethostbyname=no
  21042. fi
  21043. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21044. conftest$ac_exeext conftest.$ac_ext
  21045. LIBS=$ac_check_lib_save_LIBS
  21046. fi
  21047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21048. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21049. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21050. then :
  21051. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21052. fi
  21053. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21055. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21056. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21057. then :
  21058. printf %s "(cached) " >&6
  21059. else $as_nop
  21060. ac_check_lib_save_LIBS=$LIBS
  21061. LIBS="-lbsd $LIBS"
  21062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21063. /* end confdefs.h. */
  21064. /* Override any GCC internal prototype to avoid an error.
  21065. Use char because int might match the return type of a GCC
  21066. builtin and then its argument prototype would still apply. */
  21067. char gethostbyname ();
  21068. int
  21069. main (void)
  21070. {
  21071. return gethostbyname ();
  21072. ;
  21073. return 0;
  21074. }
  21075. _ACEOF
  21076. if ac_fn_c_try_link "$LINENO"
  21077. then :
  21078. ac_cv_lib_bsd_gethostbyname=yes
  21079. else $as_nop
  21080. ac_cv_lib_bsd_gethostbyname=no
  21081. fi
  21082. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21083. conftest$ac_exeext conftest.$ac_ext
  21084. LIBS=$ac_check_lib_save_LIBS
  21085. fi
  21086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21087. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21088. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21089. then :
  21090. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21091. fi
  21092. fi
  21093. fi
  21094. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21095. # socket/setsockopt and other routines are undefined under SCO ODT
  21096. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21097. # on later versions), says Simon Leinen: it contains gethostby*
  21098. # variants that don't use the name server (or something). -lsocket
  21099. # must be given before -lnsl if both are needed. We assume that
  21100. # if connect needs -lnsl, so does gethostbyname.
  21101. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21102. if test "x$ac_cv_func_connect" = xyes
  21103. then :
  21104. fi
  21105. if test $ac_cv_func_connect = no; then
  21106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21107. printf %s "checking for connect in -lsocket... " >&6; }
  21108. if test ${ac_cv_lib_socket_connect+y}
  21109. then :
  21110. printf %s "(cached) " >&6
  21111. else $as_nop
  21112. ac_check_lib_save_LIBS=$LIBS
  21113. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21115. /* end confdefs.h. */
  21116. /* Override any GCC internal prototype to avoid an error.
  21117. Use char because int might match the return type of a GCC
  21118. builtin and then its argument prototype would still apply. */
  21119. char connect ();
  21120. int
  21121. main (void)
  21122. {
  21123. return connect ();
  21124. ;
  21125. return 0;
  21126. }
  21127. _ACEOF
  21128. if ac_fn_c_try_link "$LINENO"
  21129. then :
  21130. ac_cv_lib_socket_connect=yes
  21131. else $as_nop
  21132. ac_cv_lib_socket_connect=no
  21133. fi
  21134. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21135. conftest$ac_exeext conftest.$ac_ext
  21136. LIBS=$ac_check_lib_save_LIBS
  21137. fi
  21138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21139. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21140. if test "x$ac_cv_lib_socket_connect" = xyes
  21141. then :
  21142. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21143. fi
  21144. fi
  21145. # Guillermo Gomez says -lposix is necessary on A/UX.
  21146. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21147. if test "x$ac_cv_func_remove" = xyes
  21148. then :
  21149. fi
  21150. if test $ac_cv_func_remove = no; then
  21151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21152. printf %s "checking for remove in -lposix... " >&6; }
  21153. if test ${ac_cv_lib_posix_remove+y}
  21154. then :
  21155. printf %s "(cached) " >&6
  21156. else $as_nop
  21157. ac_check_lib_save_LIBS=$LIBS
  21158. LIBS="-lposix $LIBS"
  21159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21160. /* end confdefs.h. */
  21161. /* Override any GCC internal prototype to avoid an error.
  21162. Use char because int might match the return type of a GCC
  21163. builtin and then its argument prototype would still apply. */
  21164. char remove ();
  21165. int
  21166. main (void)
  21167. {
  21168. return remove ();
  21169. ;
  21170. return 0;
  21171. }
  21172. _ACEOF
  21173. if ac_fn_c_try_link "$LINENO"
  21174. then :
  21175. ac_cv_lib_posix_remove=yes
  21176. else $as_nop
  21177. ac_cv_lib_posix_remove=no
  21178. fi
  21179. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21180. conftest$ac_exeext conftest.$ac_ext
  21181. LIBS=$ac_check_lib_save_LIBS
  21182. fi
  21183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21184. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21185. if test "x$ac_cv_lib_posix_remove" = xyes
  21186. then :
  21187. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21188. fi
  21189. fi
  21190. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21191. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21192. if test "x$ac_cv_func_shmat" = xyes
  21193. then :
  21194. fi
  21195. if test $ac_cv_func_shmat = no; then
  21196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21197. printf %s "checking for shmat in -lipc... " >&6; }
  21198. if test ${ac_cv_lib_ipc_shmat+y}
  21199. then :
  21200. printf %s "(cached) " >&6
  21201. else $as_nop
  21202. ac_check_lib_save_LIBS=$LIBS
  21203. LIBS="-lipc $LIBS"
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. /* Override any GCC internal prototype to avoid an error.
  21207. Use char because int might match the return type of a GCC
  21208. builtin and then its argument prototype would still apply. */
  21209. char shmat ();
  21210. int
  21211. main (void)
  21212. {
  21213. return shmat ();
  21214. ;
  21215. return 0;
  21216. }
  21217. _ACEOF
  21218. if ac_fn_c_try_link "$LINENO"
  21219. then :
  21220. ac_cv_lib_ipc_shmat=yes
  21221. else $as_nop
  21222. ac_cv_lib_ipc_shmat=no
  21223. fi
  21224. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21225. conftest$ac_exeext conftest.$ac_ext
  21226. LIBS=$ac_check_lib_save_LIBS
  21227. fi
  21228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21229. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21230. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21231. then :
  21232. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21233. fi
  21234. fi
  21235. fi
  21236. # Check for libraries that X11R6 Xt/Xaw programs need.
  21237. ac_save_LDFLAGS=$LDFLAGS
  21238. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21239. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21240. # check for ICE first), but we must link in the order -lSM -lICE or
  21241. # we get undefined symbols. So assume we have SM if we have ICE.
  21242. # These have to be linked with before -lX11, unlike the other
  21243. # libraries we check for below, so use a different variable.
  21244. # John Interrante, Karl Berry
  21245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21246. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21247. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21248. then :
  21249. printf %s "(cached) " >&6
  21250. else $as_nop
  21251. ac_check_lib_save_LIBS=$LIBS
  21252. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21254. /* end confdefs.h. */
  21255. /* Override any GCC internal prototype to avoid an error.
  21256. Use char because int might match the return type of a GCC
  21257. builtin and then its argument prototype would still apply. */
  21258. char IceConnectionNumber ();
  21259. int
  21260. main (void)
  21261. {
  21262. return IceConnectionNumber ();
  21263. ;
  21264. return 0;
  21265. }
  21266. _ACEOF
  21267. if ac_fn_c_try_link "$LINENO"
  21268. then :
  21269. ac_cv_lib_ICE_IceConnectionNumber=yes
  21270. else $as_nop
  21271. ac_cv_lib_ICE_IceConnectionNumber=no
  21272. fi
  21273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21274. conftest$ac_exeext conftest.$ac_ext
  21275. LIBS=$ac_check_lib_save_LIBS
  21276. fi
  21277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21278. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21279. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21280. then :
  21281. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21282. fi
  21283. LDFLAGS=$ac_save_LDFLAGS
  21284. fi
  21285. if test x$have_x = xyes; then
  21286. # Check whether --enable-x11-shared was given.
  21287. if test ${enable_x11_shared+y}
  21288. then :
  21289. enableval=$enable_x11_shared;
  21290. else $as_nop
  21291. enable_x11_shared=maybe
  21292. fi
  21293. case "$host" in
  21294. *-*-darwin*)
  21295. # Apple now puts this in /opt/X11
  21296. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21297. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21298. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21299. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21300. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21301. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21302. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21303. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21304. ;;
  21305. *-*-openbsd*)
  21306. x11_lib='libX11.so'
  21307. x11ext_lib='libXext.so'
  21308. xcursor_lib='libXcursor.so'
  21309. xinput_lib='libXi.so'
  21310. xfixes_lib='libXfixes.so'
  21311. xrandr_lib='libXrandr.so'
  21312. xrender_lib='libXrender.so'
  21313. xss_lib='libXss.so'
  21314. ;;
  21315. *)
  21316. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21317. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21318. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21319. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21320. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21321. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21322. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21323. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21324. ;;
  21325. esac
  21326. if test x$ac_cv_func_shmat != xyes; then
  21327. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21328. fi
  21329. CFLAGS="$CFLAGS $X_CFLAGS"
  21330. LDFLAGS="$LDFLAGS $X_LIBS"
  21331. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21332. #include <X11/Xproto.h>
  21333. "
  21334. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21335. then :
  21336. have_xext_h_hdr=yes
  21337. else $as_nop
  21338. have_xext_h_hdr=no
  21339. fi
  21340. if test x$have_xext_h_hdr != xyes; then
  21341. as_fn_error $? "
  21342. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21343. " "$LINENO" 5
  21344. fi
  21345. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21346. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21347. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21348. # Needed so SDL applications can include SDL_syswm.h
  21349. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21350. if test x$enable_x11_shared = xmaybe; then
  21351. enable_x11_shared=yes
  21352. fi
  21353. if test x$have_loadso != xyes && \
  21354. test x$enable_x11_shared = xyes; then
  21355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21356. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21357. enable_x11_shared=no
  21358. fi
  21359. if test x$have_loadso = xyes && \
  21360. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21361. echo "-- dynamic libX11 -> $x11_lib"
  21362. echo "-- dynamic libX11ext -> $x11ext_lib"
  21363. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21364. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21365. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21366. else
  21367. enable_x11_shared=no
  21368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21369. SUMMARY_video="${SUMMARY_video} x11"
  21370. fi
  21371. have_video=yes
  21372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21373. printf %s "checking for XGenericEvent... " >&6; }
  21374. have_XGenericEvent=no
  21375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21376. /* end confdefs.h. */
  21377. #include <X11/Xlib.h>
  21378. int
  21379. main (void)
  21380. {
  21381. Display *display;
  21382. XEvent event;
  21383. XGenericEventCookie *cookie = &event.xcookie;
  21384. XNextEvent(display, &event);
  21385. XGetEventData(display, cookie);
  21386. XFreeEventData(display, cookie);
  21387. ;
  21388. return 0;
  21389. }
  21390. _ACEOF
  21391. if ac_fn_c_try_compile "$LINENO"
  21392. then :
  21393. have_XGenericEvent=yes
  21394. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21395. fi
  21396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21398. printf "%s\n" "$have_XGenericEvent" >&6; }
  21399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21400. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21401. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21402. then :
  21403. printf %s "(cached) " >&6
  21404. else $as_nop
  21405. ac_check_lib_save_LIBS=$LIBS
  21406. LIBS="-lX11 $LIBS"
  21407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21408. /* end confdefs.h. */
  21409. /* Override any GCC internal prototype to avoid an error.
  21410. Use char because int might match the return type of a GCC
  21411. builtin and then its argument prototype would still apply. */
  21412. char XkbKeycodeToKeysym ();
  21413. int
  21414. main (void)
  21415. {
  21416. return XkbKeycodeToKeysym ();
  21417. ;
  21418. return 0;
  21419. }
  21420. _ACEOF
  21421. if ac_fn_c_try_link "$LINENO"
  21422. then :
  21423. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21424. else $as_nop
  21425. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21426. fi
  21427. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21428. conftest$ac_exeext conftest.$ac_ext
  21429. LIBS=$ac_check_lib_save_LIBS
  21430. fi
  21431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21432. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21433. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21434. then :
  21435. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21436. fi
  21437. # Check whether --enable-video-x11-xcursor was given.
  21438. if test ${enable_video_x11_xcursor+y}
  21439. then :
  21440. enableval=$enable_video_x11_xcursor;
  21441. else $as_nop
  21442. enable_video_x11_xcursor=yes
  21443. fi
  21444. if test x$enable_video_x11_xcursor = xyes; then
  21445. definitely_enable_video_x11_xcursor=no
  21446. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21447. "
  21448. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21449. then :
  21450. have_xcursor_h_hdr=yes
  21451. else $as_nop
  21452. have_xcursor_h_hdr=no
  21453. fi
  21454. if test x$have_xcursor_h_hdr = xyes; then
  21455. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21456. echo "-- dynamic libXcursor -> $xcursor_lib"
  21457. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21458. definitely_enable_video_x11_xcursor=yes
  21459. else
  21460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21461. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21462. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21463. then :
  21464. printf %s "(cached) " >&6
  21465. else $as_nop
  21466. ac_check_lib_save_LIBS=$LIBS
  21467. LIBS="-lXcursor $LIBS"
  21468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21469. /* end confdefs.h. */
  21470. /* Override any GCC internal prototype to avoid an error.
  21471. Use char because int might match the return type of a GCC
  21472. builtin and then its argument prototype would still apply. */
  21473. char XcursorImageCreate ();
  21474. int
  21475. main (void)
  21476. {
  21477. return XcursorImageCreate ();
  21478. ;
  21479. return 0;
  21480. }
  21481. _ACEOF
  21482. if ac_fn_c_try_link "$LINENO"
  21483. then :
  21484. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21485. else $as_nop
  21486. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21487. fi
  21488. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21489. conftest$ac_exeext conftest.$ac_ext
  21490. LIBS=$ac_check_lib_save_LIBS
  21491. fi
  21492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21493. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21494. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21495. then :
  21496. have_xcursor_lib=yes
  21497. fi
  21498. if test x$have_xcursor_lib = xyes ; then
  21499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21500. definitely_enable_video_x11_xcursor=yes
  21501. fi
  21502. fi
  21503. fi
  21504. fi
  21505. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21506. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21507. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21508. fi
  21509. # Check whether --enable-video-x11-xdbe was given.
  21510. if test ${enable_video_x11_xdbe+y}
  21511. then :
  21512. enableval=$enable_video_x11_xdbe;
  21513. else $as_nop
  21514. enable_video_x11_xdbe=yes
  21515. fi
  21516. if test x$enable_video_x11_xdbe = xyes; then
  21517. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21518. "
  21519. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21520. then :
  21521. have_dbe_h_hdr=yes
  21522. else $as_nop
  21523. have_dbe_h_hdr=no
  21524. fi
  21525. if test x$have_dbe_h_hdr = xyes; then
  21526. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21527. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21528. fi
  21529. fi
  21530. # Check whether --enable-video-x11-xinput was given.
  21531. if test ${enable_video_x11_xinput+y}
  21532. then :
  21533. enableval=$enable_video_x11_xinput;
  21534. else $as_nop
  21535. enable_video_x11_xinput=yes
  21536. fi
  21537. if test x$enable_video_x11_xinput = xyes; then
  21538. definitely_enable_video_x11_xinput=no
  21539. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21540. "
  21541. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21542. then :
  21543. have_xinput_h_hdr=yes
  21544. else $as_nop
  21545. have_xinput_h_hdr=no
  21546. fi
  21547. if test x$have_xinput_h_hdr = xyes; then
  21548. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21549. echo "-- dynamic libXi -> $xinput_lib"
  21550. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21551. definitely_enable_video_x11_xinput=yes
  21552. else
  21553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21554. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21555. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21556. then :
  21557. printf %s "(cached) " >&6
  21558. else $as_nop
  21559. ac_check_lib_save_LIBS=$LIBS
  21560. LIBS="-lXi $LIBS"
  21561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21562. /* end confdefs.h. */
  21563. /* Override any GCC internal prototype to avoid an error.
  21564. Use char because int might match the return type of a GCC
  21565. builtin and then its argument prototype would still apply. */
  21566. char XOpenDevice ();
  21567. int
  21568. main (void)
  21569. {
  21570. return XOpenDevice ();
  21571. ;
  21572. return 0;
  21573. }
  21574. _ACEOF
  21575. if ac_fn_c_try_link "$LINENO"
  21576. then :
  21577. ac_cv_lib_Xi_XOpenDevice=yes
  21578. else $as_nop
  21579. ac_cv_lib_Xi_XOpenDevice=no
  21580. fi
  21581. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21582. conftest$ac_exeext conftest.$ac_ext
  21583. LIBS=$ac_check_lib_save_LIBS
  21584. fi
  21585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21586. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21587. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21588. then :
  21589. have_xinput_lib=yes
  21590. fi
  21591. if test x$have_xinput_lib = xyes ; then
  21592. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21593. definitely_enable_video_x11_xinput=yes
  21594. fi
  21595. fi
  21596. fi
  21597. fi
  21598. if test x$definitely_enable_video_x11_xinput = xyes; then
  21599. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21600. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21602. printf %s "checking for xinput2 multitouch... " >&6; }
  21603. have_xinput2_multitouch=no
  21604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21605. /* end confdefs.h. */
  21606. #include <X11/Xlib.h>
  21607. #include <X11/Xproto.h>
  21608. #include <X11/extensions/XInput2.h>
  21609. int
  21610. main (void)
  21611. {
  21612. int event_type = XI_TouchBegin;
  21613. XITouchClassInfo *t;
  21614. ;
  21615. return 0;
  21616. }
  21617. _ACEOF
  21618. if ac_fn_c_try_compile "$LINENO"
  21619. then :
  21620. have_xinput2_multitouch=yes
  21621. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21622. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21623. fi
  21624. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21626. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21627. fi
  21628. # Check whether --enable-video-x11-xfixes was given.
  21629. if test ${enable_video_x11_xfixes+y}
  21630. then :
  21631. enableval=$enable_video_x11_xfixes;
  21632. else $as_nop
  21633. enable_video_x11_xfixes=yes
  21634. fi
  21635. if test x$enable_video_x11_xfixes = xyes; then
  21636. definitely_enable_video_x11_xfixes=no
  21637. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21639. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21641. /* end confdefs.h. */
  21642. #include <X11/Xlib.h>
  21643. #include <X11/Xproto.h>
  21644. #include <X11/extensions/XInput2.h>
  21645. #include <X11/extensions/Xfixes.h>
  21646. int
  21647. main (void)
  21648. {
  21649. BarrierEventID b;
  21650. ;
  21651. return 0;
  21652. }
  21653. _ACEOF
  21654. if ac_fn_c_try_compile "$LINENO"
  21655. then :
  21656. have_xfixes_h_hdr=yes
  21657. else $as_nop
  21658. have_xfixes_h_hdr=no
  21659. fi
  21660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21662. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21663. if test x$have_xfixes_h_hdr = xyes; then
  21664. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21665. echo "-- dynamic libXfixes -> $xfixes_lib"
  21666. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21667. definitely_enable_video_x11_xfixes=yes
  21668. else
  21669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21670. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21671. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21672. then :
  21673. printf %s "(cached) " >&6
  21674. else $as_nop
  21675. ac_check_lib_save_LIBS=$LIBS
  21676. LIBS="-lXfixes $LIBS"
  21677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21678. /* end confdefs.h. */
  21679. /* Override any GCC internal prototype to avoid an error.
  21680. Use char because int might match the return type of a GCC
  21681. builtin and then its argument prototype would still apply. */
  21682. char XFixesCreatePointerBarrier ();
  21683. int
  21684. main (void)
  21685. {
  21686. return XFixesCreatePointerBarrier ();
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. if ac_fn_c_try_link "$LINENO"
  21692. then :
  21693. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21694. else $as_nop
  21695. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21696. fi
  21697. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21698. conftest$ac_exeext conftest.$ac_ext
  21699. LIBS=$ac_check_lib_save_LIBS
  21700. fi
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21702. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21703. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21704. then :
  21705. have_xfixes_lib=yes
  21706. fi
  21707. if test x$have_xfixes_lib = xyes ; then
  21708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21709. definitely_enable_video_x11_xfixes=yes
  21710. fi
  21711. fi
  21712. fi
  21713. fi
  21714. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21715. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21716. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21717. fi
  21718. # Check whether --enable-video-x11-xrandr was given.
  21719. if test ${enable_video_x11_xrandr+y}
  21720. then :
  21721. enableval=$enable_video_x11_xrandr;
  21722. else $as_nop
  21723. enable_video_x11_xrandr=yes
  21724. fi
  21725. if test x$enable_video_x11_xrandr = xyes; then
  21726. definitely_enable_video_x11_xrandr=no
  21727. have_xrandr_h_hdr=no
  21728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21729. /* end confdefs.h. */
  21730. #include <X11/Xlib.h>
  21731. #include <X11/extensions/Xrandr.h>
  21732. int
  21733. main (void)
  21734. {
  21735. XRRScreenResources *res = NULL;
  21736. ;
  21737. return 0;
  21738. }
  21739. _ACEOF
  21740. if ac_fn_c_try_compile "$LINENO"
  21741. then :
  21742. have_xrandr_h_hdr=yes
  21743. fi
  21744. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21745. if test x$have_xrandr_h_hdr = xyes; then
  21746. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21747. echo "-- dynamic libXrandr -> $xrandr_lib"
  21748. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21749. definitely_enable_video_x11_xrandr=yes
  21750. else
  21751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21752. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21753. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21754. then :
  21755. printf %s "(cached) " >&6
  21756. else $as_nop
  21757. ac_check_lib_save_LIBS=$LIBS
  21758. LIBS="-lXrandr $LIBS"
  21759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21760. /* end confdefs.h. */
  21761. /* Override any GCC internal prototype to avoid an error.
  21762. Use char because int might match the return type of a GCC
  21763. builtin and then its argument prototype would still apply. */
  21764. char XRRQueryExtension ();
  21765. int
  21766. main (void)
  21767. {
  21768. return XRRQueryExtension ();
  21769. ;
  21770. return 0;
  21771. }
  21772. _ACEOF
  21773. if ac_fn_c_try_link "$LINENO"
  21774. then :
  21775. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21776. else $as_nop
  21777. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21778. fi
  21779. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21780. conftest$ac_exeext conftest.$ac_ext
  21781. LIBS=$ac_check_lib_save_LIBS
  21782. fi
  21783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21784. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21785. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21786. then :
  21787. have_xrandr_lib=yes
  21788. fi
  21789. if test x$have_xrandr_lib = xyes ; then
  21790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21791. definitely_enable_video_x11_xrandr=yes
  21792. fi
  21793. fi
  21794. fi
  21795. fi
  21796. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21797. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21798. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21799. fi
  21800. # Check whether --enable-video-x11-scrnsaver was given.
  21801. if test ${enable_video_x11_scrnsaver+y}
  21802. then :
  21803. enableval=$enable_video_x11_scrnsaver;
  21804. else $as_nop
  21805. enable_video_x11_scrnsaver=yes
  21806. fi
  21807. if test x$enable_video_x11_scrnsaver = xyes; then
  21808. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21809. "
  21810. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21811. then :
  21812. have_scrnsaver_h_hdr=yes
  21813. else $as_nop
  21814. have_scrnsaver_h_hdr=no
  21815. fi
  21816. if test x$have_scrnsaver_h_hdr = xyes; then
  21817. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21818. echo "-- dynamic libXss -> $xss_lib"
  21819. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21820. definitely_enable_video_x11_scrnsaver=yes
  21821. else
  21822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21823. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21824. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21825. then :
  21826. printf %s "(cached) " >&6
  21827. else $as_nop
  21828. ac_check_lib_save_LIBS=$LIBS
  21829. LIBS="-lXss $LIBS"
  21830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21831. /* end confdefs.h. */
  21832. /* Override any GCC internal prototype to avoid an error.
  21833. Use char because int might match the return type of a GCC
  21834. builtin and then its argument prototype would still apply. */
  21835. char XScreenSaverSuspend ();
  21836. int
  21837. main (void)
  21838. {
  21839. return XScreenSaverSuspend ();
  21840. ;
  21841. return 0;
  21842. }
  21843. _ACEOF
  21844. if ac_fn_c_try_link "$LINENO"
  21845. then :
  21846. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21847. else $as_nop
  21848. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21849. fi
  21850. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21851. conftest$ac_exeext conftest.$ac_ext
  21852. LIBS=$ac_check_lib_save_LIBS
  21853. fi
  21854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21855. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21856. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21857. then :
  21858. have_xss_lib=yes
  21859. fi
  21860. if test x$have_xss_lib = xyes ; then
  21861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21862. definitely_enable_video_x11_scrnsaver=yes
  21863. fi
  21864. fi
  21865. fi
  21866. fi
  21867. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21868. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21869. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21870. fi
  21871. # Check whether --enable-video-x11-xshape was given.
  21872. if test ${enable_video_x11_xshape+y}
  21873. then :
  21874. enableval=$enable_video_x11_xshape;
  21875. else $as_nop
  21876. enable_video_x11_xshape=yes
  21877. fi
  21878. if test x$enable_video_x11_xshape = xyes; then
  21879. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21880. "
  21881. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21882. then :
  21883. have_shape_h_hdr=yes
  21884. else $as_nop
  21885. have_shape_h_hdr=no
  21886. fi
  21887. if test x$have_shape_h_hdr = xyes; then
  21888. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21889. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21890. fi
  21891. fi
  21892. fi
  21893. fi
  21894. if test x$have_x != xyes; then
  21895. # Prevent Mesa from including X11 headers
  21896. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21897. fi
  21898. }
  21899. CheckVivanteVideo()
  21900. {
  21901. # Check whether --enable-video-vivante was given.
  21902. if test ${enable_video_vivante+y}
  21903. then :
  21904. enableval=$enable_video_vivante;
  21905. else $as_nop
  21906. enable_video_vivante=yes
  21907. fi
  21908. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21910. printf %s "checking for Vivante VDK API... " >&6; }
  21911. have_vivante_vdk=no
  21912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21913. /* end confdefs.h. */
  21914. #define LINUX
  21915. #define EGL_API_FB
  21916. #include <gc_vdk.h>
  21917. int
  21918. main (void)
  21919. {
  21920. ;
  21921. return 0;
  21922. }
  21923. _ACEOF
  21924. if ac_fn_c_try_compile "$LINENO"
  21925. then :
  21926. have_vivante_vdk=yes
  21927. fi
  21928. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21930. printf "%s\n" "$have_vivante_vdk" >&6; }
  21931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21932. printf %s "checking for Vivante FB API... " >&6; }
  21933. have_vivante_egl=no
  21934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21935. /* end confdefs.h. */
  21936. #define LINUX
  21937. #define EGL_API_FB
  21938. #include <EGL/eglvivante.h>
  21939. int
  21940. main (void)
  21941. {
  21942. ;
  21943. return 0;
  21944. }
  21945. _ACEOF
  21946. if ac_fn_c_try_compile "$LINENO"
  21947. then :
  21948. have_vivante_egl=yes
  21949. fi
  21950. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21952. printf "%s\n" "$have_vivante_egl" >&6; }
  21953. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21954. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21955. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21956. if test x$have_vivante_vdk = xyes; then
  21957. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21959. fi
  21960. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21961. SUMMARY_video="${SUMMARY_video} vivante"
  21962. have_video=yes
  21963. fi
  21964. fi
  21965. }
  21966. CheckHaikuVideo()
  21967. {
  21968. if test x$enable_video = xyes; then
  21969. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21970. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21971. have_video=yes
  21972. SUMMARY_video="${SUMMARY_video} haiku"
  21973. fi
  21974. }
  21975. CheckCOCOA()
  21976. {
  21977. # Check whether --enable-video-cocoa was given.
  21978. if test ${enable_video_cocoa+y}
  21979. then :
  21980. enableval=$enable_video_cocoa;
  21981. else $as_nop
  21982. enable_video_cocoa=yes
  21983. fi
  21984. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21985. save_CFLAGS="$CFLAGS"
  21986. CFLAGS="$CFLAGS -x objective-c"
  21987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21988. printf %s "checking for Cocoa framework... " >&6; }
  21989. have_cocoa=no
  21990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21991. /* end confdefs.h. */
  21992. #import <Cocoa/Cocoa.h>
  21993. int
  21994. main (void)
  21995. {
  21996. ;
  21997. return 0;
  21998. }
  21999. _ACEOF
  22000. if ac_fn_c_try_compile "$LINENO"
  22001. then :
  22002. have_cocoa=yes
  22003. fi
  22004. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22006. printf "%s\n" "$have_cocoa" >&6; }
  22007. CFLAGS="$save_CFLAGS"
  22008. if test x$have_cocoa = xyes; then
  22009. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22010. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22011. SUMMARY_video="${SUMMARY_video} cocoa"
  22012. have_video=yes
  22013. fi
  22014. fi
  22015. }
  22016. CheckMETAL()
  22017. {
  22018. # Check whether --enable-video-metal was given.
  22019. if test ${enable_video_metal+y}
  22020. then :
  22021. enableval=$enable_video_metal;
  22022. else $as_nop
  22023. enable_video_metal=yes
  22024. fi
  22025. # Check whether --enable-render-metal was given.
  22026. if test ${enable_render_metal+y}
  22027. then :
  22028. enableval=$enable_render_metal;
  22029. else $as_nop
  22030. enable_render_metal=yes
  22031. fi
  22032. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22033. save_CFLAGS="$CFLAGS"
  22034. CFLAGS="$CFLAGS -x objective-c"
  22035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22036. printf %s "checking for Metal framework... " >&6; }
  22037. have_metal=no
  22038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22039. /* end confdefs.h. */
  22040. #import <Cocoa/Cocoa.h>
  22041. #import <Metal/Metal.h>
  22042. #import <QuartzCore/CAMetalLayer.h>
  22043. #if TARGET_CPU_X86
  22044. #error Metal doesn't work on this configuration
  22045. #endif
  22046. int
  22047. main (void)
  22048. {
  22049. ;
  22050. return 0;
  22051. }
  22052. _ACEOF
  22053. if ac_fn_c_try_compile "$LINENO"
  22054. then :
  22055. have_metal=yes
  22056. fi
  22057. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22058. CFLAGS="$save_CFLAGS"
  22059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22060. printf "%s\n" "$have_metal" >&6; }
  22061. if test x$have_metal = xyes; then
  22062. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22063. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22064. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22065. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22066. fi
  22067. SUMMARY_video="${SUMMARY_video} metal"
  22068. else
  22069. enable_video_metal=no
  22070. enable_render_metal=no
  22071. fi
  22072. fi
  22073. }
  22074. CheckDirectFB()
  22075. {
  22076. # Check whether --enable-video-directfb was given.
  22077. if test ${enable_video_directfb+y}
  22078. then :
  22079. enableval=$enable_video_directfb;
  22080. else $as_nop
  22081. enable_video_directfb=no
  22082. fi
  22083. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22084. pkg_failed=no
  22085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22086. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22087. if test -n "$DIRECTFB_CFLAGS"; then
  22088. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22089. elif test -n "$PKG_CONFIG"; then
  22090. if test -n "$PKG_CONFIG" && \
  22091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22092. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22093. ac_status=$?
  22094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22095. test $ac_status = 0; }; then
  22096. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22097. test "x$?" != "x0" && pkg_failed=yes
  22098. else
  22099. pkg_failed=yes
  22100. fi
  22101. else
  22102. pkg_failed=untried
  22103. fi
  22104. if test -n "$DIRECTFB_LIBS"; then
  22105. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22106. elif test -n "$PKG_CONFIG"; then
  22107. if test -n "$PKG_CONFIG" && \
  22108. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22109. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22110. ac_status=$?
  22111. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22112. test $ac_status = 0; }; then
  22113. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22114. test "x$?" != "x0" && pkg_failed=yes
  22115. else
  22116. pkg_failed=yes
  22117. fi
  22118. else
  22119. pkg_failed=untried
  22120. fi
  22121. if test $pkg_failed = yes; then
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22123. printf "%s\n" "no" >&6; }
  22124. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22125. _pkg_short_errors_supported=yes
  22126. else
  22127. _pkg_short_errors_supported=no
  22128. fi
  22129. if test $_pkg_short_errors_supported = yes; then
  22130. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22131. else
  22132. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22133. fi
  22134. # Put the nasty error message in config.log where it belongs
  22135. echo "$DIRECTFB_PKG_ERRORS" >&5
  22136. video_directfb=no
  22137. elif test $pkg_failed = untried; then
  22138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22139. printf "%s\n" "no" >&6; }
  22140. video_directfb=no
  22141. else
  22142. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22143. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22145. printf "%s\n" "yes" >&6; }
  22146. video_directfb=yes
  22147. fi
  22148. if test x$video_directfb = xyes; then
  22149. # SuSE 11.1 installs directfb-config without directfb-devel
  22150. save_CPPFLAGS="$CPPFLAGS"
  22151. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22152. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22153. if test "x$ac_cv_header_directfb_h" = xyes
  22154. then :
  22155. have_directfb_hdr=yes
  22156. else $as_nop
  22157. have_directfb_hdr=no
  22158. fi
  22159. CPPFLAGS="$save_CPPFLAGS"
  22160. video_directfb=$have_directfb_hdr
  22161. fi
  22162. if test x$video_directfb = xyes; then
  22163. # Check whether --enable-directfb-shared was given.
  22164. if test ${enable_directfb_shared+y}
  22165. then :
  22166. enableval=$enable_directfb_shared;
  22167. else $as_nop
  22168. enable_directfb_shared=yes
  22169. fi
  22170. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22171. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22172. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22173. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22174. directfb_shared=no
  22175. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22176. if test x$have_loadso != xyes && \
  22177. test x$enable_directfb_shared = xyes; then
  22178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22179. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22180. fi
  22181. if test x$have_loadso = xyes && \
  22182. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22183. directfb_shared=yes
  22184. echo "-- dynamic libdirectfb -> $directfb_lib"
  22185. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22186. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22187. else
  22188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22189. SUMMARY_video="${SUMMARY_video} directfb"
  22190. fi
  22191. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22192. have_video=yes
  22193. fi
  22194. fi
  22195. }
  22196. CheckKMSDRM()
  22197. {
  22198. # Check whether --enable-video-kmsdrm was given.
  22199. if test ${enable_video_kmsdrm+y}
  22200. then :
  22201. enableval=$enable_video_kmsdrm;
  22202. else $as_nop
  22203. enable_video_kmsdrm=yes
  22204. fi
  22205. if test x$enable_video = xyes && \
  22206. test x$enable_video_kmsdrm = xyes && \
  22207. test x$video_opengl_egl = xyes; then
  22208. video_kmsdrm=no
  22209. pkg_failed=no
  22210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22211. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22212. if test -n "$LIBDRM_CFLAGS"; then
  22213. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22214. elif test -n "$PKG_CONFIG"; then
  22215. if test -n "$PKG_CONFIG" && \
  22216. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22217. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22218. ac_status=$?
  22219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22220. test $ac_status = 0; }; then
  22221. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22222. test "x$?" != "x0" && pkg_failed=yes
  22223. else
  22224. pkg_failed=yes
  22225. fi
  22226. else
  22227. pkg_failed=untried
  22228. fi
  22229. if test -n "$LIBDRM_LIBS"; then
  22230. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22231. elif test -n "$PKG_CONFIG"; then
  22232. if test -n "$PKG_CONFIG" && \
  22233. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22234. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22235. ac_status=$?
  22236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22237. test $ac_status = 0; }; then
  22238. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22239. test "x$?" != "x0" && pkg_failed=yes
  22240. else
  22241. pkg_failed=yes
  22242. fi
  22243. else
  22244. pkg_failed=untried
  22245. fi
  22246. if test $pkg_failed = yes; then
  22247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22248. printf "%s\n" "no" >&6; }
  22249. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22250. _pkg_short_errors_supported=yes
  22251. else
  22252. _pkg_short_errors_supported=no
  22253. fi
  22254. if test $_pkg_short_errors_supported = yes; then
  22255. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22256. else
  22257. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22258. fi
  22259. # Put the nasty error message in config.log where it belongs
  22260. echo "$LIBDRM_PKG_ERRORS" >&5
  22261. libdrm_avail=no
  22262. elif test $pkg_failed = untried; then
  22263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22264. printf "%s\n" "no" >&6; }
  22265. libdrm_avail=no
  22266. else
  22267. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22268. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22270. printf "%s\n" "yes" >&6; }
  22271. libdrm_avail=yes
  22272. fi
  22273. pkg_failed=no
  22274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22275. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22276. if test -n "$LIBGBM_CFLAGS"; then
  22277. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22278. elif test -n "$PKG_CONFIG"; then
  22279. if test -n "$PKG_CONFIG" && \
  22280. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22281. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22282. ac_status=$?
  22283. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22284. test $ac_status = 0; }; then
  22285. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22286. test "x$?" != "x0" && pkg_failed=yes
  22287. else
  22288. pkg_failed=yes
  22289. fi
  22290. else
  22291. pkg_failed=untried
  22292. fi
  22293. if test -n "$LIBGBM_LIBS"; then
  22294. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22295. elif test -n "$PKG_CONFIG"; then
  22296. if test -n "$PKG_CONFIG" && \
  22297. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22298. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22299. ac_status=$?
  22300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22301. test $ac_status = 0; }; then
  22302. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22303. test "x$?" != "x0" && pkg_failed=yes
  22304. else
  22305. pkg_failed=yes
  22306. fi
  22307. else
  22308. pkg_failed=untried
  22309. fi
  22310. if test $pkg_failed = yes; then
  22311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22312. printf "%s\n" "no" >&6; }
  22313. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22314. _pkg_short_errors_supported=yes
  22315. else
  22316. _pkg_short_errors_supported=no
  22317. fi
  22318. if test $_pkg_short_errors_supported = yes; then
  22319. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22320. else
  22321. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22322. fi
  22323. # Put the nasty error message in config.log where it belongs
  22324. echo "$LIBGBM_PKG_ERRORS" >&5
  22325. libgbm_avail=no
  22326. elif test $pkg_failed = untried; then
  22327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22328. printf "%s\n" "no" >&6; }
  22329. libgbm_avail=no
  22330. else
  22331. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22332. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22334. printf "%s\n" "yes" >&6; }
  22335. libgbm_avail=yes
  22336. fi
  22337. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22338. video_kmsdrm=yes
  22339. fi
  22340. if test x$video_kmsdrm = xyes; then
  22341. # Check whether --enable-kmsdrm-shared was given.
  22342. if test ${enable_kmsdrm_shared+y}
  22343. then :
  22344. enableval=$enable_kmsdrm_shared;
  22345. else $as_nop
  22346. enable_kmsdrm_shared=yes
  22347. fi
  22348. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22349. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22350. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22352. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22353. kmsdrm_shared=no
  22354. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22355. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22356. if test x$have_loadso != xyes && \
  22357. test x$enable_kmsdrm_shared = xyes; then
  22358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22359. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22360. fi
  22361. if test x$have_loadso = xyes && \
  22362. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22363. kmsdrm_shared=yes
  22364. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22365. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22366. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22367. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22368. else
  22369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22370. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22371. fi
  22372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22373. printf "%s\n" "$kmsdrm_shared" >&6; }
  22374. if test x$kmsdrm_shared = xyes; then
  22375. echo "-- dynamic libdrm -> $drm_lib"
  22376. echo "-- dynamic libgbm -> $gbm_lib"
  22377. fi
  22378. have_video=yes
  22379. fi
  22380. fi
  22381. }
  22382. CheckDummyVideo()
  22383. {
  22384. # Check whether --enable-video-dummy was given.
  22385. if test ${enable_video_dummy+y}
  22386. then :
  22387. enableval=$enable_video_dummy;
  22388. else $as_nop
  22389. enable_video_dummy=yes
  22390. fi
  22391. if test x$enable_video_dummy = xyes; then
  22392. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22393. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22394. have_video=yes
  22395. SUMMARY_video="${SUMMARY_video} dummy"
  22396. fi
  22397. }
  22398. CheckOffscreenVideo()
  22399. {
  22400. # Check whether --enable-video-offscreen was given.
  22401. if test ${enable_video_offscreen+y}
  22402. then :
  22403. enableval=$enable_video_offscreen;
  22404. else $as_nop
  22405. enable_video_offscreen=yes
  22406. fi
  22407. if test x$enable_video_offscreen = xyes; then
  22408. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22409. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22410. have_video=yes
  22411. SUMMARY_video="${SUMMARY_video} offscreen"
  22412. fi
  22413. }
  22414. CheckQNXVideo()
  22415. {
  22416. if test x$enable_video = xyes; then
  22417. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22418. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22419. have_video=yes
  22420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22421. SUMMARY_video="${SUMMARY_video} qnx"
  22422. fi
  22423. }
  22424. CheckQNXAudio()
  22425. {
  22426. if test x$enable_audio = xyes; then
  22427. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22428. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22429. have_audio=yes
  22430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22431. SUMMARY_audio="${SUMMARY_audio} qsa"
  22432. fi
  22433. }
  22434. # Check whether --enable-video-opengl was given.
  22435. if test ${enable_video_opengl+y}
  22436. then :
  22437. enableval=$enable_video_opengl;
  22438. else $as_nop
  22439. enable_video_opengl=yes
  22440. fi
  22441. CheckGLX()
  22442. {
  22443. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22445. printf %s "checking for GLX support... " >&6; }
  22446. video_opengl_glx=no
  22447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22448. /* end confdefs.h. */
  22449. #include <GL/glx.h>
  22450. int
  22451. main (void)
  22452. {
  22453. ;
  22454. return 0;
  22455. }
  22456. _ACEOF
  22457. if ac_fn_c_try_compile "$LINENO"
  22458. then :
  22459. video_opengl_glx=yes
  22460. fi
  22461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22463. printf "%s\n" "$video_opengl_glx" >&6; }
  22464. if test x$video_opengl_glx = xyes; then
  22465. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22466. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22467. fi
  22468. fi
  22469. }
  22470. # Check whether --enable-video-opengles was given.
  22471. if test ${enable_video_opengles+y}
  22472. then :
  22473. enableval=$enable_video_opengles;
  22474. else $as_nop
  22475. enable_video_opengles=yes
  22476. fi
  22477. # Check whether --enable-video-opengles1 was given.
  22478. if test ${enable_video_opengles1+y}
  22479. then :
  22480. enableval=$enable_video_opengles1;
  22481. else $as_nop
  22482. enable_video_opengles1=yes
  22483. fi
  22484. # Check whether --enable-video-opengles2 was given.
  22485. if test ${enable_video_opengles2+y}
  22486. then :
  22487. enableval=$enable_video_opengles2;
  22488. else $as_nop
  22489. enable_video_opengles2=yes
  22490. fi
  22491. CheckEGL()
  22492. {
  22493. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22495. printf %s "checking for EGL support... " >&6; }
  22496. video_opengl_egl=no
  22497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22498. /* end confdefs.h. */
  22499. #define LINUX
  22500. #define EGL_API_FB
  22501. #define MESA_EGL_NO_X11_HEADERS
  22502. #define EGL_NO_X11
  22503. #include <EGL/egl.h>
  22504. #include <EGL/eglext.h>
  22505. int
  22506. main (void)
  22507. {
  22508. ;
  22509. return 0;
  22510. }
  22511. _ACEOF
  22512. if ac_fn_c_try_compile "$LINENO"
  22513. then :
  22514. video_opengl_egl=yes
  22515. fi
  22516. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22518. printf "%s\n" "$video_opengl_egl" >&6; }
  22519. if test x$video_opengl_egl = xyes; then
  22520. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22521. fi
  22522. fi
  22523. }
  22524. CheckOpenGL()
  22525. {
  22526. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22528. printf %s "checking for OpenGL headers... " >&6; }
  22529. video_opengl=no
  22530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22531. /* end confdefs.h. */
  22532. #include <GL/gl.h>
  22533. #include <GL/glext.h>
  22534. int
  22535. main (void)
  22536. {
  22537. ;
  22538. return 0;
  22539. }
  22540. _ACEOF
  22541. if ac_fn_c_try_compile "$LINENO"
  22542. then :
  22543. video_opengl=yes
  22544. fi
  22545. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22547. printf "%s\n" "$video_opengl" >&6; }
  22548. if test x$video_opengl = xyes; then
  22549. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22550. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22551. SUMMARY_video="${SUMMARY_video} opengl"
  22552. fi
  22553. fi
  22554. }
  22555. CheckOpenGLES()
  22556. {
  22557. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22558. if test x$enable_video_opengles1 = xyes; then
  22559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22560. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22561. video_opengles_v1=no
  22562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22563. /* end confdefs.h. */
  22564. #include <GLES/gl.h>
  22565. #include <GLES/glext.h>
  22566. int
  22567. main (void)
  22568. {
  22569. ;
  22570. return 0;
  22571. }
  22572. _ACEOF
  22573. if ac_fn_c_try_compile "$LINENO"
  22574. then :
  22575. video_opengles_v1=yes
  22576. fi
  22577. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22579. printf "%s\n" "$video_opengles_v1" >&6; }
  22580. if test x$video_opengles_v1 = xyes; then
  22581. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22582. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22583. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22584. fi
  22585. fi
  22586. if test x$enable_video_opengles2 = xyes; then
  22587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22588. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22589. video_opengles_v2=no
  22590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22591. /* end confdefs.h. */
  22592. #include <GLES2/gl2.h>
  22593. #include <GLES2/gl2ext.h>
  22594. int
  22595. main (void)
  22596. {
  22597. ;
  22598. return 0;
  22599. }
  22600. _ACEOF
  22601. if ac_fn_c_try_compile "$LINENO"
  22602. then :
  22603. video_opengles_v2=yes
  22604. fi
  22605. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22607. printf "%s\n" "$video_opengles_v2" >&6; }
  22608. if test x$video_opengles_v2 = xyes; then
  22609. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22610. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22611. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22612. fi
  22613. fi
  22614. fi
  22615. }
  22616. CheckWINDOWSGL()
  22617. {
  22618. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22619. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22620. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22621. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22622. SUMMARY_video="${SUMMARY_video} opengl"
  22623. fi
  22624. }
  22625. CheckWINDOWSGLES()
  22626. {
  22627. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22629. printf %s "checking for EGL support... " >&6; }
  22630. video_opengl_egl=no
  22631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22632. /* end confdefs.h. */
  22633. #include <EGL/egl.h>
  22634. int
  22635. main (void)
  22636. {
  22637. ;
  22638. return 0;
  22639. }
  22640. _ACEOF
  22641. if ac_fn_c_try_compile "$LINENO"
  22642. then :
  22643. video_opengl_egl=yes
  22644. fi
  22645. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22647. printf "%s\n" "$video_opengl_egl" >&6; }
  22648. if test x$video_opengl_egl = xyes; then
  22649. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22650. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22651. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22652. fi
  22653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22654. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22655. video_opengles_v2=no
  22656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22657. /* end confdefs.h. */
  22658. #include <GLES2/gl2.h>
  22659. #include <GLES2/gl2ext.h>
  22660. int
  22661. main (void)
  22662. {
  22663. ;
  22664. return 0;
  22665. }
  22666. _ACEOF
  22667. if ac_fn_c_try_compile "$LINENO"
  22668. then :
  22669. video_opengles_v2=yes
  22670. fi
  22671. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22673. printf "%s\n" "$video_opengles_v2" >&6; }
  22674. if test x$video_opengles_v2 = xyes; then
  22675. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22676. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22677. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22678. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22679. fi
  22680. fi
  22681. }
  22682. CheckHaikuGL()
  22683. {
  22684. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22685. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22686. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22687. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22689. SUMMARY_video="${SUMMARY_video} opengl"
  22690. fi
  22691. }
  22692. CheckMacGL()
  22693. {
  22694. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22695. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22696. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22697. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22698. SUMMARY_video="${SUMMARY_video} opengl"
  22699. fi
  22700. }
  22701. CheckMacGLES()
  22702. {
  22703. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22704. video_opengl_egl=yes
  22705. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22706. video_opengles_v2=yes
  22707. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22708. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22709. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22710. fi
  22711. }
  22712. CheckEmscriptenGLES()
  22713. {
  22714. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22716. printf %s "checking for EGL support... " >&6; }
  22717. video_opengl_egl=no
  22718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22719. /* end confdefs.h. */
  22720. #include <EGL/egl.h>
  22721. int
  22722. main (void)
  22723. {
  22724. ;
  22725. return 0;
  22726. }
  22727. _ACEOF
  22728. if ac_fn_c_try_compile "$LINENO"
  22729. then :
  22730. video_opengl_egl=yes
  22731. fi
  22732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22734. printf "%s\n" "$video_opengl_egl" >&6; }
  22735. if test x$video_opengl_egl = xyes; then
  22736. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22737. fi
  22738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22739. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22740. video_opengles_v2=no
  22741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22742. /* end confdefs.h. */
  22743. #include <GLES2/gl2.h>
  22744. #include <GLES2/gl2ext.h>
  22745. int
  22746. main (void)
  22747. {
  22748. ;
  22749. return 0;
  22750. }
  22751. _ACEOF
  22752. if ac_fn_c_try_compile "$LINENO"
  22753. then :
  22754. video_opengles_v2=yes
  22755. fi
  22756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22758. printf "%s\n" "$video_opengles_v2" >&6; }
  22759. if test x$video_opengles_v2 = xyes; then
  22760. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22761. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22762. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22763. fi
  22764. fi
  22765. }
  22766. # Check whether --enable-video-vulkan was given.
  22767. if test ${enable_video_vulkan+y}
  22768. then :
  22769. enableval=$enable_video_vulkan;
  22770. else $as_nop
  22771. enable_video_vulkan=yes
  22772. fi
  22773. CheckVulkan()
  22774. {
  22775. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22776. case "$host" in
  22777. *-*-android*)
  22778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22779. /* end confdefs.h. */
  22780. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22781. #error Vulkan doesn't work on this configuration
  22782. #endif
  22783. int
  22784. main (void)
  22785. {
  22786. ;
  22787. return 0;
  22788. }
  22789. _ACEOF
  22790. if ac_fn_c_try_compile "$LINENO"
  22791. then :
  22792. else $as_nop
  22793. enable_video_vulkan=no
  22794. fi
  22795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22796. ;;
  22797. *-*-darwin*)
  22798. save_CFLAGS="$CFLAGS"
  22799. CFLAGS="$CFLAGS -x objective-c"
  22800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22801. /* end confdefs.h. */
  22802. #include <Cocoa/Cocoa.h>
  22803. #include <Metal/Metal.h>
  22804. #include <QuartzCore/CAMetalLayer.h>
  22805. #if TARGET_CPU_X86
  22806. #error Vulkan doesn't work on this configuration
  22807. #endif
  22808. int
  22809. main (void)
  22810. {
  22811. ;
  22812. return 0;
  22813. }
  22814. _ACEOF
  22815. if ac_fn_c_try_compile "$LINENO"
  22816. then :
  22817. else $as_nop
  22818. enable_video_vulkan=no
  22819. fi
  22820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22821. CFLAGS="$save_CFLAGS"
  22822. ;;
  22823. *)
  22824. ;;
  22825. esac
  22826. if test x$enable_video_vulkan = xno; then
  22827. # For reasons I am totally unable to see, I get an undefined macro error if
  22828. # I put this in the AC_TRY_COMPILE.
  22829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22830. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22831. fi
  22832. fi
  22833. if test x$have_loadso != xyes; then
  22834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22835. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22836. enable_video_vulkan=no
  22837. fi
  22838. if test x$enable_video_vulkan = xyes; then
  22839. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22840. SUMMARY_video="${SUMMARY_video} vulkan"
  22841. fi
  22842. }
  22843. CheckInputEvents()
  22844. {
  22845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22846. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22847. use_input_events=no
  22848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22849. /* end confdefs.h. */
  22850. #include <linux/input.h>
  22851. int
  22852. main (void)
  22853. {
  22854. #ifndef EVIOCGNAME
  22855. #error EVIOCGNAME() ioctl not available
  22856. #endif
  22857. ;
  22858. return 0;
  22859. }
  22860. _ACEOF
  22861. if ac_fn_c_try_compile "$LINENO"
  22862. then :
  22863. use_input_events=yes
  22864. fi
  22865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22867. printf "%s\n" "$use_input_events" >&6; }
  22868. if test x$use_input_events = xyes; then
  22869. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22870. SUMMARY_input="${SUMMARY_input} linuxev"
  22871. fi
  22872. }
  22873. CheckInputKD()
  22874. {
  22875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22876. printf %s "checking for Linux kd.h... " >&6; }
  22877. use_input_kd=no
  22878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22879. /* end confdefs.h. */
  22880. #include <linux/kd.h>
  22881. #include <linux/keyboard.h>
  22882. #include <sys/ioctl.h>
  22883. int
  22884. main (void)
  22885. {
  22886. struct kbentry kbe;
  22887. kbe.kb_table = KG_CTRL;
  22888. ioctl(0, KDGKBENT, &kbe);
  22889. ;
  22890. return 0;
  22891. }
  22892. _ACEOF
  22893. if ac_fn_c_try_compile "$LINENO"
  22894. then :
  22895. use_input_kd=yes
  22896. fi
  22897. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22899. printf "%s\n" "$use_input_kd" >&6; }
  22900. if test x$use_input_kd = xyes; then
  22901. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22902. SUMMARY_input="${SUMMARY_input} linuxkd"
  22903. fi
  22904. }
  22905. CheckInputKBIO()
  22906. {
  22907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22908. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22909. use_input_kbio=no
  22910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22911. /* end confdefs.h. */
  22912. #include <sys/kbio.h>
  22913. #include <sys/ioctl.h>
  22914. int
  22915. main (void)
  22916. {
  22917. accentmap_t accTable;
  22918. ioctl(0, KDENABIO, 1);
  22919. ;
  22920. return 0;
  22921. }
  22922. _ACEOF
  22923. if ac_fn_c_try_compile "$LINENO"
  22924. then :
  22925. use_input_kbio=yes
  22926. fi
  22927. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22929. printf "%s\n" "$use_input_kbio" >&6; }
  22930. if test x$use_input_kbio = xyes; then
  22931. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22932. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22933. fi
  22934. }
  22935. CheckInputWSCONS()
  22936. {
  22937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22938. printf %s "checking for OpenBSD wscons... " >&6; }
  22939. use_input_wscons=no
  22940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22941. /* end confdefs.h. */
  22942. #include <sys/time.h>
  22943. #include <dev/wscons/wsconsio.h>
  22944. #include <dev/wscons/wsksymdef.h>
  22945. #include <dev/wscons/wsksymvar.h>
  22946. #include <sys/ioctl.h>
  22947. int
  22948. main (void)
  22949. {
  22950. struct wskbd_map_data data;
  22951. ioctl(0, WSKBDIO_GETMAP, &data);
  22952. ;
  22953. return 0;
  22954. }
  22955. _ACEOF
  22956. if ac_fn_c_try_compile "$LINENO"
  22957. then :
  22958. use_input_wscons=yes
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22962. printf "%s\n" "$use_input_wscons" >&6; }
  22963. if test x$use_input_wscons = xyes; then
  22964. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22965. SUMMARY_input="${SUMMARY_input} wscons"
  22966. fi
  22967. }
  22968. CheckLibUDev()
  22969. {
  22970. # Check whether --enable-libudev was given.
  22971. if test ${enable_libudev+y}
  22972. then :
  22973. enableval=$enable_libudev;
  22974. else $as_nop
  22975. enable_libudev=yes
  22976. fi
  22977. if test x$enable_libudev = xyes; then
  22978. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22979. if test "x$ac_cv_header_libudev_h" = xyes
  22980. then :
  22981. have_libudev_h_hdr=yes
  22982. else $as_nop
  22983. have_libudev_h_hdr=no
  22984. fi
  22985. if test x$have_libudev_h_hdr = xyes; then
  22986. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22987. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22988. if test x$udev_lib != x; then
  22989. echo "-- dynamic udev -> $udev_lib"
  22990. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22991. fi
  22992. fi
  22993. fi
  22994. }
  22995. CheckDBus()
  22996. {
  22997. # Check whether --enable-dbus was given.
  22998. if test ${enable_dbus+y}
  22999. then :
  23000. enableval=$enable_dbus;
  23001. else $as_nop
  23002. enable_dbus=yes
  23003. fi
  23004. if test x$enable_dbus = xyes; then
  23005. pkg_failed=no
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23007. printf %s "checking for dbus-1... " >&6; }
  23008. if test -n "$DBUS_CFLAGS"; then
  23009. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23010. elif test -n "$PKG_CONFIG"; then
  23011. if test -n "$PKG_CONFIG" && \
  23012. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23013. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23014. ac_status=$?
  23015. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23016. test $ac_status = 0; }; then
  23017. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23018. test "x$?" != "x0" && pkg_failed=yes
  23019. else
  23020. pkg_failed=yes
  23021. fi
  23022. else
  23023. pkg_failed=untried
  23024. fi
  23025. if test -n "$DBUS_LIBS"; then
  23026. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23027. elif test -n "$PKG_CONFIG"; then
  23028. if test -n "$PKG_CONFIG" && \
  23029. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23030. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23031. ac_status=$?
  23032. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23033. test $ac_status = 0; }; then
  23034. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23035. test "x$?" != "x0" && pkg_failed=yes
  23036. else
  23037. pkg_failed=yes
  23038. fi
  23039. else
  23040. pkg_failed=untried
  23041. fi
  23042. if test $pkg_failed = yes; then
  23043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23044. printf "%s\n" "no" >&6; }
  23045. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23046. _pkg_short_errors_supported=yes
  23047. else
  23048. _pkg_short_errors_supported=no
  23049. fi
  23050. if test $_pkg_short_errors_supported = yes; then
  23051. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23052. else
  23053. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23054. fi
  23055. # Put the nasty error message in config.log where it belongs
  23056. echo "$DBUS_PKG_ERRORS" >&5
  23057. have_dbus=no
  23058. elif test $pkg_failed = untried; then
  23059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23060. printf "%s\n" "no" >&6; }
  23061. have_dbus=no
  23062. else
  23063. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23064. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23066. printf "%s\n" "yes" >&6; }
  23067. have_dbus=yes
  23068. fi
  23069. save_CPPFLAGS="$CPPFLAGS"
  23070. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23071. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23072. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23073. then :
  23074. have_dbus_dbus_h_hdr=yes
  23075. else $as_nop
  23076. have_dbus_dbus_h_hdr=no
  23077. fi
  23078. CPPFLAGS="$save_CPPFLAGS"
  23079. if test x$have_dbus_dbus_h_hdr = xyes; then
  23080. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23081. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23082. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23083. fi
  23084. fi
  23085. }
  23086. CheckIME()
  23087. {
  23088. # Check whether --enable-ime was given.
  23089. if test ${enable_ime+y}
  23090. then :
  23091. enableval=$enable_ime;
  23092. else $as_nop
  23093. enable_ime=yes
  23094. fi
  23095. if test x$enable_ime = xyes; then
  23096. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23097. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23098. fi
  23099. }
  23100. CheckInotify()
  23101. {
  23102. save_LIBS="$LIBS"
  23103. case "$host" in
  23104. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23105. ;;
  23106. esac
  23107. for ac_header in sys/inotify.h
  23108. do :
  23109. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23110. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23111. then :
  23112. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23113. have_inotify_inotify_h_hdr=yes
  23114. fi
  23115. done
  23116. for ac_func in inotify_init
  23117. do :
  23118. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23119. if test "x$ac_cv_func_inotify_init" = xyes
  23120. then :
  23121. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23122. have_inotify=yes
  23123. fi
  23124. done
  23125. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23126. if test "x$ac_cv_func_inotify_init1" = xyes
  23127. then :
  23128. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23129. fi
  23130. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23131. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23132. case "$host" in
  23133. *-*-freebsd*|*-*-dragonfly*)
  23134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23135. ;;
  23136. esac
  23137. fi
  23138. LIBS="$save_LIBS"
  23139. }
  23140. CheckIBus()
  23141. {
  23142. # Check whether --enable-ibus was given.
  23143. if test ${enable_ibus+y}
  23144. then :
  23145. enableval=$enable_ibus;
  23146. else $as_nop
  23147. enable_ibus=yes
  23148. fi
  23149. if test x$enable_ibus = xyes; then
  23150. pkg_failed=no
  23151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23152. printf %s "checking for ibus-1.0... " >&6; }
  23153. if test -n "$IBUS_CFLAGS"; then
  23154. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23155. elif test -n "$PKG_CONFIG"; then
  23156. if test -n "$PKG_CONFIG" && \
  23157. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23158. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23159. ac_status=$?
  23160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23161. test $ac_status = 0; }; then
  23162. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23163. test "x$?" != "x0" && pkg_failed=yes
  23164. else
  23165. pkg_failed=yes
  23166. fi
  23167. else
  23168. pkg_failed=untried
  23169. fi
  23170. if test -n "$IBUS_LIBS"; then
  23171. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23172. elif test -n "$PKG_CONFIG"; then
  23173. if test -n "$PKG_CONFIG" && \
  23174. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23175. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23176. ac_status=$?
  23177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23178. test $ac_status = 0; }; then
  23179. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23180. test "x$?" != "x0" && pkg_failed=yes
  23181. else
  23182. pkg_failed=yes
  23183. fi
  23184. else
  23185. pkg_failed=untried
  23186. fi
  23187. if test $pkg_failed = yes; then
  23188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23189. printf "%s\n" "no" >&6; }
  23190. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23191. _pkg_short_errors_supported=yes
  23192. else
  23193. _pkg_short_errors_supported=no
  23194. fi
  23195. if test $_pkg_short_errors_supported = yes; then
  23196. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23197. else
  23198. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23199. fi
  23200. # Put the nasty error message in config.log where it belongs
  23201. echo "$IBUS_PKG_ERRORS" >&5
  23202. have_ibus=no
  23203. elif test $pkg_failed = untried; then
  23204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23205. printf "%s\n" "no" >&6; }
  23206. have_ibus=no
  23207. else
  23208. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23209. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23211. printf "%s\n" "yes" >&6; }
  23212. have_ibus=yes
  23213. fi
  23214. save_CPPFLAGS="$CPPFLAGS"
  23215. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23216. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23217. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23218. then :
  23219. have_ibus_ibus_h_hdr=yes
  23220. else $as_nop
  23221. have_ibus_ibus_h_hdr=no
  23222. fi
  23223. CPPFLAGS="$save_CPPFLAGS"
  23224. if test x$have_ibus_ibus_h_hdr = xyes; then
  23225. if test x$enable_ime != xyes; then
  23226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23227. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23228. have_ibus_ibus_h_hdr=no
  23229. elif test x$enable_dbus != xyes; then
  23230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23231. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23232. have_ibus_ibus_h_hdr=no
  23233. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23235. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23236. have_ibus_ibus_h_hdr=no
  23237. else
  23238. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23239. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23240. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23241. fi
  23242. fi
  23243. fi
  23244. }
  23245. CheckFcitx()
  23246. {
  23247. # Check whether --enable-fcitx was given.
  23248. if test ${enable_fcitx+y}
  23249. then :
  23250. enableval=$enable_fcitx;
  23251. else $as_nop
  23252. enable_fcitx=yes
  23253. fi
  23254. if test x$enable_fcitx = xyes; then
  23255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23256. printf %s "checking for fcitx support... " >&6; }
  23257. have_fcitx=no
  23258. if test x$enable_ime != xyes; then
  23259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23260. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23261. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23263. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23264. else
  23265. have_fcitx=yes
  23266. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23267. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23268. fi
  23269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23270. printf "%s\n" "$have_fcitx" >&6; }
  23271. fi
  23272. }
  23273. CheckJoystickMFI()
  23274. {
  23275. # Check whether --enable-joystick-mfi was given.
  23276. if test ${enable_joystick_mfi+y}
  23277. then :
  23278. enableval=$enable_joystick_mfi;
  23279. else $as_nop
  23280. enable_joystick_mfi=yes
  23281. fi
  23282. if test x$enable_joystick_mfi = xyes; then
  23283. save_CFLAGS="$CFLAGS"
  23284. save_LDFLAGS="$LDFLAGS"
  23285. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23286. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23288. printf %s "checking for GameController framework... " >&6; }
  23289. enable_joystick_mfi=no
  23290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23291. /* end confdefs.h. */
  23292. #include <AvailabilityMacros.h>
  23293. #include <TargetConditionals.h>
  23294. #import <GameController/GameController.h>
  23295. int
  23296. main (void)
  23297. {
  23298. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23299. #error GameController framework doesn't work on this configuration
  23300. #endif
  23301. #if TARGET_CPU_X86
  23302. #error GameController framework doesn't work on this configuration
  23303. #endif
  23304. ;
  23305. return 0;
  23306. }
  23307. _ACEOF
  23308. if ac_fn_c_try_link "$LINENO"
  23309. then :
  23310. enable_joystick_mfi=yes
  23311. fi
  23312. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23313. conftest$ac_exeext conftest.$ac_ext
  23314. CFLAGS="$save_CFLAGS"
  23315. LDFLAGS="$save_LDFLAGS"
  23316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23317. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23318. if test x$enable_joystick_mfi = xyes; then
  23319. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23320. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23322. fi
  23323. fi
  23324. }
  23325. CheckPTHREAD()
  23326. {
  23327. case "$host" in
  23328. *-*-emscripten*)
  23329. enable_pthreads_default=no
  23330. ;;
  23331. *)
  23332. enable_pthreads_default=yes
  23333. ;;
  23334. esac
  23335. # Check whether --enable-pthreads was given.
  23336. if test ${enable_pthreads+y}
  23337. then :
  23338. enableval=$enable_pthreads;
  23339. else $as_nop
  23340. enable_pthreads=maybe
  23341. fi
  23342. # Check whether --enable-pthread-sem was given.
  23343. if test ${enable_pthread_sem+y}
  23344. then :
  23345. enableval=$enable_pthread_sem;
  23346. else $as_nop
  23347. enable_pthread_sem=maybe
  23348. fi
  23349. if test x$enable_pthreads = xmaybe; then
  23350. enable_pthreads=$enable_pthreads_default
  23351. fi
  23352. if test x$enable_pthread_sem = xmaybe; then
  23353. enable_pthread_sem=$enable_pthreads
  23354. fi
  23355. case "$host" in
  23356. *-*-android*)
  23357. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23358. pthread_lib=""
  23359. ;;
  23360. *-*-linux*|*-*-uclinux*)
  23361. pthread_cflags="-D_REENTRANT"
  23362. pthread_lib="-lpthread"
  23363. ;;
  23364. *-*-bsdi*)
  23365. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23366. pthread_lib=""
  23367. ;;
  23368. *-*-darwin*)
  23369. pthread_cflags="-D_THREAD_SAFE"
  23370. # causes Carbon.p complaints?
  23371. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23372. ;;
  23373. *-*-freebsd*|*-*-dragonfly*)
  23374. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23375. pthread_lib="-pthread"
  23376. ;;
  23377. *-*-netbsd*)
  23378. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23379. pthread_lib="-lpthread"
  23380. ;;
  23381. *-*-openbsd*)
  23382. pthread_cflags="-D_REENTRANT"
  23383. pthread_lib="-lpthread"
  23384. ;;
  23385. *-*-solaris2.9)
  23386. # From Solaris 9+, posix4's preferred name is rt.
  23387. pthread_cflags="-D_REENTRANT"
  23388. pthread_lib="-lpthread -lrt"
  23389. ;;
  23390. *-*-solaris2.10)
  23391. # Solaris 10+ merged pthread into libc.
  23392. pthread_cflags="-D_REENTRANT"
  23393. pthread_lib="-lrt"
  23394. ;;
  23395. *-*-solaris*)
  23396. # Solaris 11+ merged rt into libc.
  23397. pthread_cflags="-D_REENTRANT"
  23398. pthread_lib=""
  23399. ;;
  23400. *-*-sysv5*)
  23401. pthread_cflags="-D_REENTRANT -Kthread"
  23402. pthread_lib=""
  23403. ;;
  23404. *-*-aix*)
  23405. pthread_cflags="-D_REENTRANT -mthreads"
  23406. pthread_lib="-lpthread"
  23407. ;;
  23408. *-*-hpux11*)
  23409. pthread_cflags="-D_REENTRANT"
  23410. pthread_lib="-L/usr/lib -lpthread"
  23411. ;;
  23412. *-*-haiku*)
  23413. pthread_cflags="-D_REENTRANT"
  23414. pthread_lib=""
  23415. ;;
  23416. *-*-nto*)
  23417. pthread_cflags="-D_REENTRANT"
  23418. pthread_lib=""
  23419. ;;
  23420. *-*-emscripten*)
  23421. pthread_cflags="-D_REENTRANT -pthread"
  23422. pthread_lib="-pthread"
  23423. ;;
  23424. *)
  23425. pthread_cflags="-D_REENTRANT"
  23426. pthread_lib="-lpthread"
  23427. ;;
  23428. esac
  23429. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23430. # Save the original compiler flags and libraries
  23431. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23432. # Add the pthread compiler flags and libraries
  23433. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23434. # Check to see if we have pthread support on this system
  23435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23436. printf %s "checking for pthreads... " >&6; }
  23437. use_pthreads=no
  23438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23439. /* end confdefs.h. */
  23440. #include <pthread.h>
  23441. int
  23442. main (void)
  23443. {
  23444. pthread_attr_t type;
  23445. pthread_attr_init(&type);
  23446. ;
  23447. return 0;
  23448. }
  23449. _ACEOF
  23450. if ac_fn_c_try_link "$LINENO"
  23451. then :
  23452. use_pthreads=yes
  23453. fi
  23454. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23455. conftest$ac_exeext conftest.$ac_ext
  23456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23457. printf "%s\n" "$use_pthreads" >&6; }
  23458. # Restore the compiler flags and libraries
  23459. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23460. # Do futher testing if we have pthread support...
  23461. if test x$use_pthreads = xyes; then
  23462. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23463. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23465. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23466. # Save the original compiler flags and libraries
  23467. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23468. # Add the pthread compiler flags and libraries
  23469. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23470. # Check to see if recursive mutexes are available
  23471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23472. printf %s "checking for recursive mutexes... " >&6; }
  23473. has_recursive_mutexes=no
  23474. if test x$has_recursive_mutexes = xno; then
  23475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23476. /* end confdefs.h. */
  23477. #define _GNU_SOURCE 1
  23478. #include <pthread.h>
  23479. int
  23480. main (void)
  23481. {
  23482. pthread_mutexattr_t attr;
  23483. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23484. ;
  23485. return 0;
  23486. }
  23487. _ACEOF
  23488. if ac_fn_c_try_link "$LINENO"
  23489. then :
  23490. has_recursive_mutexes=yes
  23491. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23492. fi
  23493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23494. conftest$ac_exeext conftest.$ac_ext
  23495. fi
  23496. if test x$has_recursive_mutexes = xno; then
  23497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23498. /* end confdefs.h. */
  23499. #define _GNU_SOURCE 1
  23500. #include <pthread.h>
  23501. int
  23502. main (void)
  23503. {
  23504. pthread_mutexattr_t attr;
  23505. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23506. ;
  23507. return 0;
  23508. }
  23509. _ACEOF
  23510. if ac_fn_c_try_link "$LINENO"
  23511. then :
  23512. has_recursive_mutexes=yes
  23513. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23514. fi
  23515. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23516. conftest$ac_exeext conftest.$ac_ext
  23517. fi
  23518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23519. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23520. # Check to see if pthread semaphore support is missing
  23521. if test x$enable_pthread_sem = xyes; then
  23522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23523. printf %s "checking for pthread semaphores... " >&6; }
  23524. have_pthread_sem=no
  23525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23526. /* end confdefs.h. */
  23527. #include <pthread.h>
  23528. #include <semaphore.h>
  23529. int
  23530. main (void)
  23531. {
  23532. ;
  23533. return 0;
  23534. }
  23535. _ACEOF
  23536. if ac_fn_c_try_compile "$LINENO"
  23537. then :
  23538. have_pthread_sem=yes
  23539. fi
  23540. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23542. printf "%s\n" "$have_pthread_sem" >&6; }
  23543. fi
  23544. if test x$have_pthread_sem = xyes; then
  23545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23546. printf %s "checking for sem_timedwait... " >&6; }
  23547. have_sem_timedwait=no
  23548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23549. /* end confdefs.h. */
  23550. #include <pthread.h>
  23551. #include <semaphore.h>
  23552. int
  23553. main (void)
  23554. {
  23555. sem_timedwait(NULL, NULL);
  23556. ;
  23557. return 0;
  23558. }
  23559. _ACEOF
  23560. if ac_fn_c_try_link "$LINENO"
  23561. then :
  23562. have_sem_timedwait=yes
  23563. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23564. fi
  23565. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23566. conftest$ac_exeext conftest.$ac_ext
  23567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23568. printf "%s\n" "$have_sem_timedwait" >&6; }
  23569. fi
  23570. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23571. "
  23572. if test "x$ac_cv_header_pthread_np_h" = xyes
  23573. then :
  23574. have_pthread_np_h=yes
  23575. else $as_nop
  23576. have_pthread_np_h=no
  23577. fi
  23578. if test x$have_pthread_np_h = xyes; then
  23579. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23580. fi
  23581. # Check to see if pthread naming is available
  23582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23583. printf %s "checking for pthread_setname_np... " >&6; }
  23584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23585. /* end confdefs.h. */
  23586. /* Override any GCC internal prototype to avoid an error.
  23587. Use char because int might match the return type of a GCC
  23588. builtin and then its argument prototype would still apply. */
  23589. char pthread_setname_np ();
  23590. int
  23591. main (void)
  23592. {
  23593. return pthread_setname_np ();
  23594. ;
  23595. return 0;
  23596. }
  23597. _ACEOF
  23598. if ac_fn_c_try_link "$LINENO"
  23599. then :
  23600. has_pthread_setname_np=yes
  23601. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23602. else $as_nop
  23603. has_pthread_setname_np=no
  23604. fi
  23605. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23606. conftest$ac_exeext conftest.$ac_ext
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23608. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23610. printf %s "checking for pthread_set_name_np... " >&6; }
  23611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23612. /* end confdefs.h. */
  23613. /* Override any GCC internal prototype to avoid an error.
  23614. Use char because int might match the return type of a GCC
  23615. builtin and then its argument prototype would still apply. */
  23616. char pthread_set_name_np ();
  23617. int
  23618. main (void)
  23619. {
  23620. return pthread_set_name_np ();
  23621. ;
  23622. return 0;
  23623. }
  23624. _ACEOF
  23625. if ac_fn_c_try_link "$LINENO"
  23626. then :
  23627. has_pthread_set_name_np=yes
  23628. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23629. else $as_nop
  23630. has_pthread_set_name_np=no
  23631. fi
  23632. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23633. conftest$ac_exeext conftest.$ac_ext
  23634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23635. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23636. # Restore the compiler flags and libraries
  23637. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23638. # Basic thread creation functions
  23639. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23640. # Semaphores
  23641. # We can fake these with mutexes and condition variables if necessary
  23642. if test x$have_pthread_sem = xyes; then
  23643. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23644. else
  23645. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23646. fi
  23647. # Mutexes
  23648. # We can fake these with semaphores if necessary
  23649. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23650. # Condition variables
  23651. # We can fake these with semaphores and mutexes if necessary
  23652. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23653. # Thread local storage
  23654. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23655. have_threads=yes
  23656. fi
  23657. fi
  23658. }
  23659. CheckWINDOWS()
  23660. {
  23661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23662. printf %s "checking Windows compiler... " >&6; }
  23663. have_win32_gcc=no
  23664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23665. /* end confdefs.h. */
  23666. #include <windows.h>
  23667. int
  23668. main (void)
  23669. {
  23670. ;
  23671. return 0;
  23672. }
  23673. _ACEOF
  23674. if ac_fn_c_try_compile "$LINENO"
  23675. then :
  23676. have_win32_gcc=yes
  23677. fi
  23678. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23680. printf "%s\n" "$have_win32_gcc" >&6; }
  23681. if test x$have_win32_gcc != xyes; then
  23682. as_fn_error $? "
  23683. *** Your compiler ($CC) does not produce Windows executables!
  23684. " "$LINENO" 5
  23685. fi
  23686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23687. printf %s "checking Windows CE... " >&6; }
  23688. have_wince=no
  23689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23690. /* end confdefs.h. */
  23691. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23692. #error This is not Windows CE
  23693. #endif
  23694. int
  23695. main (void)
  23696. {
  23697. ;
  23698. return 0;
  23699. }
  23700. _ACEOF
  23701. if ac_fn_c_try_compile "$LINENO"
  23702. then :
  23703. have_wince=yes
  23704. as_fn_error $? "
  23705. *** Sorry, Windows CE is no longer supported.
  23706. " "$LINENO" 5
  23707. fi
  23708. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23710. printf "%s\n" "$have_wince" >&6; }
  23711. # headers needed elsewhere
  23712. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23713. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23714. then :
  23715. have_tpcshrd_h=yes
  23716. fi
  23717. if test x$have_tpcshrd_h = xyes; then
  23718. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23719. fi
  23720. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23721. if test "x$ac_cv_header_roapi_h" = xyes
  23722. then :
  23723. have_roapi_h=yes
  23724. fi
  23725. if test x$have_roapi_h = xyes; then
  23726. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23727. fi
  23728. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23729. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23730. then :
  23731. have_shellscalingapi_h=yes
  23732. fi
  23733. if test x$shellscalingapi_h = xyes; then
  23734. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23735. fi
  23736. }
  23737. CheckOS2()
  23738. {
  23739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23740. printf %s "checking OS/2 compiler... " >&6; }
  23741. have_os2_gcc=no
  23742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23743. /* end confdefs.h. */
  23744. #include <os2.h>
  23745. int
  23746. main (void)
  23747. {
  23748. ;
  23749. return 0;
  23750. }
  23751. _ACEOF
  23752. if ac_fn_c_try_compile "$LINENO"
  23753. then :
  23754. have_os2_gcc=yes
  23755. fi
  23756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23758. printf "%s\n" "$have_os2_gcc" >&6; }
  23759. if test x$have_os2_gcc != xyes; then
  23760. as_fn_error $? "
  23761. *** Your compiler ($CC) does not produce OS/2 executables!
  23762. " "$LINENO" 5
  23763. fi
  23764. }
  23765. CheckDIRECTX()
  23766. {
  23767. # Check whether --enable-directx was given.
  23768. if test ${enable_directx+y}
  23769. then :
  23770. enableval=$enable_directx;
  23771. else $as_nop
  23772. enable_directx=yes
  23773. fi
  23774. if test x$enable_directx = xyes; then
  23775. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23776. if test "x$ac_cv_header_d3d9_h" = xyes
  23777. then :
  23778. have_d3d=yes
  23779. fi
  23780. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23781. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23782. then :
  23783. have_d3d11=yes
  23784. fi
  23785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23786. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23788. /* end confdefs.h. */
  23789. #include <winsdkver.h>
  23790. #include <sdkddkver.h>
  23791. #include <d3d12.h>
  23792. ID3D12Device1 *device;
  23793. #if WDK_NTDDI_VERSION <= 0x0A000008
  23794. asdf
  23795. #endif
  23796. int
  23797. main (void)
  23798. {
  23799. ;
  23800. return 0;
  23801. }
  23802. _ACEOF
  23803. if ac_fn_c_try_compile "$LINENO"
  23804. then :
  23805. have_d3d12=yes
  23806. else $as_nop
  23807. have_d3d12=no
  23808. fi
  23809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23811. printf "%s\n" "$have_d3d12" >&6; }
  23812. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23813. if test "x$ac_cv_header_ddraw_h" = xyes
  23814. then :
  23815. have_ddraw=yes
  23816. fi
  23817. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23818. if test "x$ac_cv_header_dsound_h" = xyes
  23819. then :
  23820. have_dsound=yes
  23821. fi
  23822. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23823. if test "x$ac_cv_header_dinput_h" = xyes
  23824. then :
  23825. have_dinput=yes
  23826. fi
  23827. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23828. if test "x$ac_cv_header_dxgi_h" = xyes
  23829. then :
  23830. have_dxgi=yes
  23831. fi
  23832. if test x$have_ddraw = xyes; then
  23833. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23834. fi
  23835. if test x$have_dinput = xyes; then
  23836. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23837. fi
  23838. if test x$have_dsound = xyes; then
  23839. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23840. fi
  23841. if test x$have_dxgi = xyes; then
  23842. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23843. fi
  23844. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23845. # FIXME: ...so force it off for now.
  23846. case "$host" in
  23847. *-*-cygwin*)
  23848. have_dinput=false
  23849. ;;
  23850. esac
  23851. fi
  23852. # Check whether --enable-xinput was given.
  23853. if test ${enable_xinput+y}
  23854. then :
  23855. enableval=$enable_xinput;
  23856. else $as_nop
  23857. enable_xinput=yes
  23858. fi
  23859. if test x$enable_xinput = xyes; then
  23860. have_xinput_gamepadex=no
  23861. have_xinput_stateex=no
  23862. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23863. if test "x$ac_cv_header_xinput_h" = xyes
  23864. then :
  23865. have_xinput=yes
  23866. fi
  23867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23868. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23870. /* end confdefs.h. */
  23871. #include <windows.h>
  23872. #include <xinput.h>
  23873. XINPUT_GAMEPAD_EX x1;
  23874. int
  23875. main (void)
  23876. {
  23877. ;
  23878. return 0;
  23879. }
  23880. _ACEOF
  23881. if ac_fn_c_try_compile "$LINENO"
  23882. then :
  23883. have_xinput_gamepadex=yes
  23884. fi
  23885. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23887. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23889. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23891. /* end confdefs.h. */
  23892. #include <windows.h>
  23893. #include <xinput.h>
  23894. XINPUT_STATE_EX s1;
  23895. int
  23896. main (void)
  23897. {
  23898. ;
  23899. return 0;
  23900. }
  23901. _ACEOF
  23902. if ac_fn_c_try_compile "$LINENO"
  23903. then :
  23904. have_xinput_stateex=yes
  23905. fi
  23906. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23908. printf "%s\n" "$have_xinput_stateex" >&6; }
  23909. if test x$have_xinput = xyes; then
  23910. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23911. fi
  23912. if test x$have_xinput_gamepadex = xyes; then
  23913. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23914. fi
  23915. if test x$have_xinput_stateex = xyes; then
  23916. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23917. fi
  23918. fi
  23919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23920. printf %s "checking for windows.gaming.input.h... " >&6; }
  23921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23922. /* end confdefs.h. */
  23923. #define COBJMACROS
  23924. #include <windows.gaming.input.h>
  23925. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23926. int
  23927. main (void)
  23928. {
  23929. ;
  23930. return 0;
  23931. }
  23932. _ACEOF
  23933. if ac_fn_c_try_compile "$LINENO"
  23934. then :
  23935. have_wgi=yes
  23936. else $as_nop
  23937. have_wgi=no
  23938. fi
  23939. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23941. printf "%s\n" "$have_wgi" >&6; }
  23942. if test x$have_wgi = xyes; then
  23943. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23944. fi
  23945. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23946. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23947. then :
  23948. have_wasapi=yes
  23949. fi
  23950. if test x$have_wasapi = xyes; then
  23951. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23952. fi
  23953. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23954. if test "x$ac_cv_header_audioclient_h" = xyes
  23955. then :
  23956. else $as_nop
  23957. have_wasapi=no
  23958. fi
  23959. if test x$have_wasapi = xyes; then
  23960. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23961. fi
  23962. # Check whether --enable-wasapi was given.
  23963. if test ${enable_wasapi+y}
  23964. then :
  23965. enableval=$enable_wasapi;
  23966. else $as_nop
  23967. enable_wasapi=yes
  23968. fi
  23969. }
  23970. CheckDLOPEN()
  23971. {
  23972. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23973. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23974. if test "x$ac_cv_header_dlfcn_h" = xyes
  23975. then :
  23976. have_dlfcn_h=yes
  23977. else $as_nop
  23978. have_dlfcn_h=no
  23979. fi
  23980. have_dlopen=no
  23981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23982. printf %s "checking for dlopen in -lc... " >&6; }
  23983. if test ${ac_cv_lib_c_dlopen+y}
  23984. then :
  23985. printf %s "(cached) " >&6
  23986. else $as_nop
  23987. ac_check_lib_save_LIBS=$LIBS
  23988. LIBS="-lc $LIBS"
  23989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23990. /* end confdefs.h. */
  23991. /* Override any GCC internal prototype to avoid an error.
  23992. Use char because int might match the return type of a GCC
  23993. builtin and then its argument prototype would still apply. */
  23994. char dlopen ();
  23995. int
  23996. main (void)
  23997. {
  23998. return dlopen ();
  23999. ;
  24000. return 0;
  24001. }
  24002. _ACEOF
  24003. if ac_fn_c_try_link "$LINENO"
  24004. then :
  24005. ac_cv_lib_c_dlopen=yes
  24006. else $as_nop
  24007. ac_cv_lib_c_dlopen=no
  24008. fi
  24009. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24010. conftest$ac_exeext conftest.$ac_ext
  24011. LIBS=$ac_check_lib_save_LIBS
  24012. fi
  24013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24014. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24015. if test "x$ac_cv_lib_c_dlopen" = xyes
  24016. then :
  24017. have_dlopen=yes
  24018. else $as_nop
  24019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24020. printf %s "checking for dlopen in -ldl... " >&6; }
  24021. if test ${ac_cv_lib_dl_dlopen+y}
  24022. then :
  24023. printf %s "(cached) " >&6
  24024. else $as_nop
  24025. ac_check_lib_save_LIBS=$LIBS
  24026. LIBS="-ldl $LIBS"
  24027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24028. /* end confdefs.h. */
  24029. /* Override any GCC internal prototype to avoid an error.
  24030. Use char because int might match the return type of a GCC
  24031. builtin and then its argument prototype would still apply. */
  24032. char dlopen ();
  24033. int
  24034. main (void)
  24035. {
  24036. return dlopen ();
  24037. ;
  24038. return 0;
  24039. }
  24040. _ACEOF
  24041. if ac_fn_c_try_link "$LINENO"
  24042. then :
  24043. ac_cv_lib_dl_dlopen=yes
  24044. else $as_nop
  24045. ac_cv_lib_dl_dlopen=no
  24046. fi
  24047. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24048. conftest$ac_exeext conftest.$ac_ext
  24049. LIBS=$ac_check_lib_save_LIBS
  24050. fi
  24051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24052. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24053. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24054. then :
  24055. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24056. fi
  24057. fi
  24058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24059. printf %s "checking for dlopen... " >&6; }
  24060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24061. printf "%s\n" "$have_dlopen" >&6; }
  24062. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24063. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24064. if test x$enable_loadso = xyes; then
  24065. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24066. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24067. have_loadso=yes
  24068. fi
  24069. fi
  24070. }
  24071. CheckO_CLOEXEC()
  24072. {
  24073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24074. printf %s "checking for O_CLOEXEC... " >&6; }
  24075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24076. /* end confdefs.h. */
  24077. #include <fcntl.h>
  24078. int flag = O_CLOEXEC;
  24079. int
  24080. main (void)
  24081. {
  24082. ;
  24083. return 0;
  24084. }
  24085. _ACEOF
  24086. if ac_fn_c_try_compile "$LINENO"
  24087. then :
  24088. have_o_cloexec=yes
  24089. else $as_nop
  24090. have_o_cloexec=no
  24091. fi
  24092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24094. printf "%s\n" "$have_o_cloexec" >&6; }
  24095. if test $have_o_cloexec = yes; then
  24096. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24097. fi
  24098. }
  24099. CheckUSBHID()
  24100. {
  24101. case "$host" in
  24102. *-*-*bsd*|*-*-dragonfly*)
  24103. if test x$enable_joystick = xyes; then
  24104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24105. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24106. if test ${ac_cv_lib_usbhid_hid_init+y}
  24107. then :
  24108. printf %s "(cached) " >&6
  24109. else $as_nop
  24110. ac_check_lib_save_LIBS=$LIBS
  24111. LIBS="-lusbhid $LIBS"
  24112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24113. /* end confdefs.h. */
  24114. /* Override any GCC internal prototype to avoid an error.
  24115. Use char because int might match the return type of a GCC
  24116. builtin and then its argument prototype would still apply. */
  24117. char hid_init ();
  24118. int
  24119. main (void)
  24120. {
  24121. return hid_init ();
  24122. ;
  24123. return 0;
  24124. }
  24125. _ACEOF
  24126. if ac_fn_c_try_link "$LINENO"
  24127. then :
  24128. ac_cv_lib_usbhid_hid_init=yes
  24129. else $as_nop
  24130. ac_cv_lib_usbhid_hid_init=no
  24131. fi
  24132. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24133. conftest$ac_exeext conftest.$ac_ext
  24134. LIBS=$ac_check_lib_save_LIBS
  24135. fi
  24136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24137. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24138. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24139. then :
  24140. have_libusbhid=yes
  24141. fi
  24142. if test x$have_libusbhid = xyes; then
  24143. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24144. if test "x$ac_cv_header_usbhid_h" = xyes
  24145. then :
  24146. USB_CFLAGS="-DHAVE_USBHID_H"
  24147. fi
  24148. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24149. if test "x$ac_cv_header_libusbhid_h" = xyes
  24150. then :
  24151. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24152. fi
  24153. USB_LIBS="$USB_LIBS -lusbhid"
  24154. else
  24155. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24156. if test "x$ac_cv_header_usb_h" = xyes
  24157. then :
  24158. USB_CFLAGS="-DHAVE_USB_H"
  24159. fi
  24160. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24161. if test "x$ac_cv_header_libusb_h" = xyes
  24162. then :
  24163. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24164. fi
  24165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24166. printf %s "checking for hid_init in -lusb... " >&6; }
  24167. if test ${ac_cv_lib_usb_hid_init+y}
  24168. then :
  24169. printf %s "(cached) " >&6
  24170. else $as_nop
  24171. ac_check_lib_save_LIBS=$LIBS
  24172. LIBS="-lusb $LIBS"
  24173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24174. /* end confdefs.h. */
  24175. /* Override any GCC internal prototype to avoid an error.
  24176. Use char because int might match the return type of a GCC
  24177. builtin and then its argument prototype would still apply. */
  24178. char hid_init ();
  24179. int
  24180. main (void)
  24181. {
  24182. return hid_init ();
  24183. ;
  24184. return 0;
  24185. }
  24186. _ACEOF
  24187. if ac_fn_c_try_link "$LINENO"
  24188. then :
  24189. ac_cv_lib_usb_hid_init=yes
  24190. else $as_nop
  24191. ac_cv_lib_usb_hid_init=no
  24192. fi
  24193. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24194. conftest$ac_exeext conftest.$ac_ext
  24195. LIBS=$ac_check_lib_save_LIBS
  24196. fi
  24197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24198. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24199. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24200. then :
  24201. USB_LIBS="$USB_LIBS -lusb"
  24202. fi
  24203. fi
  24204. save_CFLAGS="$CFLAGS"
  24205. CFLAGS="$CFLAGS $USB_CFLAGS"
  24206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24207. printf %s "checking for usbhid... " >&6; }
  24208. have_usbhid=no
  24209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24210. /* end confdefs.h. */
  24211. #include <sys/types.h>
  24212. #if defined(HAVE_USB_H)
  24213. #include <usb.h>
  24214. #endif
  24215. #ifdef __DragonFly__
  24216. # include <bus/u4b/usb.h>
  24217. # include <bus/u4b/usbhid.h>
  24218. #else
  24219. # include <dev/usb/usb.h>
  24220. # include <dev/usb/usbhid.h>
  24221. #endif
  24222. #if defined(HAVE_USBHID_H)
  24223. #include <usbhid.h>
  24224. #elif defined(HAVE_LIBUSB_H)
  24225. #include <libusb.h>
  24226. #elif defined(HAVE_LIBUSBHID_H)
  24227. #include <libusbhid.h>
  24228. #endif
  24229. int
  24230. main (void)
  24231. {
  24232. struct report_desc *repdesc;
  24233. struct usb_ctl_report *repbuf;
  24234. hid_kind_t hidkind;
  24235. ;
  24236. return 0;
  24237. }
  24238. _ACEOF
  24239. if ac_fn_c_try_compile "$LINENO"
  24240. then :
  24241. have_usbhid=yes
  24242. fi
  24243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24245. printf "%s\n" "$have_usbhid" >&6; }
  24246. if test x$have_usbhid = xyes; then
  24247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24248. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24249. have_usbhid_ucr_data=no
  24250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24251. /* end confdefs.h. */
  24252. #include <sys/types.h>
  24253. #if defined(HAVE_USB_H)
  24254. #include <usb.h>
  24255. #endif
  24256. #ifdef __DragonFly__
  24257. # include <bus/u4b/usb.h>
  24258. # include <bus/u4b/usbhid.h>
  24259. #else
  24260. # include <dev/usb/usb.h>
  24261. # include <dev/usb/usbhid.h>
  24262. #endif
  24263. #if defined(HAVE_USBHID_H)
  24264. #include <usbhid.h>
  24265. #elif defined(HAVE_LIBUSB_H)
  24266. #include <libusb.h>
  24267. #elif defined(HAVE_LIBUSBHID_H)
  24268. #include <libusbhid.h>
  24269. #endif
  24270. int
  24271. main (void)
  24272. {
  24273. struct usb_ctl_report buf;
  24274. if (buf.ucr_data) { }
  24275. ;
  24276. return 0;
  24277. }
  24278. _ACEOF
  24279. if ac_fn_c_try_compile "$LINENO"
  24280. then :
  24281. have_usbhid_ucr_data=yes
  24282. fi
  24283. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24284. if test x$have_usbhid_ucr_data = xyes; then
  24285. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24286. fi
  24287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24288. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24290. printf %s "checking for new usbhid API... " >&6; }
  24291. have_usbhid_new=no
  24292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24293. /* end confdefs.h. */
  24294. #include <sys/types.h>
  24295. #if defined(HAVE_USB_H)
  24296. #include <usb.h>
  24297. #endif
  24298. #ifdef __DragonFly__
  24299. #include <bus/u4b/usb.h>
  24300. #include <bus/u4b/usbhid.h>
  24301. #else
  24302. #include <dev/usb/usb.h>
  24303. #include <dev/usb/usbhid.h>
  24304. #endif
  24305. #if defined(HAVE_USBHID_H)
  24306. #include <usbhid.h>
  24307. #elif defined(HAVE_LIBUSB_H)
  24308. #include <libusb.h>
  24309. #elif defined(HAVE_LIBUSBHID_H)
  24310. #include <libusbhid.h>
  24311. #endif
  24312. int
  24313. main (void)
  24314. {
  24315. report_desc_t d;
  24316. hid_start_parse(d, 1, 1);
  24317. ;
  24318. return 0;
  24319. }
  24320. _ACEOF
  24321. if ac_fn_c_try_compile "$LINENO"
  24322. then :
  24323. have_usbhid_new=yes
  24324. fi
  24325. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24326. if test x$have_usbhid_new = xyes; then
  24327. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24328. fi
  24329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24330. printf "%s\n" "$have_usbhid_new" >&6; }
  24331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24332. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24333. have_machine_joystick=no
  24334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24335. /* end confdefs.h. */
  24336. #include <machine/joystick.h>
  24337. int
  24338. main (void)
  24339. {
  24340. struct joystick t;
  24341. ;
  24342. return 0;
  24343. }
  24344. _ACEOF
  24345. if ac_fn_c_try_compile "$LINENO"
  24346. then :
  24347. have_machine_joystick=yes
  24348. fi
  24349. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24350. if test x$have_machine_joystick = xyes; then
  24351. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24352. fi
  24353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24354. printf "%s\n" "$have_machine_joystick" >&6; }
  24355. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24356. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24357. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24359. have_joystick=yes
  24360. fi
  24361. CFLAGS="$save_CFLAGS"
  24362. fi
  24363. ;;
  24364. esac
  24365. }
  24366. CheckHIDAPI()
  24367. {
  24368. # Check whether --enable-hidapi-joystick was given.
  24369. if test ${enable_hidapi_joystick+y}
  24370. then :
  24371. enableval=$enable_hidapi_joystick;
  24372. else $as_nop
  24373. enable_hidapi_joystick=yes
  24374. fi
  24375. # Check whether --enable-hidapi-libusb was given.
  24376. if test ${enable_hidapi_libusb+y}
  24377. then :
  24378. enableval=$enable_hidapi_libusb;
  24379. else $as_nop
  24380. enable_hidapi_libusb=maybe
  24381. fi
  24382. if test x$enable_hidapi = xyes; then
  24383. case "$host" in
  24384. # libusb does not support iOS
  24385. *-ios-* )
  24386. enable_hidapi_libusb=no
  24387. ;;
  24388. # On the other hand, *BSD specifically uses libusb only
  24389. *-*-*bsd* )
  24390. enable_hidapi_libusb=yes
  24391. require_hidapi_libusb=yes
  24392. ;;
  24393. *-*-os2* )
  24394. enable_hidapi_libusb=yes
  24395. ;;
  24396. esac
  24397. hidapi_support=yes
  24398. if test x$enable_hidapi_libusb = xyes; then
  24399. pkg_failed=no
  24400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24401. printf %s "checking for libusb-1.0... " >&6; }
  24402. if test -n "$LIBUSB_CFLAGS"; then
  24403. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24404. elif test -n "$PKG_CONFIG"; then
  24405. if test -n "$PKG_CONFIG" && \
  24406. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24407. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24408. ac_status=$?
  24409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24410. test $ac_status = 0; }; then
  24411. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24412. test "x$?" != "x0" && pkg_failed=yes
  24413. else
  24414. pkg_failed=yes
  24415. fi
  24416. else
  24417. pkg_failed=untried
  24418. fi
  24419. if test -n "$LIBUSB_LIBS"; then
  24420. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24421. elif test -n "$PKG_CONFIG"; then
  24422. if test -n "$PKG_CONFIG" && \
  24423. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24424. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24425. ac_status=$?
  24426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24427. test $ac_status = 0; }; then
  24428. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24429. test "x$?" != "x0" && pkg_failed=yes
  24430. else
  24431. pkg_failed=yes
  24432. fi
  24433. else
  24434. pkg_failed=untried
  24435. fi
  24436. if test $pkg_failed = yes; then
  24437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24438. printf "%s\n" "no" >&6; }
  24439. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24440. _pkg_short_errors_supported=yes
  24441. else
  24442. _pkg_short_errors_supported=no
  24443. fi
  24444. if test $_pkg_short_errors_supported = yes; then
  24445. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24446. else
  24447. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24448. fi
  24449. # Put the nasty error message in config.log where it belongs
  24450. echo "$LIBUSB_PKG_ERRORS" >&5
  24451. have_libusb=no
  24452. elif test $pkg_failed = untried; then
  24453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24454. printf "%s\n" "no" >&6; }
  24455. have_libusb=no
  24456. else
  24457. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24458. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24460. printf "%s\n" "yes" >&6; }
  24461. have_libusb=yes
  24462. fi
  24463. save_CPPFLAGS="$CPPFLAGS"
  24464. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24465. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24466. if test "x$ac_cv_header_libusb_h" = xyes
  24467. then :
  24468. have_libusb_h=yes
  24469. else $as_nop
  24470. have_libusb_h=no
  24471. fi
  24472. CPPFLAGS="$save_CPPFLAGS"
  24473. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24474. hidapi_support=no
  24475. fi
  24476. fi
  24477. if test x$hidapi_support = xyes; then
  24478. if test x$have_libusb_h = xyes; then
  24479. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24480. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24481. if test x$require_hidapi_libusb = xyes; then
  24482. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24483. else
  24484. if test x$have_loadso != xyes; then
  24485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24486. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24487. fi
  24488. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24489. libusb_lib=""
  24490. case "$host" in
  24491. *-*-darwin* )
  24492. libusb_lib="libusb-1.0.0.dylib"
  24493. ;;
  24494. *-*-cygwin* | *-*-mingw* )
  24495. libusb_lib="libusb-1.0.dll"
  24496. ;;
  24497. *-*-os2* )
  24498. libusb_lib="usb100.dll"
  24499. ;;
  24500. esac
  24501. if test x$libusb_lib = x; then
  24502. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24503. fi
  24504. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24505. fi
  24506. fi
  24507. fi
  24508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24509. printf %s "checking for hidapi joystick support... " >&6; }
  24510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24511. printf "%s\n" "$hidapi_support" >&6; }
  24512. fi
  24513. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24514. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24515. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24516. fi
  24517. }
  24518. CheckClockGettime()
  24519. {
  24520. # Check whether --enable-clock_gettime was given.
  24521. if test ${enable_clock_gettime+y}
  24522. then :
  24523. enableval=$enable_clock_gettime;
  24524. else $as_nop
  24525. enable_clock_gettime=yes
  24526. fi
  24527. if test x$enable_clock_gettime = xyes; then
  24528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24529. printf %s "checking for clock_gettime in -lc... " >&6; }
  24530. if test ${ac_cv_lib_c_clock_gettime+y}
  24531. then :
  24532. printf %s "(cached) " >&6
  24533. else $as_nop
  24534. ac_check_lib_save_LIBS=$LIBS
  24535. LIBS="-lc $LIBS"
  24536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24537. /* end confdefs.h. */
  24538. /* Override any GCC internal prototype to avoid an error.
  24539. Use char because int might match the return type of a GCC
  24540. builtin and then its argument prototype would still apply. */
  24541. char clock_gettime ();
  24542. int
  24543. main (void)
  24544. {
  24545. return clock_gettime ();
  24546. ;
  24547. return 0;
  24548. }
  24549. _ACEOF
  24550. if ac_fn_c_try_link "$LINENO"
  24551. then :
  24552. ac_cv_lib_c_clock_gettime=yes
  24553. else $as_nop
  24554. ac_cv_lib_c_clock_gettime=no
  24555. fi
  24556. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24557. conftest$ac_exeext conftest.$ac_ext
  24558. LIBS=$ac_check_lib_save_LIBS
  24559. fi
  24560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24561. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24562. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24563. then :
  24564. have_clock_gettime=yes
  24565. fi
  24566. if test x$have_clock_gettime = xyes; then
  24567. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24568. else
  24569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24570. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24571. if test ${ac_cv_lib_rt_clock_gettime+y}
  24572. then :
  24573. printf %s "(cached) " >&6
  24574. else $as_nop
  24575. ac_check_lib_save_LIBS=$LIBS
  24576. LIBS="-lrt $LIBS"
  24577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24578. /* end confdefs.h. */
  24579. /* Override any GCC internal prototype to avoid an error.
  24580. Use char because int might match the return type of a GCC
  24581. builtin and then its argument prototype would still apply. */
  24582. char clock_gettime ();
  24583. int
  24584. main (void)
  24585. {
  24586. return clock_gettime ();
  24587. ;
  24588. return 0;
  24589. }
  24590. _ACEOF
  24591. if ac_fn_c_try_link "$LINENO"
  24592. then :
  24593. ac_cv_lib_rt_clock_gettime=yes
  24594. else $as_nop
  24595. ac_cv_lib_rt_clock_gettime=no
  24596. fi
  24597. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24598. conftest$ac_exeext conftest.$ac_ext
  24599. LIBS=$ac_check_lib_save_LIBS
  24600. fi
  24601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24602. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24603. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24604. then :
  24605. have_clock_gettime=yes
  24606. fi
  24607. if test x$have_clock_gettime = xyes; then
  24608. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24609. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24610. fi
  24611. fi
  24612. fi
  24613. }
  24614. CheckLinuxVersion()
  24615. {
  24616. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24617. if test "x$ac_cv_header_linux_version_h" = xyes
  24618. then :
  24619. have_linux_version_h=yes
  24620. fi
  24621. if test x$have_linux_version_h = xyes; then
  24622. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24623. fi
  24624. }
  24625. CheckRPATH()
  24626. {
  24627. # Check whether --enable-rpath was given.
  24628. if test ${enable_rpath+y}
  24629. then :
  24630. enableval=$enable_rpath;
  24631. else $as_nop
  24632. enable_rpath=yes
  24633. fi
  24634. }
  24635. CheckEventSignals()
  24636. {
  24637. # Check whether --enable-backgrounding-signal was given.
  24638. if test ${enable_backgrounding_signal+y}
  24639. then :
  24640. enableval=$enable_backgrounding_signal;
  24641. else $as_nop
  24642. enable_backgrounding_signal=no
  24643. fi
  24644. if test x$enable_backgrounding_signal != xno; then
  24645. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24646. fi
  24647. # Check whether --enable-foregrounding-signal was given.
  24648. if test ${enable_foregrounding_signal+y}
  24649. then :
  24650. enableval=$enable_foregrounding_signal;
  24651. else $as_nop
  24652. enable_foregrounding_signal=no
  24653. fi
  24654. if test x$enable_foregrounding_signal != xno; then
  24655. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24656. fi
  24657. }
  24658. CheckVirtualJoystick()
  24659. {
  24660. # Check whether --enable-joystick-virtual was given.
  24661. if test ${enable_joystick_virtual+y}
  24662. then :
  24663. enableval=$enable_joystick_virtual;
  24664. else $as_nop
  24665. enable_joystick_virtual=yes
  24666. fi
  24667. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24668. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24669. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24670. have_joystick_virtual=yes
  24671. fi
  24672. }
  24673. CheckWarnAll
  24674. CheckUnusedLocalTypedefs
  24675. CheckNoStrictAliasing
  24676. CheckEventSignals
  24677. have_locale=no
  24678. case "$host" in
  24679. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24680. case "$host" in
  24681. *-*-android*)
  24682. # Android
  24683. ARCH=android
  24684. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24685. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24686. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24687. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24689. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24690. if test x$enable_video = xyes; then
  24691. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24692. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24693. SUMMARY_video="${SUMMARY_video} android"
  24694. have_video=yes
  24695. fi
  24696. ;;
  24697. *-*-linux*) ARCH=linux ;;
  24698. *-*-uclinux*) ARCH=linux ;;
  24699. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24700. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24701. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24702. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24703. *-*-bsdi*) ARCH=bsdi ;;
  24704. *-*-freebsd*) ARCH=freebsd ;;
  24705. *-*-dragonfly*) ARCH=freebsd ;;
  24706. *-*-netbsd*) ARCH=netbsd ;;
  24707. *-*-openbsd*) ARCH=openbsd ;;
  24708. *-*-sysv5*) ARCH=sysv5 ;;
  24709. *-*-solaris*) ARCH=solaris ;;
  24710. *-*-hpux*) ARCH=hpux ;;
  24711. *-*-aix*) ARCH=aix ;;
  24712. *-*-minix*) ARCH=minix ;;
  24713. *-*-nto*) ARCH=nto
  24714. CheckQNXVideo
  24715. ;;
  24716. esac
  24717. CheckVisibilityHidden
  24718. CheckWerror
  24719. CheckDeclarationAfterStatement
  24720. CheckDummyVideo
  24721. CheckOffscreenVideo
  24722. CheckDiskAudio
  24723. CheckDummyAudio
  24724. CheckDLOPEN
  24725. CheckARM
  24726. CheckNEON
  24727. CheckO_CLOEXEC
  24728. CheckOSS
  24729. CheckALSA
  24730. CheckPipewire
  24731. CheckPulseAudio
  24732. CheckJACK
  24733. CheckARTSC
  24734. CheckESD
  24735. CheckNAS
  24736. CheckSNDIO
  24737. CheckFusionSound
  24738. CheckLibSampleRate
  24739. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24740. CheckRPI
  24741. CheckX11
  24742. CheckDirectFB
  24743. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24744. CheckEGL
  24745. CheckKMSDRM
  24746. CheckGLX
  24747. CheckOpenGL
  24748. CheckOpenGLES
  24749. CheckVulkan
  24750. CheckWayland
  24751. CheckInputEvents
  24752. CheckLibUDev
  24753. CheckDBus
  24754. CheckIME
  24755. CheckInotify
  24756. CheckIBus
  24757. CheckFcitx
  24758. case $ARCH in
  24759. linux)
  24760. CheckInputKD
  24761. ;;
  24762. freebsd)
  24763. CheckInputKBIO
  24764. ;;
  24765. openbsd|netbsd)
  24766. CheckInputWSCONS
  24767. ;;
  24768. esac
  24769. CheckUSBHID
  24770. CheckHIDAPI
  24771. CheckPTHREAD
  24772. CheckClockGettime
  24773. CheckLinuxVersion
  24774. CheckRPATH
  24775. CheckVivanteVideo
  24776. # Set up files for the misc library
  24777. if test x$enable_misc = xyes; then
  24778. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24779. have_misc=yes
  24780. fi
  24781. # Set up files for the locale library
  24782. if test x$enable_locale = xyes; then
  24783. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24784. have_locale=yes
  24785. fi
  24786. # Set up files for the audio library
  24787. if test x$enable_audio = xyes; then
  24788. case $ARCH in
  24789. sysv5|solaris|hpux)
  24790. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24791. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24792. SUMMARY_audio="${SUMMARY_audio} sun"
  24793. have_audio=yes
  24794. ;;
  24795. netbsd) # Don't use this on OpenBSD, it's busted.
  24796. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24797. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24798. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24799. have_audio=yes
  24800. ;;
  24801. aix)
  24802. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24803. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24804. SUMMARY_audio="${SUMMARY_audio} paudio"
  24805. have_audio=yes
  24806. ;;
  24807. android)
  24808. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24809. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24810. SUMMARY_audio="${SUMMARY_audio} android"
  24811. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24812. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24813. SUMMARY_audio="${SUMMARY_audio} openslES"
  24814. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24815. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24816. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24817. have_audio=yes
  24818. ;;
  24819. nto)
  24820. CheckQNXAudio
  24821. ;;
  24822. esac
  24823. fi
  24824. # Set up files for the joystick library
  24825. if test x$enable_joystick = xyes; then
  24826. case $ARCH in
  24827. linux)
  24828. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24829. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24830. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24831. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24832. have_joystick=yes
  24833. fi
  24834. ;;
  24835. freebsd)
  24836. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24837. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24838. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24839. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24840. have_joystick=yes
  24841. fi
  24842. ;;
  24843. android)
  24844. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24845. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24846. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24847. have_joystick=yes
  24848. ;;
  24849. esac
  24850. fi
  24851. # Set up files for the haptic library
  24852. if test x$enable_haptic = xyes; then
  24853. case $ARCH in
  24854. linux|freebsd)
  24855. if test x$use_input_events = xyes; then
  24856. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24857. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24858. have_haptic=yes
  24859. fi
  24860. ;;
  24861. android)
  24862. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24863. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24864. have_haptic=yes
  24865. ;;
  24866. esac
  24867. fi
  24868. # Set up files for the sensor library
  24869. if test x$enable_sensor = xyes; then
  24870. case $ARCH in
  24871. android)
  24872. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24873. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24874. have_sensor=yes
  24875. ;;
  24876. esac
  24877. fi
  24878. # Set up files for the power library
  24879. if test x$enable_power = xyes; then
  24880. case $ARCH in
  24881. linux)
  24882. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24883. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24884. have_power=yes
  24885. ;;
  24886. android)
  24887. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24888. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24889. have_power=yes
  24890. ;;
  24891. esac
  24892. fi
  24893. # Set up files for the filesystem library
  24894. if test x$enable_filesystem = xyes; then
  24895. case $ARCH in
  24896. android)
  24897. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24898. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24899. have_filesystem=yes
  24900. ;;
  24901. *)
  24902. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24903. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24904. have_filesystem=yes
  24905. ;;
  24906. esac
  24907. fi
  24908. # Set up files for the timer library
  24909. if test x$enable_timers = xyes; then
  24910. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24911. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24912. have_timers=yes
  24913. fi
  24914. # Set up files for udev hotplugging support
  24915. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24916. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24917. fi
  24918. # Set up files for evdev input
  24919. if test x$use_input_events = xyes; then
  24920. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24921. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24922. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24923. fi
  24924. # Set up files for wscons input
  24925. if test x$use_input_wscons = xyes; then
  24926. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24927. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24928. fi
  24929. # Set up other core UNIX files
  24930. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24931. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24932. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24933. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24934. ;;
  24935. *-*-cygwin* | *-*-mingw*)
  24936. ARCH=win32
  24937. if test "$build" != "$host"; then # cross-compiling
  24938. # Default cross-compile location
  24939. ac_default_prefix=/usr/local/cross-tools/$host
  24940. else
  24941. # Look for the location of the tools and install there
  24942. if test "$BUILD_PREFIX" != ""; then
  24943. ac_default_prefix=$BUILD_PREFIX
  24944. fi
  24945. fi
  24946. if test x$enable_loadso = xyes; then
  24947. have_loadso=yes
  24948. fi
  24949. CheckGDwarf4
  24950. CheckWerror
  24951. CheckDeclarationAfterStatement
  24952. CheckDummyVideo
  24953. CheckOffscreenVideo
  24954. CheckDiskAudio
  24955. CheckDummyAudio
  24956. CheckWINDOWS
  24957. CheckWINDOWSGL
  24958. CheckWINDOWSGLES
  24959. CheckVulkan
  24960. CheckDIRECTX
  24961. CheckHIDAPI
  24962. # Set up the core platform files
  24963. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24964. # Set up files for the misc library
  24965. if test x$enable_misc = xyes; then
  24966. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24967. have_misc=yes
  24968. fi
  24969. # Use the Windows locale APIs.
  24970. if test x$enable_locale = xyes; then
  24971. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24972. have_locale=yes
  24973. fi
  24974. # Set up files for the video library
  24975. if test x$enable_video = xyes; then
  24976. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24977. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24978. have_video=yes
  24979. # Check whether --enable-render-d3d was given.
  24980. if test ${enable_render_d3d+y}
  24981. then :
  24982. enableval=$enable_render_d3d;
  24983. else $as_nop
  24984. enable_render_d3d=yes
  24985. fi
  24986. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24987. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24988. SUMMARY_video="${SUMMARY_video} d3d9"
  24989. fi
  24990. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24991. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24992. SUMMARY_video="${SUMMARY_video} d3d11"
  24993. fi
  24994. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24995. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24996. SUMMARY_video="${SUMMARY_video} d3d12"
  24997. fi
  24998. fi
  24999. # Set up files for the audio library
  25000. if test x$enable_audio = xyes; then
  25001. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25002. SUMMARY_audio="${SUMMARY_audio} winmm"
  25003. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25004. if test x$have_dsound = xyes; then
  25005. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25006. SUMMARY_audio="${SUMMARY_audio} directsound"
  25007. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25008. fi
  25009. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25010. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25011. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25012. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25013. fi
  25014. have_audio=yes
  25015. fi
  25016. # Set up files for the joystick library
  25017. if test x$enable_joystick = xyes; then
  25018. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25019. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25020. if test x$have_xinput = xyes; then
  25021. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25022. fi
  25023. if test x$have_wgi = xyes; then
  25024. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25025. fi
  25026. if test x$have_dinput = xyes; then
  25027. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25029. fi
  25030. fi
  25031. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25032. have_joystick=yes
  25033. fi
  25034. if test x$enable_haptic = xyes; then
  25035. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25036. if test x$have_xinput = xyes; then
  25037. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25038. fi
  25039. if test x$have_dinput = xyes; then
  25040. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25041. fi
  25042. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25043. have_haptic=yes
  25044. fi
  25045. fi
  25046. # Set up files for the sensor library
  25047. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25048. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25049. then :
  25050. have_winsensors=yes
  25051. else $as_nop
  25052. have_winsensors=no
  25053. fi
  25054. if test x$have_winsensors = xyes; then
  25055. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25056. fi
  25057. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25058. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25059. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25060. have_sensor=yes
  25061. fi
  25062. # Set up files for the power library
  25063. if test x$enable_power = xyes; then
  25064. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25065. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25066. have_power=yes
  25067. fi
  25068. # Set up files for the filesystem library
  25069. if test x$enable_filesystem = xyes; then
  25070. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25071. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25072. have_filesystem=yes
  25073. fi
  25074. # Set up files for the thread library
  25075. if test x$enable_threads = xyes; then
  25076. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25077. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25078. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25079. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25080. have_threads=yes
  25081. fi
  25082. # Set up files for the timer library
  25083. if test x$enable_timers = xyes; then
  25084. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25085. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25086. have_timers=yes
  25087. fi
  25088. # Set up files for the shared object loading library
  25089. if test x$enable_loadso = xyes; then
  25090. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25091. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25092. fi
  25093. # Set up the system libraries we need
  25094. if test -f /lib/w32api/libuuid.a; then
  25095. LIBUUID=/lib/w32api/libuuid.a
  25096. else
  25097. LIBUUID=-luuid
  25098. fi
  25099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25100. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25101. # The Windows platform requires special setup
  25102. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25103. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25104. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25105. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25106. # Check to see if this is a mingw or cygwin build
  25107. have_mingw32=
  25108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25109. printf %s "checking for main in -lmingw32... " >&6; }
  25110. if test ${ac_cv_lib_mingw32_main+y}
  25111. then :
  25112. printf %s "(cached) " >&6
  25113. else $as_nop
  25114. ac_check_lib_save_LIBS=$LIBS
  25115. LIBS="-lmingw32 $LIBS"
  25116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25117. /* end confdefs.h. */
  25118. int
  25119. main (void)
  25120. {
  25121. return main ();
  25122. ;
  25123. return 0;
  25124. }
  25125. _ACEOF
  25126. if ac_fn_c_try_link "$LINENO"
  25127. then :
  25128. ac_cv_lib_mingw32_main=yes
  25129. else $as_nop
  25130. ac_cv_lib_mingw32_main=no
  25131. fi
  25132. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25133. conftest$ac_exeext conftest.$ac_ext
  25134. LIBS=$ac_check_lib_save_LIBS
  25135. fi
  25136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25137. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25138. if test "x$ac_cv_lib_mingw32_main" = xyes
  25139. then :
  25140. have_mingw32=yes
  25141. fi
  25142. if test x$have_mingw32 = xyes; then
  25143. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25144. else
  25145. SDL_LIBS="-lcygwin $SDL_LIBS"
  25146. fi
  25147. ;;
  25148. *-*-beos*)
  25149. as_fn_error $? "
  25150. *** BeOS support has been removed as of SDL 2.0.2.
  25151. " "$LINENO" 5
  25152. ;;
  25153. *-*-haiku*)
  25154. ARCH=haiku
  25155. ac_default_prefix=/boot/system
  25156. CheckDummyVideo
  25157. CheckOffscreenVideo
  25158. CheckDiskAudio
  25159. CheckDummyAudio
  25160. CheckDLOPEN
  25161. CheckO_CLOEXEC
  25162. CheckHaikuVideo
  25163. CheckHaikuGL
  25164. CheckPTHREAD
  25165. # Set up files for the audio library
  25166. if test x$enable_audio = xyes; then
  25167. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25168. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25169. SUMMARY_audio="${SUMMARY_audio} haiku"
  25170. have_audio=yes
  25171. fi
  25172. # Set up files for the joystick library
  25173. if test x$enable_joystick = xyes; then
  25174. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25175. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25176. have_joystick=yes
  25177. fi
  25178. # Set up files for the timer library
  25179. if test x$enable_timers = xyes; then
  25180. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25181. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25182. have_timers=yes
  25183. fi
  25184. # Set up files for the system power library
  25185. if test x$enable_power = xyes; then
  25186. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25187. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25188. have_power=yes
  25189. fi
  25190. # Set up files for the system filesystem library
  25191. if test x$enable_filesystem = xyes; then
  25192. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25193. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25194. have_filesystem=yes
  25195. fi
  25196. # Set up files for the misc library
  25197. if test x$enable_misc = xyes; then
  25198. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25199. have_misc=yes
  25200. fi
  25201. # Set up files for the locale library
  25202. if test x$enable_locale = xyes; then
  25203. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25204. have_locale=yes
  25205. fi
  25206. # The Haiku platform requires special setup.
  25207. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25209. ;;
  25210. *-ios-*)
  25211. ARCH=ios
  25212. CheckVisibilityHidden
  25213. CheckWerror
  25214. CheckNoErrorDeprecatedDeclarationsWerror
  25215. CheckDeclarationAfterStatement
  25216. CheckDummyVideo
  25217. CheckOffscreenVideo
  25218. CheckDiskAudio
  25219. CheckDummyAudio
  25220. CheckDLOPEN
  25221. CheckO_CLOEXEC
  25222. CheckMETAL
  25223. CheckVulkan
  25224. CheckPTHREAD
  25225. # Set up files for the misc library
  25226. if test x$enable_misc = xyes; then
  25227. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25228. have_misc=yes
  25229. fi
  25230. # Set up files for the locale library
  25231. if test x$enable_locale = xyes; then
  25232. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25233. have_locale=yes
  25234. fi
  25235. # Set up files for the audio library
  25236. if test x$enable_audio = xyes; then
  25237. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25238. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25239. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25240. have_audio=yes
  25241. fi
  25242. # Set up files for the joystick library
  25243. if test x$enable_joystick = xyes; then
  25244. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25245. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25246. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25247. have_joystick=yes
  25248. else
  25249. # Need this code for accelerometer as joystick support
  25250. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25251. fi
  25252. # Set up files for the haptic library
  25253. #if test x$enable_haptic = xyes; then
  25254. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25255. # have_haptic=yes
  25256. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25257. #fi
  25258. # Set up files for the sensor library
  25259. if test x$enable_sensor = xyes; then
  25260. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25261. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25262. have_sensor=yes
  25263. fi
  25264. # Set up files for the power library
  25265. if test x$enable_power = xyes; then
  25266. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25267. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25268. have_power=yes
  25269. fi
  25270. # Set up files for the filesystem library
  25271. if test x$enable_filesystem = xyes; then
  25272. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25273. have_filesystem=yes
  25274. fi
  25275. # Set up additional files for the file library
  25276. if test x$enable_file = xyes; then
  25277. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25278. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25279. fi
  25280. # Set up files for the timer library
  25281. if test x$enable_timers = xyes; then
  25282. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25283. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25284. have_timers=yes
  25285. fi
  25286. # Set up other core UNIX files
  25287. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25288. # The iOS platform requires special setup.
  25289. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25290. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25291. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25292. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25293. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25294. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25295. SUMMARY_video="${SUMMARY_video} uikit"
  25296. have_video=yes
  25297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25298. if test x$enable_system_iconv = xyes; then
  25299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25300. fi
  25301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25302. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25308. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25312. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25314. fi
  25315. ;;
  25316. *-*-darwin* )
  25317. # This could be either full "Mac OS X", or plain "Darwin" which is
  25318. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25319. # Next line is broken, and a few files below require Mac OS X (full)
  25320. ARCH=macosx
  25321. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25322. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25323. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25324. CheckObjectiveCARC
  25325. CheckVisibilityHidden
  25326. CheckWerror
  25327. CheckNoErrorDeprecatedDeclarationsWerror
  25328. CheckDeclarationAfterStatement
  25329. CheckDummyVideo
  25330. CheckOffscreenVideo
  25331. CheckDiskAudio
  25332. CheckDummyAudio
  25333. CheckDLOPEN
  25334. CheckO_CLOEXEC
  25335. CheckCOCOA
  25336. CheckMETAL
  25337. CheckX11
  25338. CheckMacGL
  25339. CheckMacGLES
  25340. CheckGLX
  25341. CheckOpenGL
  25342. CheckVulkan
  25343. CheckPTHREAD
  25344. CheckHIDAPI
  25345. # Set up files for the misc library
  25346. if test x$enable_misc = xyes; then
  25347. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25348. have_misc=yes
  25349. fi
  25350. # Set up files for the locale library
  25351. if test x$enable_locale = xyes; then
  25352. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25353. have_locale=yes
  25354. fi
  25355. # Set up files for the audio library
  25356. if test x$enable_audio = xyes; then
  25357. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25358. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25360. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25361. have_audio=yes
  25362. fi
  25363. # Set up files for the joystick library
  25364. if test x$enable_joystick = xyes; then
  25365. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25366. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25367. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25368. CheckJoystickMFI
  25369. have_joystick=yes
  25370. fi
  25371. # Set up files for the haptic library
  25372. if test x$enable_haptic = xyes; then
  25373. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25374. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25375. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25376. have_haptic=yes
  25377. fi
  25378. # Set up files for the power library
  25379. if test x$enable_power = xyes; then
  25380. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25381. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25382. have_power=yes
  25383. fi
  25384. # Set up files for the filesystem library
  25385. if test x$enable_filesystem = xyes; then
  25386. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25387. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25388. have_filesystem=yes
  25389. fi
  25390. # Set up files for the timer library
  25391. if test x$enable_timers = xyes; then
  25392. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25393. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25394. have_timers=yes
  25395. fi
  25396. # Set up additional files for the file library
  25397. if test x$enable_file = xyes; then
  25398. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25399. fi
  25400. # Set up other core UNIX files
  25401. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25402. # The Mac OS X platform requires special setup.
  25403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25408. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25410. fi
  25411. ;;
  25412. *-nacl|*-pnacl)
  25413. ARCH=nacl
  25414. CheckNativeClient
  25415. CheckDummyAudio
  25416. CheckDummyVideo
  25417. CheckOffscreenVideo
  25418. CheckInputEvents
  25419. CheckPTHREAD
  25420. CheckO_CLOEXEC
  25421. # Set up files for the timer library
  25422. if test x$enable_timers = xyes; then
  25423. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25424. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25425. have_timers=yes
  25426. fi
  25427. if test x$enable_filesystem = xyes; then
  25428. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25429. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25430. have_filesystem=yes
  25431. fi
  25432. ;;
  25433. *-*-emscripten* )
  25434. if test x$enable_video = xyes; then
  25435. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25436. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25437. have_video=yes
  25438. SUMMARY_video="${SUMMARY_video} emscripten"
  25439. fi
  25440. if test x$enable_audio = xyes; then
  25441. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25442. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25443. have_audio=yes
  25444. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25445. fi
  25446. CheckVisibilityHidden
  25447. CheckWerror
  25448. CheckDeclarationAfterStatement
  25449. CheckDummyVideo
  25450. CheckOffscreenVideo
  25451. CheckDiskAudio
  25452. CheckDummyAudio
  25453. CheckPTHREAD
  25454. CheckDLOPEN
  25455. CheckClockGettime
  25456. CheckEmscriptenGLES
  25457. # Set up files for the misc library
  25458. if test x$enable_misc = xyes; then
  25459. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25460. have_misc=yes
  25461. fi
  25462. # Set up files for the power library
  25463. if test x$enable_power = xyes; then
  25464. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25465. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25466. have_power=yes
  25467. fi
  25468. # Set up files for the joystick library
  25469. if test x$enable_joystick = xyes; then
  25470. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25471. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25472. have_joystick=yes
  25473. fi
  25474. # Set up files for the filesystem library
  25475. if test x$enable_filesystem = xyes; then
  25476. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25477. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25478. have_filesystem=yes
  25479. fi
  25480. # Set up files for the timer library
  25481. if test x$enable_timers = xyes; then
  25482. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25483. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25484. have_timers=yes
  25485. fi
  25486. # Set up files for the locale library
  25487. if test x$enable_locale = xyes; then
  25488. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25489. have_locale=yes
  25490. fi
  25491. ;;
  25492. *-*-riscos*)
  25493. ARCH=riscos
  25494. CheckVisibilityHidden
  25495. CheckWerror
  25496. CheckDeclarationAfterStatement
  25497. CheckDummyVideo
  25498. CheckOffscreenVideo
  25499. CheckDiskAudio
  25500. CheckDummyAudio
  25501. CheckDLOPEN
  25502. CheckO_CLOEXEC
  25503. CheckOSS
  25504. CheckPTHREAD
  25505. CheckClockGettime
  25506. # Set up files for the misc library
  25507. if test x$enable_misc = xyes; then
  25508. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25509. have_misc=yes
  25510. fi
  25511. # Set up files for the video library
  25512. if test x$enable_video = xyes; then
  25513. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25514. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25515. have_video=yes
  25516. SUMMARY_video="${SUMMARY_video} riscos"
  25517. fi
  25518. # Set up files for the filesystem library
  25519. if test x$enable_filesystem = xyes; then
  25520. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25521. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25522. have_filesystem=yes
  25523. fi
  25524. # Set up files for the timer library
  25525. if test x$enable_timers = xyes; then
  25526. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25527. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25528. have_timers=yes
  25529. fi
  25530. ;;
  25531. *-*-os2*)
  25532. ARCH=os2
  25533. if test "$build" != "$host"; then # cross-compiling
  25534. # Default cross-compile location
  25535. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25536. else
  25537. # Look for the location of the tools and install there
  25538. if test "$BUILD_PREFIX" != ""; then
  25539. ac_default_prefix=$BUILD_PREFIX
  25540. fi
  25541. fi
  25542. enable_static=no # disable static builds
  25543. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25544. CheckOS2
  25545. CheckWerror
  25546. CheckDeclarationAfterStatement
  25547. CheckDummyVideo
  25548. CheckDiskAudio
  25549. CheckDummyAudio
  25550. CheckHIDAPI
  25551. # Set up the core platform files
  25552. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25553. if test x$enable_system_iconv = xyes; then
  25554. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25555. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25556. fi
  25557. fi
  25558. # Use the Unix locale APIs.
  25559. if test x$enable_locale = xyes; then
  25560. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25561. have_locale=yes
  25562. fi
  25563. # Set up files for the video library
  25564. if test x$enable_video = xyes; then
  25565. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25566. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25567. have_video=yes
  25568. SUMMARY_video="${SUMMARY_video} OS/2"
  25569. fi
  25570. # Set up files for the audio library
  25571. if test x$enable_audio = xyes; then
  25572. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25573. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25574. have_audio=yes
  25575. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25576. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25577. fi
  25578. # Set up files for the thread library
  25579. if test x$enable_threads = xyes; then
  25580. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25581. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25582. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25583. have_threads=yes
  25584. fi
  25585. # Set up files for the timer library
  25586. if test x$enable_timers = xyes; then
  25587. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25588. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25589. have_timers=yes
  25590. fi
  25591. # Set up files for the shared object loading library
  25592. if test x$enable_loadso = xyes; then
  25593. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25594. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25595. have_loadso=yes
  25596. fi
  25597. # Set up files for the filesystem library
  25598. if test x$enable_filesystem = xyes; then
  25599. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25600. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25601. have_filesystem=yes
  25602. fi
  25603. # Set up files for the joystick library
  25604. if test x$enable_joystick = xyes; then
  25605. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25606. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25607. have_joystick=yes
  25608. fi
  25609. ;;
  25610. *)
  25611. as_fn_error $? "
  25612. *** Unsupported host: Please add to configure.ac
  25613. " "$LINENO" 5
  25614. ;;
  25615. esac
  25616. CheckVirtualJoystick
  25617. # Check whether to install sdl2-config
  25618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25619. printf %s "checking whether to install sdl2-config... " >&6; }
  25620. # Check whether --enable-sdl2-config was given.
  25621. if test ${enable_sdl2_config+y}
  25622. then :
  25623. enableval=$enable_sdl2_config; case "${enableval}" in
  25624. yes) enable_sdl2_config="TRUE" ;;
  25625. no) enable_sdl2_config="FALSE" ;;
  25626. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25627. esac
  25628. else $as_nop
  25629. enable_sdl2_config="TRUE"
  25630. fi
  25631. if test "$enable_sdl2_config" = "TRUE"; then
  25632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25633. printf "%s\n" "yes" >&6; }
  25634. else
  25635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25636. printf "%s\n" "no" >&6; }
  25637. fi
  25638. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25639. # Check whether --enable-vendor-info was given.
  25640. if test ${enable_vendor_info+y}
  25641. then :
  25642. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25643. else $as_nop
  25644. enable_vendor_info=
  25645. fi
  25646. if test "$enable_vendor_info" = no
  25647. then :
  25648. enable_vendor_info=
  25649. fi
  25650. SDL_VENDOR_INFO=$enable_vendor_info
  25651. # Verify that we have all the platform specific files we need
  25652. if test x$have_audio != xyes; then
  25653. if test x$enable_audio = xyes; then
  25654. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25655. fi
  25656. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25657. fi
  25658. if test x$have_video != xyes; then
  25659. if test x$enable_video = xyes; then
  25660. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25661. fi
  25662. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25663. fi
  25664. if test x$have_misc != xyes; then
  25665. if test x$enable_misc = xyes; then
  25666. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25667. fi
  25668. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25669. fi
  25670. if test x$have_locale != xyes; then
  25671. if test x$enable_locale = xyes; then
  25672. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25673. fi
  25674. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25675. fi
  25676. if test x$have_joystick != xyes; then
  25677. if test x$enable_joystick = xyes; then
  25678. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25679. fi
  25680. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25681. fi
  25682. if test x$have_haptic != xyes; then
  25683. if test x$enable_haptic = xyes; then
  25684. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25685. fi
  25686. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25687. fi
  25688. if test x$have_sensor != xyes; then
  25689. if test x$enable_sensor = xyes; then
  25690. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25691. fi
  25692. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25693. fi
  25694. if test x$have_threads != xyes; then
  25695. if test x$enable_threads = xyes; then
  25696. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25697. fi
  25698. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25699. fi
  25700. if test x$have_timers != xyes; then
  25701. if test x$enable_timers = xyes; then
  25702. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25703. fi
  25704. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25705. fi
  25706. if test x$have_filesystem != xyes; then
  25707. if test x$enable_filesystem = xyes; then
  25708. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25709. fi
  25710. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25711. fi
  25712. if test x$have_loadso != xyes; then
  25713. if test x$enable_loadso = xyes; then
  25714. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25715. fi
  25716. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25717. fi
  25718. if test x$SDLMAIN_SOURCES = x; then
  25719. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25720. fi
  25721. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25722. if test x$video_wayland = xyes; then
  25723. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25724. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25725. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25726. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25727. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25728. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25729. echo ;\
  25730. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25731. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25732. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25733. echo ;\
  25734. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25735. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25736. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25737. echo ;\
  25738. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25739. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25740. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25741. done ;\
  25742. echo ;\
  25743. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25744. fi
  25745. OBJECTS=`echo $SOURCES`
  25746. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25747. for EXT in asm cc m c S; do
  25748. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25749. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25750. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25751. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25752. done
  25753. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25754. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25755. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25756. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25757. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25758. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25759. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25760. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25761. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25762. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25763. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25764. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25765. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25766. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25767. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25768. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25769. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25770. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25771. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25772. # Set runtime shared library paths as needed
  25773. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25774. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25775. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25777. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25778. have_enable_new_dtags=no
  25779. save_LDFLAGS="$LDFLAGS"
  25780. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25782. /* end confdefs.h. */
  25783. int
  25784. main (void)
  25785. {
  25786. ;
  25787. return 0;
  25788. }
  25789. _ACEOF
  25790. if ac_fn_c_try_link "$LINENO"
  25791. then :
  25792. have_enable_new_dtags=yes
  25793. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25794. fi
  25795. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25796. conftest$ac_exeext conftest.$ac_ext
  25797. LDFLAGS="$save_LDFLAGS"
  25798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25799. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25800. fi
  25801. if test $ARCH = solaris; then
  25802. SDL_RLD_FLAGS="-R\${libdir}"
  25803. fi
  25804. else
  25805. SDL_RLD_FLAGS=""
  25806. fi
  25807. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25808. pkg_cmakedir='$libdir/cmake/SDL2'
  25809. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25810. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25811. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25812. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25813. _lcl_receval="$_lcl_from"
  25814. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25815. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25816. _lcl_receval_old=''
  25817. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25818. _lcl_receval_old="$_lcl_receval"
  25819. eval _lcl_receval="\"$_lcl_receval\""
  25820. done
  25821. echo "$_lcl_receval")`
  25822. _lcl_receval="$_lcl_to"
  25823. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25824. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25825. _lcl_receval_old=''
  25826. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25827. _lcl_receval_old="$_lcl_receval"
  25828. eval _lcl_receval="\"$_lcl_receval\""
  25829. done
  25830. echo "$_lcl_receval")`
  25831. _lcl_notation="$_lcl_from$_lcl_to"
  25832. case ":$_lcl_from:" in
  25833. # change empty paths to '.'
  25834. ::) _lcl_from='.' ;;
  25835. # strip trailing slashes
  25836. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25837. :*:) ;;
  25838. esac
  25839. # squeeze repeated slashes
  25840. case '/' in
  25841. # if the path contains any backslashes, turn slashes into backslashes
  25842. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25843. # if the path contains slashes, also turn backslashes into slashes
  25844. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25845. esac
  25846. case ":$_lcl_to:" in
  25847. # change empty paths to '.'
  25848. ::) _lcl_to='.' ;;
  25849. # strip trailing slashes
  25850. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25851. :*:) ;;
  25852. esac
  25853. # squeeze repeated slashes
  25854. case '/' in
  25855. # if the path contains any backslashes, turn slashes into backslashes
  25856. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25857. # if the path contains slashes, also turn backslashes into slashes
  25858. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25859. esac
  25860. _lcl_common_prefix=''
  25861. _lcl_second_prefix_match=''
  25862. while test "$_lcl_second_prefix_match" != 0; do
  25863. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25864. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25865. if test "$_lcl_second_prefix_match" != 0; then
  25866. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25867. _lcl_common_prefix="$_lcl_first_prefix"
  25868. else
  25869. _lcl_second_prefix_match=0
  25870. fi
  25871. fi
  25872. done
  25873. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25874. _lcl_first_rel=''
  25875. _lcl_tmp='xxx'
  25876. while test "$_lcl_tmp" != ''; do
  25877. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25878. if test "$_lcl_first_suffix" != ''; then
  25879. _lcl_first_suffix="$_lcl_tmp"
  25880. _lcl_first_rel="../$_lcl_first_rel"
  25881. fi
  25882. done
  25883. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25884. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25885. case ":$_lcl_result_tmp:" in
  25886. # change empty paths to '.'
  25887. ::) _lcl_result_tmp='.' ;;
  25888. # strip trailing slashes
  25889. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25890. :*:) ;;
  25891. esac
  25892. # squeeze repeated slashes
  25893. case "$_lcl_notation" in
  25894. # if the path contains any backslashes, turn slashes into backslashes
  25895. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25896. # if the path contains slashes, also turn backslashes into slashes
  25897. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25898. esac
  25899. eval $_lcl_result_var='$_lcl_result_tmp'
  25900. done
  25901. PKGCONFIG_DEPENDS=""
  25902. if test x$enable_shared = xyes; then
  25903. PKGCONFIG_LIBS_PRIV="
  25904. Libs.private:"
  25905. ENABLE_SHARED_TRUE=
  25906. ENABLE_SHARED_FALSE="#"
  25907. else
  25908. PKGCONFIG_LIBS_PRIV=
  25909. ENABLE_SHARED_TRUE="#"
  25910. ENABLE_SHARED_FALSE=
  25911. fi
  25912. if test x$enable_static = xyes; then
  25913. ENABLE_STATIC_TRUE=
  25914. ENABLE_STATIC_FALSE="#"
  25915. else
  25916. ENABLE_STATIC_TRUE="#"
  25917. ENABLE_STATIC_FALSE=
  25918. fi
  25919. cat >Makefile.rules <<__EOF__
  25920. # Build rules for objects
  25921. -include \$(OBJECTS:.lo=.d)
  25922. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25923. $srcdir/src/SDL.c: update-revision
  25924. $DEPENDS
  25925. $VERSION_DEPENDS
  25926. $SDLMAIN_DEPENDS
  25927. $SDLTEST_DEPENDS
  25928. $WAYLAND_PROTOCOLS_DEPENDS
  25929. __EOF__
  25930. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25931. ac_config_commands="$ac_config_commands sdl2_config"
  25932. SUMMARY="SDL2 Configure Summary:\n"
  25933. if test x$enable_shared = xyes; then
  25934. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25935. fi
  25936. if test x$enable_static = xyes; then
  25937. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25938. fi
  25939. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25940. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25941. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25942. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25943. if test x$have_x = xyes; then
  25944. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25945. fi
  25946. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25947. if test x$have_joystick_virtual = xyes; then
  25948. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25949. else
  25950. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25951. fi
  25952. if test x$have_samplerate_h_hdr = xyes; then
  25953. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25954. else
  25955. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25956. fi
  25957. if test x$have_libudev_h_hdr = xyes; then
  25958. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25959. else
  25960. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25961. fi
  25962. if test x$have_dbus_dbus_h_hdr = xyes; then
  25963. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25964. else
  25965. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25966. fi
  25967. if test x$enable_ime = xyes; then
  25968. SUMMARY="${SUMMARY}Using ime : YES\n"
  25969. else
  25970. SUMMARY="${SUMMARY}Using ime : NO\n"
  25971. fi
  25972. if test x$have_ibus_ibus_h_hdr = xyes; then
  25973. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25974. else
  25975. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25976. fi
  25977. if test x$have_fcitx = xyes; then
  25978. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25979. else
  25980. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25981. fi
  25982. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25983. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25984. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25985. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25986. SUMMARY="${SUMMARY}configure script with:\n"
  25987. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25988. fi
  25989. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25990. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25991. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25992. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25993. SUMMARY="${SUMMARY}configure script with:\n"
  25994. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25995. fi
  25996. ac_config_commands="$ac_config_commands summary"
  25997. cat >confcache <<\_ACEOF
  25998. # This file is a shell script that caches the results of configure
  25999. # tests run on this system so they can be shared between configure
  26000. # scripts and configure runs, see configure's option --config-cache.
  26001. # It is not useful on other systems. If it contains results you don't
  26002. # want to keep, you may remove or edit it.
  26003. #
  26004. # config.status only pays attention to the cache file if you give it
  26005. # the --recheck option to rerun configure.
  26006. #
  26007. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26008. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26009. # following values.
  26010. _ACEOF
  26011. # The following way of writing the cache mishandles newlines in values,
  26012. # but we know of no workaround that is simple, portable, and efficient.
  26013. # So, we kill variables containing newlines.
  26014. # Ultrix sh set writes to stderr and can't be redirected directly,
  26015. # and sets the high bit in the cache file unless we assign to the vars.
  26016. (
  26017. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26018. eval ac_val=\$$ac_var
  26019. case $ac_val in #(
  26020. *${as_nl}*)
  26021. case $ac_var in #(
  26022. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26023. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26024. esac
  26025. case $ac_var in #(
  26026. _ | IFS | as_nl) ;; #(
  26027. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26028. *) { eval $ac_var=; unset $ac_var;} ;;
  26029. esac ;;
  26030. esac
  26031. done
  26032. (set) 2>&1 |
  26033. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26034. *${as_nl}ac_space=\ *)
  26035. # `set' does not quote correctly, so add quotes: double-quote
  26036. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26037. sed -n \
  26038. "s/'/'\\\\''/g;
  26039. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26040. ;; #(
  26041. *)
  26042. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26043. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26044. ;;
  26045. esac |
  26046. sort
  26047. ) |
  26048. sed '
  26049. /^ac_cv_env_/b end
  26050. t clear
  26051. :clear
  26052. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26053. t end
  26054. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26055. :end' >>confcache
  26056. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26057. if test -w "$cache_file"; then
  26058. if test "x$cache_file" != "x/dev/null"; then
  26059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26060. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26061. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26062. cat confcache >"$cache_file"
  26063. else
  26064. case $cache_file in #(
  26065. */* | ?:*)
  26066. mv -f confcache "$cache_file"$$ &&
  26067. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26068. *)
  26069. mv -f confcache "$cache_file" ;;
  26070. esac
  26071. fi
  26072. fi
  26073. else
  26074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26075. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26076. fi
  26077. fi
  26078. rm -f confcache
  26079. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26080. # Let make expand exec_prefix.
  26081. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26082. DEFS=-DHAVE_CONFIG_H
  26083. ac_libobjs=
  26084. ac_ltlibobjs=
  26085. U=
  26086. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26087. # 1. Remove the extension, and $U if already installed.
  26088. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26089. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26090. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26091. # will be set to the directory where LIBOBJS objects are built.
  26092. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26093. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26094. done
  26095. LIBOBJS=$ac_libobjs
  26096. LTLIBOBJS=$ac_ltlibobjs
  26097. : "${CONFIG_STATUS=./config.status}"
  26098. ac_write_fail=0
  26099. ac_clean_files_save=$ac_clean_files
  26100. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26102. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26103. as_write_fail=0
  26104. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26105. #! $SHELL
  26106. # Generated by $as_me.
  26107. # Run this file to recreate the current configuration.
  26108. # Compiler output produced by configure, useful for debugging
  26109. # configure, is in config.log if it exists.
  26110. debug=false
  26111. ac_cs_recheck=false
  26112. ac_cs_silent=false
  26113. SHELL=\${CONFIG_SHELL-$SHELL}
  26114. export SHELL
  26115. _ASEOF
  26116. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26117. ## -------------------- ##
  26118. ## M4sh Initialization. ##
  26119. ## -------------------- ##
  26120. # Be more Bourne compatible
  26121. DUALCASE=1; export DUALCASE # for MKS sh
  26122. as_nop=:
  26123. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26124. then :
  26125. emulate sh
  26126. NULLCMD=:
  26127. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26128. # is contrary to our usage. Disable this feature.
  26129. alias -g '${1+"$@"}'='"$@"'
  26130. setopt NO_GLOB_SUBST
  26131. else $as_nop
  26132. case `(set -o) 2>/dev/null` in #(
  26133. *posix*) :
  26134. set -o posix ;; #(
  26135. *) :
  26136. ;;
  26137. esac
  26138. fi
  26139. # Reset variables that may have inherited troublesome values from
  26140. # the environment.
  26141. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26142. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26143. # side effect of setting IFS to empty, thus disabling word splitting.)
  26144. # Quoting is to prevent editors from complaining about space-tab.
  26145. as_nl='
  26146. '
  26147. export as_nl
  26148. IFS=" "" $as_nl"
  26149. PS1='$ '
  26150. PS2='> '
  26151. PS4='+ '
  26152. # Ensure predictable behavior from utilities with locale-dependent output.
  26153. LC_ALL=C
  26154. export LC_ALL
  26155. LANGUAGE=C
  26156. export LANGUAGE
  26157. # We cannot yet rely on "unset" to work, but we need these variables
  26158. # to be unset--not just set to an empty or harmless value--now, to
  26159. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26160. # also avoids known problems related to "unset" and subshell syntax
  26161. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26162. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26163. do eval test \${$as_var+y} \
  26164. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26165. done
  26166. # Ensure that fds 0, 1, and 2 are open.
  26167. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26168. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26169. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26170. # The user is always right.
  26171. if ${PATH_SEPARATOR+false} :; then
  26172. PATH_SEPARATOR=:
  26173. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26174. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26175. PATH_SEPARATOR=';'
  26176. }
  26177. fi
  26178. # Find who we are. Look in the path if we contain no directory separator.
  26179. as_myself=
  26180. case $0 in #((
  26181. *[\\/]* ) as_myself=$0 ;;
  26182. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26183. for as_dir in $PATH
  26184. do
  26185. IFS=$as_save_IFS
  26186. case $as_dir in #(((
  26187. '') as_dir=./ ;;
  26188. */) ;;
  26189. *) as_dir=$as_dir/ ;;
  26190. esac
  26191. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26192. done
  26193. IFS=$as_save_IFS
  26194. ;;
  26195. esac
  26196. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26197. # in which case we are not to be found in the path.
  26198. if test "x$as_myself" = x; then
  26199. as_myself=$0
  26200. fi
  26201. if test ! -f "$as_myself"; then
  26202. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26203. exit 1
  26204. fi
  26205. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26206. # ----------------------------------------
  26207. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26208. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26209. # script with STATUS, using 1 if that was 0.
  26210. as_fn_error ()
  26211. {
  26212. as_status=$1; test $as_status -eq 0 && as_status=1
  26213. if test "$4"; then
  26214. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26216. fi
  26217. printf "%s\n" "$as_me: error: $2" >&2
  26218. as_fn_exit $as_status
  26219. } # as_fn_error
  26220. # as_fn_set_status STATUS
  26221. # -----------------------
  26222. # Set $? to STATUS, without forking.
  26223. as_fn_set_status ()
  26224. {
  26225. return $1
  26226. } # as_fn_set_status
  26227. # as_fn_exit STATUS
  26228. # -----------------
  26229. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26230. as_fn_exit ()
  26231. {
  26232. set +e
  26233. as_fn_set_status $1
  26234. exit $1
  26235. } # as_fn_exit
  26236. # as_fn_unset VAR
  26237. # ---------------
  26238. # Portably unset VAR.
  26239. as_fn_unset ()
  26240. {
  26241. { eval $1=; unset $1;}
  26242. }
  26243. as_unset=as_fn_unset
  26244. # as_fn_append VAR VALUE
  26245. # ----------------------
  26246. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26247. # advantage of any shell optimizations that allow amortized linear growth over
  26248. # repeated appends, instead of the typical quadratic growth present in naive
  26249. # implementations.
  26250. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26251. then :
  26252. eval 'as_fn_append ()
  26253. {
  26254. eval $1+=\$2
  26255. }'
  26256. else $as_nop
  26257. as_fn_append ()
  26258. {
  26259. eval $1=\$$1\$2
  26260. }
  26261. fi # as_fn_append
  26262. # as_fn_arith ARG...
  26263. # ------------------
  26264. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26265. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26266. # must be portable across $(()) and expr.
  26267. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26268. then :
  26269. eval 'as_fn_arith ()
  26270. {
  26271. as_val=$(( $* ))
  26272. }'
  26273. else $as_nop
  26274. as_fn_arith ()
  26275. {
  26276. as_val=`expr "$@" || test $? -eq 1`
  26277. }
  26278. fi # as_fn_arith
  26279. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26280. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26281. as_expr=expr
  26282. else
  26283. as_expr=false
  26284. fi
  26285. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26286. as_basename=basename
  26287. else
  26288. as_basename=false
  26289. fi
  26290. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26291. as_dirname=dirname
  26292. else
  26293. as_dirname=false
  26294. fi
  26295. as_me=`$as_basename -- "$0" ||
  26296. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26297. X"$0" : 'X\(//\)$' \| \
  26298. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26299. printf "%s\n" X/"$0" |
  26300. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26301. s//\1/
  26302. q
  26303. }
  26304. /^X\/\(\/\/\)$/{
  26305. s//\1/
  26306. q
  26307. }
  26308. /^X\/\(\/\).*/{
  26309. s//\1/
  26310. q
  26311. }
  26312. s/.*/./; q'`
  26313. # Avoid depending upon Character Ranges.
  26314. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26315. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26316. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26317. as_cr_digits='0123456789'
  26318. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26319. # Determine whether it's possible to make 'echo' print without a newline.
  26320. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26321. # for compatibility with existing Makefiles.
  26322. ECHO_C= ECHO_N= ECHO_T=
  26323. case `echo -n x` in #(((((
  26324. -n*)
  26325. case `echo 'xy\c'` in
  26326. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26327. xy) ECHO_C='\c';;
  26328. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26329. ECHO_T=' ';;
  26330. esac;;
  26331. *)
  26332. ECHO_N='-n';;
  26333. esac
  26334. # For backward compatibility with old third-party macros, we provide
  26335. # the shell variables $as_echo and $as_echo_n. New code should use
  26336. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26337. as_echo='printf %s\n'
  26338. as_echo_n='printf %s'
  26339. rm -f conf$$ conf$$.exe conf$$.file
  26340. if test -d conf$$.dir; then
  26341. rm -f conf$$.dir/conf$$.file
  26342. else
  26343. rm -f conf$$.dir
  26344. mkdir conf$$.dir 2>/dev/null
  26345. fi
  26346. if (echo >conf$$.file) 2>/dev/null; then
  26347. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26348. as_ln_s='ln -s'
  26349. # ... but there are two gotchas:
  26350. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26351. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26352. # In both cases, we have to default to `cp -pR'.
  26353. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26354. as_ln_s='cp -pR'
  26355. elif ln conf$$.file conf$$ 2>/dev/null; then
  26356. as_ln_s=ln
  26357. else
  26358. as_ln_s='cp -pR'
  26359. fi
  26360. else
  26361. as_ln_s='cp -pR'
  26362. fi
  26363. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26364. rmdir conf$$.dir 2>/dev/null
  26365. # as_fn_mkdir_p
  26366. # -------------
  26367. # Create "$as_dir" as a directory, including parents if necessary.
  26368. as_fn_mkdir_p ()
  26369. {
  26370. case $as_dir in #(
  26371. -*) as_dir=./$as_dir;;
  26372. esac
  26373. test -d "$as_dir" || eval $as_mkdir_p || {
  26374. as_dirs=
  26375. while :; do
  26376. case $as_dir in #(
  26377. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26378. *) as_qdir=$as_dir;;
  26379. esac
  26380. as_dirs="'$as_qdir' $as_dirs"
  26381. as_dir=`$as_dirname -- "$as_dir" ||
  26382. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26383. X"$as_dir" : 'X\(//\)[^/]' \| \
  26384. X"$as_dir" : 'X\(//\)$' \| \
  26385. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26386. printf "%s\n" X"$as_dir" |
  26387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26388. s//\1/
  26389. q
  26390. }
  26391. /^X\(\/\/\)[^/].*/{
  26392. s//\1/
  26393. q
  26394. }
  26395. /^X\(\/\/\)$/{
  26396. s//\1/
  26397. q
  26398. }
  26399. /^X\(\/\).*/{
  26400. s//\1/
  26401. q
  26402. }
  26403. s/.*/./; q'`
  26404. test -d "$as_dir" && break
  26405. done
  26406. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26407. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26408. } # as_fn_mkdir_p
  26409. if mkdir -p . 2>/dev/null; then
  26410. as_mkdir_p='mkdir -p "$as_dir"'
  26411. else
  26412. test -d ./-p && rmdir ./-p
  26413. as_mkdir_p=false
  26414. fi
  26415. # as_fn_executable_p FILE
  26416. # -----------------------
  26417. # Test if FILE is an executable regular file.
  26418. as_fn_executable_p ()
  26419. {
  26420. test -f "$1" && test -x "$1"
  26421. } # as_fn_executable_p
  26422. as_test_x='test -x'
  26423. as_executable_p=as_fn_executable_p
  26424. # Sed expression to map a string onto a valid CPP name.
  26425. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26426. # Sed expression to map a string onto a valid variable name.
  26427. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26428. exec 6>&1
  26429. ## ----------------------------------- ##
  26430. ## Main body of $CONFIG_STATUS script. ##
  26431. ## ----------------------------------- ##
  26432. _ASEOF
  26433. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26435. # Save the log message, to keep $0 and so on meaningful, and to
  26436. # report actual input values of CONFIG_FILES etc. instead of their
  26437. # values after options handling.
  26438. ac_log="
  26439. This file was extended by $as_me, which was
  26440. generated by GNU Autoconf 2.71. Invocation command line was
  26441. CONFIG_FILES = $CONFIG_FILES
  26442. CONFIG_HEADERS = $CONFIG_HEADERS
  26443. CONFIG_LINKS = $CONFIG_LINKS
  26444. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26445. $ $0 $@
  26446. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26447. "
  26448. _ACEOF
  26449. case $ac_config_files in *"
  26450. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26451. esac
  26452. case $ac_config_headers in *"
  26453. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26454. esac
  26455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26456. # Files that config.status was made for.
  26457. config_files="$ac_config_files"
  26458. config_headers="$ac_config_headers"
  26459. config_commands="$ac_config_commands"
  26460. _ACEOF
  26461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26462. ac_cs_usage="\
  26463. \`$as_me' instantiates files and other configuration actions
  26464. from templates according to the current configuration. Unless the files
  26465. and actions are specified as TAGs, all are instantiated by default.
  26466. Usage: $0 [OPTION]... [TAG]...
  26467. -h, --help print this help, then exit
  26468. -V, --version print version number and configuration settings, then exit
  26469. --config print configuration, then exit
  26470. -q, --quiet, --silent
  26471. do not print progress messages
  26472. -d, --debug don't remove temporary files
  26473. --recheck update $as_me by reconfiguring in the same conditions
  26474. --file=FILE[:TEMPLATE]
  26475. instantiate the configuration file FILE
  26476. --header=FILE[:TEMPLATE]
  26477. instantiate the configuration header FILE
  26478. Configuration files:
  26479. $config_files
  26480. Configuration headers:
  26481. $config_headers
  26482. Configuration commands:
  26483. $config_commands
  26484. Report bugs to the package provider."
  26485. _ACEOF
  26486. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26487. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26488. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26489. ac_cs_config='$ac_cs_config_escaped'
  26490. ac_cs_version="\\
  26491. config.status
  26492. configured by $0, generated by GNU Autoconf 2.71,
  26493. with options \\"\$ac_cs_config\\"
  26494. Copyright (C) 2021 Free Software Foundation, Inc.
  26495. This config.status script is free software; the Free Software Foundation
  26496. gives unlimited permission to copy, distribute and modify it."
  26497. ac_pwd='$ac_pwd'
  26498. srcdir='$srcdir'
  26499. INSTALL='$INSTALL'
  26500. AWK='$AWK'
  26501. test -n "\$AWK" || AWK=awk
  26502. _ACEOF
  26503. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26504. # The default lists apply if the user does not specify any file.
  26505. ac_need_defaults=:
  26506. while test $# != 0
  26507. do
  26508. case $1 in
  26509. --*=?*)
  26510. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26511. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26512. ac_shift=:
  26513. ;;
  26514. --*=)
  26515. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26516. ac_optarg=
  26517. ac_shift=:
  26518. ;;
  26519. *)
  26520. ac_option=$1
  26521. ac_optarg=$2
  26522. ac_shift=shift
  26523. ;;
  26524. esac
  26525. case $ac_option in
  26526. # Handling of the options.
  26527. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26528. ac_cs_recheck=: ;;
  26529. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26530. printf "%s\n" "$ac_cs_version"; exit ;;
  26531. --config | --confi | --conf | --con | --co | --c )
  26532. printf "%s\n" "$ac_cs_config"; exit ;;
  26533. --debug | --debu | --deb | --de | --d | -d )
  26534. debug=: ;;
  26535. --file | --fil | --fi | --f )
  26536. $ac_shift
  26537. case $ac_optarg in
  26538. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26539. '') as_fn_error $? "missing file argument" ;;
  26540. esac
  26541. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26542. ac_need_defaults=false;;
  26543. --header | --heade | --head | --hea )
  26544. $ac_shift
  26545. case $ac_optarg in
  26546. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26547. esac
  26548. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26549. ac_need_defaults=false;;
  26550. --he | --h)
  26551. # Conflict between --help and --header
  26552. as_fn_error $? "ambiguous option: \`$1'
  26553. Try \`$0 --help' for more information.";;
  26554. --help | --hel | -h )
  26555. printf "%s\n" "$ac_cs_usage"; exit ;;
  26556. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26557. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26558. ac_cs_silent=: ;;
  26559. # This is an error.
  26560. -*) as_fn_error $? "unrecognized option: \`$1'
  26561. Try \`$0 --help' for more information." ;;
  26562. *) as_fn_append ac_config_targets " $1"
  26563. ac_need_defaults=false ;;
  26564. esac
  26565. shift
  26566. done
  26567. ac_configure_extra_args=
  26568. if $ac_cs_silent; then
  26569. exec 6>/dev/null
  26570. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26571. fi
  26572. _ACEOF
  26573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26574. if \$ac_cs_recheck; then
  26575. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26576. shift
  26577. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26578. CONFIG_SHELL='$SHELL'
  26579. export CONFIG_SHELL
  26580. exec "\$@"
  26581. fi
  26582. _ACEOF
  26583. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26584. exec 5>>config.log
  26585. {
  26586. echo
  26587. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26588. ## Running $as_me. ##
  26589. _ASBOX
  26590. printf "%s\n" "$ac_log"
  26591. } >&5
  26592. _ACEOF
  26593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26594. #
  26595. # INIT-COMMANDS
  26596. #
  26597. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26598. # if CDPATH is set.
  26599. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26600. sed_quote_subst='$sed_quote_subst'
  26601. double_quote_subst='$double_quote_subst'
  26602. delay_variable_subst='$delay_variable_subst'
  26603. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26604. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26605. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26606. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26607. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26608. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26609. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26610. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26611. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26612. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26613. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26614. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26615. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26616. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26617. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26618. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26619. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26620. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26621. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26622. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26623. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26624. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26625. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26626. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26627. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26628. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26629. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26630. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26631. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26632. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26633. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26634. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26635. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26636. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26637. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26638. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26639. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26640. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26641. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26642. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26643. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26644. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26645. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26646. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26647. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26648. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26649. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26650. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26651. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26652. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26653. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26654. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26655. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26656. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26657. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26658. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26659. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26660. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26661. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26662. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26663. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26664. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26665. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26666. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26667. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26668. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26669. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26670. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26671. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26672. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26673. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26674. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26675. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26676. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26677. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26678. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26679. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26680. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26681. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26682. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26683. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26684. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26685. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26686. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26687. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26688. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26689. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26690. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26691. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26692. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26693. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26694. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26695. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26696. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26697. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26698. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26699. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26700. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26701. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26702. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26703. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26704. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26705. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26706. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26707. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26708. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26709. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26710. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26711. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26712. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26713. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26714. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26715. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26716. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26717. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26718. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26719. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26720. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26721. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26722. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26723. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26724. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26725. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26726. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26727. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26728. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26729. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26730. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26731. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26732. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26733. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26734. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26735. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26736. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26737. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26738. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26739. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26740. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26741. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26742. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26743. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26744. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26745. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26746. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26747. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26748. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26749. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26750. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26751. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26752. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26753. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26754. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26755. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26756. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26757. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26758. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26759. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26760. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26761. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26762. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26763. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26764. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26765. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26766. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26767. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26768. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26769. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26770. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26771. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26772. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26773. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26774. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26775. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26776. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26777. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26778. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26779. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26780. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26781. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26782. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26783. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26784. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26785. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26786. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26787. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26788. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26789. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26790. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26791. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26792. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26793. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26794. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26795. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26796. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26797. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26798. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26799. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26800. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26801. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26802. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26803. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26804. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26805. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26806. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26807. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26808. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26809. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26810. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26811. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26812. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26813. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26814. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26815. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26816. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26817. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26818. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26819. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26820. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26821. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26822. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26823. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26824. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26825. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26826. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26827. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26828. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26829. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26830. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26831. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26832. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26833. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26834. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26835. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26836. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26837. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26838. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26839. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26840. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26841. LTCC='$LTCC'
  26842. LTCFLAGS='$LTCFLAGS'
  26843. compiler='$compiler_DEFAULT'
  26844. # A function that is used when there is no print builtin or printf.
  26845. func_fallback_echo ()
  26846. {
  26847. eval 'cat <<_LTECHO_EOF
  26848. \$1
  26849. _LTECHO_EOF'
  26850. }
  26851. # Quote evaled strings.
  26852. for var in AS \
  26853. DLLTOOL \
  26854. OBJDUMP \
  26855. SHELL \
  26856. ECHO \
  26857. PATH_SEPARATOR \
  26858. SED \
  26859. GREP \
  26860. EGREP \
  26861. FGREP \
  26862. LD \
  26863. NM \
  26864. LN_S \
  26865. lt_SP2NL \
  26866. lt_NL2SP \
  26867. reload_flag \
  26868. deplibs_check_method \
  26869. file_magic_cmd \
  26870. file_magic_glob \
  26871. want_nocaseglob \
  26872. sharedlib_from_linklib_cmd \
  26873. AR \
  26874. AR_FLAGS \
  26875. archiver_list_spec \
  26876. STRIP \
  26877. RANLIB \
  26878. CC \
  26879. CFLAGS \
  26880. compiler \
  26881. lt_cv_sys_global_symbol_pipe \
  26882. lt_cv_sys_global_symbol_to_cdecl \
  26883. lt_cv_sys_global_symbol_to_import \
  26884. lt_cv_sys_global_symbol_to_c_name_address \
  26885. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26886. lt_cv_nm_interface \
  26887. nm_file_list_spec \
  26888. lt_cv_truncate_bin \
  26889. lt_prog_compiler_no_builtin_flag \
  26890. lt_prog_compiler_pic \
  26891. lt_prog_compiler_wl \
  26892. lt_prog_compiler_static \
  26893. lt_cv_prog_compiler_c_o \
  26894. need_locks \
  26895. MANIFEST_TOOL \
  26896. DSYMUTIL \
  26897. NMEDIT \
  26898. LIPO \
  26899. OTOOL \
  26900. OTOOL64 \
  26901. shrext_cmds \
  26902. export_dynamic_flag_spec \
  26903. whole_archive_flag_spec \
  26904. compiler_needs_object \
  26905. with_gnu_ld \
  26906. allow_undefined_flag \
  26907. no_undefined_flag \
  26908. hardcode_libdir_flag_spec \
  26909. hardcode_libdir_separator \
  26910. exclude_expsyms \
  26911. include_expsyms \
  26912. file_list_spec \
  26913. variables_saved_for_relink \
  26914. libname_spec \
  26915. library_names_spec \
  26916. soname_spec \
  26917. install_override_mode \
  26918. finish_eval \
  26919. old_striplib \
  26920. striplib \
  26921. compiler_lib_search_dirs \
  26922. predep_objects \
  26923. postdep_objects \
  26924. predeps \
  26925. postdeps \
  26926. compiler_lib_search_path \
  26927. LD_RC \
  26928. LD_CXX \
  26929. reload_flag_RC \
  26930. reload_flag_CXX \
  26931. compiler_RC \
  26932. compiler_CXX \
  26933. lt_prog_compiler_no_builtin_flag_RC \
  26934. lt_prog_compiler_no_builtin_flag_CXX \
  26935. lt_prog_compiler_pic_RC \
  26936. lt_prog_compiler_pic_CXX \
  26937. lt_prog_compiler_wl_RC \
  26938. lt_prog_compiler_wl_CXX \
  26939. lt_prog_compiler_static_RC \
  26940. lt_prog_compiler_static_CXX \
  26941. lt_cv_prog_compiler_c_o_RC \
  26942. lt_cv_prog_compiler_c_o_CXX \
  26943. export_dynamic_flag_spec_RC \
  26944. export_dynamic_flag_spec_CXX \
  26945. whole_archive_flag_spec_RC \
  26946. whole_archive_flag_spec_CXX \
  26947. compiler_needs_object_RC \
  26948. compiler_needs_object_CXX \
  26949. with_gnu_ld_RC \
  26950. with_gnu_ld_CXX \
  26951. allow_undefined_flag_RC \
  26952. allow_undefined_flag_CXX \
  26953. no_undefined_flag_RC \
  26954. no_undefined_flag_CXX \
  26955. hardcode_libdir_flag_spec_RC \
  26956. hardcode_libdir_flag_spec_CXX \
  26957. hardcode_libdir_separator_RC \
  26958. hardcode_libdir_separator_CXX \
  26959. exclude_expsyms_RC \
  26960. exclude_expsyms_CXX \
  26961. include_expsyms_RC \
  26962. include_expsyms_CXX \
  26963. file_list_spec_RC \
  26964. file_list_spec_CXX \
  26965. compiler_lib_search_dirs_RC \
  26966. compiler_lib_search_dirs_CXX \
  26967. predep_objects_RC \
  26968. predep_objects_CXX \
  26969. postdep_objects_RC \
  26970. postdep_objects_CXX \
  26971. predeps_RC \
  26972. predeps_CXX \
  26973. postdeps_RC \
  26974. postdeps_CXX \
  26975. compiler_lib_search_path_RC \
  26976. compiler_lib_search_path_CXX; do
  26977. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26978. *[\\\\\\\`\\"\\\$]*)
  26979. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26980. ;;
  26981. *)
  26982. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26983. ;;
  26984. esac
  26985. done
  26986. # Double-quote double-evaled strings.
  26987. for var in reload_cmds \
  26988. old_postinstall_cmds \
  26989. old_postuninstall_cmds \
  26990. old_archive_cmds \
  26991. extract_expsyms_cmds \
  26992. old_archive_from_new_cmds \
  26993. old_archive_from_expsyms_cmds \
  26994. archive_cmds \
  26995. archive_expsym_cmds \
  26996. module_cmds \
  26997. module_expsym_cmds \
  26998. export_symbols_cmds \
  26999. prelink_cmds \
  27000. postlink_cmds \
  27001. postinstall_cmds \
  27002. postuninstall_cmds \
  27003. finish_cmds \
  27004. sys_lib_search_path_spec \
  27005. configure_time_dlsearch_path \
  27006. configure_time_lt_sys_library_path \
  27007. reload_cmds_RC \
  27008. reload_cmds_CXX \
  27009. old_archive_cmds_RC \
  27010. old_archive_cmds_CXX \
  27011. old_archive_from_new_cmds_RC \
  27012. old_archive_from_new_cmds_CXX \
  27013. old_archive_from_expsyms_cmds_RC \
  27014. old_archive_from_expsyms_cmds_CXX \
  27015. archive_cmds_RC \
  27016. archive_cmds_CXX \
  27017. archive_expsym_cmds_RC \
  27018. archive_expsym_cmds_CXX \
  27019. module_cmds_RC \
  27020. module_cmds_CXX \
  27021. module_expsym_cmds_RC \
  27022. module_expsym_cmds_CXX \
  27023. export_symbols_cmds_RC \
  27024. export_symbols_cmds_CXX \
  27025. prelink_cmds_RC \
  27026. prelink_cmds_CXX \
  27027. postlink_cmds_RC \
  27028. postlink_cmds_CXX; do
  27029. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27030. *[\\\\\\\`\\"\\\$]*)
  27031. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27032. ;;
  27033. *)
  27034. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27035. ;;
  27036. esac
  27037. done
  27038. ac_aux_dir='$ac_aux_dir'
  27039. # See if we are running on zsh, and set the options that allow our
  27040. # commands through without removal of \ escapes INIT.
  27041. if test -n "\${ZSH_VERSION+set}"; then
  27042. setopt NO_GLOB_SUBST
  27043. fi
  27044. PACKAGE='$PACKAGE'
  27045. VERSION='$VERSION'
  27046. RM='$RM'
  27047. ofile='$ofile'
  27048. SUMMARY="$SUMMARY"
  27049. _ACEOF
  27050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27051. # Handling of arguments.
  27052. for ac_config_target in $ac_config_targets
  27053. do
  27054. case $ac_config_target in
  27055. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27056. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27057. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27058. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27059. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27060. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27061. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27062. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27063. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27064. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27065. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27066. esac
  27067. done
  27068. # If the user did not use the arguments to specify the items to instantiate,
  27069. # then the envvar interface is used. Set only those that are not.
  27070. # We use the long form for the default assignment because of an extremely
  27071. # bizarre bug on SunOS 4.1.3.
  27072. if $ac_need_defaults; then
  27073. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27074. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27075. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27076. fi
  27077. # Have a temporary directory for convenience. Make it in the build tree
  27078. # simply because there is no reason against having it here, and in addition,
  27079. # creating and moving files from /tmp can sometimes cause problems.
  27080. # Hook for its removal unless debugging.
  27081. # Note that there is a small window in which the directory will not be cleaned:
  27082. # after its creation but before its name has been assigned to `$tmp'.
  27083. $debug ||
  27084. {
  27085. tmp= ac_tmp=
  27086. trap 'exit_status=$?
  27087. : "${ac_tmp:=$tmp}"
  27088. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27089. ' 0
  27090. trap 'as_fn_exit 1' 1 2 13 15
  27091. }
  27092. # Create a (secure) tmp directory for tmp files.
  27093. {
  27094. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27095. test -d "$tmp"
  27096. } ||
  27097. {
  27098. tmp=./conf$$-$RANDOM
  27099. (umask 077 && mkdir "$tmp")
  27100. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27101. ac_tmp=$tmp
  27102. # Set up the scripts for CONFIG_FILES section.
  27103. # No need to generate them if there are no CONFIG_FILES.
  27104. # This happens for instance with `./config.status config.h'.
  27105. if test -n "$CONFIG_FILES"; then
  27106. ac_cr=`echo X | tr X '\015'`
  27107. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27108. # But we know of no other shell where ac_cr would be empty at this
  27109. # point, so we can use a bashism as a fallback.
  27110. if test "x$ac_cr" = x; then
  27111. eval ac_cr=\$\'\\r\'
  27112. fi
  27113. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27114. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27115. ac_cs_awk_cr='\\r'
  27116. else
  27117. ac_cs_awk_cr=$ac_cr
  27118. fi
  27119. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27120. _ACEOF
  27121. {
  27122. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27123. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27124. echo "_ACEOF"
  27125. } >conf$$subs.sh ||
  27126. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27127. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27128. ac_delim='%!_!# '
  27129. for ac_last_try in false false false false false :; do
  27130. . ./conf$$subs.sh ||
  27131. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27132. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27133. if test $ac_delim_n = $ac_delim_num; then
  27134. break
  27135. elif $ac_last_try; then
  27136. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27137. else
  27138. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27139. fi
  27140. done
  27141. rm -f conf$$subs.sh
  27142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27143. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27144. _ACEOF
  27145. sed -n '
  27146. h
  27147. s/^/S["/; s/!.*/"]=/
  27148. p
  27149. g
  27150. s/^[^!]*!//
  27151. :repl
  27152. t repl
  27153. s/'"$ac_delim"'$//
  27154. t delim
  27155. :nl
  27156. h
  27157. s/\(.\{148\}\)..*/\1/
  27158. t more1
  27159. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27160. p
  27161. n
  27162. b repl
  27163. :more1
  27164. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27165. p
  27166. g
  27167. s/.\{148\}//
  27168. t nl
  27169. :delim
  27170. h
  27171. s/\(.\{148\}\)..*/\1/
  27172. t more2
  27173. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27174. p
  27175. b
  27176. :more2
  27177. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27178. p
  27179. g
  27180. s/.\{148\}//
  27181. t delim
  27182. ' <conf$$subs.awk | sed '
  27183. /^[^""]/{
  27184. N
  27185. s/\n//
  27186. }
  27187. ' >>$CONFIG_STATUS || ac_write_fail=1
  27188. rm -f conf$$subs.awk
  27189. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27190. _ACAWK
  27191. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27192. for (key in S) S_is_set[key] = 1
  27193. FS = ""
  27194. }
  27195. {
  27196. line = $ 0
  27197. nfields = split(line, field, "@")
  27198. substed = 0
  27199. len = length(field[1])
  27200. for (i = 2; i < nfields; i++) {
  27201. key = field[i]
  27202. keylen = length(key)
  27203. if (S_is_set[key]) {
  27204. value = S[key]
  27205. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27206. len += length(value) + length(field[++i])
  27207. substed = 1
  27208. } else
  27209. len += 1 + keylen
  27210. }
  27211. print line
  27212. }
  27213. _ACAWK
  27214. _ACEOF
  27215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27216. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27217. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27218. else
  27219. cat
  27220. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27221. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27222. _ACEOF
  27223. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27224. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27225. # trailing colons and then remove the whole line if VPATH becomes empty
  27226. # (actually we leave an empty line to preserve line numbers).
  27227. if test "x$srcdir" = x.; then
  27228. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27229. h
  27230. s///
  27231. s/^/:/
  27232. s/[ ]*$/:/
  27233. s/:\$(srcdir):/:/g
  27234. s/:\${srcdir}:/:/g
  27235. s/:@srcdir@:/:/g
  27236. s/^:*//
  27237. s/:*$//
  27238. x
  27239. s/\(=[ ]*\).*/\1/
  27240. G
  27241. s/\n//
  27242. s/^[^=]*=[ ]*$//
  27243. }'
  27244. fi
  27245. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27246. fi # test -n "$CONFIG_FILES"
  27247. # Set up the scripts for CONFIG_HEADERS section.
  27248. # No need to generate them if there are no CONFIG_HEADERS.
  27249. # This happens for instance with `./config.status Makefile'.
  27250. if test -n "$CONFIG_HEADERS"; then
  27251. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27252. BEGIN {
  27253. _ACEOF
  27254. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27255. # here-document in config.status, that substitutes the proper values into
  27256. # config.h.in to produce config.h.
  27257. # Create a delimiter string that does not exist in confdefs.h, to ease
  27258. # handling of long lines.
  27259. ac_delim='%!_!# '
  27260. for ac_last_try in false false :; do
  27261. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27262. if test -z "$ac_tt"; then
  27263. break
  27264. elif $ac_last_try; then
  27265. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27266. else
  27267. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27268. fi
  27269. done
  27270. # For the awk script, D is an array of macro values keyed by name,
  27271. # likewise P contains macro parameters if any. Preserve backslash
  27272. # newline sequences.
  27273. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27274. sed -n '
  27275. s/.\{148\}/&'"$ac_delim"'/g
  27276. t rset
  27277. :rset
  27278. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27279. t def
  27280. d
  27281. :def
  27282. s/\\$//
  27283. t bsnl
  27284. s/["\\]/\\&/g
  27285. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27286. D["\1"]=" \3"/p
  27287. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27288. d
  27289. :bsnl
  27290. s/["\\]/\\&/g
  27291. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27292. D["\1"]=" \3\\\\\\n"\\/p
  27293. t cont
  27294. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27295. t cont
  27296. d
  27297. :cont
  27298. n
  27299. s/.\{148\}/&'"$ac_delim"'/g
  27300. t clear
  27301. :clear
  27302. s/\\$//
  27303. t bsnlc
  27304. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27305. d
  27306. :bsnlc
  27307. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27308. b cont
  27309. ' <confdefs.h | sed '
  27310. s/'"$ac_delim"'/"\\\
  27311. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27313. for (key in D) D_is_set[key] = 1
  27314. FS = ""
  27315. }
  27316. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27317. line = \$ 0
  27318. split(line, arg, " ")
  27319. if (arg[1] == "#") {
  27320. defundef = arg[2]
  27321. mac1 = arg[3]
  27322. } else {
  27323. defundef = substr(arg[1], 2)
  27324. mac1 = arg[2]
  27325. }
  27326. split(mac1, mac2, "(") #)
  27327. macro = mac2[1]
  27328. prefix = substr(line, 1, index(line, defundef) - 1)
  27329. if (D_is_set[macro]) {
  27330. # Preserve the white space surrounding the "#".
  27331. print prefix "define", macro P[macro] D[macro]
  27332. next
  27333. } else {
  27334. # Replace #undef with comments. This is necessary, for example,
  27335. # in the case of _POSIX_SOURCE, which is predefined and required
  27336. # on some systems where configure will not decide to define it.
  27337. if (defundef == "undef") {
  27338. print "/*", prefix defundef, macro, "*/"
  27339. next
  27340. }
  27341. }
  27342. }
  27343. { print }
  27344. _ACAWK
  27345. _ACEOF
  27346. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27347. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27348. fi # test -n "$CONFIG_HEADERS"
  27349. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27350. shift
  27351. for ac_tag
  27352. do
  27353. case $ac_tag in
  27354. :[FHLC]) ac_mode=$ac_tag; continue;;
  27355. esac
  27356. case $ac_mode$ac_tag in
  27357. :[FHL]*:*);;
  27358. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27359. :[FH]-) ac_tag=-:-;;
  27360. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27361. esac
  27362. ac_save_IFS=$IFS
  27363. IFS=:
  27364. set x $ac_tag
  27365. IFS=$ac_save_IFS
  27366. shift
  27367. ac_file=$1
  27368. shift
  27369. case $ac_mode in
  27370. :L) ac_source=$1;;
  27371. :[FH])
  27372. ac_file_inputs=
  27373. for ac_f
  27374. do
  27375. case $ac_f in
  27376. -) ac_f="$ac_tmp/stdin";;
  27377. *) # Look for the file first in the build tree, then in the source tree
  27378. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27379. # because $ac_f cannot contain `:'.
  27380. test -f "$ac_f" ||
  27381. case $ac_f in
  27382. [\\/$]*) false;;
  27383. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27384. esac ||
  27385. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27386. esac
  27387. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27388. as_fn_append ac_file_inputs " '$ac_f'"
  27389. done
  27390. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27391. # use $as_me), people would be surprised to read:
  27392. # /* config.h. Generated by config.status. */
  27393. configure_input='Generated from '`
  27394. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27395. `' by configure.'
  27396. if test x"$ac_file" != x-; then
  27397. configure_input="$ac_file. $configure_input"
  27398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27399. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27400. fi
  27401. # Neutralize special characters interpreted by sed in replacement strings.
  27402. case $configure_input in #(
  27403. *\&* | *\|* | *\\* )
  27404. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27405. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27406. *) ac_sed_conf_input=$configure_input;;
  27407. esac
  27408. case $ac_tag in
  27409. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27410. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27411. esac
  27412. ;;
  27413. esac
  27414. ac_dir=`$as_dirname -- "$ac_file" ||
  27415. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27416. X"$ac_file" : 'X\(//\)[^/]' \| \
  27417. X"$ac_file" : 'X\(//\)$' \| \
  27418. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27419. printf "%s\n" X"$ac_file" |
  27420. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27421. s//\1/
  27422. q
  27423. }
  27424. /^X\(\/\/\)[^/].*/{
  27425. s//\1/
  27426. q
  27427. }
  27428. /^X\(\/\/\)$/{
  27429. s//\1/
  27430. q
  27431. }
  27432. /^X\(\/\).*/{
  27433. s//\1/
  27434. q
  27435. }
  27436. s/.*/./; q'`
  27437. as_dir="$ac_dir"; as_fn_mkdir_p
  27438. ac_builddir=.
  27439. case "$ac_dir" in
  27440. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27441. *)
  27442. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27443. # A ".." for each directory in $ac_dir_suffix.
  27444. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27445. case $ac_top_builddir_sub in
  27446. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27447. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27448. esac ;;
  27449. esac
  27450. ac_abs_top_builddir=$ac_pwd
  27451. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27452. # for backward compatibility:
  27453. ac_top_builddir=$ac_top_build_prefix
  27454. case $srcdir in
  27455. .) # We are building in place.
  27456. ac_srcdir=.
  27457. ac_top_srcdir=$ac_top_builddir_sub
  27458. ac_abs_top_srcdir=$ac_pwd ;;
  27459. [\\/]* | ?:[\\/]* ) # Absolute name.
  27460. ac_srcdir=$srcdir$ac_dir_suffix;
  27461. ac_top_srcdir=$srcdir
  27462. ac_abs_top_srcdir=$srcdir ;;
  27463. *) # Relative name.
  27464. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27465. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27466. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27467. esac
  27468. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27469. case $ac_mode in
  27470. :F)
  27471. #
  27472. # CONFIG_FILE
  27473. #
  27474. case $INSTALL in
  27475. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27476. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27477. esac
  27478. _ACEOF
  27479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27480. # If the template does not know about datarootdir, expand it.
  27481. # FIXME: This hack should be removed a few years after 2.60.
  27482. ac_datarootdir_hack=; ac_datarootdir_seen=
  27483. ac_sed_dataroot='
  27484. /datarootdir/ {
  27485. p
  27486. q
  27487. }
  27488. /@datadir@/p
  27489. /@docdir@/p
  27490. /@infodir@/p
  27491. /@localedir@/p
  27492. /@mandir@/p'
  27493. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27494. *datarootdir*) ac_datarootdir_seen=yes;;
  27495. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27497. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27498. _ACEOF
  27499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27500. ac_datarootdir_hack='
  27501. s&@datadir@&$datadir&g
  27502. s&@docdir@&$docdir&g
  27503. s&@infodir@&$infodir&g
  27504. s&@localedir@&$localedir&g
  27505. s&@mandir@&$mandir&g
  27506. s&\\\${datarootdir}&$datarootdir&g' ;;
  27507. esac
  27508. _ACEOF
  27509. # Neutralize VPATH when `$srcdir' = `.'.
  27510. # Shell code in configure.ac might set extrasub.
  27511. # FIXME: do we really want to maintain this feature?
  27512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27513. ac_sed_extra="$ac_vpsub
  27514. $extrasub
  27515. _ACEOF
  27516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27517. :t
  27518. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27519. s|@configure_input@|$ac_sed_conf_input|;t t
  27520. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27521. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27522. s&@srcdir@&$ac_srcdir&;t t
  27523. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27524. s&@top_srcdir@&$ac_top_srcdir&;t t
  27525. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27526. s&@builddir@&$ac_builddir&;t t
  27527. s&@abs_builddir@&$ac_abs_builddir&;t t
  27528. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27529. s&@INSTALL@&$ac_INSTALL&;t t
  27530. $ac_datarootdir_hack
  27531. "
  27532. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27533. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27534. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27535. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27536. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27537. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27539. which seems to be undefined. Please make sure it is defined" >&5
  27540. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27541. which seems to be undefined. Please make sure it is defined" >&2;}
  27542. rm -f "$ac_tmp/stdin"
  27543. case $ac_file in
  27544. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27545. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27546. esac \
  27547. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27548. ;;
  27549. :H)
  27550. #
  27551. # CONFIG_HEADER
  27552. #
  27553. if test x"$ac_file" != x-; then
  27554. {
  27555. printf "%s\n" "/* $configure_input */" >&1 \
  27556. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27557. } >"$ac_tmp/config.h" \
  27558. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27559. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27561. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27562. else
  27563. rm -f "$ac_file"
  27564. mv "$ac_tmp/config.h" "$ac_file" \
  27565. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27566. fi
  27567. else
  27568. printf "%s\n" "/* $configure_input */" >&1 \
  27569. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27570. || as_fn_error $? "could not create -" "$LINENO" 5
  27571. fi
  27572. ;;
  27573. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27574. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27575. ;;
  27576. esac
  27577. case $ac_file$ac_mode in
  27578. "libtool":C)
  27579. # See if we are running on zsh, and set the options that allow our
  27580. # commands through without removal of \ escapes.
  27581. if test -n "${ZSH_VERSION+set}"; then
  27582. setopt NO_GLOB_SUBST
  27583. fi
  27584. cfgfile=${ofile}T
  27585. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27586. $RM "$cfgfile"
  27587. cat <<_LT_EOF >> "$cfgfile"
  27588. #! $SHELL
  27589. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27590. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27591. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27592. # Provide generalized library-building support services.
  27593. # Written by Gordon Matzigkeit, 1996
  27594. # Copyright (C) 2014 Free Software Foundation, Inc.
  27595. # This is free software; see the source for copying conditions. There is NO
  27596. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27597. # GNU Libtool is free software; you can redistribute it and/or modify
  27598. # it under the terms of the GNU General Public License as published by
  27599. # the Free Software Foundation; either version 2 of of the License, or
  27600. # (at your option) any later version.
  27601. #
  27602. # As a special exception to the GNU General Public License, if you
  27603. # distribute this file as part of a program or library that is built
  27604. # using GNU Libtool, you may include this file under the same
  27605. # distribution terms that you use for the rest of that program.
  27606. #
  27607. # GNU Libtool is distributed in the hope that it will be useful, but
  27608. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27609. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27610. # GNU General Public License for more details.
  27611. #
  27612. # You should have received a copy of the GNU General Public License
  27613. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27614. # The names of the tagged configurations supported by this script.
  27615. available_tags='RC CXX '
  27616. # Configured defaults for sys_lib_dlsearch_path munging.
  27617. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27618. # ### BEGIN LIBTOOL CONFIG
  27619. # Which release of libtool.m4 was used?
  27620. macro_version=$macro_version
  27621. macro_revision=$macro_revision
  27622. # Assembler program.
  27623. AS=$lt_AS
  27624. # DLL creation program.
  27625. DLLTOOL=$lt_DLLTOOL
  27626. # Object dumper program.
  27627. OBJDUMP=$lt_OBJDUMP
  27628. # Whether or not to build shared libraries.
  27629. build_libtool_libs=$enable_shared
  27630. # Whether or not to build static libraries.
  27631. build_old_libs=$enable_static
  27632. # What type of objects to build.
  27633. pic_mode=$pic_mode
  27634. # Whether or not to optimize for fast installation.
  27635. fast_install=$enable_fast_install
  27636. # Shared archive member basename,for filename based shared library versioning on AIX.
  27637. shared_archive_member_spec=$shared_archive_member_spec
  27638. # Shell to use when invoking shell scripts.
  27639. SHELL=$lt_SHELL
  27640. # An echo program that protects backslashes.
  27641. ECHO=$lt_ECHO
  27642. # The PATH separator for the build system.
  27643. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27644. # The host system.
  27645. host_alias=$host_alias
  27646. host=$host
  27647. host_os=$host_os
  27648. # The build system.
  27649. build_alias=$build_alias
  27650. build=$build
  27651. build_os=$build_os
  27652. # A sed program that does not truncate output.
  27653. SED=$lt_SED
  27654. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27655. Xsed="\$SED -e 1s/^X//"
  27656. # A grep program that handles long lines.
  27657. GREP=$lt_GREP
  27658. # An ERE matcher.
  27659. EGREP=$lt_EGREP
  27660. # A literal string matcher.
  27661. FGREP=$lt_FGREP
  27662. # A BSD- or MS-compatible name lister.
  27663. NM=$lt_NM
  27664. # Whether we need soft or hard links.
  27665. LN_S=$lt_LN_S
  27666. # What is the maximum length of a command?
  27667. max_cmd_len=$max_cmd_len
  27668. # Object file suffix (normally "o").
  27669. objext=$ac_objext
  27670. # Executable file suffix (normally "").
  27671. exeext=$exeext
  27672. # whether the shell understands "unset".
  27673. lt_unset=$lt_unset
  27674. # turn spaces into newlines.
  27675. SP2NL=$lt_lt_SP2NL
  27676. # turn newlines into spaces.
  27677. NL2SP=$lt_lt_NL2SP
  27678. # convert \$build file names to \$host format.
  27679. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27680. # convert \$build files to toolchain format.
  27681. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27682. # Method to check whether dependent libraries are shared objects.
  27683. deplibs_check_method=$lt_deplibs_check_method
  27684. # Command to use when deplibs_check_method = "file_magic".
  27685. file_magic_cmd=$lt_file_magic_cmd
  27686. # How to find potential files when deplibs_check_method = "file_magic".
  27687. file_magic_glob=$lt_file_magic_glob
  27688. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27689. want_nocaseglob=$lt_want_nocaseglob
  27690. # Command to associate shared and link libraries.
  27691. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27692. # The archiver.
  27693. AR=$lt_AR
  27694. # Flags to create an archive.
  27695. AR_FLAGS=$lt_AR_FLAGS
  27696. # How to feed a file listing to the archiver.
  27697. archiver_list_spec=$lt_archiver_list_spec
  27698. # A symbol stripping program.
  27699. STRIP=$lt_STRIP
  27700. # Commands used to install an old-style archive.
  27701. RANLIB=$lt_RANLIB
  27702. old_postinstall_cmds=$lt_old_postinstall_cmds
  27703. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27704. # Whether to use a lock for old archive extraction.
  27705. lock_old_archive_extraction=$lock_old_archive_extraction
  27706. # A C compiler.
  27707. LTCC=$lt_CC
  27708. # LTCC compiler flags.
  27709. LTCFLAGS=$lt_CFLAGS
  27710. # Take the output of nm and produce a listing of raw symbols and C names.
  27711. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27712. # Transform the output of nm in a proper C declaration.
  27713. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27714. # Transform the output of nm into a list of symbols to manually relocate.
  27715. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27716. # Transform the output of nm in a C name address pair.
  27717. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27718. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27719. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27720. # The name lister interface.
  27721. nm_interface=$lt_lt_cv_nm_interface
  27722. # Specify filename containing input files for \$NM.
  27723. nm_file_list_spec=$lt_nm_file_list_spec
  27724. # The root where to search for dependent libraries,and where our libraries should be installed.
  27725. lt_sysroot=$lt_sysroot
  27726. # Command to truncate a binary pipe.
  27727. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27728. # The name of the directory that contains temporary libtool files.
  27729. objdir=$objdir
  27730. # Used to examine libraries when file_magic_cmd begins with "file".
  27731. MAGIC_CMD=$MAGIC_CMD
  27732. # Must we lock files when doing compilation?
  27733. need_locks=$lt_need_locks
  27734. # Manifest tool.
  27735. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27736. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27737. DSYMUTIL=$lt_DSYMUTIL
  27738. # Tool to change global to local symbols on Mac OS X.
  27739. NMEDIT=$lt_NMEDIT
  27740. # Tool to manipulate fat objects and archives on Mac OS X.
  27741. LIPO=$lt_LIPO
  27742. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27743. OTOOL=$lt_OTOOL
  27744. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27745. OTOOL64=$lt_OTOOL64
  27746. # Old archive suffix (normally "a").
  27747. libext=$libext
  27748. # Shared library suffix (normally ".so").
  27749. shrext_cmds=$lt_shrext_cmds
  27750. # The commands to extract the exported symbol list from a shared archive.
  27751. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27752. # Variables whose values should be saved in libtool wrapper scripts and
  27753. # restored at link time.
  27754. variables_saved_for_relink=$lt_variables_saved_for_relink
  27755. # Do we need the "lib" prefix for modules?
  27756. need_lib_prefix=$need_lib_prefix
  27757. # Do we need a version for libraries?
  27758. need_version=$need_version
  27759. # Library versioning type.
  27760. version_type=$version_type
  27761. # Shared library runtime path variable.
  27762. runpath_var=$runpath_var
  27763. # Shared library path variable.
  27764. shlibpath_var=$shlibpath_var
  27765. # Is shlibpath searched before the hard-coded library search path?
  27766. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27767. # Format of library name prefix.
  27768. libname_spec=$lt_libname_spec
  27769. # List of archive names. First name is the real one, the rest are links.
  27770. # The last name is the one that the linker finds with -lNAME
  27771. library_names_spec=$lt_library_names_spec
  27772. # The coded name of the library, if different from the real name.
  27773. soname_spec=$lt_soname_spec
  27774. # Permission mode override for installation of shared libraries.
  27775. install_override_mode=$lt_install_override_mode
  27776. # Command to use after installation of a shared archive.
  27777. postinstall_cmds=$lt_postinstall_cmds
  27778. # Command to use after uninstallation of a shared archive.
  27779. postuninstall_cmds=$lt_postuninstall_cmds
  27780. # Commands used to finish a libtool library installation in a directory.
  27781. finish_cmds=$lt_finish_cmds
  27782. # As "finish_cmds", except a single script fragment to be evaled but
  27783. # not shown.
  27784. finish_eval=$lt_finish_eval
  27785. # Whether we should hardcode library paths into libraries.
  27786. hardcode_into_libs=$hardcode_into_libs
  27787. # Compile-time system search path for libraries.
  27788. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27789. # Detected run-time system search path for libraries.
  27790. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27791. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27792. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27793. # Whether dlopen is supported.
  27794. dlopen_support=$enable_dlopen
  27795. # Whether dlopen of programs is supported.
  27796. dlopen_self=$enable_dlopen_self
  27797. # Whether dlopen of statically linked programs is supported.
  27798. dlopen_self_static=$enable_dlopen_self_static
  27799. # Commands to strip libraries.
  27800. old_striplib=$lt_old_striplib
  27801. striplib=$lt_striplib
  27802. # The linker used to build libraries.
  27803. LD=$lt_LD
  27804. # How to create reloadable object files.
  27805. reload_flag=$lt_reload_flag
  27806. reload_cmds=$lt_reload_cmds
  27807. # Commands used to build an old-style archive.
  27808. old_archive_cmds=$lt_old_archive_cmds
  27809. # A language specific compiler.
  27810. CC=$lt_compiler
  27811. # Is the compiler the GNU compiler?
  27812. with_gcc=$GCC
  27813. # Compiler flag to turn off builtin functions.
  27814. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27815. # Additional compiler flags for building library objects.
  27816. pic_flag=$lt_lt_prog_compiler_pic
  27817. # How to pass a linker flag through the compiler.
  27818. wl=$lt_lt_prog_compiler_wl
  27819. # Compiler flag to prevent dynamic linking.
  27820. link_static_flag=$lt_lt_prog_compiler_static
  27821. # Does compiler simultaneously support -c and -o options?
  27822. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27823. # Whether or not to add -lc for building shared libraries.
  27824. build_libtool_need_lc=$archive_cmds_need_lc
  27825. # Whether or not to disallow shared libs when runtime libs are static.
  27826. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27827. # Compiler flag to allow reflexive dlopens.
  27828. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27829. # Compiler flag to generate shared objects directly from archives.
  27830. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27831. # Whether the compiler copes with passing no objects directly.
  27832. compiler_needs_object=$lt_compiler_needs_object
  27833. # Create an old-style archive from a shared archive.
  27834. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27835. # Create a temporary old-style archive to link instead of a shared archive.
  27836. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27837. # Commands used to build a shared archive.
  27838. archive_cmds=$lt_archive_cmds
  27839. archive_expsym_cmds=$lt_archive_expsym_cmds
  27840. # Commands used to build a loadable module if different from building
  27841. # a shared archive.
  27842. module_cmds=$lt_module_cmds
  27843. module_expsym_cmds=$lt_module_expsym_cmds
  27844. # Whether we are building with GNU ld or not.
  27845. with_gnu_ld=$lt_with_gnu_ld
  27846. # Flag that allows shared libraries with undefined symbols to be built.
  27847. allow_undefined_flag=$lt_allow_undefined_flag
  27848. # Flag that enforces no undefined symbols.
  27849. no_undefined_flag=$lt_no_undefined_flag
  27850. # Flag to hardcode \$libdir into a binary during linking.
  27851. # This must work even if \$libdir does not exist
  27852. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27853. # Whether we need a single "-rpath" flag with a separated argument.
  27854. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27855. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27856. # DIR into the resulting binary.
  27857. hardcode_direct=$hardcode_direct
  27858. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27859. # DIR into the resulting binary and the resulting library dependency is
  27860. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27861. # library is relocated.
  27862. hardcode_direct_absolute=$hardcode_direct_absolute
  27863. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27864. # into the resulting binary.
  27865. hardcode_minus_L=$hardcode_minus_L
  27866. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27867. # into the resulting binary.
  27868. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27869. # Set to "yes" if building a shared library automatically hardcodes DIR
  27870. # into the library and all subsequent libraries and executables linked
  27871. # against it.
  27872. hardcode_automatic=$hardcode_automatic
  27873. # Set to yes if linker adds runtime paths of dependent libraries
  27874. # to runtime path list.
  27875. inherit_rpath=$inherit_rpath
  27876. # Whether libtool must link a program against all its dependency libraries.
  27877. link_all_deplibs=$link_all_deplibs
  27878. # Set to "yes" if exported symbols are required.
  27879. always_export_symbols=$always_export_symbols
  27880. # The commands to list exported symbols.
  27881. export_symbols_cmds=$lt_export_symbols_cmds
  27882. # Symbols that should not be listed in the preloaded symbols.
  27883. exclude_expsyms=$lt_exclude_expsyms
  27884. # Symbols that must always be exported.
  27885. include_expsyms=$lt_include_expsyms
  27886. # Commands necessary for linking programs (against libraries) with templates.
  27887. prelink_cmds=$lt_prelink_cmds
  27888. # Commands necessary for finishing linking programs.
  27889. postlink_cmds=$lt_postlink_cmds
  27890. # Specify filename containing input files.
  27891. file_list_spec=$lt_file_list_spec
  27892. # How to hardcode a shared library path into an executable.
  27893. hardcode_action=$hardcode_action
  27894. # The directories searched by this compiler when creating a shared library.
  27895. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27896. # Dependencies to place before and after the objects being linked to
  27897. # create a shared library.
  27898. predep_objects=$lt_predep_objects
  27899. postdep_objects=$lt_postdep_objects
  27900. predeps=$lt_predeps
  27901. postdeps=$lt_postdeps
  27902. # The library search path used internally by the compiler when linking
  27903. # a shared library.
  27904. compiler_lib_search_path=$lt_compiler_lib_search_path
  27905. # ### END LIBTOOL CONFIG
  27906. _LT_EOF
  27907. cat <<'_LT_EOF' >> "$cfgfile"
  27908. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27909. # func_munge_path_list VARIABLE PATH
  27910. # -----------------------------------
  27911. # VARIABLE is name of variable containing _space_ separated list of
  27912. # directories to be munged by the contents of PATH, which is string
  27913. # having a format:
  27914. # "DIR[:DIR]:"
  27915. # string "DIR[ DIR]" will be prepended to VARIABLE
  27916. # ":DIR[:DIR]"
  27917. # string "DIR[ DIR]" will be appended to VARIABLE
  27918. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27919. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27920. # "DIRA[ DIRA]" will be appended to VARIABLE
  27921. # "DIR[:DIR]"
  27922. # VARIABLE will be replaced by "DIR[ DIR]"
  27923. func_munge_path_list ()
  27924. {
  27925. case x$2 in
  27926. x)
  27927. ;;
  27928. *:)
  27929. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27930. ;;
  27931. x:*)
  27932. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27933. ;;
  27934. *::*)
  27935. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27936. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27937. ;;
  27938. *)
  27939. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27940. ;;
  27941. esac
  27942. }
  27943. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27944. func_cc_basename ()
  27945. {
  27946. for cc_temp in $*""; do
  27947. case $cc_temp in
  27948. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27949. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27950. \-*) ;;
  27951. *) break;;
  27952. esac
  27953. done
  27954. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27955. }
  27956. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27957. _LT_EOF
  27958. case $host_os in
  27959. aix3*)
  27960. cat <<\_LT_EOF >> "$cfgfile"
  27961. # AIX sometimes has problems with the GCC collect2 program. For some
  27962. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27963. # vanish in a puff of smoke.
  27964. if test set != "${COLLECT_NAMES+set}"; then
  27965. COLLECT_NAMES=
  27966. export COLLECT_NAMES
  27967. fi
  27968. _LT_EOF
  27969. ;;
  27970. esac
  27971. ltmain=$ac_aux_dir/ltmain.sh
  27972. # We use sed instead of cat because bash on DJGPP gets confused if
  27973. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27974. # text mode, it properly converts lines to CR/LF. This bash problem
  27975. # is reportedly fixed, but why not run on old versions too?
  27976. sed '$q' "$ltmain" >> "$cfgfile" \
  27977. || (rm -f "$cfgfile"; exit 1)
  27978. mv -f "$cfgfile" "$ofile" ||
  27979. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27980. chmod +x "$ofile"
  27981. cat <<_LT_EOF >> "$ofile"
  27982. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27983. # The linker used to build libraries.
  27984. LD=$lt_LD_RC
  27985. # How to create reloadable object files.
  27986. reload_flag=$lt_reload_flag_RC
  27987. reload_cmds=$lt_reload_cmds_RC
  27988. # Commands used to build an old-style archive.
  27989. old_archive_cmds=$lt_old_archive_cmds_RC
  27990. # A language specific compiler.
  27991. CC=$lt_compiler_RC
  27992. # Is the compiler the GNU compiler?
  27993. with_gcc=$GCC_RC
  27994. # Compiler flag to turn off builtin functions.
  27995. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27996. # Additional compiler flags for building library objects.
  27997. pic_flag=$lt_lt_prog_compiler_pic_RC
  27998. # How to pass a linker flag through the compiler.
  27999. wl=$lt_lt_prog_compiler_wl_RC
  28000. # Compiler flag to prevent dynamic linking.
  28001. link_static_flag=$lt_lt_prog_compiler_static_RC
  28002. # Does compiler simultaneously support -c and -o options?
  28003. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28004. # Whether or not to add -lc for building shared libraries.
  28005. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28006. # Whether or not to disallow shared libs when runtime libs are static.
  28007. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28008. # Compiler flag to allow reflexive dlopens.
  28009. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28010. # Compiler flag to generate shared objects directly from archives.
  28011. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28012. # Whether the compiler copes with passing no objects directly.
  28013. compiler_needs_object=$lt_compiler_needs_object_RC
  28014. # Create an old-style archive from a shared archive.
  28015. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28016. # Create a temporary old-style archive to link instead of a shared archive.
  28017. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28018. # Commands used to build a shared archive.
  28019. archive_cmds=$lt_archive_cmds_RC
  28020. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28021. # Commands used to build a loadable module if different from building
  28022. # a shared archive.
  28023. module_cmds=$lt_module_cmds_RC
  28024. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28025. # Whether we are building with GNU ld or not.
  28026. with_gnu_ld=$lt_with_gnu_ld_RC
  28027. # Flag that allows shared libraries with undefined symbols to be built.
  28028. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28029. # Flag that enforces no undefined symbols.
  28030. no_undefined_flag=$lt_no_undefined_flag_RC
  28031. # Flag to hardcode \$libdir into a binary during linking.
  28032. # This must work even if \$libdir does not exist
  28033. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28034. # Whether we need a single "-rpath" flag with a separated argument.
  28035. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28036. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28037. # DIR into the resulting binary.
  28038. hardcode_direct=$hardcode_direct_RC
  28039. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28040. # DIR into the resulting binary and the resulting library dependency is
  28041. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28042. # library is relocated.
  28043. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28044. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28045. # into the resulting binary.
  28046. hardcode_minus_L=$hardcode_minus_L_RC
  28047. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28048. # into the resulting binary.
  28049. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28050. # Set to "yes" if building a shared library automatically hardcodes DIR
  28051. # into the library and all subsequent libraries and executables linked
  28052. # against it.
  28053. hardcode_automatic=$hardcode_automatic_RC
  28054. # Set to yes if linker adds runtime paths of dependent libraries
  28055. # to runtime path list.
  28056. inherit_rpath=$inherit_rpath_RC
  28057. # Whether libtool must link a program against all its dependency libraries.
  28058. link_all_deplibs=$link_all_deplibs_RC
  28059. # Set to "yes" if exported symbols are required.
  28060. always_export_symbols=$always_export_symbols_RC
  28061. # The commands to list exported symbols.
  28062. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28063. # Symbols that should not be listed in the preloaded symbols.
  28064. exclude_expsyms=$lt_exclude_expsyms_RC
  28065. # Symbols that must always be exported.
  28066. include_expsyms=$lt_include_expsyms_RC
  28067. # Commands necessary for linking programs (against libraries) with templates.
  28068. prelink_cmds=$lt_prelink_cmds_RC
  28069. # Commands necessary for finishing linking programs.
  28070. postlink_cmds=$lt_postlink_cmds_RC
  28071. # Specify filename containing input files.
  28072. file_list_spec=$lt_file_list_spec_RC
  28073. # How to hardcode a shared library path into an executable.
  28074. hardcode_action=$hardcode_action_RC
  28075. # The directories searched by this compiler when creating a shared library.
  28076. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28077. # Dependencies to place before and after the objects being linked to
  28078. # create a shared library.
  28079. predep_objects=$lt_predep_objects_RC
  28080. postdep_objects=$lt_postdep_objects_RC
  28081. predeps=$lt_predeps_RC
  28082. postdeps=$lt_postdeps_RC
  28083. # The library search path used internally by the compiler when linking
  28084. # a shared library.
  28085. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28086. # ### END LIBTOOL TAG CONFIG: RC
  28087. _LT_EOF
  28088. cat <<_LT_EOF >> "$ofile"
  28089. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28090. # The linker used to build libraries.
  28091. LD=$lt_LD_CXX
  28092. # How to create reloadable object files.
  28093. reload_flag=$lt_reload_flag_CXX
  28094. reload_cmds=$lt_reload_cmds_CXX
  28095. # Commands used to build an old-style archive.
  28096. old_archive_cmds=$lt_old_archive_cmds_CXX
  28097. # A language specific compiler.
  28098. CC=$lt_compiler_CXX
  28099. # Is the compiler the GNU compiler?
  28100. with_gcc=$GCC_CXX
  28101. # Compiler flag to turn off builtin functions.
  28102. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28103. # Additional compiler flags for building library objects.
  28104. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28105. # How to pass a linker flag through the compiler.
  28106. wl=$lt_lt_prog_compiler_wl_CXX
  28107. # Compiler flag to prevent dynamic linking.
  28108. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28109. # Does compiler simultaneously support -c and -o options?
  28110. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28111. # Whether or not to add -lc for building shared libraries.
  28112. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28113. # Whether or not to disallow shared libs when runtime libs are static.
  28114. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28115. # Compiler flag to allow reflexive dlopens.
  28116. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28117. # Compiler flag to generate shared objects directly from archives.
  28118. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28119. # Whether the compiler copes with passing no objects directly.
  28120. compiler_needs_object=$lt_compiler_needs_object_CXX
  28121. # Create an old-style archive from a shared archive.
  28122. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28123. # Create a temporary old-style archive to link instead of a shared archive.
  28124. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28125. # Commands used to build a shared archive.
  28126. archive_cmds=$lt_archive_cmds_CXX
  28127. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28128. # Commands used to build a loadable module if different from building
  28129. # a shared archive.
  28130. module_cmds=$lt_module_cmds_CXX
  28131. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28132. # Whether we are building with GNU ld or not.
  28133. with_gnu_ld=$lt_with_gnu_ld_CXX
  28134. # Flag that allows shared libraries with undefined symbols to be built.
  28135. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28136. # Flag that enforces no undefined symbols.
  28137. no_undefined_flag=$lt_no_undefined_flag_CXX
  28138. # Flag to hardcode \$libdir into a binary during linking.
  28139. # This must work even if \$libdir does not exist
  28140. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28141. # Whether we need a single "-rpath" flag with a separated argument.
  28142. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28143. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28144. # DIR into the resulting binary.
  28145. hardcode_direct=$hardcode_direct_CXX
  28146. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28147. # DIR into the resulting binary and the resulting library dependency is
  28148. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28149. # library is relocated.
  28150. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28151. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28152. # into the resulting binary.
  28153. hardcode_minus_L=$hardcode_minus_L_CXX
  28154. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28155. # into the resulting binary.
  28156. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28157. # Set to "yes" if building a shared library automatically hardcodes DIR
  28158. # into the library and all subsequent libraries and executables linked
  28159. # against it.
  28160. hardcode_automatic=$hardcode_automatic_CXX
  28161. # Set to yes if linker adds runtime paths of dependent libraries
  28162. # to runtime path list.
  28163. inherit_rpath=$inherit_rpath_CXX
  28164. # Whether libtool must link a program against all its dependency libraries.
  28165. link_all_deplibs=$link_all_deplibs_CXX
  28166. # Set to "yes" if exported symbols are required.
  28167. always_export_symbols=$always_export_symbols_CXX
  28168. # The commands to list exported symbols.
  28169. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28170. # Symbols that should not be listed in the preloaded symbols.
  28171. exclude_expsyms=$lt_exclude_expsyms_CXX
  28172. # Symbols that must always be exported.
  28173. include_expsyms=$lt_include_expsyms_CXX
  28174. # Commands necessary for linking programs (against libraries) with templates.
  28175. prelink_cmds=$lt_prelink_cmds_CXX
  28176. # Commands necessary for finishing linking programs.
  28177. postlink_cmds=$lt_postlink_cmds_CXX
  28178. # Specify filename containing input files.
  28179. file_list_spec=$lt_file_list_spec_CXX
  28180. # How to hardcode a shared library path into an executable.
  28181. hardcode_action=$hardcode_action_CXX
  28182. # The directories searched by this compiler when creating a shared library.
  28183. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28184. # Dependencies to place before and after the objects being linked to
  28185. # create a shared library.
  28186. predep_objects=$lt_predep_objects_CXX
  28187. postdep_objects=$lt_postdep_objects_CXX
  28188. predeps=$lt_predeps_CXX
  28189. postdeps=$lt_postdeps_CXX
  28190. # The library search path used internally by the compiler when linking
  28191. # a shared library.
  28192. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28193. # ### END LIBTOOL TAG CONFIG: CXX
  28194. _LT_EOF
  28195. ;;
  28196. "sdl2_config":C) chmod a+x sdl2-config ;;
  28197. "summary":C) printf "$SUMMARY" ;;
  28198. esac
  28199. done # for ac_tag
  28200. as_fn_exit 0
  28201. _ACEOF
  28202. ac_clean_files=$ac_clean_files_save
  28203. test $ac_write_fail = 0 ||
  28204. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28205. # configure is writing to config.log, and then calls config.status.
  28206. # config.status does its own redirection, appending to config.log.
  28207. # Unfortunately, on DOS this fails, as config.log is still kept open
  28208. # by configure, so config.status won't be able to write to it; its
  28209. # output is simply discarded. So we exec the FD to /dev/null,
  28210. # effectively closing config.log, so it can be properly (re)opened and
  28211. # appended to by config.status. When coming back to configure, we
  28212. # need to make the FD available again.
  28213. if test "$no_create" != yes; then
  28214. ac_cs_success=:
  28215. ac_config_status_args=
  28216. test "$silent" = yes &&
  28217. ac_config_status_args="$ac_config_status_args --quiet"
  28218. exec 5>/dev/null
  28219. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28220. exec 5>>config.log
  28221. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28222. # would make configure fail if this is the last instruction.
  28223. $ac_cs_success || as_fn_exit 1
  28224. fi
  28225. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28227. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28228. fi