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

28002 lines
817 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. WINDRES
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_video_wayland
  804. enable_video_wayland_qt_touch
  805. enable_wayland_shared
  806. enable_video_rpi
  807. enable_video_x11
  808. with_x
  809. enable_x11_shared
  810. enable_video_x11_xcursor
  811. enable_video_x11_xdbe
  812. enable_video_x11_xinerama
  813. enable_video_x11_xinput
  814. enable_video_x11_xrandr
  815. enable_video_x11_scrnsaver
  816. enable_video_x11_xshape
  817. enable_video_x11_vm
  818. enable_video_vivante
  819. enable_video_cocoa
  820. enable_render_metal
  821. enable_video_directfb
  822. enable_directfb_shared
  823. enable_video_kmsdrm
  824. enable_kmsdrm_shared
  825. enable_video_dummy
  826. enable_video_opengl
  827. enable_video_opengles
  828. enable_video_opengles1
  829. enable_video_opengles2
  830. enable_video_vulkan
  831. enable_libudev
  832. enable_dbus
  833. enable_ime
  834. enable_ibus
  835. enable_fcitx
  836. enable_input_tslib
  837. enable_pthreads
  838. enable_pthread_sem
  839. enable_directx
  840. enable_wasapi
  841. enable_sdl_dlopen
  842. enable_hidapi
  843. enable_clock_gettime
  844. enable_rpath
  845. enable_backgrounding_signal
  846. enable_foregrounding_signal
  847. enable_render_d3d
  848. enable_sdl2_config
  849. '
  850. ac_precious_vars='build_alias
  851. host_alias
  852. target_alias
  853. CC
  854. CFLAGS
  855. LDFLAGS
  856. LIBS
  857. CPPFLAGS
  858. CPP
  859. CXX
  860. CXXFLAGS
  861. CCC
  862. CXXCPP
  863. PKG_CONFIG
  864. PKG_CONFIG_PATH
  865. PKG_CONFIG_LIBDIR
  866. JACK_CFLAGS
  867. JACK_LIBS
  868. PULSEAUDIO_CFLAGS
  869. PULSEAUDIO_LIBS
  870. FUSIONSOUND_CFLAGS
  871. FUSIONSOUND_LIBS
  872. RPI_CFLAGS
  873. RPI_LIBS
  874. XMKMF
  875. DIRECTFB_CFLAGS
  876. DIRECTFB_LIBS
  877. LIBDRM_CFLAGS
  878. LIBDRM_LIBS
  879. LIBGBM_CFLAGS
  880. LIBGBM_LIBS
  881. DBUS_CFLAGS
  882. DBUS_LIBS
  883. IBUS_CFLAGS
  884. IBUS_LIBS
  885. FCITX_CFLAGS
  886. FCITX_LIBS
  887. LIBUSB_CFLAGS
  888. LIBUSB_LIBS'
  889. # Initialize some variables set by options.
  890. ac_init_help=
  891. ac_init_version=false
  892. ac_unrecognized_opts=
  893. ac_unrecognized_sep=
  894. # The variables have the same names as the options, with
  895. # dashes changed to underlines.
  896. cache_file=/dev/null
  897. exec_prefix=NONE
  898. no_create=
  899. no_recursion=
  900. prefix=NONE
  901. program_prefix=NONE
  902. program_suffix=NONE
  903. program_transform_name=s,x,x,
  904. silent=
  905. site=
  906. srcdir=
  907. verbose=
  908. x_includes=NONE
  909. x_libraries=NONE
  910. # Installation directory options.
  911. # These are left unexpanded so users can "make install exec_prefix=/foo"
  912. # and all the variables that are supposed to be based on exec_prefix
  913. # by default will actually change.
  914. # Use braces instead of parens because sh, perl, etc. also accept them.
  915. # (The list follows the same order as the GNU Coding Standards.)
  916. bindir='${exec_prefix}/bin'
  917. sbindir='${exec_prefix}/sbin'
  918. libexecdir='${exec_prefix}/libexec'
  919. datarootdir='${prefix}/share'
  920. datadir='${datarootdir}'
  921. sysconfdir='${prefix}/etc'
  922. sharedstatedir='${prefix}/com'
  923. localstatedir='${prefix}/var'
  924. includedir='${prefix}/include'
  925. oldincludedir='/usr/include'
  926. docdir='${datarootdir}/doc/${PACKAGE}'
  927. infodir='${datarootdir}/info'
  928. htmldir='${docdir}'
  929. dvidir='${docdir}'
  930. pdfdir='${docdir}'
  931. psdir='${docdir}'
  932. libdir='${exec_prefix}/lib'
  933. localedir='${datarootdir}/locale'
  934. mandir='${datarootdir}/man'
  935. ac_prev=
  936. ac_dashdash=
  937. for ac_option
  938. do
  939. # If the previous option needs an argument, assign it.
  940. if test -n "$ac_prev"; then
  941. eval $ac_prev=\$ac_option
  942. ac_prev=
  943. continue
  944. fi
  945. case $ac_option in
  946. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  947. *=) ac_optarg= ;;
  948. *) ac_optarg=yes ;;
  949. esac
  950. # Accept the important Cygnus configure options, so we can diagnose typos.
  951. case $ac_dashdash$ac_option in
  952. --)
  953. ac_dashdash=yes ;;
  954. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  955. ac_prev=bindir ;;
  956. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  957. bindir=$ac_optarg ;;
  958. -build | --build | --buil | --bui | --bu)
  959. ac_prev=build_alias ;;
  960. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  961. build_alias=$ac_optarg ;;
  962. -cache-file | --cache-file | --cache-fil | --cache-fi \
  963. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  964. ac_prev=cache_file ;;
  965. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  966. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  967. cache_file=$ac_optarg ;;
  968. --config-cache | -C)
  969. cache_file=config.cache ;;
  970. -datadir | --datadir | --datadi | --datad)
  971. ac_prev=datadir ;;
  972. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  973. datadir=$ac_optarg ;;
  974. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  975. | --dataroo | --dataro | --datar)
  976. ac_prev=datarootdir ;;
  977. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  978. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  979. datarootdir=$ac_optarg ;;
  980. -disable-* | --disable-*)
  981. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  982. # Reject names that are not valid shell variable names.
  983. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  984. as_fn_error $? "invalid feature name: $ac_useropt"
  985. ac_useropt_orig=$ac_useropt
  986. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  987. case $ac_user_opts in
  988. *"
  989. "enable_$ac_useropt"
  990. "*) ;;
  991. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  992. ac_unrecognized_sep=', ';;
  993. esac
  994. eval enable_$ac_useropt=no ;;
  995. -docdir | --docdir | --docdi | --doc | --do)
  996. ac_prev=docdir ;;
  997. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  998. docdir=$ac_optarg ;;
  999. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1000. ac_prev=dvidir ;;
  1001. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1002. dvidir=$ac_optarg ;;
  1003. -enable-* | --enable-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid feature name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "enable_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval enable_$ac_useropt=\$ac_optarg ;;
  1018. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1019. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1020. | --exec | --exe | --ex)
  1021. ac_prev=exec_prefix ;;
  1022. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1023. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1024. | --exec=* | --exe=* | --ex=*)
  1025. exec_prefix=$ac_optarg ;;
  1026. -gas | --gas | --ga | --g)
  1027. # Obsolete; use --with-gas.
  1028. with_gas=yes ;;
  1029. -help | --help | --hel | --he | -h)
  1030. ac_init_help=long ;;
  1031. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1032. ac_init_help=recursive ;;
  1033. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1034. ac_init_help=short ;;
  1035. -host | --host | --hos | --ho)
  1036. ac_prev=host_alias ;;
  1037. -host=* | --host=* | --hos=* | --ho=*)
  1038. host_alias=$ac_optarg ;;
  1039. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1040. ac_prev=htmldir ;;
  1041. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1042. | --ht=*)
  1043. htmldir=$ac_optarg ;;
  1044. -includedir | --includedir | --includedi | --included | --include \
  1045. | --includ | --inclu | --incl | --inc)
  1046. ac_prev=includedir ;;
  1047. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1048. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1049. includedir=$ac_optarg ;;
  1050. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1051. ac_prev=infodir ;;
  1052. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1053. infodir=$ac_optarg ;;
  1054. -libdir | --libdir | --libdi | --libd)
  1055. ac_prev=libdir ;;
  1056. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1057. libdir=$ac_optarg ;;
  1058. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1059. | --libexe | --libex | --libe)
  1060. ac_prev=libexecdir ;;
  1061. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1062. | --libexe=* | --libex=* | --libe=*)
  1063. libexecdir=$ac_optarg ;;
  1064. -localedir | --localedir | --localedi | --localed | --locale)
  1065. ac_prev=localedir ;;
  1066. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1067. localedir=$ac_optarg ;;
  1068. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1069. | --localstate | --localstat | --localsta | --localst | --locals)
  1070. ac_prev=localstatedir ;;
  1071. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1072. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1073. localstatedir=$ac_optarg ;;
  1074. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1075. ac_prev=mandir ;;
  1076. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1077. mandir=$ac_optarg ;;
  1078. -nfp | --nfp | --nf)
  1079. # Obsolete; use --without-fp.
  1080. with_fp=no ;;
  1081. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1082. | --no-cr | --no-c | -n)
  1083. no_create=yes ;;
  1084. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1085. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1086. no_recursion=yes ;;
  1087. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1088. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1089. | --oldin | --oldi | --old | --ol | --o)
  1090. ac_prev=oldincludedir ;;
  1091. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1092. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1093. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1094. oldincludedir=$ac_optarg ;;
  1095. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1096. ac_prev=prefix ;;
  1097. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1098. prefix=$ac_optarg ;;
  1099. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1100. | --program-pre | --program-pr | --program-p)
  1101. ac_prev=program_prefix ;;
  1102. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1103. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1104. program_prefix=$ac_optarg ;;
  1105. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1106. | --program-suf | --program-su | --program-s)
  1107. ac_prev=program_suffix ;;
  1108. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1109. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1110. program_suffix=$ac_optarg ;;
  1111. -program-transform-name | --program-transform-name \
  1112. | --program-transform-nam | --program-transform-na \
  1113. | --program-transform-n | --program-transform- \
  1114. | --program-transform | --program-transfor \
  1115. | --program-transfo | --program-transf \
  1116. | --program-trans | --program-tran \
  1117. | --progr-tra | --program-tr | --program-t)
  1118. ac_prev=program_transform_name ;;
  1119. -program-transform-name=* | --program-transform-name=* \
  1120. | --program-transform-nam=* | --program-transform-na=* \
  1121. | --program-transform-n=* | --program-transform-=* \
  1122. | --program-transform=* | --program-transfor=* \
  1123. | --program-transfo=* | --program-transf=* \
  1124. | --program-trans=* | --program-tran=* \
  1125. | --progr-tra=* | --program-tr=* | --program-t=*)
  1126. program_transform_name=$ac_optarg ;;
  1127. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1128. ac_prev=pdfdir ;;
  1129. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1130. pdfdir=$ac_optarg ;;
  1131. -psdir | --psdir | --psdi | --psd | --ps)
  1132. ac_prev=psdir ;;
  1133. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1134. psdir=$ac_optarg ;;
  1135. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1136. | -silent | --silent | --silen | --sile | --sil)
  1137. silent=yes ;;
  1138. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1139. ac_prev=sbindir ;;
  1140. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1141. | --sbi=* | --sb=*)
  1142. sbindir=$ac_optarg ;;
  1143. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1144. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1145. | --sharedst | --shareds | --shared | --share | --shar \
  1146. | --sha | --sh)
  1147. ac_prev=sharedstatedir ;;
  1148. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1149. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1150. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1151. | --sha=* | --sh=*)
  1152. sharedstatedir=$ac_optarg ;;
  1153. -site | --site | --sit)
  1154. ac_prev=site ;;
  1155. -site=* | --site=* | --sit=*)
  1156. site=$ac_optarg ;;
  1157. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1158. ac_prev=srcdir ;;
  1159. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1160. srcdir=$ac_optarg ;;
  1161. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1162. | --syscon | --sysco | --sysc | --sys | --sy)
  1163. ac_prev=sysconfdir ;;
  1164. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1165. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1166. sysconfdir=$ac_optarg ;;
  1167. -target | --target | --targe | --targ | --tar | --ta | --t)
  1168. ac_prev=target_alias ;;
  1169. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1170. target_alias=$ac_optarg ;;
  1171. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1172. verbose=yes ;;
  1173. -version | --version | --versio | --versi | --vers | -V)
  1174. ac_init_version=: ;;
  1175. -with-* | --with-*)
  1176. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1177. # Reject names that are not valid shell variable names.
  1178. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1179. as_fn_error $? "invalid package name: $ac_useropt"
  1180. ac_useropt_orig=$ac_useropt
  1181. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1182. case $ac_user_opts in
  1183. *"
  1184. "with_$ac_useropt"
  1185. "*) ;;
  1186. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1187. ac_unrecognized_sep=', ';;
  1188. esac
  1189. eval with_$ac_useropt=\$ac_optarg ;;
  1190. -without-* | --without-*)
  1191. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1192. # Reject names that are not valid shell variable names.
  1193. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1194. as_fn_error $? "invalid package name: $ac_useropt"
  1195. ac_useropt_orig=$ac_useropt
  1196. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1197. case $ac_user_opts in
  1198. *"
  1199. "with_$ac_useropt"
  1200. "*) ;;
  1201. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1202. ac_unrecognized_sep=', ';;
  1203. esac
  1204. eval with_$ac_useropt=no ;;
  1205. --x)
  1206. # Obsolete; use --with-x.
  1207. with_x=yes ;;
  1208. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1209. | --x-incl | --x-inc | --x-in | --x-i)
  1210. ac_prev=x_includes ;;
  1211. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1212. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1213. x_includes=$ac_optarg ;;
  1214. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1215. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1216. ac_prev=x_libraries ;;
  1217. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1218. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1219. x_libraries=$ac_optarg ;;
  1220. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1221. Try \`$0 --help' for more information"
  1222. ;;
  1223. *=*)
  1224. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1225. # Reject names that are not valid shell variable names.
  1226. case $ac_envvar in #(
  1227. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1228. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1229. esac
  1230. eval $ac_envvar=\$ac_optarg
  1231. export $ac_envvar ;;
  1232. *)
  1233. # FIXME: should be removed in autoconf 3.0.
  1234. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1235. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1236. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1237. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1238. ;;
  1239. esac
  1240. done
  1241. if test -n "$ac_prev"; then
  1242. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1243. as_fn_error $? "missing argument to $ac_option"
  1244. fi
  1245. if test -n "$ac_unrecognized_opts"; then
  1246. case $enable_option_checking in
  1247. no) ;;
  1248. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1249. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1250. esac
  1251. fi
  1252. # Check all directory arguments for consistency.
  1253. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1254. datadir sysconfdir sharedstatedir localstatedir includedir \
  1255. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1256. libdir localedir mandir
  1257. do
  1258. eval ac_val=\$$ac_var
  1259. # Remove trailing slashes.
  1260. case $ac_val in
  1261. */ )
  1262. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1263. eval $ac_var=\$ac_val;;
  1264. esac
  1265. # Be sure to have absolute directory names.
  1266. case $ac_val in
  1267. [\\/$]* | ?:[\\/]* ) continue;;
  1268. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1269. esac
  1270. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1271. done
  1272. # There might be people who depend on the old broken behavior: `$host'
  1273. # used to hold the argument of --host etc.
  1274. # FIXME: To remove some day.
  1275. build=$build_alias
  1276. host=$host_alias
  1277. target=$target_alias
  1278. # FIXME: To remove some day.
  1279. if test "x$host_alias" != x; then
  1280. if test "x$build_alias" = x; then
  1281. cross_compiling=maybe
  1282. elif test "x$build_alias" != "x$host_alias"; then
  1283. cross_compiling=yes
  1284. fi
  1285. fi
  1286. ac_tool_prefix=
  1287. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1288. test "$silent" = yes && exec 6>/dev/null
  1289. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1290. ac_ls_di=`ls -di .` &&
  1291. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1292. as_fn_error $? "working directory cannot be determined"
  1293. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1294. as_fn_error $? "pwd does not report name of working directory"
  1295. # Find the source files, if location was not specified.
  1296. if test -z "$srcdir"; then
  1297. ac_srcdir_defaulted=yes
  1298. # Try the directory containing this script, then the parent directory.
  1299. ac_confdir=`$as_dirname -- "$as_myself" ||
  1300. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1301. X"$as_myself" : 'X\(//\)[^/]' \| \
  1302. X"$as_myself" : 'X\(//\)$' \| \
  1303. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1304. $as_echo X"$as_myself" |
  1305. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1306. s//\1/
  1307. q
  1308. }
  1309. /^X\(\/\/\)[^/].*/{
  1310. s//\1/
  1311. q
  1312. }
  1313. /^X\(\/\/\)$/{
  1314. s//\1/
  1315. q
  1316. }
  1317. /^X\(\/\).*/{
  1318. s//\1/
  1319. q
  1320. }
  1321. s/.*/./; q'`
  1322. srcdir=$ac_confdir
  1323. if test ! -r "$srcdir/$ac_unique_file"; then
  1324. srcdir=..
  1325. fi
  1326. else
  1327. ac_srcdir_defaulted=no
  1328. fi
  1329. if test ! -r "$srcdir/$ac_unique_file"; then
  1330. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1331. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1332. fi
  1333. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1334. ac_abs_confdir=`(
  1335. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1336. pwd)`
  1337. # When building in place, set srcdir=.
  1338. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1339. srcdir=.
  1340. fi
  1341. # Remove unnecessary trailing slashes from srcdir.
  1342. # Double slashes in file names in object file debugging info
  1343. # mess up M-x gdb in Emacs.
  1344. case $srcdir in
  1345. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1346. esac
  1347. for ac_var in $ac_precious_vars; do
  1348. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1349. eval ac_env_${ac_var}_value=\$${ac_var}
  1350. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1351. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1352. done
  1353. #
  1354. # Report the --help message.
  1355. #
  1356. if test "$ac_init_help" = "long"; then
  1357. # Omit some internal or obsolete options to make the list less imposing.
  1358. # This message is too long to be a string in the A/UX 3.1 sh.
  1359. cat <<_ACEOF
  1360. \`configure' configures this package to adapt to many kinds of systems.
  1361. Usage: $0 [OPTION]... [VAR=VALUE]...
  1362. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1363. VAR=VALUE. See below for descriptions of some of the useful variables.
  1364. Defaults for the options are specified in brackets.
  1365. Configuration:
  1366. -h, --help display this help and exit
  1367. --help=short display options specific to this package
  1368. --help=recursive display the short help of all the included packages
  1369. -V, --version display version information and exit
  1370. -q, --quiet, --silent do not print \`checking ...' messages
  1371. --cache-file=FILE cache test results in FILE [disabled]
  1372. -C, --config-cache alias for \`--cache-file=config.cache'
  1373. -n, --no-create do not create output files
  1374. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1375. Installation directories:
  1376. --prefix=PREFIX install architecture-independent files in PREFIX
  1377. [$ac_default_prefix]
  1378. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1379. [PREFIX]
  1380. By default, \`make install' will install all the files in
  1381. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1382. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1383. for instance \`--prefix=\$HOME'.
  1384. For better control, use the options below.
  1385. Fine tuning of the installation directories:
  1386. --bindir=DIR user executables [EPREFIX/bin]
  1387. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1388. --libexecdir=DIR program executables [EPREFIX/libexec]
  1389. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1390. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1391. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1392. --libdir=DIR object code libraries [EPREFIX/lib]
  1393. --includedir=DIR C header files [PREFIX/include]
  1394. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1395. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1396. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1397. --infodir=DIR info documentation [DATAROOTDIR/info]
  1398. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1399. --mandir=DIR man documentation [DATAROOTDIR/man]
  1400. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1401. --htmldir=DIR html documentation [DOCDIR]
  1402. --dvidir=DIR dvi documentation [DOCDIR]
  1403. --pdfdir=DIR pdf documentation [DOCDIR]
  1404. --psdir=DIR ps documentation [DOCDIR]
  1405. _ACEOF
  1406. cat <<\_ACEOF
  1407. X features:
  1408. --x-includes=DIR X include files are in DIR
  1409. --x-libraries=DIR X library files are in DIR
  1410. System types:
  1411. --build=BUILD configure for building on BUILD [guessed]
  1412. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1413. _ACEOF
  1414. fi
  1415. if test -n "$ac_init_help"; then
  1416. cat <<\_ACEOF
  1417. Optional Features:
  1418. --disable-option-checking ignore unrecognized --enable/--with options
  1419. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1420. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1421. --enable-shared[=PKGS] build shared libraries [default=yes]
  1422. --enable-static[=PKGS] build static libraries [default=yes]
  1423. --enable-fast-install[=PKGS]
  1424. optimize for fast installation [default=yes]
  1425. --disable-libtool-lock avoid locking (might break parallel builds)
  1426. --enable-assertions Enable internal sanity checks
  1427. (auto/disabled/release/enabled/paranoid)
  1428. [[default=auto]]
  1429. --enable-dependency-tracking
  1430. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1431. --enable-libc Use the system C library [[default=yes]]
  1432. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1433. --enable-atomic Enable the atomic operations subsystem
  1434. [[default=yes]]
  1435. --enable-audio Enable the audio subsystem [[default=yes]]
  1436. --enable-video Enable the video subsystem [[default=yes]]
  1437. --enable-render Enable the render subsystem [[default=yes]]
  1438. --enable-events Enable the events subsystem [[default=yes]]
  1439. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1440. --enable-haptic Enable the haptic (force feedback) subsystem
  1441. [[default=yes]]
  1442. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1443. --enable-power Enable the power subsystem [[default=yes]]
  1444. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1445. --enable-threads Enable the threading subsystem [[default=yes]]
  1446. --enable-timers Enable the timer subsystem [[default=yes]]
  1447. --enable-file Enable the file subsystem [[default=yes]]
  1448. --enable-loadso Enable the shared object loading subsystem
  1449. [[default=yes]]
  1450. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1451. --enable-assembly Enable assembly routines [[default=yes]]
  1452. --enable-ssemath Allow GCC to use SSE floating point math
  1453. [[default=maybe]]
  1454. --enable-mmx use MMX assembly routines [[default=yes]]
  1455. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1456. --enable-sse use SSE assembly routines [[default=yes]]
  1457. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1458. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1459. --enable-altivec use Altivec assembly routines [[default=yes]]
  1460. --enable-oss support the OSS audio API [[default=maybe]]
  1461. --enable-alsa support the ALSA audio API [[default=yes]]
  1462. --disable-alsatest Do not try to compile and run a test Alsa program
  1463. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1464. --enable-jack use JACK audio [[default=yes]]
  1465. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1466. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1467. --disable-esdtest Do not try to compile and run a test ESD program
  1468. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1469. --enable-pulseaudio use PulseAudio [[default=yes]]
  1470. --enable-pulseaudio-shared
  1471. dynamically load PulseAudio support [[default=yes]]
  1472. --enable-arts support the Analog Real Time Synthesizer
  1473. [[default=yes]]
  1474. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1475. --enable-nas support the NAS audio API [[default=yes]]
  1476. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1477. --enable-sndio support the sndio audio API [[default=yes]]
  1478. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1479. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1480. --enable-fusionsound-shared
  1481. dynamically load fusionsound audio support
  1482. [[default=yes]]
  1483. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1484. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1485. --enable-libsamplerate use libsamplerate for audio rate conversion
  1486. [[default=yes]]
  1487. --enable-libsamplerate-shared
  1488. dynamically load libsamplerate [[default=yes]]
  1489. --enable-video-wayland use Wayland video driver [[default=yes]]
  1490. --enable-video-wayland-qt-touch
  1491. QtWayland server support for Wayland video driver
  1492. [[default=yes]]
  1493. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1494. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1495. --enable-video-x11 use X11 video driver [[default=yes]]
  1496. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1497. --enable-video-x11-xcursor
  1498. enable X11 Xcursor support [[default=yes]]
  1499. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1500. --enable-video-x11-xinerama
  1501. enable X11 Xinerama support [[default=yes]]
  1502. --enable-video-x11-xinput
  1503. enable X11 XInput extension for manymouse, tablets,
  1504. etc [[default=yes]]
  1505. --enable-video-x11-xrandr
  1506. enable X11 Xrandr extension for fullscreen
  1507. [[default=yes]]
  1508. --enable-video-x11-scrnsaver
  1509. enable X11 screensaver extension [[default=yes]]
  1510. --enable-video-x11-xshape
  1511. enable X11 XShape support [[default=yes]]
  1512. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1513. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1514. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1515. --enable-render-metal enable the Metal render driver [[default=yes]]
  1516. --enable-video-directfb use DirectFB video driver [[default=no]]
  1517. --enable-directfb-shared
  1518. dynamically load directfb support [[default=yes]]
  1519. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1520. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1521. --enable-video-dummy use dummy video driver [[default=yes]]
  1522. --enable-video-opengl include OpenGL support [[default=yes]]
  1523. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1524. --enable-video-opengles1
  1525. include OpenGL ES 1.1 support [[default=yes]]
  1526. --enable-video-opengles2
  1527. include OpenGL ES 2.0 support [[default=yes]]
  1528. --enable-video-vulkan include Vulkan support [[default=yes]]
  1529. --enable-libudev enable libudev support [[default=yes]]
  1530. --enable-dbus enable D-Bus support [[default=yes]]
  1531. --enable-ime enable IME support [[default=yes]]
  1532. --enable-ibus enable IBus support [[default=yes]]
  1533. --enable-fcitx enable fcitx support [[default=yes]]
  1534. --enable-input-tslib use the Touchscreen library for input
  1535. [[default=yes]]
  1536. --enable-pthreads use POSIX threads for multi-threading
  1537. [[default=yes]]
  1538. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1539. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1540. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1541. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1542. --enable-hidapi use HIDAPI for low level joystick drivers
  1543. [[default=maybe]]
  1544. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1545. UNIX [[default=yes]]
  1546. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1547. --enable-backgrounding-signal
  1548. number to use for magic backgrounding signal or 'no'
  1549. [[default=no]]
  1550. --enable-foregrounding-signal
  1551. number to use for magic foregrounding signal or 'no'
  1552. [[default=no]]
  1553. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1554. --enable-sdl2-config Install sdl2-config [default=yes]
  1555. Optional Packages:
  1556. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1557. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1558. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1559. both]
  1560. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1561. --with-sysroot=DIR Search for dependent libraries within DIR
  1562. (or the compiler's sysroot if not specified).
  1563. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1564. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1565. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1566. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1567. --with-x use the X Window System
  1568. Some influential environment variables:
  1569. CC C compiler command
  1570. CFLAGS C compiler flags
  1571. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1572. nonstandard directory <lib dir>
  1573. LIBS libraries to pass to the linker, e.g. -l<library>
  1574. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1575. you have headers in a nonstandard directory <include dir>
  1576. CPP C preprocessor
  1577. CXX C++ compiler command
  1578. CXXFLAGS C++ compiler flags
  1579. CXXCPP C++ preprocessor
  1580. PKG_CONFIG path to pkg-config utility
  1581. PKG_CONFIG_PATH
  1582. directories to add to pkg-config's search path
  1583. PKG_CONFIG_LIBDIR
  1584. path overriding pkg-config's built-in search path
  1585. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1586. JACK_LIBS linker flags for JACK, overriding pkg-config
  1587. PULSEAUDIO_CFLAGS
  1588. C compiler flags for PULSEAUDIO, overriding pkg-config
  1589. PULSEAUDIO_LIBS
  1590. linker flags for PULSEAUDIO, overriding pkg-config
  1591. FUSIONSOUND_CFLAGS
  1592. C compiler flags for FUSIONSOUND, overriding pkg-config
  1593. FUSIONSOUND_LIBS
  1594. linker flags for FUSIONSOUND, overriding pkg-config
  1595. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1596. RPI_LIBS linker flags for RPI, overriding pkg-config
  1597. XMKMF Path to xmkmf, Makefile generator for X Window System
  1598. DIRECTFB_CFLAGS
  1599. C compiler flags for DIRECTFB, overriding pkg-config
  1600. DIRECTFB_LIBS
  1601. linker flags for DIRECTFB, overriding pkg-config
  1602. LIBDRM_CFLAGS
  1603. C compiler flags for LIBDRM, overriding pkg-config
  1604. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1605. LIBGBM_CFLAGS
  1606. C compiler flags for LIBGBM, overriding pkg-config
  1607. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1608. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1609. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1610. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1611. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1612. FCITX_CFLAGS
  1613. C compiler flags for FCITX, overriding pkg-config
  1614. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1615. LIBUSB_CFLAGS
  1616. C compiler flags for LIBUSB, overriding pkg-config
  1617. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1618. Use these variables to override the choices made by `configure' or to help
  1619. it to find libraries and programs with nonstandard names/locations.
  1620. Report bugs to the package provider.
  1621. _ACEOF
  1622. ac_status=$?
  1623. fi
  1624. if test "$ac_init_help" = "recursive"; then
  1625. # If there are subdirs, report their specific --help.
  1626. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1627. test -d "$ac_dir" ||
  1628. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1629. continue
  1630. ac_builddir=.
  1631. case "$ac_dir" in
  1632. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1633. *)
  1634. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1635. # A ".." for each directory in $ac_dir_suffix.
  1636. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1637. case $ac_top_builddir_sub in
  1638. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1639. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1640. esac ;;
  1641. esac
  1642. ac_abs_top_builddir=$ac_pwd
  1643. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1644. # for backward compatibility:
  1645. ac_top_builddir=$ac_top_build_prefix
  1646. case $srcdir in
  1647. .) # We are building in place.
  1648. ac_srcdir=.
  1649. ac_top_srcdir=$ac_top_builddir_sub
  1650. ac_abs_top_srcdir=$ac_pwd ;;
  1651. [\\/]* | ?:[\\/]* ) # Absolute name.
  1652. ac_srcdir=$srcdir$ac_dir_suffix;
  1653. ac_top_srcdir=$srcdir
  1654. ac_abs_top_srcdir=$srcdir ;;
  1655. *) # Relative name.
  1656. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1657. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1658. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1659. esac
  1660. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1661. cd "$ac_dir" || { ac_status=$?; continue; }
  1662. # Check for guested configure.
  1663. if test -f "$ac_srcdir/configure.gnu"; then
  1664. echo &&
  1665. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1666. elif test -f "$ac_srcdir/configure"; then
  1667. echo &&
  1668. $SHELL "$ac_srcdir/configure" --help=recursive
  1669. else
  1670. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1671. fi || ac_status=$?
  1672. cd "$ac_pwd" || { ac_status=$?; break; }
  1673. done
  1674. fi
  1675. test -n "$ac_init_help" && exit $ac_status
  1676. if $ac_init_version; then
  1677. cat <<\_ACEOF
  1678. configure
  1679. generated by GNU Autoconf 2.69
  1680. Copyright (C) 2012 Free Software Foundation, Inc.
  1681. This configure script is free software; the Free Software Foundation
  1682. gives unlimited permission to copy, distribute and modify it.
  1683. _ACEOF
  1684. exit
  1685. fi
  1686. ## ------------------------ ##
  1687. ## Autoconf initialization. ##
  1688. ## ------------------------ ##
  1689. # ac_fn_c_try_compile LINENO
  1690. # --------------------------
  1691. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1692. ac_fn_c_try_compile ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. rm -f conftest.$ac_objext
  1696. if { { ac_try="$ac_compile"
  1697. case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_compile") 2>conftest.err
  1704. ac_status=$?
  1705. if test -s conftest.err; then
  1706. grep -v '^ *+' conftest.err >conftest.er1
  1707. cat conftest.er1 >&5
  1708. mv -f conftest.er1 conftest.err
  1709. fi
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; } && {
  1712. test -z "$ac_c_werror_flag" ||
  1713. test ! -s conftest.err
  1714. } && test -s conftest.$ac_objext; then :
  1715. ac_retval=0
  1716. else
  1717. $as_echo "$as_me: failed program was:" >&5
  1718. sed 's/^/| /' conftest.$ac_ext >&5
  1719. ac_retval=1
  1720. fi
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. as_fn_set_status $ac_retval
  1723. } # ac_fn_c_try_compile
  1724. # ac_fn_c_try_link LINENO
  1725. # -----------------------
  1726. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1727. ac_fn_c_try_link ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. rm -f conftest.$ac_objext conftest$ac_exeext
  1731. if { { ac_try="$ac_link"
  1732. case "(($ac_try" in
  1733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1734. *) ac_try_echo=$ac_try;;
  1735. esac
  1736. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1737. $as_echo "$ac_try_echo"; } >&5
  1738. (eval "$ac_link") 2>conftest.err
  1739. ac_status=$?
  1740. if test -s conftest.err; then
  1741. grep -v '^ *+' conftest.err >conftest.er1
  1742. cat conftest.er1 >&5
  1743. mv -f conftest.er1 conftest.err
  1744. fi
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } && {
  1747. test -z "$ac_c_werror_flag" ||
  1748. test ! -s conftest.err
  1749. } && test -s conftest$ac_exeext && {
  1750. test "$cross_compiling" = yes ||
  1751. test -x conftest$ac_exeext
  1752. }; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_retval=1
  1758. fi
  1759. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1760. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1761. # interfere with the next link command; also delete a directory that is
  1762. # left behind by Apple's compiler. We do this before executing the actions.
  1763. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1764. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1765. as_fn_set_status $ac_retval
  1766. } # ac_fn_c_try_link
  1767. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1768. # -------------------------------------------------------
  1769. # Tests whether HEADER exists and can be compiled using the include files in
  1770. # INCLUDES, setting the cache variable VAR accordingly.
  1771. ac_fn_c_check_header_compile ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1775. $as_echo_n "checking for $2... " >&6; }
  1776. if eval \${$3+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. else
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. $4
  1782. #include <$2>
  1783. _ACEOF
  1784. if ac_fn_c_try_compile "$LINENO"; then :
  1785. eval "$3=yes"
  1786. else
  1787. eval "$3=no"
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1790. fi
  1791. eval ac_res=\$$3
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1793. $as_echo "$ac_res" >&6; }
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. } # ac_fn_c_check_header_compile
  1796. # ac_fn_c_try_cpp LINENO
  1797. # ----------------------
  1798. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_c_try_cpp ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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. $as_echo "$ac_try_echo"; } >&5
  1809. (eval "$ac_cpp conftest.$ac_ext") 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. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1817. test $ac_status = 0; } > conftest.i && {
  1818. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1819. test ! -s conftest.err
  1820. }; then :
  1821. ac_retval=0
  1822. else
  1823. $as_echo "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1828. as_fn_set_status $ac_retval
  1829. } # ac_fn_c_try_cpp
  1830. # ac_fn_c_try_run LINENO
  1831. # ----------------------
  1832. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1833. # that executables *can* be run.
  1834. ac_fn_c_try_run ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. if { { ac_try="$ac_link"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_link") 2>&5
  1845. ac_status=$?
  1846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1847. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1848. { { case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. $as_echo "$ac_try_echo"; } >&5
  1854. (eval "$ac_try") 2>&5
  1855. ac_status=$?
  1856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1857. test $ac_status = 0; }; }; then :
  1858. ac_retval=0
  1859. else
  1860. $as_echo "$as_me: program exited with status $ac_status" >&5
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=$ac_status
  1864. fi
  1865. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1866. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1867. as_fn_set_status $ac_retval
  1868. } # ac_fn_c_try_run
  1869. # ac_fn_c_check_func LINENO FUNC VAR
  1870. # ----------------------------------
  1871. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1872. ac_fn_c_check_func ()
  1873. {
  1874. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1876. $as_echo_n "checking for $2... " >&6; }
  1877. if eval \${$3+:} false; then :
  1878. $as_echo_n "(cached) " >&6
  1879. else
  1880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1881. /* end confdefs.h. */
  1882. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1883. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1884. #define $2 innocuous_$2
  1885. /* System header to define __stub macros and hopefully few prototypes,
  1886. which can conflict with char $2 (); below.
  1887. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1888. <limits.h> exists even on freestanding compilers. */
  1889. #ifdef __STDC__
  1890. # include <limits.h>
  1891. #else
  1892. # include <assert.h>
  1893. #endif
  1894. #undef $2
  1895. /* Override any GCC internal prototype to avoid an error.
  1896. Use char because int might match the return type of a GCC
  1897. builtin and then its argument prototype would still apply. */
  1898. #ifdef __cplusplus
  1899. extern "C"
  1900. #endif
  1901. char $2 ();
  1902. /* The GNU C library defines this for functions which it implements
  1903. to always fail with ENOSYS. Some functions are actually named
  1904. something starting with __ and the normal name is an alias. */
  1905. #if defined __stub_$2 || defined __stub___$2
  1906. choke me
  1907. #endif
  1908. int
  1909. main ()
  1910. {
  1911. return $2 ();
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_link "$LINENO"; then :
  1917. eval "$3=yes"
  1918. else
  1919. eval "$3=no"
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext \
  1922. conftest$ac_exeext conftest.$ac_ext
  1923. fi
  1924. eval ac_res=\$$3
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1926. $as_echo "$ac_res" >&6; }
  1927. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1928. } # ac_fn_c_check_func
  1929. # ac_fn_cxx_try_compile LINENO
  1930. # ----------------------------
  1931. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1932. ac_fn_cxx_try_compile ()
  1933. {
  1934. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1935. rm -f conftest.$ac_objext
  1936. if { { ac_try="$ac_compile"
  1937. case "(($ac_try" in
  1938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1939. *) ac_try_echo=$ac_try;;
  1940. esac
  1941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1942. $as_echo "$ac_try_echo"; } >&5
  1943. (eval "$ac_compile") 2>conftest.err
  1944. ac_status=$?
  1945. if test -s conftest.err; then
  1946. grep -v '^ *+' conftest.err >conftest.er1
  1947. cat conftest.er1 >&5
  1948. mv -f conftest.er1 conftest.err
  1949. fi
  1950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1951. test $ac_status = 0; } && {
  1952. test -z "$ac_cxx_werror_flag" ||
  1953. test ! -s conftest.err
  1954. } && test -s conftest.$ac_objext; then :
  1955. ac_retval=0
  1956. else
  1957. $as_echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. ac_retval=1
  1960. fi
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. as_fn_set_status $ac_retval
  1963. } # ac_fn_cxx_try_compile
  1964. # ac_fn_cxx_try_cpp LINENO
  1965. # ------------------------
  1966. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1967. ac_fn_cxx_try_cpp ()
  1968. {
  1969. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1970. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1971. case "(($ac_try" in
  1972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1973. *) ac_try_echo=$ac_try;;
  1974. esac
  1975. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1976. $as_echo "$ac_try_echo"; } >&5
  1977. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1978. ac_status=$?
  1979. if test -s conftest.err; then
  1980. grep -v '^ *+' conftest.err >conftest.er1
  1981. cat conftest.er1 >&5
  1982. mv -f conftest.er1 conftest.err
  1983. fi
  1984. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1985. test $ac_status = 0; } > conftest.i && {
  1986. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1987. test ! -s conftest.err
  1988. }; then :
  1989. ac_retval=0
  1990. else
  1991. $as_echo "$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_cpp
  1998. # ac_fn_cxx_try_link LINENO
  1999. # -------------------------
  2000. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2001. ac_fn_cxx_try_link ()
  2002. {
  2003. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2004. rm -f conftest.$ac_objext conftest$ac_exeext
  2005. if { { ac_try="$ac_link"
  2006. case "(($ac_try" in
  2007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2008. *) ac_try_echo=$ac_try;;
  2009. esac
  2010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2011. $as_echo "$ac_try_echo"; } >&5
  2012. (eval "$ac_link") 2>conftest.err
  2013. ac_status=$?
  2014. if test -s conftest.err; then
  2015. grep -v '^ *+' conftest.err >conftest.er1
  2016. cat conftest.er1 >&5
  2017. mv -f conftest.er1 conftest.err
  2018. fi
  2019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2020. test $ac_status = 0; } && {
  2021. test -z "$ac_cxx_werror_flag" ||
  2022. test ! -s conftest.err
  2023. } && test -s conftest$ac_exeext && {
  2024. test "$cross_compiling" = yes ||
  2025. test -x conftest$ac_exeext
  2026. }; then :
  2027. ac_retval=0
  2028. else
  2029. $as_echo "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_retval=1
  2032. fi
  2033. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2034. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2035. # interfere with the next link command; also delete a directory that is
  2036. # left behind by Apple's compiler. We do this before executing the actions.
  2037. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. as_fn_set_status $ac_retval
  2040. } # ac_fn_cxx_try_link
  2041. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2042. # -------------------------------------------------------
  2043. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2044. # the include files in INCLUDES and setting the cache variable VAR
  2045. # accordingly.
  2046. ac_fn_c_check_header_mongrel ()
  2047. {
  2048. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2049. if eval \${$3+:} false; then :
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2051. $as_echo_n "checking for $2... " >&6; }
  2052. if eval \${$3+:} false; then :
  2053. $as_echo_n "(cached) " >&6
  2054. fi
  2055. eval ac_res=\$$3
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2057. $as_echo "$ac_res" >&6; }
  2058. else
  2059. # Is the header compilable?
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2061. $as_echo_n "checking $2 usability... " >&6; }
  2062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2063. /* end confdefs.h. */
  2064. $4
  2065. #include <$2>
  2066. _ACEOF
  2067. if ac_fn_c_try_compile "$LINENO"; then :
  2068. ac_header_compiler=yes
  2069. else
  2070. ac_header_compiler=no
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2074. $as_echo "$ac_header_compiler" >&6; }
  2075. # Is the header present?
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2077. $as_echo_n "checking $2 presence... " >&6; }
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. #include <$2>
  2081. _ACEOF
  2082. if ac_fn_c_try_cpp "$LINENO"; then :
  2083. ac_header_preproc=yes
  2084. else
  2085. ac_header_preproc=no
  2086. fi
  2087. rm -f conftest.err conftest.i conftest.$ac_ext
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2089. $as_echo "$ac_header_preproc" >&6; }
  2090. # So? What about this header?
  2091. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2092. yes:no: )
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2094. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2096. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2097. ;;
  2098. no:yes:* )
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2100. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2102. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2104. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2106. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2108. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2109. ;;
  2110. esac
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2112. $as_echo_n "checking for $2... " >&6; }
  2113. if eval \${$3+:} false; then :
  2114. $as_echo_n "(cached) " >&6
  2115. else
  2116. eval "$3=\$ac_header_compiler"
  2117. fi
  2118. eval ac_res=\$$3
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2120. $as_echo "$ac_res" >&6; }
  2121. fi
  2122. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2123. } # ac_fn_c_check_header_mongrel
  2124. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2125. # -------------------------------------------
  2126. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2127. # variable VAR accordingly.
  2128. ac_fn_c_check_type ()
  2129. {
  2130. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2132. $as_echo_n "checking for $2... " >&6; }
  2133. if eval \${$3+:} false; then :
  2134. $as_echo_n "(cached) " >&6
  2135. else
  2136. eval "$3=no"
  2137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2138. /* end confdefs.h. */
  2139. $4
  2140. int
  2141. main ()
  2142. {
  2143. if (sizeof ($2))
  2144. return 0;
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_c_try_compile "$LINENO"; then :
  2150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2151. /* end confdefs.h. */
  2152. $4
  2153. int
  2154. main ()
  2155. {
  2156. if (sizeof (($2)))
  2157. return 0;
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. if ac_fn_c_try_compile "$LINENO"; then :
  2163. else
  2164. eval "$3=yes"
  2165. fi
  2166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2169. fi
  2170. eval ac_res=\$$3
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2172. $as_echo "$ac_res" >&6; }
  2173. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2174. } # ac_fn_c_check_type
  2175. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2176. # ----------------------------------------------------
  2177. # Tries to find if the field MEMBER exists in type AGGR, after including
  2178. # INCLUDES, setting cache variable VAR accordingly.
  2179. ac_fn_c_check_member ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2183. $as_echo_n "checking for $2.$3... " >&6; }
  2184. if eval \${$4+:} false; then :
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2188. /* end confdefs.h. */
  2189. $5
  2190. int
  2191. main ()
  2192. {
  2193. static $2 ac_aggr;
  2194. if (ac_aggr.$3)
  2195. return 0;
  2196. ;
  2197. return 0;
  2198. }
  2199. _ACEOF
  2200. if ac_fn_c_try_compile "$LINENO"; then :
  2201. eval "$4=yes"
  2202. else
  2203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2204. /* end confdefs.h. */
  2205. $5
  2206. int
  2207. main ()
  2208. {
  2209. static $2 ac_aggr;
  2210. if (sizeof ac_aggr.$3)
  2211. return 0;
  2212. ;
  2213. return 0;
  2214. }
  2215. _ACEOF
  2216. if ac_fn_c_try_compile "$LINENO"; then :
  2217. eval "$4=yes"
  2218. else
  2219. eval "$4=no"
  2220. fi
  2221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2222. fi
  2223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2224. fi
  2225. eval ac_res=\$$4
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2227. $as_echo "$ac_res" >&6; }
  2228. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2229. } # ac_fn_c_check_member
  2230. cat >config.log <<_ACEOF
  2231. This file contains any messages produced by compilers while
  2232. running configure, to aid debugging if configure makes a mistake.
  2233. It was created by $as_me, which was
  2234. generated by GNU Autoconf 2.69. Invocation command line was
  2235. $ $0 $@
  2236. _ACEOF
  2237. exec 5>>config.log
  2238. {
  2239. cat <<_ASUNAME
  2240. ## --------- ##
  2241. ## Platform. ##
  2242. ## --------- ##
  2243. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2244. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2245. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2246. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2247. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2248. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2249. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2250. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2251. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2252. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2253. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2254. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2255. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2256. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2257. _ASUNAME
  2258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2259. for as_dir in $PATH
  2260. do
  2261. IFS=$as_save_IFS
  2262. test -z "$as_dir" && as_dir=.
  2263. $as_echo "PATH: $as_dir"
  2264. done
  2265. IFS=$as_save_IFS
  2266. } >&5
  2267. cat >&5 <<_ACEOF
  2268. ## ----------- ##
  2269. ## Core tests. ##
  2270. ## ----------- ##
  2271. _ACEOF
  2272. # Keep a trace of the command line.
  2273. # Strip out --no-create and --no-recursion so they do not pile up.
  2274. # Strip out --silent because we don't want to record it for future runs.
  2275. # Also quote any args containing shell meta-characters.
  2276. # Make two passes to allow for proper duplicate-argument suppression.
  2277. ac_configure_args=
  2278. ac_configure_args0=
  2279. ac_configure_args1=
  2280. ac_must_keep_next=false
  2281. for ac_pass in 1 2
  2282. do
  2283. for ac_arg
  2284. do
  2285. case $ac_arg in
  2286. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2287. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2288. | -silent | --silent | --silen | --sile | --sil)
  2289. continue ;;
  2290. *\'*)
  2291. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2292. esac
  2293. case $ac_pass in
  2294. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2295. 2)
  2296. as_fn_append ac_configure_args1 " '$ac_arg'"
  2297. if test $ac_must_keep_next = true; then
  2298. ac_must_keep_next=false # Got value, back to normal.
  2299. else
  2300. case $ac_arg in
  2301. *=* | --config-cache | -C | -disable-* | --disable-* \
  2302. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2303. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2304. | -with-* | --with-* | -without-* | --without-* | --x)
  2305. case "$ac_configure_args0 " in
  2306. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2307. esac
  2308. ;;
  2309. -* ) ac_must_keep_next=true ;;
  2310. esac
  2311. fi
  2312. as_fn_append ac_configure_args " '$ac_arg'"
  2313. ;;
  2314. esac
  2315. done
  2316. done
  2317. { ac_configure_args0=; unset ac_configure_args0;}
  2318. { ac_configure_args1=; unset ac_configure_args1;}
  2319. # When interrupted or exit'd, cleanup temporary files, and complete
  2320. # config.log. We remove comments because anyway the quotes in there
  2321. # would cause problems or look ugly.
  2322. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2323. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2324. trap 'exit_status=$?
  2325. # Save into config.log some information that might help in debugging.
  2326. {
  2327. echo
  2328. $as_echo "## ---------------- ##
  2329. ## Cache variables. ##
  2330. ## ---------------- ##"
  2331. echo
  2332. # The following way of writing the cache mishandles newlines in values,
  2333. (
  2334. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2335. eval ac_val=\$$ac_var
  2336. case $ac_val in #(
  2337. *${as_nl}*)
  2338. case $ac_var in #(
  2339. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2340. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2341. esac
  2342. case $ac_var in #(
  2343. _ | IFS | as_nl) ;; #(
  2344. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2345. *) { eval $ac_var=; unset $ac_var;} ;;
  2346. esac ;;
  2347. esac
  2348. done
  2349. (set) 2>&1 |
  2350. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2351. *${as_nl}ac_space=\ *)
  2352. sed -n \
  2353. "s/'\''/'\''\\\\'\'''\''/g;
  2354. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2355. ;; #(
  2356. *)
  2357. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2358. ;;
  2359. esac |
  2360. sort
  2361. )
  2362. echo
  2363. $as_echo "## ----------------- ##
  2364. ## Output variables. ##
  2365. ## ----------------- ##"
  2366. echo
  2367. for ac_var in $ac_subst_vars
  2368. do
  2369. eval ac_val=\$$ac_var
  2370. case $ac_val in
  2371. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2372. esac
  2373. $as_echo "$ac_var='\''$ac_val'\''"
  2374. done | sort
  2375. echo
  2376. if test -n "$ac_subst_files"; then
  2377. $as_echo "## ------------------- ##
  2378. ## File substitutions. ##
  2379. ## ------------------- ##"
  2380. echo
  2381. for ac_var in $ac_subst_files
  2382. do
  2383. eval ac_val=\$$ac_var
  2384. case $ac_val in
  2385. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2386. esac
  2387. $as_echo "$ac_var='\''$ac_val'\''"
  2388. done | sort
  2389. echo
  2390. fi
  2391. if test -s confdefs.h; then
  2392. $as_echo "## ----------- ##
  2393. ## confdefs.h. ##
  2394. ## ----------- ##"
  2395. echo
  2396. cat confdefs.h
  2397. echo
  2398. fi
  2399. test "$ac_signal" != 0 &&
  2400. $as_echo "$as_me: caught signal $ac_signal"
  2401. $as_echo "$as_me: exit $exit_status"
  2402. } >&5
  2403. rm -f core *.core core.conftest.* &&
  2404. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2405. exit $exit_status
  2406. ' 0
  2407. for ac_signal in 1 2 13 15; do
  2408. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2409. done
  2410. ac_signal=0
  2411. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2412. rm -f -r conftest* confdefs.h
  2413. $as_echo "/* confdefs.h */" > confdefs.h
  2414. # Predefined preprocessor variables.
  2415. cat >>confdefs.h <<_ACEOF
  2416. #define PACKAGE_NAME "$PACKAGE_NAME"
  2417. _ACEOF
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2420. _ACEOF
  2421. cat >>confdefs.h <<_ACEOF
  2422. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2423. _ACEOF
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_STRING "$PACKAGE_STRING"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define PACKAGE_URL "$PACKAGE_URL"
  2432. _ACEOF
  2433. # Let the site file select an alternate cache file if it wants to.
  2434. # Prefer an explicitly selected file to automatically selected ones.
  2435. ac_site_file1=NONE
  2436. ac_site_file2=NONE
  2437. if test -n "$CONFIG_SITE"; then
  2438. # We do not want a PATH search for config.site.
  2439. case $CONFIG_SITE in #((
  2440. -*) ac_site_file1=./$CONFIG_SITE;;
  2441. */*) ac_site_file1=$CONFIG_SITE;;
  2442. *) ac_site_file1=./$CONFIG_SITE;;
  2443. esac
  2444. elif test "x$prefix" != xNONE; then
  2445. ac_site_file1=$prefix/share/config.site
  2446. ac_site_file2=$prefix/etc/config.site
  2447. else
  2448. ac_site_file1=$ac_default_prefix/share/config.site
  2449. ac_site_file2=$ac_default_prefix/etc/config.site
  2450. fi
  2451. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2452. do
  2453. test "x$ac_site_file" = xNONE && continue
  2454. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2456. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2457. sed 's/^/| /' "$ac_site_file" >&5
  2458. . "$ac_site_file" \
  2459. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2460. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2461. as_fn_error $? "failed to load site script $ac_site_file
  2462. See \`config.log' for more details" "$LINENO" 5; }
  2463. fi
  2464. done
  2465. if test -r "$cache_file"; then
  2466. # Some versions of bash will fail to source /dev/null (special files
  2467. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2468. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2470. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2471. case $cache_file in
  2472. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2473. *) . "./$cache_file";;
  2474. esac
  2475. fi
  2476. else
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2478. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2479. >$cache_file
  2480. fi
  2481. # Check that the precious variables saved in the cache have kept the same
  2482. # value.
  2483. ac_cache_corrupted=false
  2484. for ac_var in $ac_precious_vars; do
  2485. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2486. eval ac_new_set=\$ac_env_${ac_var}_set
  2487. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2488. eval ac_new_val=\$ac_env_${ac_var}_value
  2489. case $ac_old_set,$ac_new_set in
  2490. set,)
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2492. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2493. ac_cache_corrupted=: ;;
  2494. ,set)
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2496. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2497. ac_cache_corrupted=: ;;
  2498. ,);;
  2499. *)
  2500. if test "x$ac_old_val" != "x$ac_new_val"; then
  2501. # differences in whitespace do not lead to failure.
  2502. ac_old_val_w=`echo x $ac_old_val`
  2503. ac_new_val_w=`echo x $ac_new_val`
  2504. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2506. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2507. ac_cache_corrupted=:
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2510. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2511. eval $ac_var=\$ac_old_val
  2512. fi
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2514. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2516. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2517. fi;;
  2518. esac
  2519. # Pass precious variables to config.status.
  2520. if test "$ac_new_set" = set; then
  2521. case $ac_new_val in
  2522. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2523. *) ac_arg=$ac_var=$ac_new_val ;;
  2524. esac
  2525. case " $ac_configure_args " in
  2526. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2527. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2528. esac
  2529. fi
  2530. done
  2531. if $ac_cache_corrupted; then
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2535. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2536. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2537. fi
  2538. ## -------------------- ##
  2539. ## Main body of script. ##
  2540. ## -------------------- ##
  2541. ac_ext=c
  2542. ac_cpp='$CPP $CPPFLAGS'
  2543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2546. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2547. ac_aux_dir=
  2548. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2549. if test -f "$ac_dir/install-sh"; then
  2550. ac_aux_dir=$ac_dir
  2551. ac_install_sh="$ac_aux_dir/install-sh -c"
  2552. break
  2553. elif test -f "$ac_dir/install.sh"; then
  2554. ac_aux_dir=$ac_dir
  2555. ac_install_sh="$ac_aux_dir/install.sh -c"
  2556. break
  2557. elif test -f "$ac_dir/shtool"; then
  2558. ac_aux_dir=$ac_dir
  2559. ac_install_sh="$ac_aux_dir/shtool install -c"
  2560. break
  2561. fi
  2562. done
  2563. if test -z "$ac_aux_dir"; then
  2564. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2565. fi
  2566. # These three variables are undocumented and unsupported,
  2567. # and are intended to be withdrawn in a future Autoconf release.
  2568. # They can cause serious problems if a builder's source tree is in a directory
  2569. # whose full name contains unusual characters.
  2570. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2571. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2572. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2573. orig_CFLAGS="$CFLAGS"
  2574. #
  2575. # Making releases:
  2576. # Edit include/SDL_version.h and change the version, then:
  2577. # SDL_MICRO_VERSION += 1;
  2578. # SDL_INTERFACE_AGE += 1;
  2579. # SDL_BINARY_AGE += 1;
  2580. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2581. # if backwards compatibility has been broken,
  2582. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2583. #
  2584. SDL_MAJOR_VERSION=2
  2585. SDL_MINOR_VERSION=0
  2586. SDL_MICRO_VERSION=10
  2587. SDL_INTERFACE_AGE=0
  2588. SDL_BINARY_AGE=10
  2589. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2590. # libtool versioning
  2591. case `pwd` in
  2592. *\ * | *\ *)
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2594. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2595. esac
  2596. macro_version='2.4.2'
  2597. macro_revision='1.3337'
  2598. ltmain="$ac_aux_dir/ltmain.sh"
  2599. # Make sure we can run config.sub.
  2600. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2601. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2603. $as_echo_n "checking build system type... " >&6; }
  2604. if ${ac_cv_build+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. ac_build_alias=$build_alias
  2608. test "x$ac_build_alias" = x &&
  2609. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2610. test "x$ac_build_alias" = x &&
  2611. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2612. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2613. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2614. fi
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2616. $as_echo "$ac_cv_build" >&6; }
  2617. case $ac_cv_build in
  2618. *-*-*) ;;
  2619. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2620. esac
  2621. build=$ac_cv_build
  2622. ac_save_IFS=$IFS; IFS='-'
  2623. set x $ac_cv_build
  2624. shift
  2625. build_cpu=$1
  2626. build_vendor=$2
  2627. shift; shift
  2628. # Remember, the first character of IFS is used to create $*,
  2629. # except with old shells:
  2630. build_os=$*
  2631. IFS=$ac_save_IFS
  2632. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2634. $as_echo_n "checking host system type... " >&6; }
  2635. if ${ac_cv_host+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test "x$host_alias" = x; then
  2639. ac_cv_host=$ac_cv_build
  2640. else
  2641. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2642. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2643. fi
  2644. fi
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2646. $as_echo "$ac_cv_host" >&6; }
  2647. case $ac_cv_host in
  2648. *-*-*) ;;
  2649. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2650. esac
  2651. host=$ac_cv_host
  2652. ac_save_IFS=$IFS; IFS='-'
  2653. set x $ac_cv_host
  2654. shift
  2655. host_cpu=$1
  2656. host_vendor=$2
  2657. shift; shift
  2658. # Remember, the first character of IFS is used to create $*,
  2659. # except with old shells:
  2660. host_os=$*
  2661. IFS=$ac_save_IFS
  2662. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2663. # Backslashify metacharacters that are still active within
  2664. # double-quoted strings.
  2665. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2666. # Same as above, but do not quote variable references.
  2667. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2668. # Sed substitution to delay expansion of an escaped shell variable in a
  2669. # double_quote_subst'ed string.
  2670. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2671. # Sed substitution to delay expansion of an escaped single quote.
  2672. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2673. # Sed substitution to avoid accidental globbing in evaled expressions
  2674. no_glob_subst='s/\*/\\\*/g'
  2675. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2676. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2677. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2679. $as_echo_n "checking how to print strings... " >&6; }
  2680. # Test print first, because it will be a builtin if present.
  2681. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2682. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2683. ECHO='print -r --'
  2684. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2685. ECHO='printf %s\n'
  2686. else
  2687. # Use this function as a fallback that always works.
  2688. func_fallback_echo ()
  2689. {
  2690. eval 'cat <<_LTECHO_EOF
  2691. $1
  2692. _LTECHO_EOF'
  2693. }
  2694. ECHO='func_fallback_echo'
  2695. fi
  2696. # func_echo_all arg...
  2697. # Invoke $ECHO with all args, space-separated.
  2698. func_echo_all ()
  2699. {
  2700. $ECHO ""
  2701. }
  2702. case "$ECHO" in
  2703. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2704. $as_echo "printf" >&6; } ;;
  2705. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2706. $as_echo "print -r" >&6; } ;;
  2707. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2708. $as_echo "cat" >&6; } ;;
  2709. esac
  2710. ac_ext=c
  2711. ac_cpp='$CPP $CPPFLAGS'
  2712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2715. if test -n "$ac_tool_prefix"; then
  2716. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2717. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2719. $as_echo_n "checking for $ac_word... " >&6; }
  2720. if ${ac_cv_prog_CC+:} false; then :
  2721. $as_echo_n "(cached) " >&6
  2722. else
  2723. if test -n "$CC"; then
  2724. ac_cv_prog_CC="$CC" # Let the user override the test.
  2725. else
  2726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2727. for as_dir in $PATH
  2728. do
  2729. IFS=$as_save_IFS
  2730. test -z "$as_dir" && as_dir=.
  2731. for ac_exec_ext in '' $ac_executable_extensions; do
  2732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2733. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2735. break 2
  2736. fi
  2737. done
  2738. done
  2739. IFS=$as_save_IFS
  2740. fi
  2741. fi
  2742. CC=$ac_cv_prog_CC
  2743. if test -n "$CC"; then
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2745. $as_echo "$CC" >&6; }
  2746. else
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2748. $as_echo "no" >&6; }
  2749. fi
  2750. fi
  2751. if test -z "$ac_cv_prog_CC"; then
  2752. ac_ct_CC=$CC
  2753. # Extract the first word of "gcc", so it can be a program name with args.
  2754. set dummy gcc; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$ac_ct_CC"; then
  2761. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. ac_cv_prog_ac_ct_CC="gcc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2780. if test -n "$ac_ct_CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2782. $as_echo "$ac_ct_CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. if test "x$ac_ct_CC" = x; then
  2788. CC=""
  2789. else
  2790. case $cross_compiling:$ac_tool_warned in
  2791. yes:)
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2794. ac_tool_warned=yes ;;
  2795. esac
  2796. CC=$ac_ct_CC
  2797. fi
  2798. else
  2799. CC="$ac_cv_prog_CC"
  2800. fi
  2801. if test -z "$CC"; then
  2802. if test -n "$ac_tool_prefix"; then
  2803. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2804. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2806. $as_echo_n "checking for $ac_word... " >&6; }
  2807. if ${ac_cv_prog_CC+:} false; then :
  2808. $as_echo_n "(cached) " >&6
  2809. else
  2810. if test -n "$CC"; then
  2811. ac_cv_prog_CC="$CC" # Let the user override the test.
  2812. else
  2813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2814. for as_dir in $PATH
  2815. do
  2816. IFS=$as_save_IFS
  2817. test -z "$as_dir" && as_dir=.
  2818. for ac_exec_ext in '' $ac_executable_extensions; do
  2819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2820. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2822. break 2
  2823. fi
  2824. done
  2825. done
  2826. IFS=$as_save_IFS
  2827. fi
  2828. fi
  2829. CC=$ac_cv_prog_CC
  2830. if test -n "$CC"; then
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2832. $as_echo "$CC" >&6; }
  2833. else
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2835. $as_echo "no" >&6; }
  2836. fi
  2837. fi
  2838. fi
  2839. if test -z "$CC"; then
  2840. # Extract the first word of "cc", so it can be a program name with args.
  2841. set dummy cc; ac_word=$2
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2843. $as_echo_n "checking for $ac_word... " >&6; }
  2844. if ${ac_cv_prog_CC+:} false; then :
  2845. $as_echo_n "(cached) " >&6
  2846. else
  2847. if test -n "$CC"; then
  2848. ac_cv_prog_CC="$CC" # Let the user override the test.
  2849. else
  2850. ac_prog_rejected=no
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2858. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2859. ac_prog_rejected=yes
  2860. continue
  2861. fi
  2862. ac_cv_prog_CC="cc"
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2864. break 2
  2865. fi
  2866. done
  2867. done
  2868. IFS=$as_save_IFS
  2869. if test $ac_prog_rejected = yes; then
  2870. # We found a bogon in the path, so make sure we never use it.
  2871. set dummy $ac_cv_prog_CC
  2872. shift
  2873. if test $# != 0; then
  2874. # We chose a different compiler from the bogus one.
  2875. # However, it has the same basename, so the bogon will be chosen
  2876. # first if we set CC to just the basename; use the full file name.
  2877. shift
  2878. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2879. fi
  2880. fi
  2881. fi
  2882. fi
  2883. CC=$ac_cv_prog_CC
  2884. if test -n "$CC"; then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2886. $as_echo "$CC" >&6; }
  2887. else
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. fi
  2891. fi
  2892. if test -z "$CC"; then
  2893. if test -n "$ac_tool_prefix"; then
  2894. for ac_prog in cl.exe
  2895. do
  2896. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2897. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if ${ac_cv_prog_CC+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$CC"; then
  2904. ac_cv_prog_CC="$CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2913. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. CC=$ac_cv_prog_CC
  2923. if test -n "$CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2925. $as_echo "$CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. test -n "$CC" && break
  2931. done
  2932. fi
  2933. if test -z "$CC"; then
  2934. ac_ct_CC=$CC
  2935. for ac_prog in cl.exe
  2936. do
  2937. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2938. set dummy $ac_prog; ac_word=$2
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2940. $as_echo_n "checking for $ac_word... " >&6; }
  2941. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. if test -n "$ac_ct_CC"; then
  2945. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2946. else
  2947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2948. for as_dir in $PATH
  2949. do
  2950. IFS=$as_save_IFS
  2951. test -z "$as_dir" && as_dir=.
  2952. for ac_exec_ext in '' $ac_executable_extensions; do
  2953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2954. ac_cv_prog_ac_ct_CC="$ac_prog"
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2956. break 2
  2957. fi
  2958. done
  2959. done
  2960. IFS=$as_save_IFS
  2961. fi
  2962. fi
  2963. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2964. if test -n "$ac_ct_CC"; then
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2966. $as_echo "$ac_ct_CC" >&6; }
  2967. else
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2969. $as_echo "no" >&6; }
  2970. fi
  2971. test -n "$ac_ct_CC" && break
  2972. done
  2973. if test "x$ac_ct_CC" = x; then
  2974. CC=""
  2975. else
  2976. case $cross_compiling:$ac_tool_warned in
  2977. yes:)
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2980. ac_tool_warned=yes ;;
  2981. esac
  2982. CC=$ac_ct_CC
  2983. fi
  2984. fi
  2985. fi
  2986. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2987. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2988. as_fn_error $? "no acceptable C compiler found in \$PATH
  2989. See \`config.log' for more details" "$LINENO" 5; }
  2990. # Provide some information about the compiler.
  2991. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2992. set X $ac_compile
  2993. ac_compiler=$2
  2994. for ac_option in --version -v -V -qversion; do
  2995. { { ac_try="$ac_compiler $ac_option >&5"
  2996. case "(($ac_try" in
  2997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998. *) ac_try_echo=$ac_try;;
  2999. esac
  3000. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3001. $as_echo "$ac_try_echo"; } >&5
  3002. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3003. ac_status=$?
  3004. if test -s conftest.err; then
  3005. sed '10a\
  3006. ... rest of stderr output deleted ...
  3007. 10q' conftest.err >conftest.er1
  3008. cat conftest.er1 >&5
  3009. fi
  3010. rm -f conftest.er1 conftest.err
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }
  3013. done
  3014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3015. /* end confdefs.h. */
  3016. int
  3017. main ()
  3018. {
  3019. ;
  3020. return 0;
  3021. }
  3022. _ACEOF
  3023. ac_clean_files_save=$ac_clean_files
  3024. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3025. # Try to create an executable without -o first, disregard a.out.
  3026. # It will help us diagnose broken compilers, and finding out an intuition
  3027. # of exeext.
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3029. $as_echo_n "checking whether the C compiler works... " >&6; }
  3030. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3031. # The possible output files:
  3032. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3033. ac_rmfiles=
  3034. for ac_file in $ac_files
  3035. do
  3036. case $ac_file in
  3037. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3038. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3039. esac
  3040. done
  3041. rm -f $ac_rmfiles
  3042. if { { ac_try="$ac_link_default"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_link_default") 2>&5
  3050. ac_status=$?
  3051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3052. test $ac_status = 0; }; then :
  3053. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3054. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3055. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3056. # so that the user can short-circuit this test for compilers unknown to
  3057. # Autoconf.
  3058. for ac_file in $ac_files ''
  3059. do
  3060. test -f "$ac_file" || continue
  3061. case $ac_file in
  3062. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3063. ;;
  3064. [ab].out )
  3065. # We found the default executable, but exeext='' is most
  3066. # certainly right.
  3067. break;;
  3068. *.* )
  3069. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3070. then :; else
  3071. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3072. fi
  3073. # We set ac_cv_exeext here because the later test for it is not
  3074. # safe: cross compilers may not add the suffix if given an `-o'
  3075. # argument, so we may need to know it at that point already.
  3076. # Even if this section looks crufty: it has the advantage of
  3077. # actually working.
  3078. break;;
  3079. * )
  3080. break;;
  3081. esac
  3082. done
  3083. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3084. else
  3085. ac_file=''
  3086. fi
  3087. if test -z "$ac_file"; then :
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3089. $as_echo "no" >&6; }
  3090. $as_echo "$as_me: failed program was:" >&5
  3091. sed 's/^/| /' conftest.$ac_ext >&5
  3092. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3093. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3094. as_fn_error 77 "C compiler cannot create executables
  3095. See \`config.log' for more details" "$LINENO" 5; }
  3096. else
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3098. $as_echo "yes" >&6; }
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3101. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3103. $as_echo "$ac_file" >&6; }
  3104. ac_exeext=$ac_cv_exeext
  3105. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3106. ac_clean_files=$ac_clean_files_save
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3108. $as_echo_n "checking for suffix of executables... " >&6; }
  3109. if { { ac_try="$ac_link"
  3110. case "(($ac_try" in
  3111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3112. *) ac_try_echo=$ac_try;;
  3113. esac
  3114. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3115. $as_echo "$ac_try_echo"; } >&5
  3116. (eval "$ac_link") 2>&5
  3117. ac_status=$?
  3118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3119. test $ac_status = 0; }; then :
  3120. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3121. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3122. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3123. # `rm'.
  3124. for ac_file in conftest.exe conftest conftest.*; do
  3125. test -f "$ac_file" || continue
  3126. case $ac_file in
  3127. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3128. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3129. break;;
  3130. * ) break;;
  3131. esac
  3132. done
  3133. else
  3134. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3136. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3137. See \`config.log' for more details" "$LINENO" 5; }
  3138. fi
  3139. rm -f conftest conftest$ac_cv_exeext
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3141. $as_echo "$ac_cv_exeext" >&6; }
  3142. rm -f conftest.$ac_ext
  3143. EXEEXT=$ac_cv_exeext
  3144. ac_exeext=$EXEEXT
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. #include <stdio.h>
  3148. int
  3149. main ()
  3150. {
  3151. FILE *f = fopen ("conftest.out", "w");
  3152. return ferror (f) || fclose (f) != 0;
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. ac_clean_files="$ac_clean_files conftest.out"
  3158. # Check that the compiler produces executables we can run. If not, either
  3159. # the compiler is broken, or we cross compile.
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3161. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3162. if test "$cross_compiling" != yes; then
  3163. { { ac_try="$ac_link"
  3164. case "(($ac_try" in
  3165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3166. *) ac_try_echo=$ac_try;;
  3167. esac
  3168. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3169. $as_echo "$ac_try_echo"; } >&5
  3170. (eval "$ac_link") 2>&5
  3171. ac_status=$?
  3172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3173. test $ac_status = 0; }
  3174. if { ac_try='./conftest$ac_cv_exeext'
  3175. { { case "(($ac_try" in
  3176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177. *) ac_try_echo=$ac_try;;
  3178. esac
  3179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3180. $as_echo "$ac_try_echo"; } >&5
  3181. (eval "$ac_try") 2>&5
  3182. ac_status=$?
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3184. test $ac_status = 0; }; }; then
  3185. cross_compiling=no
  3186. else
  3187. if test "$cross_compiling" = maybe; then
  3188. cross_compiling=yes
  3189. else
  3190. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3192. as_fn_error $? "cannot run C compiled programs.
  3193. If you meant to cross compile, use \`--host'.
  3194. See \`config.log' for more details" "$LINENO" 5; }
  3195. fi
  3196. fi
  3197. fi
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3199. $as_echo "$cross_compiling" >&6; }
  3200. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3201. ac_clean_files=$ac_clean_files_save
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3203. $as_echo_n "checking for suffix of object files... " >&6; }
  3204. if ${ac_cv_objext+:} false; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3208. /* end confdefs.h. */
  3209. int
  3210. main ()
  3211. {
  3212. ;
  3213. return 0;
  3214. }
  3215. _ACEOF
  3216. rm -f conftest.o conftest.obj
  3217. if { { ac_try="$ac_compile"
  3218. case "(($ac_try" in
  3219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220. *) ac_try_echo=$ac_try;;
  3221. esac
  3222. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3223. $as_echo "$ac_try_echo"; } >&5
  3224. (eval "$ac_compile") 2>&5
  3225. ac_status=$?
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3227. test $ac_status = 0; }; then :
  3228. for ac_file in conftest.o conftest.obj conftest.*; do
  3229. test -f "$ac_file" || continue;
  3230. case $ac_file in
  3231. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3232. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3233. break;;
  3234. esac
  3235. done
  3236. else
  3237. $as_echo "$as_me: failed program was:" >&5
  3238. sed 's/^/| /' conftest.$ac_ext >&5
  3239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3242. See \`config.log' for more details" "$LINENO" 5; }
  3243. fi
  3244. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3247. $as_echo "$ac_cv_objext" >&6; }
  3248. OBJEXT=$ac_cv_objext
  3249. ac_objext=$OBJEXT
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3251. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3252. if ${ac_cv_c_compiler_gnu+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3256. /* end confdefs.h. */
  3257. int
  3258. main ()
  3259. {
  3260. #ifndef __GNUC__
  3261. choke me
  3262. #endif
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. if ac_fn_c_try_compile "$LINENO"; then :
  3268. ac_compiler_gnu=yes
  3269. else
  3270. ac_compiler_gnu=no
  3271. fi
  3272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3273. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3274. fi
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3276. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3277. if test $ac_compiler_gnu = yes; then
  3278. GCC=yes
  3279. else
  3280. GCC=
  3281. fi
  3282. ac_test_CFLAGS=${CFLAGS+set}
  3283. ac_save_CFLAGS=$CFLAGS
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3285. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3286. if ${ac_cv_prog_cc_g+:} false; then :
  3287. $as_echo_n "(cached) " >&6
  3288. else
  3289. ac_save_c_werror_flag=$ac_c_werror_flag
  3290. ac_c_werror_flag=yes
  3291. ac_cv_prog_cc_g=no
  3292. CFLAGS="-g"
  3293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3294. /* end confdefs.h. */
  3295. int
  3296. main ()
  3297. {
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. if ac_fn_c_try_compile "$LINENO"; then :
  3303. ac_cv_prog_cc_g=yes
  3304. else
  3305. CFLAGS=""
  3306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. if ac_fn_c_try_compile "$LINENO"; then :
  3316. else
  3317. ac_c_werror_flag=$ac_save_c_werror_flag
  3318. CFLAGS="-g"
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. ac_cv_prog_cc_g=yes
  3330. fi
  3331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3332. fi
  3333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. ac_c_werror_flag=$ac_save_c_werror_flag
  3337. fi
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3339. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3340. if test "$ac_test_CFLAGS" = set; then
  3341. CFLAGS=$ac_save_CFLAGS
  3342. elif test $ac_cv_prog_cc_g = yes; then
  3343. if test "$GCC" = yes; then
  3344. CFLAGS="-g -O2"
  3345. else
  3346. CFLAGS="-g"
  3347. fi
  3348. else
  3349. if test "$GCC" = yes; then
  3350. CFLAGS="-O2"
  3351. else
  3352. CFLAGS=
  3353. fi
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3356. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3357. if ${ac_cv_prog_cc_c89+:} false; then :
  3358. $as_echo_n "(cached) " >&6
  3359. else
  3360. ac_cv_prog_cc_c89=no
  3361. ac_save_CC=$CC
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. #include <stdarg.h>
  3365. #include <stdio.h>
  3366. struct stat;
  3367. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3368. struct buf { int x; };
  3369. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3370. static char *e (p, i)
  3371. char **p;
  3372. int i;
  3373. {
  3374. return p[i];
  3375. }
  3376. static char *f (char * (*g) (char **, int), char **p, ...)
  3377. {
  3378. char *s;
  3379. va_list v;
  3380. va_start (v,p);
  3381. s = g (p, va_arg (v,int));
  3382. va_end (v);
  3383. return s;
  3384. }
  3385. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3386. function prototypes and stuff, but not '\xHH' hex character constants.
  3387. These don't provoke an error unfortunately, instead are silently treated
  3388. as 'x'. The following induces an error, until -std is added to get
  3389. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3390. array size at least. It's necessary to write '\x00'==0 to get something
  3391. that's true only with -std. */
  3392. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3393. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3394. inside strings and character constants. */
  3395. #define FOO(x) 'x'
  3396. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3397. int test (int i, double x);
  3398. struct s1 {int (*f) (int a);};
  3399. struct s2 {int (*f) (double a);};
  3400. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3401. int argc;
  3402. char **argv;
  3403. int
  3404. main ()
  3405. {
  3406. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3412. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3413. do
  3414. CC="$ac_save_CC $ac_arg"
  3415. if ac_fn_c_try_compile "$LINENO"; then :
  3416. ac_cv_prog_cc_c89=$ac_arg
  3417. fi
  3418. rm -f core conftest.err conftest.$ac_objext
  3419. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3420. done
  3421. rm -f conftest.$ac_ext
  3422. CC=$ac_save_CC
  3423. fi
  3424. # AC_CACHE_VAL
  3425. case "x$ac_cv_prog_cc_c89" in
  3426. x)
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3428. $as_echo "none needed" >&6; } ;;
  3429. xno)
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3431. $as_echo "unsupported" >&6; } ;;
  3432. *)
  3433. CC="$CC $ac_cv_prog_cc_c89"
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3435. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3436. esac
  3437. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3438. fi
  3439. ac_ext=c
  3440. ac_cpp='$CPP $CPPFLAGS'
  3441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3445. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3446. if ${ac_cv_path_SED+:} false; then :
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3450. for ac_i in 1 2 3 4 5 6 7; do
  3451. ac_script="$ac_script$as_nl$ac_script"
  3452. done
  3453. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3454. { ac_script=; unset ac_script;}
  3455. if test -z "$SED"; then
  3456. ac_path_SED_found=false
  3457. # Loop through the user's path and test for each of PROGNAME-LIST
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. for ac_prog in sed gsed; do
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3466. as_fn_executable_p "$ac_path_SED" || continue
  3467. # Check for GNU ac_path_SED and select it if it is found.
  3468. # Check for GNU $ac_path_SED
  3469. case `"$ac_path_SED" --version 2>&1` in
  3470. *GNU*)
  3471. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3472. *)
  3473. ac_count=0
  3474. $as_echo_n 0123456789 >"conftest.in"
  3475. while :
  3476. do
  3477. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3478. mv "conftest.tmp" "conftest.in"
  3479. cp "conftest.in" "conftest.nl"
  3480. $as_echo '' >> "conftest.nl"
  3481. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3482. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3483. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3484. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3485. # Best one so far, save it but keep looking for a better one
  3486. ac_cv_path_SED="$ac_path_SED"
  3487. ac_path_SED_max=$ac_count
  3488. fi
  3489. # 10*(2^10) chars as input seems more than enough
  3490. test $ac_count -gt 10 && break
  3491. done
  3492. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3493. esac
  3494. $ac_path_SED_found && break 3
  3495. done
  3496. done
  3497. done
  3498. IFS=$as_save_IFS
  3499. if test -z "$ac_cv_path_SED"; then
  3500. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3501. fi
  3502. else
  3503. ac_cv_path_SED=$SED
  3504. fi
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3507. $as_echo "$ac_cv_path_SED" >&6; }
  3508. SED="$ac_cv_path_SED"
  3509. rm -f conftest.sed
  3510. test -z "$SED" && SED=sed
  3511. Xsed="$SED -e 1s/^X//"
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3513. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3514. if ${ac_cv_path_GREP+:} false; then :
  3515. $as_echo_n "(cached) " >&6
  3516. else
  3517. if test -z "$GREP"; then
  3518. ac_path_GREP_found=false
  3519. # Loop through the user's path and test for each of PROGNAME-LIST
  3520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3521. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3522. do
  3523. IFS=$as_save_IFS
  3524. test -z "$as_dir" && as_dir=.
  3525. for ac_prog in grep ggrep; do
  3526. for ac_exec_ext in '' $ac_executable_extensions; do
  3527. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3528. as_fn_executable_p "$ac_path_GREP" || continue
  3529. # Check for GNU ac_path_GREP and select it if it is found.
  3530. # Check for GNU $ac_path_GREP
  3531. case `"$ac_path_GREP" --version 2>&1` in
  3532. *GNU*)
  3533. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3534. *)
  3535. ac_count=0
  3536. $as_echo_n 0123456789 >"conftest.in"
  3537. while :
  3538. do
  3539. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3540. mv "conftest.tmp" "conftest.in"
  3541. cp "conftest.in" "conftest.nl"
  3542. $as_echo 'GREP' >> "conftest.nl"
  3543. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3544. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3545. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3546. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3547. # Best one so far, save it but keep looking for a better one
  3548. ac_cv_path_GREP="$ac_path_GREP"
  3549. ac_path_GREP_max=$ac_count
  3550. fi
  3551. # 10*(2^10) chars as input seems more than enough
  3552. test $ac_count -gt 10 && break
  3553. done
  3554. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3555. esac
  3556. $ac_path_GREP_found && break 3
  3557. done
  3558. done
  3559. done
  3560. IFS=$as_save_IFS
  3561. if test -z "$ac_cv_path_GREP"; then
  3562. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3563. fi
  3564. else
  3565. ac_cv_path_GREP=$GREP
  3566. fi
  3567. fi
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3569. $as_echo "$ac_cv_path_GREP" >&6; }
  3570. GREP="$ac_cv_path_GREP"
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3572. $as_echo_n "checking for egrep... " >&6; }
  3573. if ${ac_cv_path_EGREP+:} false; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3577. then ac_cv_path_EGREP="$GREP -E"
  3578. else
  3579. if test -z "$EGREP"; then
  3580. ac_path_EGREP_found=false
  3581. # Loop through the user's path and test for each of PROGNAME-LIST
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3584. do
  3585. IFS=$as_save_IFS
  3586. test -z "$as_dir" && as_dir=.
  3587. for ac_prog in egrep; do
  3588. for ac_exec_ext in '' $ac_executable_extensions; do
  3589. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3590. as_fn_executable_p "$ac_path_EGREP" || continue
  3591. # Check for GNU ac_path_EGREP and select it if it is found.
  3592. # Check for GNU $ac_path_EGREP
  3593. case `"$ac_path_EGREP" --version 2>&1` in
  3594. *GNU*)
  3595. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3596. *)
  3597. ac_count=0
  3598. $as_echo_n 0123456789 >"conftest.in"
  3599. while :
  3600. do
  3601. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3602. mv "conftest.tmp" "conftest.in"
  3603. cp "conftest.in" "conftest.nl"
  3604. $as_echo 'EGREP' >> "conftest.nl"
  3605. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3606. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3607. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3608. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3609. # Best one so far, save it but keep looking for a better one
  3610. ac_cv_path_EGREP="$ac_path_EGREP"
  3611. ac_path_EGREP_max=$ac_count
  3612. fi
  3613. # 10*(2^10) chars as input seems more than enough
  3614. test $ac_count -gt 10 && break
  3615. done
  3616. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3617. esac
  3618. $ac_path_EGREP_found && break 3
  3619. done
  3620. done
  3621. done
  3622. IFS=$as_save_IFS
  3623. if test -z "$ac_cv_path_EGREP"; then
  3624. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3625. fi
  3626. else
  3627. ac_cv_path_EGREP=$EGREP
  3628. fi
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3632. $as_echo "$ac_cv_path_EGREP" >&6; }
  3633. EGREP="$ac_cv_path_EGREP"
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3635. $as_echo_n "checking for fgrep... " >&6; }
  3636. if ${ac_cv_path_FGREP+:} false; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3640. then ac_cv_path_FGREP="$GREP -F"
  3641. else
  3642. if test -z "$FGREP"; then
  3643. ac_path_FGREP_found=false
  3644. # Loop through the user's path and test for each of PROGNAME-LIST
  3645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3646. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3647. do
  3648. IFS=$as_save_IFS
  3649. test -z "$as_dir" && as_dir=.
  3650. for ac_prog in fgrep; do
  3651. for ac_exec_ext in '' $ac_executable_extensions; do
  3652. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3653. as_fn_executable_p "$ac_path_FGREP" || continue
  3654. # Check for GNU ac_path_FGREP and select it if it is found.
  3655. # Check for GNU $ac_path_FGREP
  3656. case `"$ac_path_FGREP" --version 2>&1` in
  3657. *GNU*)
  3658. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3659. *)
  3660. ac_count=0
  3661. $as_echo_n 0123456789 >"conftest.in"
  3662. while :
  3663. do
  3664. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3665. mv "conftest.tmp" "conftest.in"
  3666. cp "conftest.in" "conftest.nl"
  3667. $as_echo 'FGREP' >> "conftest.nl"
  3668. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3669. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3670. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3671. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3672. # Best one so far, save it but keep looking for a better one
  3673. ac_cv_path_FGREP="$ac_path_FGREP"
  3674. ac_path_FGREP_max=$ac_count
  3675. fi
  3676. # 10*(2^10) chars as input seems more than enough
  3677. test $ac_count -gt 10 && break
  3678. done
  3679. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3680. esac
  3681. $ac_path_FGREP_found && break 3
  3682. done
  3683. done
  3684. done
  3685. IFS=$as_save_IFS
  3686. if test -z "$ac_cv_path_FGREP"; then
  3687. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3688. fi
  3689. else
  3690. ac_cv_path_FGREP=$FGREP
  3691. fi
  3692. fi
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3695. $as_echo "$ac_cv_path_FGREP" >&6; }
  3696. FGREP="$ac_cv_path_FGREP"
  3697. test -z "$GREP" && GREP=grep
  3698. # Check whether --with-gnu-ld was given.
  3699. if test "${with_gnu_ld+set}" = set; then :
  3700. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3701. else
  3702. with_gnu_ld=no
  3703. fi
  3704. ac_prog=ld
  3705. if test "$GCC" = yes; then
  3706. # Check if gcc -print-prog-name=ld gives a path.
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3708. $as_echo_n "checking for ld used by $CC... " >&6; }
  3709. case $host in
  3710. *-*-mingw*)
  3711. # gcc leaves a trailing carriage return which upsets mingw
  3712. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3713. *)
  3714. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3715. esac
  3716. case $ac_prog in
  3717. # Accept absolute paths.
  3718. [\\/]* | ?:[\\/]*)
  3719. re_direlt='/[^/][^/]*/\.\./'
  3720. # Canonicalize the pathname of ld
  3721. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3722. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3723. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3724. done
  3725. test -z "$LD" && LD="$ac_prog"
  3726. ;;
  3727. "")
  3728. # If it fails, then pretend we aren't using GCC.
  3729. ac_prog=ld
  3730. ;;
  3731. *)
  3732. # If it is relative, then search for the first ld in PATH.
  3733. with_gnu_ld=unknown
  3734. ;;
  3735. esac
  3736. elif test "$with_gnu_ld" = yes; then
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3738. $as_echo_n "checking for GNU ld... " >&6; }
  3739. else
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3741. $as_echo_n "checking for non-GNU ld... " >&6; }
  3742. fi
  3743. if ${lt_cv_path_LD+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. if test -z "$LD"; then
  3747. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3748. for ac_dir in $PATH; do
  3749. IFS="$lt_save_ifs"
  3750. test -z "$ac_dir" && ac_dir=.
  3751. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3752. lt_cv_path_LD="$ac_dir/$ac_prog"
  3753. # Check to see if the program is GNU ld. I'd rather use --version,
  3754. # but apparently some variants of GNU ld only accept -v.
  3755. # Break only if it was the GNU/non-GNU ld that we prefer.
  3756. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3757. *GNU* | *'with BFD'*)
  3758. test "$with_gnu_ld" != no && break
  3759. ;;
  3760. *)
  3761. test "$with_gnu_ld" != yes && break
  3762. ;;
  3763. esac
  3764. fi
  3765. done
  3766. IFS="$lt_save_ifs"
  3767. else
  3768. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3769. fi
  3770. fi
  3771. LD="$lt_cv_path_LD"
  3772. if test -n "$LD"; then
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3774. $as_echo "$LD" >&6; }
  3775. else
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3777. $as_echo "no" >&6; }
  3778. fi
  3779. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3781. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3782. if ${lt_cv_prog_gnu_ld+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3786. case `$LD -v 2>&1 </dev/null` in
  3787. *GNU* | *'with BFD'*)
  3788. lt_cv_prog_gnu_ld=yes
  3789. ;;
  3790. *)
  3791. lt_cv_prog_gnu_ld=no
  3792. ;;
  3793. esac
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3796. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3797. with_gnu_ld=$lt_cv_prog_gnu_ld
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3799. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3800. if ${lt_cv_path_NM+:} false; then :
  3801. $as_echo_n "(cached) " >&6
  3802. else
  3803. if test -n "$NM"; then
  3804. # Let the user override the test.
  3805. lt_cv_path_NM="$NM"
  3806. else
  3807. lt_nm_to_check="${ac_tool_prefix}nm"
  3808. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3809. lt_nm_to_check="$lt_nm_to_check nm"
  3810. fi
  3811. for lt_tmp_nm in $lt_nm_to_check; do
  3812. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3813. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3814. IFS="$lt_save_ifs"
  3815. test -z "$ac_dir" && ac_dir=.
  3816. tmp_nm="$ac_dir/$lt_tmp_nm"
  3817. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3818. # Check to see if the nm accepts a BSD-compat flag.
  3819. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3820. # nm: unknown option "B" ignored
  3821. # Tru64's nm complains that /dev/null is an invalid object file
  3822. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3823. */dev/null* | *'Invalid file or object type'*)
  3824. lt_cv_path_NM="$tmp_nm -B"
  3825. break
  3826. ;;
  3827. *)
  3828. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3829. */dev/null*)
  3830. lt_cv_path_NM="$tmp_nm -p"
  3831. break
  3832. ;;
  3833. *)
  3834. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3835. continue # so that we can try to find one that supports BSD flags
  3836. ;;
  3837. esac
  3838. ;;
  3839. esac
  3840. fi
  3841. done
  3842. IFS="$lt_save_ifs"
  3843. done
  3844. : ${lt_cv_path_NM=no}
  3845. fi
  3846. fi
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3848. $as_echo "$lt_cv_path_NM" >&6; }
  3849. if test "$lt_cv_path_NM" != "no"; then
  3850. NM="$lt_cv_path_NM"
  3851. else
  3852. # Didn't find any BSD compatible name lister, look for dumpbin.
  3853. if test -n "$DUMPBIN"; then :
  3854. # Let the user override the test.
  3855. else
  3856. if test -n "$ac_tool_prefix"; then
  3857. for ac_prog in dumpbin "link -dump"
  3858. do
  3859. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3860. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3862. $as_echo_n "checking for $ac_word... " >&6; }
  3863. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. if test -n "$DUMPBIN"; then
  3867. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. test -z "$as_dir" && as_dir=.
  3874. for ac_exec_ext in '' $ac_executable_extensions; do
  3875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3876. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3878. break 2
  3879. fi
  3880. done
  3881. done
  3882. IFS=$as_save_IFS
  3883. fi
  3884. fi
  3885. DUMPBIN=$ac_cv_prog_DUMPBIN
  3886. if test -n "$DUMPBIN"; then
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3888. $as_echo "$DUMPBIN" >&6; }
  3889. else
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3891. $as_echo "no" >&6; }
  3892. fi
  3893. test -n "$DUMPBIN" && break
  3894. done
  3895. fi
  3896. if test -z "$DUMPBIN"; then
  3897. ac_ct_DUMPBIN=$DUMPBIN
  3898. for ac_prog in dumpbin "link -dump"
  3899. do
  3900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3901. set dummy $ac_prog; ac_word=$2
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3903. $as_echo_n "checking for $ac_word... " >&6; }
  3904. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if test -n "$ac_ct_DUMPBIN"; then
  3908. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3909. else
  3910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911. for as_dir in $PATH
  3912. do
  3913. IFS=$as_save_IFS
  3914. test -z "$as_dir" && as_dir=.
  3915. for ac_exec_ext in '' $ac_executable_extensions; do
  3916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3917. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3919. break 2
  3920. fi
  3921. done
  3922. done
  3923. IFS=$as_save_IFS
  3924. fi
  3925. fi
  3926. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3927. if test -n "$ac_ct_DUMPBIN"; then
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3929. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3930. else
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3932. $as_echo "no" >&6; }
  3933. fi
  3934. test -n "$ac_ct_DUMPBIN" && break
  3935. done
  3936. if test "x$ac_ct_DUMPBIN" = x; then
  3937. DUMPBIN=":"
  3938. else
  3939. case $cross_compiling:$ac_tool_warned in
  3940. yes:)
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3943. ac_tool_warned=yes ;;
  3944. esac
  3945. DUMPBIN=$ac_ct_DUMPBIN
  3946. fi
  3947. fi
  3948. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3949. *COFF*)
  3950. DUMPBIN="$DUMPBIN -symbols"
  3951. ;;
  3952. *)
  3953. DUMPBIN=:
  3954. ;;
  3955. esac
  3956. fi
  3957. if test "$DUMPBIN" != ":"; then
  3958. NM="$DUMPBIN"
  3959. fi
  3960. fi
  3961. test -z "$NM" && NM=nm
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3963. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3964. if ${lt_cv_nm_interface+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. lt_cv_nm_interface="BSD nm"
  3968. echo "int some_variable = 0;" > conftest.$ac_ext
  3969. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3970. (eval "$ac_compile" 2>conftest.err)
  3971. cat conftest.err >&5
  3972. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3973. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3974. cat conftest.err >&5
  3975. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3976. cat conftest.out >&5
  3977. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3978. lt_cv_nm_interface="MS dumpbin"
  3979. fi
  3980. rm -f conftest*
  3981. fi
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3983. $as_echo "$lt_cv_nm_interface" >&6; }
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3985. $as_echo_n "checking whether ln -s works... " >&6; }
  3986. LN_S=$as_ln_s
  3987. if test "$LN_S" = "ln -s"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3989. $as_echo "yes" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3992. $as_echo "no, using $LN_S" >&6; }
  3993. fi
  3994. # find the maximum length of command line arguments
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3996. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3997. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. i=0
  4001. teststring="ABCD"
  4002. case $build_os in
  4003. msdosdjgpp*)
  4004. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4005. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4006. # during glob expansion). Even if it were fixed, the result of this
  4007. # check would be larger than it should be.
  4008. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4009. ;;
  4010. gnu*)
  4011. # Under GNU Hurd, this test is not required because there is
  4012. # no limit to the length of command line arguments.
  4013. # Libtool will interpret -1 as no limit whatsoever
  4014. lt_cv_sys_max_cmd_len=-1;
  4015. ;;
  4016. cygwin* | mingw* | cegcc*)
  4017. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4018. # about 5 minutes as the teststring grows exponentially.
  4019. # Worse, since 9x/ME are not pre-emptively multitasking,
  4020. # you end up with a "frozen" computer, even though with patience
  4021. # the test eventually succeeds (with a max line length of 256k).
  4022. # Instead, let's just punt: use the minimum linelength reported by
  4023. # all of the supported platforms: 8192 (on NT/2K/XP).
  4024. lt_cv_sys_max_cmd_len=8192;
  4025. ;;
  4026. mint*)
  4027. # On MiNT this can take a long time and run out of memory.
  4028. lt_cv_sys_max_cmd_len=8192;
  4029. ;;
  4030. amigaos*)
  4031. # On AmigaOS with pdksh, this test takes hours, literally.
  4032. # So we just punt and use a minimum line length of 8192.
  4033. lt_cv_sys_max_cmd_len=8192;
  4034. ;;
  4035. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4036. # This has been around since 386BSD, at least. Likely further.
  4037. if test -x /sbin/sysctl; then
  4038. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4039. elif test -x /usr/sbin/sysctl; then
  4040. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4041. else
  4042. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4043. fi
  4044. # And add a safety zone
  4045. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4046. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4047. ;;
  4048. interix*)
  4049. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4050. lt_cv_sys_max_cmd_len=196608
  4051. ;;
  4052. os2*)
  4053. # The test takes a long time on OS/2.
  4054. lt_cv_sys_max_cmd_len=8192
  4055. ;;
  4056. osf*)
  4057. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4058. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4059. # nice to cause kernel panics so lets avoid the loop below.
  4060. # First set a reasonable default.
  4061. lt_cv_sys_max_cmd_len=16384
  4062. #
  4063. if test -x /sbin/sysconfig; then
  4064. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4065. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4066. esac
  4067. fi
  4068. ;;
  4069. sco3.2v5*)
  4070. lt_cv_sys_max_cmd_len=102400
  4071. ;;
  4072. sysv5* | sco5v6* | sysv4.2uw2*)
  4073. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4074. if test -n "$kargmax"; then
  4075. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4076. else
  4077. lt_cv_sys_max_cmd_len=32768
  4078. fi
  4079. ;;
  4080. *)
  4081. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4082. if test -n "$lt_cv_sys_max_cmd_len"; then
  4083. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4084. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4085. else
  4086. # Make teststring a little bigger before we do anything with it.
  4087. # a 1K string should be a reasonable start.
  4088. for i in 1 2 3 4 5 6 7 8 ; do
  4089. teststring=$teststring$teststring
  4090. done
  4091. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4092. # If test is not a shell built-in, we'll probably end up computing a
  4093. # maximum length that is only half of the actual maximum length, but
  4094. # we can't tell.
  4095. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4096. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4097. test $i != 17 # 1/2 MB should be enough
  4098. do
  4099. i=`expr $i + 1`
  4100. teststring=$teststring$teststring
  4101. done
  4102. # Only check the string length outside the loop.
  4103. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4104. teststring=
  4105. # Add a significant safety factor because C++ compilers can tack on
  4106. # massive amounts of additional arguments before passing them to the
  4107. # linker. It appears as though 1/2 is a usable value.
  4108. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4109. fi
  4110. ;;
  4111. esac
  4112. fi
  4113. if test -n $lt_cv_sys_max_cmd_len ; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4115. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4118. $as_echo "none" >&6; }
  4119. fi
  4120. max_cmd_len=$lt_cv_sys_max_cmd_len
  4121. : ${CP="cp -f"}
  4122. : ${MV="mv -f"}
  4123. : ${RM="rm -f"}
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4125. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4126. # Try some XSI features
  4127. xsi_shell=no
  4128. ( _lt_dummy="a/b/c"
  4129. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4130. = c,a/b,b/c, \
  4131. && eval 'test $(( 1 + 1 )) -eq 2 \
  4132. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4133. && xsi_shell=yes
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4135. $as_echo "$xsi_shell" >&6; }
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4137. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4138. lt_shell_append=no
  4139. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4140. >/dev/null 2>&1 \
  4141. && lt_shell_append=yes
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4143. $as_echo "$lt_shell_append" >&6; }
  4144. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4145. lt_unset=unset
  4146. else
  4147. lt_unset=false
  4148. fi
  4149. # test EBCDIC or ASCII
  4150. case `echo X|tr X '\101'` in
  4151. A) # ASCII based system
  4152. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4153. lt_SP2NL='tr \040 \012'
  4154. lt_NL2SP='tr \015\012 \040\040'
  4155. ;;
  4156. *) # EBCDIC based system
  4157. lt_SP2NL='tr \100 \n'
  4158. lt_NL2SP='tr \r\n \100\100'
  4159. ;;
  4160. esac
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4162. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4163. if ${lt_cv_to_host_file_cmd+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. case $host in
  4167. *-*-mingw* )
  4168. case $build in
  4169. *-*-mingw* ) # actually msys
  4170. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4171. ;;
  4172. *-*-cygwin* )
  4173. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4174. ;;
  4175. * ) # otherwise, assume *nix
  4176. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4177. ;;
  4178. esac
  4179. ;;
  4180. *-*-cygwin* )
  4181. case $build in
  4182. *-*-mingw* ) # actually msys
  4183. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4184. ;;
  4185. *-*-cygwin* )
  4186. lt_cv_to_host_file_cmd=func_convert_file_noop
  4187. ;;
  4188. * ) # otherwise, assume *nix
  4189. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4190. ;;
  4191. esac
  4192. ;;
  4193. * ) # unhandled hosts (and "normal" native builds)
  4194. lt_cv_to_host_file_cmd=func_convert_file_noop
  4195. ;;
  4196. esac
  4197. fi
  4198. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4200. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4202. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4203. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. #assume ordinary cross tools, or native build.
  4207. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4208. case $host in
  4209. *-*-mingw* )
  4210. case $build in
  4211. *-*-mingw* ) # actually msys
  4212. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4213. ;;
  4214. esac
  4215. ;;
  4216. esac
  4217. fi
  4218. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4220. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4222. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4223. if ${lt_cv_ld_reload_flag+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. lt_cv_ld_reload_flag='-r'
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4229. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4230. reload_flag=$lt_cv_ld_reload_flag
  4231. case $reload_flag in
  4232. "" | " "*) ;;
  4233. *) reload_flag=" $reload_flag" ;;
  4234. esac
  4235. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4236. case $host_os in
  4237. cygwin* | mingw* | pw32* | cegcc*)
  4238. if test "$GCC" != yes; then
  4239. reload_cmds=false
  4240. fi
  4241. ;;
  4242. darwin*)
  4243. if test "$GCC" = yes; then
  4244. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4245. else
  4246. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4247. fi
  4248. ;;
  4249. esac
  4250. if test -n "$ac_tool_prefix"; then
  4251. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4252. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4254. $as_echo_n "checking for $ac_word... " >&6; }
  4255. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. if test -n "$OBJDUMP"; then
  4259. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4260. else
  4261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4262. for as_dir in $PATH
  4263. do
  4264. IFS=$as_save_IFS
  4265. test -z "$as_dir" && as_dir=.
  4266. for ac_exec_ext in '' $ac_executable_extensions; do
  4267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4268. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4270. break 2
  4271. fi
  4272. done
  4273. done
  4274. IFS=$as_save_IFS
  4275. fi
  4276. fi
  4277. OBJDUMP=$ac_cv_prog_OBJDUMP
  4278. if test -n "$OBJDUMP"; then
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4280. $as_echo "$OBJDUMP" >&6; }
  4281. else
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4283. $as_echo "no" >&6; }
  4284. fi
  4285. fi
  4286. if test -z "$ac_cv_prog_OBJDUMP"; then
  4287. ac_ct_OBJDUMP=$OBJDUMP
  4288. # Extract the first word of "objdump", so it can be a program name with args.
  4289. set dummy objdump; ac_word=$2
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4291. $as_echo_n "checking for $ac_word... " >&6; }
  4292. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. if test -n "$ac_ct_OBJDUMP"; then
  4296. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4297. else
  4298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4299. for as_dir in $PATH
  4300. do
  4301. IFS=$as_save_IFS
  4302. test -z "$as_dir" && as_dir=.
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4305. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4307. break 2
  4308. fi
  4309. done
  4310. done
  4311. IFS=$as_save_IFS
  4312. fi
  4313. fi
  4314. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4315. if test -n "$ac_ct_OBJDUMP"; then
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4317. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4318. else
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4320. $as_echo "no" >&6; }
  4321. fi
  4322. if test "x$ac_ct_OBJDUMP" = x; then
  4323. OBJDUMP="false"
  4324. else
  4325. case $cross_compiling:$ac_tool_warned in
  4326. yes:)
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4329. ac_tool_warned=yes ;;
  4330. esac
  4331. OBJDUMP=$ac_ct_OBJDUMP
  4332. fi
  4333. else
  4334. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4335. fi
  4336. test -z "$OBJDUMP" && OBJDUMP=objdump
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4338. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4339. if ${lt_cv_deplibs_check_method+:} false; then :
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4343. lt_cv_file_magic_test_file=
  4344. lt_cv_deplibs_check_method='unknown'
  4345. # Need to set the preceding variable on all platforms that support
  4346. # interlibrary dependencies.
  4347. # 'none' -- dependencies not supported.
  4348. # `unknown' -- same as none, but documents that we really don't know.
  4349. # 'pass_all' -- all dependencies passed with no checks.
  4350. # 'test_compile' -- check by making test program.
  4351. # 'file_magic [[regex]]' -- check by looking for files in library path
  4352. # which responds to the $file_magic_cmd with a given extended regex.
  4353. # If you have `file' or equivalent on your system and you're not sure
  4354. # whether `pass_all' will *always* work, you probably want this one.
  4355. case $host_os in
  4356. aix[4-9]*)
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. beos*)
  4360. lt_cv_deplibs_check_method=pass_all
  4361. ;;
  4362. bsdi[45]*)
  4363. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4364. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4365. lt_cv_file_magic_test_file=/shlib/libc.so
  4366. ;;
  4367. cygwin*)
  4368. # func_win32_libid is a shell function defined in ltmain.sh
  4369. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4370. lt_cv_file_magic_cmd='func_win32_libid'
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. mingw* | pw32*)
  4374. # Base MSYS/MinGW do not provide the 'file' command needed by
  4375. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4376. # unless we find 'file', for example because we are cross-compiling.
  4377. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4378. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4379. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4380. lt_cv_file_magic_cmd='func_win32_libid'
  4381. else
  4382. # Keep this pattern in sync with the one in func_win32_libid.
  4383. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4384. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4385. fi
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. cegcc*)
  4389. # use the weaker test based on 'objdump'. See mingw*.
  4390. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4391. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4392. ;;
  4393. darwin* | rhapsody*)
  4394. lt_cv_deplibs_check_method=pass_all
  4395. ;;
  4396. freebsd* | dragonfly*)
  4397. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4398. case $host_cpu in
  4399. i*86 )
  4400. # Not sure whether the presence of OpenBSD here was a mistake.
  4401. # Let's accept both of them until this is cleared up.
  4402. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4403. lt_cv_file_magic_cmd=/usr/bin/file
  4404. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4405. ;;
  4406. esac
  4407. else
  4408. lt_cv_deplibs_check_method=pass_all
  4409. fi
  4410. ;;
  4411. gnu*)
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. haiku*)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. hpux10.20* | hpux11*)
  4418. lt_cv_file_magic_cmd=/usr/bin/file
  4419. case $host_cpu in
  4420. ia64*)
  4421. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4422. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4423. ;;
  4424. hppa*64*)
  4425. 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]'
  4426. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4427. ;;
  4428. *)
  4429. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4430. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4431. ;;
  4432. esac
  4433. ;;
  4434. interix[3-9]*)
  4435. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4436. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4437. ;;
  4438. irix5* | irix6* | nonstopux*)
  4439. case $LD in
  4440. *-32|*"-32 ") libmagic=32-bit;;
  4441. *-n32|*"-n32 ") libmagic=N32;;
  4442. *-64|*"-64 ") libmagic=64-bit;;
  4443. *) libmagic=never-match;;
  4444. esac
  4445. lt_cv_deplibs_check_method=pass_all
  4446. ;;
  4447. # This must be glibc/ELF.
  4448. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4449. lt_cv_deplibs_check_method=pass_all
  4450. ;;
  4451. netbsd*)
  4452. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4454. else
  4455. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4456. fi
  4457. ;;
  4458. newos6*)
  4459. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4460. lt_cv_file_magic_cmd=/usr/bin/file
  4461. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4462. ;;
  4463. *nto* | *qnx*)
  4464. lt_cv_deplibs_check_method=pass_all
  4465. ;;
  4466. openbsd*)
  4467. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4469. else
  4470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4471. fi
  4472. ;;
  4473. osf3* | osf4* | osf5*)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. rdos*)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. solaris*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. sysv4 | sysv4.3*)
  4486. case $host_vendor in
  4487. motorola)
  4488. 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]'
  4489. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4490. ;;
  4491. ncr)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. sequent)
  4495. lt_cv_file_magic_cmd='/bin/file'
  4496. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4497. ;;
  4498. sni)
  4499. lt_cv_file_magic_cmd='/bin/file'
  4500. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4501. lt_cv_file_magic_test_file=/lib/libc.so
  4502. ;;
  4503. siemens)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. pc)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. esac
  4510. ;;
  4511. tpf*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. esac
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4517. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4518. file_magic_glob=
  4519. want_nocaseglob=no
  4520. if test "$build" = "$host"; then
  4521. case $host_os in
  4522. mingw* | pw32*)
  4523. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4524. want_nocaseglob=yes
  4525. else
  4526. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4527. fi
  4528. ;;
  4529. esac
  4530. fi
  4531. file_magic_cmd=$lt_cv_file_magic_cmd
  4532. deplibs_check_method=$lt_cv_deplibs_check_method
  4533. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4534. if test -n "$ac_tool_prefix"; then
  4535. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4536. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$DLLTOOL"; then
  4543. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. DLLTOOL=$ac_cv_prog_DLLTOOL
  4562. if test -n "$DLLTOOL"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4564. $as_echo "$DLLTOOL" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. fi
  4570. if test -z "$ac_cv_prog_DLLTOOL"; then
  4571. ac_ct_DLLTOOL=$DLLTOOL
  4572. # Extract the first word of "dlltool", so it can be a program name with args.
  4573. set dummy dlltool; ac_word=$2
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4575. $as_echo_n "checking for $ac_word... " >&6; }
  4576. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4577. $as_echo_n "(cached) " >&6
  4578. else
  4579. if test -n "$ac_ct_DLLTOOL"; then
  4580. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4581. else
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_exec_ext in '' $ac_executable_extensions; do
  4588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4589. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4591. break 2
  4592. fi
  4593. done
  4594. done
  4595. IFS=$as_save_IFS
  4596. fi
  4597. fi
  4598. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4599. if test -n "$ac_ct_DLLTOOL"; then
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4601. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4602. else
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4604. $as_echo "no" >&6; }
  4605. fi
  4606. if test "x$ac_ct_DLLTOOL" = x; then
  4607. DLLTOOL="false"
  4608. else
  4609. case $cross_compiling:$ac_tool_warned in
  4610. yes:)
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4613. ac_tool_warned=yes ;;
  4614. esac
  4615. DLLTOOL=$ac_ct_DLLTOOL
  4616. fi
  4617. else
  4618. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4619. fi
  4620. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4622. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4623. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4627. case $host_os in
  4628. cygwin* | mingw* | pw32* | cegcc*)
  4629. # two different shell functions defined in ltmain.sh
  4630. # decide which to use based on capabilities of $DLLTOOL
  4631. case `$DLLTOOL --help 2>&1` in
  4632. *--identify-strict*)
  4633. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4634. ;;
  4635. *)
  4636. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4637. ;;
  4638. esac
  4639. ;;
  4640. *)
  4641. # fallback: assume linklib IS sharedlib
  4642. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4643. ;;
  4644. esac
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4647. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4648. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4649. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4650. if test -n "$ac_tool_prefix"; then
  4651. for ac_prog in ar
  4652. do
  4653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if ${ac_cv_prog_AR+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$AR"; then
  4661. ac_cv_prog_AR="$AR" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4670. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. AR=$ac_cv_prog_AR
  4680. if test -n "$AR"; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4682. $as_echo "$AR" >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. test -n "$AR" && break
  4688. done
  4689. fi
  4690. if test -z "$AR"; then
  4691. ac_ct_AR=$AR
  4692. for ac_prog in ar
  4693. do
  4694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4695. set dummy $ac_prog; ac_word=$2
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4697. $as_echo_n "checking for $ac_word... " >&6; }
  4698. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. if test -n "$ac_ct_AR"; then
  4702. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4703. else
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. test -z "$as_dir" && as_dir=.
  4709. for ac_exec_ext in '' $ac_executable_extensions; do
  4710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4711. ac_cv_prog_ac_ct_AR="$ac_prog"
  4712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4713. break 2
  4714. fi
  4715. done
  4716. done
  4717. IFS=$as_save_IFS
  4718. fi
  4719. fi
  4720. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4721. if test -n "$ac_ct_AR"; then
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4723. $as_echo "$ac_ct_AR" >&6; }
  4724. else
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4726. $as_echo "no" >&6; }
  4727. fi
  4728. test -n "$ac_ct_AR" && break
  4729. done
  4730. if test "x$ac_ct_AR" = x; then
  4731. AR="false"
  4732. else
  4733. case $cross_compiling:$ac_tool_warned in
  4734. yes:)
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4737. ac_tool_warned=yes ;;
  4738. esac
  4739. AR=$ac_ct_AR
  4740. fi
  4741. fi
  4742. : ${AR=ar}
  4743. : ${AR_FLAGS=cru}
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4745. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4746. if ${lt_cv_ar_at_file+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. lt_cv_ar_at_file=no
  4750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4751. /* end confdefs.h. */
  4752. int
  4753. main ()
  4754. {
  4755. ;
  4756. return 0;
  4757. }
  4758. _ACEOF
  4759. if ac_fn_c_try_compile "$LINENO"; then :
  4760. echo conftest.$ac_objext > conftest.lst
  4761. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4762. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4763. (eval $lt_ar_try) 2>&5
  4764. ac_status=$?
  4765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4766. test $ac_status = 0; }
  4767. if test "$ac_status" -eq 0; then
  4768. # Ensure the archiver fails upon bogus file names.
  4769. rm -f conftest.$ac_objext libconftest.a
  4770. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4771. (eval $lt_ar_try) 2>&5
  4772. ac_status=$?
  4773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4774. test $ac_status = 0; }
  4775. if test "$ac_status" -ne 0; then
  4776. lt_cv_ar_at_file=@
  4777. fi
  4778. fi
  4779. rm -f conftest.* libconftest.a
  4780. fi
  4781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4782. fi
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4784. $as_echo "$lt_cv_ar_at_file" >&6; }
  4785. if test "x$lt_cv_ar_at_file" = xno; then
  4786. archiver_list_spec=
  4787. else
  4788. archiver_list_spec=$lt_cv_ar_at_file
  4789. fi
  4790. if test -n "$ac_tool_prefix"; then
  4791. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4792. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4794. $as_echo_n "checking for $ac_word... " >&6; }
  4795. if ${ac_cv_prog_STRIP+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$STRIP"; then
  4799. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4800. else
  4801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4802. for as_dir in $PATH
  4803. do
  4804. IFS=$as_save_IFS
  4805. test -z "$as_dir" && as_dir=.
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4808. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. fi
  4816. fi
  4817. STRIP=$ac_cv_prog_STRIP
  4818. if test -n "$STRIP"; then
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4820. $as_echo "$STRIP" >&6; }
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4823. $as_echo "no" >&6; }
  4824. fi
  4825. fi
  4826. if test -z "$ac_cv_prog_STRIP"; then
  4827. ac_ct_STRIP=$STRIP
  4828. # Extract the first word of "strip", so it can be a program name with args.
  4829. set dummy strip; ac_word=$2
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4831. $as_echo_n "checking for $ac_word... " >&6; }
  4832. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4833. $as_echo_n "(cached) " >&6
  4834. else
  4835. if test -n "$ac_ct_STRIP"; then
  4836. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4837. else
  4838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4839. for as_dir in $PATH
  4840. do
  4841. IFS=$as_save_IFS
  4842. test -z "$as_dir" && as_dir=.
  4843. for ac_exec_ext in '' $ac_executable_extensions; do
  4844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4845. ac_cv_prog_ac_ct_STRIP="strip"
  4846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4847. break 2
  4848. fi
  4849. done
  4850. done
  4851. IFS=$as_save_IFS
  4852. fi
  4853. fi
  4854. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4855. if test -n "$ac_ct_STRIP"; then
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4857. $as_echo "$ac_ct_STRIP" >&6; }
  4858. else
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4860. $as_echo "no" >&6; }
  4861. fi
  4862. if test "x$ac_ct_STRIP" = x; then
  4863. STRIP=":"
  4864. else
  4865. case $cross_compiling:$ac_tool_warned in
  4866. yes:)
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4869. ac_tool_warned=yes ;;
  4870. esac
  4871. STRIP=$ac_ct_STRIP
  4872. fi
  4873. else
  4874. STRIP="$ac_cv_prog_STRIP"
  4875. fi
  4876. test -z "$STRIP" && STRIP=:
  4877. if test -n "$ac_tool_prefix"; then
  4878. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4879. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if ${ac_cv_prog_RANLIB+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$RANLIB"; then
  4886. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4895. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. RANLIB=$ac_cv_prog_RANLIB
  4905. if test -n "$RANLIB"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4907. $as_echo "$RANLIB" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. fi
  4913. if test -z "$ac_cv_prog_RANLIB"; then
  4914. ac_ct_RANLIB=$RANLIB
  4915. # Extract the first word of "ranlib", so it can be a program name with args.
  4916. set dummy ranlib; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$ac_ct_RANLIB"; then
  4923. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4942. if test -n "$ac_ct_RANLIB"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4944. $as_echo "$ac_ct_RANLIB" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. if test "x$ac_ct_RANLIB" = x; then
  4950. RANLIB=":"
  4951. else
  4952. case $cross_compiling:$ac_tool_warned in
  4953. yes:)
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4956. ac_tool_warned=yes ;;
  4957. esac
  4958. RANLIB=$ac_ct_RANLIB
  4959. fi
  4960. else
  4961. RANLIB="$ac_cv_prog_RANLIB"
  4962. fi
  4963. test -z "$RANLIB" && RANLIB=:
  4964. # Determine commands to create old-style static archives.
  4965. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4966. old_postinstall_cmds='chmod 644 $oldlib'
  4967. old_postuninstall_cmds=
  4968. if test -n "$RANLIB"; then
  4969. case $host_os in
  4970. openbsd*)
  4971. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4972. ;;
  4973. *)
  4974. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4975. ;;
  4976. esac
  4977. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4978. fi
  4979. case $host_os in
  4980. darwin*)
  4981. lock_old_archive_extraction=yes ;;
  4982. *)
  4983. lock_old_archive_extraction=no ;;
  4984. esac
  4985. for ac_prog in gawk mawk nawk awk
  4986. do
  4987. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4988. set dummy $ac_prog; ac_word=$2
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4990. $as_echo_n "checking for $ac_word... " >&6; }
  4991. if ${ac_cv_prog_AWK+:} false; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. if test -n "$AWK"; then
  4995. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4996. else
  4997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4998. for as_dir in $PATH
  4999. do
  5000. IFS=$as_save_IFS
  5001. test -z "$as_dir" && as_dir=.
  5002. for ac_exec_ext in '' $ac_executable_extensions; do
  5003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5004. ac_cv_prog_AWK="$ac_prog"
  5005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5006. break 2
  5007. fi
  5008. done
  5009. done
  5010. IFS=$as_save_IFS
  5011. fi
  5012. fi
  5013. AWK=$ac_cv_prog_AWK
  5014. if test -n "$AWK"; then
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5016. $as_echo "$AWK" >&6; }
  5017. else
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5019. $as_echo "no" >&6; }
  5020. fi
  5021. test -n "$AWK" && break
  5022. done
  5023. # If no C compiler was specified, use CC.
  5024. LTCC=${LTCC-"$CC"}
  5025. # If no C compiler flags were specified, use CFLAGS.
  5026. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5027. # Allow CC to be a program name with arguments.
  5028. compiler=$CC
  5029. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5031. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5032. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. # These are sane defaults that work on at least a few old systems.
  5036. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5037. # Character class describing NM global symbol codes.
  5038. symcode='[BCDEGRST]'
  5039. # Regexp to match symbols that can be accessed directly from C.
  5040. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5041. # Define system-specific variables.
  5042. case $host_os in
  5043. aix*)
  5044. symcode='[BCDT]'
  5045. ;;
  5046. cygwin* | mingw* | pw32* | cegcc*)
  5047. symcode='[ABCDGISTW]'
  5048. ;;
  5049. hpux*)
  5050. if test "$host_cpu" = ia64; then
  5051. symcode='[ABCDEGRST]'
  5052. fi
  5053. ;;
  5054. irix* | nonstopux*)
  5055. symcode='[BCDEGRST]'
  5056. ;;
  5057. osf*)
  5058. symcode='[BCDEGQRST]'
  5059. ;;
  5060. solaris*)
  5061. symcode='[BDRT]'
  5062. ;;
  5063. sco3.2v5*)
  5064. symcode='[DT]'
  5065. ;;
  5066. sysv4.2uw2*)
  5067. symcode='[DT]'
  5068. ;;
  5069. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5070. symcode='[ABDT]'
  5071. ;;
  5072. sysv4)
  5073. symcode='[DFNSTU]'
  5074. ;;
  5075. esac
  5076. # If we're using GNU nm, then use its standard symbol codes.
  5077. case `$NM -V 2>&1` in
  5078. *GNU* | *'with BFD'*)
  5079. symcode='[ABCDGIRSTW]' ;;
  5080. esac
  5081. # Transform an extracted symbol line into a proper C declaration.
  5082. # Some systems (esp. on ia64) link data and code symbols differently,
  5083. # so use this general approach.
  5084. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5085. # Transform an extracted symbol line into symbol name and symbol address
  5086. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5087. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5088. # Handle CRLF in mingw tool chain
  5089. opt_cr=
  5090. case $build_os in
  5091. mingw*)
  5092. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5093. ;;
  5094. esac
  5095. # Try without a prefix underscore, then with it.
  5096. for ac_symprfx in "" "_"; do
  5097. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5098. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5099. # Write the raw and C identifiers.
  5100. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5101. # Fake it for dumpbin and say T for any non-static function
  5102. # and D for any global variable.
  5103. # Also find C++ and __fastcall symbols from MSVC++,
  5104. # which start with @ or ?.
  5105. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5106. " {last_section=section; section=\$ 3};"\
  5107. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5108. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5109. " \$ 0!~/External *\|/{next};"\
  5110. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5111. " {if(hide[section]) next};"\
  5112. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5113. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5114. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5115. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5116. " ' prfx=^$ac_symprfx"
  5117. else
  5118. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5119. fi
  5120. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5121. # Check to see that the pipe works correctly.
  5122. pipe_works=no
  5123. rm -f conftest*
  5124. cat > conftest.$ac_ext <<_LT_EOF
  5125. #ifdef __cplusplus
  5126. extern "C" {
  5127. #endif
  5128. char nm_test_var;
  5129. void nm_test_func(void);
  5130. void nm_test_func(void){}
  5131. #ifdef __cplusplus
  5132. }
  5133. #endif
  5134. int main(){nm_test_var='a';nm_test_func();return(0);}
  5135. _LT_EOF
  5136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5137. (eval $ac_compile) 2>&5
  5138. ac_status=$?
  5139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5140. test $ac_status = 0; }; then
  5141. # Now try to grab the symbols.
  5142. nlist=conftest.nm
  5143. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5144. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5145. ac_status=$?
  5146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5147. test $ac_status = 0; } && test -s "$nlist"; then
  5148. # Try sorting and uniquifying the output.
  5149. if sort "$nlist" | uniq > "$nlist"T; then
  5150. mv -f "$nlist"T "$nlist"
  5151. else
  5152. rm -f "$nlist"T
  5153. fi
  5154. # Make sure that we snagged all the symbols we need.
  5155. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5156. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5157. cat <<_LT_EOF > conftest.$ac_ext
  5158. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5159. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5160. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5161. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5162. # define LT_DLSYM_CONST
  5163. #elif defined(__osf__)
  5164. /* This system does not cope well with relocations in const data. */
  5165. # define LT_DLSYM_CONST
  5166. #else
  5167. # define LT_DLSYM_CONST const
  5168. #endif
  5169. #ifdef __cplusplus
  5170. extern "C" {
  5171. #endif
  5172. _LT_EOF
  5173. # Now generate the symbol file.
  5174. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5175. cat <<_LT_EOF >> conftest.$ac_ext
  5176. /* The mapping between symbol names and symbols. */
  5177. LT_DLSYM_CONST struct {
  5178. const char *name;
  5179. void *address;
  5180. }
  5181. lt__PROGRAM__LTX_preloaded_symbols[] =
  5182. {
  5183. { "@PROGRAM@", (void *) 0 },
  5184. _LT_EOF
  5185. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5186. cat <<\_LT_EOF >> conftest.$ac_ext
  5187. {0, (void *) 0}
  5188. };
  5189. /* This works around a problem in FreeBSD linker */
  5190. #ifdef FREEBSD_WORKAROUND
  5191. static const void *lt_preloaded_setup() {
  5192. return lt__PROGRAM__LTX_preloaded_symbols;
  5193. }
  5194. #endif
  5195. #ifdef __cplusplus
  5196. }
  5197. #endif
  5198. _LT_EOF
  5199. # Now try linking the two files.
  5200. mv conftest.$ac_objext conftstm.$ac_objext
  5201. lt_globsym_save_LIBS=$LIBS
  5202. lt_globsym_save_CFLAGS=$CFLAGS
  5203. LIBS="conftstm.$ac_objext"
  5204. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5206. (eval $ac_link) 2>&5
  5207. ac_status=$?
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5209. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5210. pipe_works=yes
  5211. fi
  5212. LIBS=$lt_globsym_save_LIBS
  5213. CFLAGS=$lt_globsym_save_CFLAGS
  5214. else
  5215. echo "cannot find nm_test_func in $nlist" >&5
  5216. fi
  5217. else
  5218. echo "cannot find nm_test_var in $nlist" >&5
  5219. fi
  5220. else
  5221. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5222. fi
  5223. else
  5224. echo "$progname: failed program was:" >&5
  5225. cat conftest.$ac_ext >&5
  5226. fi
  5227. rm -rf conftest* conftst*
  5228. # Do not use the global_symbol_pipe unless it works.
  5229. if test "$pipe_works" = yes; then
  5230. break
  5231. else
  5232. lt_cv_sys_global_symbol_pipe=
  5233. fi
  5234. done
  5235. fi
  5236. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5237. lt_cv_sys_global_symbol_to_cdecl=
  5238. fi
  5239. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5241. $as_echo "failed" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5244. $as_echo "ok" >&6; }
  5245. fi
  5246. # Response file support.
  5247. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5248. nm_file_list_spec='@'
  5249. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5250. nm_file_list_spec='@'
  5251. fi
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5253. $as_echo_n "checking for sysroot... " >&6; }
  5254. # Check whether --with-sysroot was given.
  5255. if test "${with_sysroot+set}" = set; then :
  5256. withval=$with_sysroot;
  5257. else
  5258. with_sysroot=no
  5259. fi
  5260. lt_sysroot=
  5261. case ${with_sysroot} in #(
  5262. yes)
  5263. if test "$GCC" = yes; then
  5264. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5265. fi
  5266. ;; #(
  5267. /*)
  5268. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5269. ;; #(
  5270. no|'')
  5271. ;; #(
  5272. *)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5274. $as_echo "${with_sysroot}" >&6; }
  5275. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5276. ;;
  5277. esac
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5279. $as_echo "${lt_sysroot:-no}" >&6; }
  5280. # Check whether --enable-libtool-lock was given.
  5281. if test "${enable_libtool_lock+set}" = set; then :
  5282. enableval=$enable_libtool_lock;
  5283. fi
  5284. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5285. # Some flags need to be propagated to the compiler or linker for good
  5286. # libtool support.
  5287. case $host in
  5288. ia64-*-hpux*)
  5289. # Find out which ABI we are using.
  5290. echo 'int i;' > conftest.$ac_ext
  5291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5292. (eval $ac_compile) 2>&5
  5293. ac_status=$?
  5294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5295. test $ac_status = 0; }; then
  5296. case `/usr/bin/file conftest.$ac_objext` in
  5297. *ELF-32*)
  5298. HPUX_IA64_MODE="32"
  5299. ;;
  5300. *ELF-64*)
  5301. HPUX_IA64_MODE="64"
  5302. ;;
  5303. esac
  5304. fi
  5305. rm -rf conftest*
  5306. ;;
  5307. *-*-irix6*)
  5308. # Find out which ABI we are using.
  5309. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5311. (eval $ac_compile) 2>&5
  5312. ac_status=$?
  5313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5314. test $ac_status = 0; }; then
  5315. if test "$lt_cv_prog_gnu_ld" = yes; then
  5316. case `/usr/bin/file conftest.$ac_objext` in
  5317. *32-bit*)
  5318. LD="${LD-ld} -melf32bsmip"
  5319. ;;
  5320. *N32*)
  5321. LD="${LD-ld} -melf32bmipn32"
  5322. ;;
  5323. *64-bit*)
  5324. LD="${LD-ld} -melf64bmip"
  5325. ;;
  5326. esac
  5327. else
  5328. case `/usr/bin/file conftest.$ac_objext` in
  5329. *32-bit*)
  5330. LD="${LD-ld} -32"
  5331. ;;
  5332. *N32*)
  5333. LD="${LD-ld} -n32"
  5334. ;;
  5335. *64-bit*)
  5336. LD="${LD-ld} -64"
  5337. ;;
  5338. esac
  5339. fi
  5340. fi
  5341. rm -rf conftest*
  5342. ;;
  5343. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5344. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5345. # Find out which ABI we are using.
  5346. echo 'int i;' > conftest.$ac_ext
  5347. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5348. (eval $ac_compile) 2>&5
  5349. ac_status=$?
  5350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5351. test $ac_status = 0; }; then
  5352. case `/usr/bin/file conftest.o` in
  5353. *32-bit*)
  5354. case $host in
  5355. x86_64-*kfreebsd*-gnu)
  5356. LD="${LD-ld} -m elf_i386_fbsd"
  5357. ;;
  5358. x86_64-*linux*)
  5359. LD="${LD-ld} -m elf_i386"
  5360. ;;
  5361. ppc64-*linux*|powerpc64-*linux*)
  5362. LD="${LD-ld} -m elf32ppclinux"
  5363. ;;
  5364. s390x-*linux*)
  5365. LD="${LD-ld} -m elf_s390"
  5366. ;;
  5367. sparc64-*linux*)
  5368. LD="${LD-ld} -m elf32_sparc"
  5369. ;;
  5370. esac
  5371. ;;
  5372. *64-bit*)
  5373. case $host in
  5374. x86_64-*kfreebsd*-gnu)
  5375. LD="${LD-ld} -m elf_x86_64_fbsd"
  5376. ;;
  5377. x86_64-*linux*)
  5378. LD="${LD-ld} -m elf_x86_64"
  5379. ;;
  5380. powerpc64le-*linux*)
  5381. LD="${LD-ld} -m elf64lppc"
  5382. ;;
  5383. powerpc64-*linux*)
  5384. LD="${LD-ld} -m elf64ppc"
  5385. ;;
  5386. s390*-*linux*|s390*-*tpf*)
  5387. LD="${LD-ld} -m elf64_s390"
  5388. ;;
  5389. sparc*-*linux*)
  5390. LD="${LD-ld} -m elf64_sparc"
  5391. ;;
  5392. esac
  5393. ;;
  5394. esac
  5395. fi
  5396. rm -rf conftest*
  5397. ;;
  5398. *-*-sco3.2v5*)
  5399. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5400. SAVE_CFLAGS="$CFLAGS"
  5401. CFLAGS="$CFLAGS -belf"
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5403. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5404. if ${lt_cv_cc_needs_belf+:} false; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. ac_ext=c
  5408. ac_cpp='$CPP $CPPFLAGS'
  5409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5413. /* end confdefs.h. */
  5414. int
  5415. main ()
  5416. {
  5417. ;
  5418. return 0;
  5419. }
  5420. _ACEOF
  5421. if ac_fn_c_try_link "$LINENO"; then :
  5422. lt_cv_cc_needs_belf=yes
  5423. else
  5424. lt_cv_cc_needs_belf=no
  5425. fi
  5426. rm -f core conftest.err conftest.$ac_objext \
  5427. conftest$ac_exeext conftest.$ac_ext
  5428. ac_ext=c
  5429. ac_cpp='$CPP $CPPFLAGS'
  5430. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5431. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5432. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5433. fi
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5435. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5436. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5437. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5438. CFLAGS="$SAVE_CFLAGS"
  5439. fi
  5440. ;;
  5441. *-*solaris*)
  5442. # Find out which ABI we are using.
  5443. echo 'int i;' > conftest.$ac_ext
  5444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5445. (eval $ac_compile) 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. case `/usr/bin/file conftest.o` in
  5450. *64-bit*)
  5451. case $lt_cv_prog_gnu_ld in
  5452. yes*)
  5453. case $host in
  5454. i?86-*-solaris*)
  5455. LD="${LD-ld} -m elf_x86_64"
  5456. ;;
  5457. sparc*-*-solaris*)
  5458. LD="${LD-ld} -m elf64_sparc"
  5459. ;;
  5460. esac
  5461. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5462. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5463. LD="${LD-ld}_sol2"
  5464. fi
  5465. ;;
  5466. *)
  5467. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5468. LD="${LD-ld} -64"
  5469. fi
  5470. ;;
  5471. esac
  5472. ;;
  5473. esac
  5474. fi
  5475. rm -rf conftest*
  5476. ;;
  5477. esac
  5478. need_locks="$enable_libtool_lock"
  5479. if test -n "$ac_tool_prefix"; then
  5480. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5481. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5483. $as_echo_n "checking for $ac_word... " >&6; }
  5484. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if test -n "$MANIFEST_TOOL"; then
  5488. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5497. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. IFS=$as_save_IFS
  5504. fi
  5505. fi
  5506. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5507. if test -n "$MANIFEST_TOOL"; then
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5509. $as_echo "$MANIFEST_TOOL" >&6; }
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5512. $as_echo "no" >&6; }
  5513. fi
  5514. fi
  5515. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5516. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5517. # Extract the first word of "mt", so it can be a program name with args.
  5518. set dummy mt; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5525. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5534. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5544. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5546. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5552. MANIFEST_TOOL=":"
  5553. else
  5554. case $cross_compiling:$ac_tool_warned in
  5555. yes:)
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5557. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5558. ac_tool_warned=yes ;;
  5559. esac
  5560. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5561. fi
  5562. else
  5563. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5564. fi
  5565. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5567. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5568. if ${lt_cv_path_mainfest_tool+:} false; then :
  5569. $as_echo_n "(cached) " >&6
  5570. else
  5571. lt_cv_path_mainfest_tool=no
  5572. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5573. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5574. cat conftest.err >&5
  5575. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5576. lt_cv_path_mainfest_tool=yes
  5577. fi
  5578. rm -f conftest*
  5579. fi
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5581. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5582. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5583. MANIFEST_TOOL=:
  5584. fi
  5585. case $host_os in
  5586. rhapsody* | darwin*)
  5587. if test -n "$ac_tool_prefix"; then
  5588. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5589. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5591. $as_echo_n "checking for $ac_word... " >&6; }
  5592. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. if test -n "$DSYMUTIL"; then
  5596. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5597. else
  5598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5599. for as_dir in $PATH
  5600. do
  5601. IFS=$as_save_IFS
  5602. test -z "$as_dir" && as_dir=.
  5603. for ac_exec_ext in '' $ac_executable_extensions; do
  5604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5605. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5607. break 2
  5608. fi
  5609. done
  5610. done
  5611. IFS=$as_save_IFS
  5612. fi
  5613. fi
  5614. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5615. if test -n "$DSYMUTIL"; then
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5617. $as_echo "$DSYMUTIL" >&6; }
  5618. else
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5620. $as_echo "no" >&6; }
  5621. fi
  5622. fi
  5623. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5624. ac_ct_DSYMUTIL=$DSYMUTIL
  5625. # Extract the first word of "dsymutil", so it can be a program name with args.
  5626. set dummy dsymutil; ac_word=$2
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$ac_ct_DSYMUTIL"; then
  5633. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5642. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5652. if test -n "$ac_ct_DSYMUTIL"; then
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5654. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5655. else
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. if test "x$ac_ct_DSYMUTIL" = x; then
  5660. DSYMUTIL=":"
  5661. else
  5662. case $cross_compiling:$ac_tool_warned in
  5663. yes:)
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5666. ac_tool_warned=yes ;;
  5667. esac
  5668. DSYMUTIL=$ac_ct_DSYMUTIL
  5669. fi
  5670. else
  5671. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5672. fi
  5673. if test -n "$ac_tool_prefix"; then
  5674. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5675. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5677. $as_echo_n "checking for $ac_word... " >&6; }
  5678. if ${ac_cv_prog_NMEDIT+:} false; then :
  5679. $as_echo_n "(cached) " >&6
  5680. else
  5681. if test -n "$NMEDIT"; then
  5682. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5683. else
  5684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5685. for as_dir in $PATH
  5686. do
  5687. IFS=$as_save_IFS
  5688. test -z "$as_dir" && as_dir=.
  5689. for ac_exec_ext in '' $ac_executable_extensions; do
  5690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5691. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5693. break 2
  5694. fi
  5695. done
  5696. done
  5697. IFS=$as_save_IFS
  5698. fi
  5699. fi
  5700. NMEDIT=$ac_cv_prog_NMEDIT
  5701. if test -n "$NMEDIT"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5703. $as_echo "$NMEDIT" >&6; }
  5704. else
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5706. $as_echo "no" >&6; }
  5707. fi
  5708. fi
  5709. if test -z "$ac_cv_prog_NMEDIT"; then
  5710. ac_ct_NMEDIT=$NMEDIT
  5711. # Extract the first word of "nmedit", so it can be a program name with args.
  5712. set dummy nmedit; ac_word=$2
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. $as_echo_n "checking for $ac_word... " >&6; }
  5715. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. if test -n "$ac_ct_NMEDIT"; then
  5719. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724. IFS=$as_save_IFS
  5725. test -z "$as_dir" && as_dir=.
  5726. for ac_exec_ext in '' $ac_executable_extensions; do
  5727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5728. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5730. break 2
  5731. fi
  5732. done
  5733. done
  5734. IFS=$as_save_IFS
  5735. fi
  5736. fi
  5737. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5738. if test -n "$ac_ct_NMEDIT"; then
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5740. $as_echo "$ac_ct_NMEDIT" >&6; }
  5741. else
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5743. $as_echo "no" >&6; }
  5744. fi
  5745. if test "x$ac_ct_NMEDIT" = x; then
  5746. NMEDIT=":"
  5747. else
  5748. case $cross_compiling:$ac_tool_warned in
  5749. yes:)
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5752. ac_tool_warned=yes ;;
  5753. esac
  5754. NMEDIT=$ac_ct_NMEDIT
  5755. fi
  5756. else
  5757. NMEDIT="$ac_cv_prog_NMEDIT"
  5758. fi
  5759. if test -n "$ac_tool_prefix"; then
  5760. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5761. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5763. $as_echo_n "checking for $ac_word... " >&6; }
  5764. if ${ac_cv_prog_LIPO+:} false; then :
  5765. $as_echo_n "(cached) " >&6
  5766. else
  5767. if test -n "$LIPO"; then
  5768. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5769. else
  5770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5771. for as_dir in $PATH
  5772. do
  5773. IFS=$as_save_IFS
  5774. test -z "$as_dir" && as_dir=.
  5775. for ac_exec_ext in '' $ac_executable_extensions; do
  5776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5777. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5779. break 2
  5780. fi
  5781. done
  5782. done
  5783. IFS=$as_save_IFS
  5784. fi
  5785. fi
  5786. LIPO=$ac_cv_prog_LIPO
  5787. if test -n "$LIPO"; then
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5789. $as_echo "$LIPO" >&6; }
  5790. else
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5792. $as_echo "no" >&6; }
  5793. fi
  5794. fi
  5795. if test -z "$ac_cv_prog_LIPO"; then
  5796. ac_ct_LIPO=$LIPO
  5797. # Extract the first word of "lipo", so it can be a program name with args.
  5798. set dummy lipo; ac_word=$2
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5800. $as_echo_n "checking for $ac_word... " >&6; }
  5801. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5802. $as_echo_n "(cached) " >&6
  5803. else
  5804. if test -n "$ac_ct_LIPO"; then
  5805. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5806. else
  5807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5808. for as_dir in $PATH
  5809. do
  5810. IFS=$as_save_IFS
  5811. test -z "$as_dir" && as_dir=.
  5812. for ac_exec_ext in '' $ac_executable_extensions; do
  5813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5814. ac_cv_prog_ac_ct_LIPO="lipo"
  5815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5816. break 2
  5817. fi
  5818. done
  5819. done
  5820. IFS=$as_save_IFS
  5821. fi
  5822. fi
  5823. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5824. if test -n "$ac_ct_LIPO"; then
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5826. $as_echo "$ac_ct_LIPO" >&6; }
  5827. else
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5829. $as_echo "no" >&6; }
  5830. fi
  5831. if test "x$ac_ct_LIPO" = x; then
  5832. LIPO=":"
  5833. else
  5834. case $cross_compiling:$ac_tool_warned in
  5835. yes:)
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5837. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5838. ac_tool_warned=yes ;;
  5839. esac
  5840. LIPO=$ac_ct_LIPO
  5841. fi
  5842. else
  5843. LIPO="$ac_cv_prog_LIPO"
  5844. fi
  5845. if test -n "$ac_tool_prefix"; then
  5846. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5847. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5849. $as_echo_n "checking for $ac_word... " >&6; }
  5850. if ${ac_cv_prog_OTOOL+:} false; then :
  5851. $as_echo_n "(cached) " >&6
  5852. else
  5853. if test -n "$OTOOL"; then
  5854. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5855. else
  5856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5857. for as_dir in $PATH
  5858. do
  5859. IFS=$as_save_IFS
  5860. test -z "$as_dir" && as_dir=.
  5861. for ac_exec_ext in '' $ac_executable_extensions; do
  5862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5863. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5865. break 2
  5866. fi
  5867. done
  5868. done
  5869. IFS=$as_save_IFS
  5870. fi
  5871. fi
  5872. OTOOL=$ac_cv_prog_OTOOL
  5873. if test -n "$OTOOL"; then
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5875. $as_echo "$OTOOL" >&6; }
  5876. else
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5878. $as_echo "no" >&6; }
  5879. fi
  5880. fi
  5881. if test -z "$ac_cv_prog_OTOOL"; then
  5882. ac_ct_OTOOL=$OTOOL
  5883. # Extract the first word of "otool", so it can be a program name with args.
  5884. set dummy otool; ac_word=$2
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5886. $as_echo_n "checking for $ac_word... " >&6; }
  5887. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. if test -n "$ac_ct_OTOOL"; then
  5891. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5892. else
  5893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5894. for as_dir in $PATH
  5895. do
  5896. IFS=$as_save_IFS
  5897. test -z "$as_dir" && as_dir=.
  5898. for ac_exec_ext in '' $ac_executable_extensions; do
  5899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5900. ac_cv_prog_ac_ct_OTOOL="otool"
  5901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5902. break 2
  5903. fi
  5904. done
  5905. done
  5906. IFS=$as_save_IFS
  5907. fi
  5908. fi
  5909. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5910. if test -n "$ac_ct_OTOOL"; then
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5912. $as_echo "$ac_ct_OTOOL" >&6; }
  5913. else
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5915. $as_echo "no" >&6; }
  5916. fi
  5917. if test "x$ac_ct_OTOOL" = x; then
  5918. OTOOL=":"
  5919. else
  5920. case $cross_compiling:$ac_tool_warned in
  5921. yes:)
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5923. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5924. ac_tool_warned=yes ;;
  5925. esac
  5926. OTOOL=$ac_ct_OTOOL
  5927. fi
  5928. else
  5929. OTOOL="$ac_cv_prog_OTOOL"
  5930. fi
  5931. if test -n "$ac_tool_prefix"; then
  5932. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5933. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5935. $as_echo_n "checking for $ac_word... " >&6; }
  5936. if ${ac_cv_prog_OTOOL64+:} false; then :
  5937. $as_echo_n "(cached) " >&6
  5938. else
  5939. if test -n "$OTOOL64"; then
  5940. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5941. else
  5942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5943. for as_dir in $PATH
  5944. do
  5945. IFS=$as_save_IFS
  5946. test -z "$as_dir" && as_dir=.
  5947. for ac_exec_ext in '' $ac_executable_extensions; do
  5948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5949. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5951. break 2
  5952. fi
  5953. done
  5954. done
  5955. IFS=$as_save_IFS
  5956. fi
  5957. fi
  5958. OTOOL64=$ac_cv_prog_OTOOL64
  5959. if test -n "$OTOOL64"; then
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5961. $as_echo "$OTOOL64" >&6; }
  5962. else
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5964. $as_echo "no" >&6; }
  5965. fi
  5966. fi
  5967. if test -z "$ac_cv_prog_OTOOL64"; then
  5968. ac_ct_OTOOL64=$OTOOL64
  5969. # Extract the first word of "otool64", so it can be a program name with args.
  5970. set dummy otool64; ac_word=$2
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5972. $as_echo_n "checking for $ac_word... " >&6; }
  5973. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5974. $as_echo_n "(cached) " >&6
  5975. else
  5976. if test -n "$ac_ct_OTOOL64"; then
  5977. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5978. else
  5979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5980. for as_dir in $PATH
  5981. do
  5982. IFS=$as_save_IFS
  5983. test -z "$as_dir" && as_dir=.
  5984. for ac_exec_ext in '' $ac_executable_extensions; do
  5985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5986. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5988. break 2
  5989. fi
  5990. done
  5991. done
  5992. IFS=$as_save_IFS
  5993. fi
  5994. fi
  5995. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5996. if test -n "$ac_ct_OTOOL64"; then
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5998. $as_echo "$ac_ct_OTOOL64" >&6; }
  5999. else
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6001. $as_echo "no" >&6; }
  6002. fi
  6003. if test "x$ac_ct_OTOOL64" = x; then
  6004. OTOOL64=":"
  6005. else
  6006. case $cross_compiling:$ac_tool_warned in
  6007. yes:)
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6009. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6010. ac_tool_warned=yes ;;
  6011. esac
  6012. OTOOL64=$ac_ct_OTOOL64
  6013. fi
  6014. else
  6015. OTOOL64="$ac_cv_prog_OTOOL64"
  6016. fi
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6018. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6019. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. lt_cv_apple_cc_single_mod=no
  6023. if test -z "${LT_MULTI_MODULE}"; then
  6024. # By default we will add the -single_module flag. You can override
  6025. # by either setting the environment variable LT_MULTI_MODULE
  6026. # non-empty at configure time, or by adding -multi_module to the
  6027. # link flags.
  6028. rm -rf libconftest.dylib*
  6029. echo "int foo(void){return 1;}" > conftest.c
  6030. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6031. -dynamiclib -Wl,-single_module conftest.c" >&5
  6032. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6033. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6034. _lt_result=$?
  6035. # If there is a non-empty error log, and "single_module"
  6036. # appears in it, assume the flag caused a linker warning
  6037. if test -s conftest.err && $GREP single_module conftest.err; then
  6038. cat conftest.err >&5
  6039. # Otherwise, if the output was created with a 0 exit code from
  6040. # the compiler, it worked.
  6041. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6042. lt_cv_apple_cc_single_mod=yes
  6043. else
  6044. cat conftest.err >&5
  6045. fi
  6046. rm -rf libconftest.dylib*
  6047. rm -f conftest.*
  6048. fi
  6049. fi
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6051. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6053. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6054. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6055. $as_echo_n "(cached) " >&6
  6056. else
  6057. lt_cv_ld_exported_symbols_list=no
  6058. save_LDFLAGS=$LDFLAGS
  6059. echo "_main" > conftest.sym
  6060. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6062. /* end confdefs.h. */
  6063. int
  6064. main ()
  6065. {
  6066. ;
  6067. return 0;
  6068. }
  6069. _ACEOF
  6070. if ac_fn_c_try_link "$LINENO"; then :
  6071. lt_cv_ld_exported_symbols_list=yes
  6072. else
  6073. lt_cv_ld_exported_symbols_list=no
  6074. fi
  6075. rm -f core conftest.err conftest.$ac_objext \
  6076. conftest$ac_exeext conftest.$ac_ext
  6077. LDFLAGS="$save_LDFLAGS"
  6078. fi
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6080. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6082. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6083. if ${lt_cv_ld_force_load+:} false; then :
  6084. $as_echo_n "(cached) " >&6
  6085. else
  6086. lt_cv_ld_force_load=no
  6087. cat > conftest.c << _LT_EOF
  6088. int forced_loaded() { return 2;}
  6089. _LT_EOF
  6090. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6091. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6092. echo "$AR cru libconftest.a conftest.o" >&5
  6093. $AR cru libconftest.a conftest.o 2>&5
  6094. echo "$RANLIB libconftest.a" >&5
  6095. $RANLIB libconftest.a 2>&5
  6096. cat > conftest.c << _LT_EOF
  6097. int main() { return 0;}
  6098. _LT_EOF
  6099. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6100. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6101. _lt_result=$?
  6102. if test -s conftest.err && $GREP force_load conftest.err; then
  6103. cat conftest.err >&5
  6104. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6105. lt_cv_ld_force_load=yes
  6106. else
  6107. cat conftest.err >&5
  6108. fi
  6109. rm -f conftest.err libconftest.a conftest conftest.c
  6110. rm -rf conftest.dSYM
  6111. fi
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6113. $as_echo "$lt_cv_ld_force_load" >&6; }
  6114. case $host_os in
  6115. rhapsody* | darwin1.[012])
  6116. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6117. darwin1.*)
  6118. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6119. darwin*) # darwin 5.x on
  6120. # if running on 10.5 or later, the deployment target defaults
  6121. # to the OS version, if on x86, and 10.4, the deployment
  6122. # target defaults to 10.4. Don't you love it?
  6123. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6124. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6125. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6126. 10.[012]*)
  6127. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6128. 10.*)
  6129. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6130. esac
  6131. ;;
  6132. esac
  6133. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6134. _lt_dar_single_mod='$single_module'
  6135. fi
  6136. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6137. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6138. else
  6139. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6140. fi
  6141. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6142. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6143. else
  6144. _lt_dsymutil=
  6145. fi
  6146. ;;
  6147. esac
  6148. ac_ext=c
  6149. ac_cpp='$CPP $CPPFLAGS'
  6150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6154. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6155. # On Suns, sometimes $CPP names a directory.
  6156. if test -n "$CPP" && test -d "$CPP"; then
  6157. CPP=
  6158. fi
  6159. if test -z "$CPP"; then
  6160. if ${ac_cv_prog_CPP+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. # Double quotes because CPP needs to be expanded
  6164. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6165. do
  6166. ac_preproc_ok=false
  6167. for ac_c_preproc_warn_flag in '' yes
  6168. do
  6169. # Use a header file that comes with gcc, so configuring glibc
  6170. # with a fresh cross-compiler works.
  6171. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6172. # <limits.h> exists even on freestanding compilers.
  6173. # On the NeXT, cc -E runs the code through the compiler's parser,
  6174. # not just through cpp. "Syntax error" is here to catch this case.
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. #ifdef __STDC__
  6178. # include <limits.h>
  6179. #else
  6180. # include <assert.h>
  6181. #endif
  6182. Syntax error
  6183. _ACEOF
  6184. if ac_fn_c_try_cpp "$LINENO"; then :
  6185. else
  6186. # Broken: fails on valid input.
  6187. continue
  6188. fi
  6189. rm -f conftest.err conftest.i conftest.$ac_ext
  6190. # OK, works on sane cases. Now check whether nonexistent headers
  6191. # can be detected and how.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #include <ac_nonexistent.h>
  6195. _ACEOF
  6196. if ac_fn_c_try_cpp "$LINENO"; then :
  6197. # Broken: success on invalid input.
  6198. continue
  6199. else
  6200. # Passes both tests.
  6201. ac_preproc_ok=:
  6202. break
  6203. fi
  6204. rm -f conftest.err conftest.i conftest.$ac_ext
  6205. done
  6206. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6207. rm -f conftest.i conftest.err conftest.$ac_ext
  6208. if $ac_preproc_ok; then :
  6209. break
  6210. fi
  6211. done
  6212. ac_cv_prog_CPP=$CPP
  6213. fi
  6214. CPP=$ac_cv_prog_CPP
  6215. else
  6216. ac_cv_prog_CPP=$CPP
  6217. fi
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6219. $as_echo "$CPP" >&6; }
  6220. ac_preproc_ok=false
  6221. for ac_c_preproc_warn_flag in '' yes
  6222. do
  6223. # Use a header file that comes with gcc, so configuring glibc
  6224. # with a fresh cross-compiler works.
  6225. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6226. # <limits.h> exists even on freestanding compilers.
  6227. # On the NeXT, cc -E runs the code through the compiler's parser,
  6228. # not just through cpp. "Syntax error" is here to catch this case.
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #ifdef __STDC__
  6232. # include <limits.h>
  6233. #else
  6234. # include <assert.h>
  6235. #endif
  6236. Syntax error
  6237. _ACEOF
  6238. if ac_fn_c_try_cpp "$LINENO"; then :
  6239. else
  6240. # Broken: fails on valid input.
  6241. continue
  6242. fi
  6243. rm -f conftest.err conftest.i conftest.$ac_ext
  6244. # OK, works on sane cases. Now check whether nonexistent headers
  6245. # can be detected and how.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #include <ac_nonexistent.h>
  6249. _ACEOF
  6250. if ac_fn_c_try_cpp "$LINENO"; then :
  6251. # Broken: success on invalid input.
  6252. continue
  6253. else
  6254. # Passes both tests.
  6255. ac_preproc_ok=:
  6256. break
  6257. fi
  6258. rm -f conftest.err conftest.i conftest.$ac_ext
  6259. done
  6260. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6261. rm -f conftest.i conftest.err conftest.$ac_ext
  6262. if $ac_preproc_ok; then :
  6263. else
  6264. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6265. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6266. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6267. See \`config.log' for more details" "$LINENO" 5; }
  6268. fi
  6269. ac_ext=c
  6270. ac_cpp='$CPP $CPPFLAGS'
  6271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6275. $as_echo_n "checking for ANSI C header files... " >&6; }
  6276. if ${ac_cv_header_stdc+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. #include <stdlib.h>
  6282. #include <stdarg.h>
  6283. #include <string.h>
  6284. #include <float.h>
  6285. int
  6286. main ()
  6287. {
  6288. ;
  6289. return 0;
  6290. }
  6291. _ACEOF
  6292. if ac_fn_c_try_compile "$LINENO"; then :
  6293. ac_cv_header_stdc=yes
  6294. else
  6295. ac_cv_header_stdc=no
  6296. fi
  6297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6298. if test $ac_cv_header_stdc = yes; then
  6299. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. #include <string.h>
  6303. _ACEOF
  6304. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6305. $EGREP "memchr" >/dev/null 2>&1; then :
  6306. else
  6307. ac_cv_header_stdc=no
  6308. fi
  6309. rm -f conftest*
  6310. fi
  6311. if test $ac_cv_header_stdc = yes; then
  6312. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6314. /* end confdefs.h. */
  6315. #include <stdlib.h>
  6316. _ACEOF
  6317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6318. $EGREP "free" >/dev/null 2>&1; then :
  6319. else
  6320. ac_cv_header_stdc=no
  6321. fi
  6322. rm -f conftest*
  6323. fi
  6324. if test $ac_cv_header_stdc = yes; then
  6325. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6326. if test "$cross_compiling" = yes; then :
  6327. :
  6328. else
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. #include <ctype.h>
  6332. #include <stdlib.h>
  6333. #if ((' ' & 0x0FF) == 0x020)
  6334. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6335. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6336. #else
  6337. # define ISLOWER(c) \
  6338. (('a' <= (c) && (c) <= 'i') \
  6339. || ('j' <= (c) && (c) <= 'r') \
  6340. || ('s' <= (c) && (c) <= 'z'))
  6341. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6342. #endif
  6343. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6344. int
  6345. main ()
  6346. {
  6347. int i;
  6348. for (i = 0; i < 256; i++)
  6349. if (XOR (islower (i), ISLOWER (i))
  6350. || toupper (i) != TOUPPER (i))
  6351. return 2;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_c_try_run "$LINENO"; then :
  6356. else
  6357. ac_cv_header_stdc=no
  6358. fi
  6359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6361. fi
  6362. fi
  6363. fi
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6365. $as_echo "$ac_cv_header_stdc" >&6; }
  6366. if test $ac_cv_header_stdc = yes; then
  6367. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6368. fi
  6369. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6370. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6371. inttypes.h stdint.h unistd.h
  6372. do :
  6373. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6374. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6375. "
  6376. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6377. cat >>confdefs.h <<_ACEOF
  6378. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6379. _ACEOF
  6380. fi
  6381. done
  6382. for ac_header in dlfcn.h
  6383. do :
  6384. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6385. "
  6386. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6387. cat >>confdefs.h <<_ACEOF
  6388. #define HAVE_DLFCN_H 1
  6389. _ACEOF
  6390. fi
  6391. done
  6392. # Set options
  6393. enable_win32_dll=yes
  6394. case $host in
  6395. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6396. if test -n "$ac_tool_prefix"; then
  6397. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6398. set dummy ${ac_tool_prefix}as; ac_word=$2
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6400. $as_echo_n "checking for $ac_word... " >&6; }
  6401. if ${ac_cv_prog_AS+:} false; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. if test -n "$AS"; then
  6405. ac_cv_prog_AS="$AS" # Let the user override the test.
  6406. else
  6407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6408. for as_dir in $PATH
  6409. do
  6410. IFS=$as_save_IFS
  6411. test -z "$as_dir" && as_dir=.
  6412. for ac_exec_ext in '' $ac_executable_extensions; do
  6413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6414. ac_cv_prog_AS="${ac_tool_prefix}as"
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6416. break 2
  6417. fi
  6418. done
  6419. done
  6420. IFS=$as_save_IFS
  6421. fi
  6422. fi
  6423. AS=$ac_cv_prog_AS
  6424. if test -n "$AS"; then
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6426. $as_echo "$AS" >&6; }
  6427. else
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6429. $as_echo "no" >&6; }
  6430. fi
  6431. fi
  6432. if test -z "$ac_cv_prog_AS"; then
  6433. ac_ct_AS=$AS
  6434. # Extract the first word of "as", so it can be a program name with args.
  6435. set dummy as; ac_word=$2
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6437. $as_echo_n "checking for $ac_word... " >&6; }
  6438. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. if test -n "$ac_ct_AS"; then
  6442. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6443. else
  6444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6445. for as_dir in $PATH
  6446. do
  6447. IFS=$as_save_IFS
  6448. test -z "$as_dir" && as_dir=.
  6449. for ac_exec_ext in '' $ac_executable_extensions; do
  6450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6451. ac_cv_prog_ac_ct_AS="as"
  6452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6453. break 2
  6454. fi
  6455. done
  6456. done
  6457. IFS=$as_save_IFS
  6458. fi
  6459. fi
  6460. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6461. if test -n "$ac_ct_AS"; then
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6463. $as_echo "$ac_ct_AS" >&6; }
  6464. else
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6466. $as_echo "no" >&6; }
  6467. fi
  6468. if test "x$ac_ct_AS" = x; then
  6469. AS="false"
  6470. else
  6471. case $cross_compiling:$ac_tool_warned in
  6472. yes:)
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6474. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6475. ac_tool_warned=yes ;;
  6476. esac
  6477. AS=$ac_ct_AS
  6478. fi
  6479. else
  6480. AS="$ac_cv_prog_AS"
  6481. fi
  6482. if test -n "$ac_tool_prefix"; then
  6483. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6484. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6486. $as_echo_n "checking for $ac_word... " >&6; }
  6487. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. if test -n "$DLLTOOL"; then
  6491. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6492. else
  6493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6494. for as_dir in $PATH
  6495. do
  6496. IFS=$as_save_IFS
  6497. test -z "$as_dir" && as_dir=.
  6498. for ac_exec_ext in '' $ac_executable_extensions; do
  6499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6500. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6502. break 2
  6503. fi
  6504. done
  6505. done
  6506. IFS=$as_save_IFS
  6507. fi
  6508. fi
  6509. DLLTOOL=$ac_cv_prog_DLLTOOL
  6510. if test -n "$DLLTOOL"; then
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6512. $as_echo "$DLLTOOL" >&6; }
  6513. else
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6515. $as_echo "no" >&6; }
  6516. fi
  6517. fi
  6518. if test -z "$ac_cv_prog_DLLTOOL"; then
  6519. ac_ct_DLLTOOL=$DLLTOOL
  6520. # Extract the first word of "dlltool", so it can be a program name with args.
  6521. set dummy dlltool; ac_word=$2
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6523. $as_echo_n "checking for $ac_word... " >&6; }
  6524. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6525. $as_echo_n "(cached) " >&6
  6526. else
  6527. if test -n "$ac_ct_DLLTOOL"; then
  6528. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. test -z "$as_dir" && as_dir=.
  6535. for ac_exec_ext in '' $ac_executable_extensions; do
  6536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6537. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6539. break 2
  6540. fi
  6541. done
  6542. done
  6543. IFS=$as_save_IFS
  6544. fi
  6545. fi
  6546. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6547. if test -n "$ac_ct_DLLTOOL"; then
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6549. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6550. else
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6552. $as_echo "no" >&6; }
  6553. fi
  6554. if test "x$ac_ct_DLLTOOL" = x; then
  6555. DLLTOOL="false"
  6556. else
  6557. case $cross_compiling:$ac_tool_warned in
  6558. yes:)
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6561. ac_tool_warned=yes ;;
  6562. esac
  6563. DLLTOOL=$ac_ct_DLLTOOL
  6564. fi
  6565. else
  6566. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6567. fi
  6568. if test -n "$ac_tool_prefix"; then
  6569. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6570. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6572. $as_echo_n "checking for $ac_word... " >&6; }
  6573. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. if test -n "$OBJDUMP"; then
  6577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6578. else
  6579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6580. for as_dir in $PATH
  6581. do
  6582. IFS=$as_save_IFS
  6583. test -z "$as_dir" && as_dir=.
  6584. for ac_exec_ext in '' $ac_executable_extensions; do
  6585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6586. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6588. break 2
  6589. fi
  6590. done
  6591. done
  6592. IFS=$as_save_IFS
  6593. fi
  6594. fi
  6595. OBJDUMP=$ac_cv_prog_OBJDUMP
  6596. if test -n "$OBJDUMP"; then
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6598. $as_echo "$OBJDUMP" >&6; }
  6599. else
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6601. $as_echo "no" >&6; }
  6602. fi
  6603. fi
  6604. if test -z "$ac_cv_prog_OBJDUMP"; then
  6605. ac_ct_OBJDUMP=$OBJDUMP
  6606. # Extract the first word of "objdump", so it can be a program name with args.
  6607. set dummy objdump; ac_word=$2
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6609. $as_echo_n "checking for $ac_word... " >&6; }
  6610. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. if test -n "$ac_ct_OBJDUMP"; then
  6614. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6615. else
  6616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6617. for as_dir in $PATH
  6618. do
  6619. IFS=$as_save_IFS
  6620. test -z "$as_dir" && as_dir=.
  6621. for ac_exec_ext in '' $ac_executable_extensions; do
  6622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6623. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6625. break 2
  6626. fi
  6627. done
  6628. done
  6629. IFS=$as_save_IFS
  6630. fi
  6631. fi
  6632. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6633. if test -n "$ac_ct_OBJDUMP"; then
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6635. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6636. else
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6638. $as_echo "no" >&6; }
  6639. fi
  6640. if test "x$ac_ct_OBJDUMP" = x; then
  6641. OBJDUMP="false"
  6642. else
  6643. case $cross_compiling:$ac_tool_warned in
  6644. yes:)
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6647. ac_tool_warned=yes ;;
  6648. esac
  6649. OBJDUMP=$ac_ct_OBJDUMP
  6650. fi
  6651. else
  6652. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6653. fi
  6654. ;;
  6655. esac
  6656. test -z "$AS" && AS=as
  6657. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6658. test -z "$OBJDUMP" && OBJDUMP=objdump
  6659. enable_dlopen=no
  6660. # Check whether --enable-shared was given.
  6661. if test "${enable_shared+set}" = set; then :
  6662. enableval=$enable_shared; p=${PACKAGE-default}
  6663. case $enableval in
  6664. yes) enable_shared=yes ;;
  6665. no) enable_shared=no ;;
  6666. *)
  6667. enable_shared=no
  6668. # Look at the argument we got. We use all the common list separators.
  6669. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6670. for pkg in $enableval; do
  6671. IFS="$lt_save_ifs"
  6672. if test "X$pkg" = "X$p"; then
  6673. enable_shared=yes
  6674. fi
  6675. done
  6676. IFS="$lt_save_ifs"
  6677. ;;
  6678. esac
  6679. else
  6680. enable_shared=yes
  6681. fi
  6682. # Check whether --enable-static was given.
  6683. if test "${enable_static+set}" = set; then :
  6684. enableval=$enable_static; p=${PACKAGE-default}
  6685. case $enableval in
  6686. yes) enable_static=yes ;;
  6687. no) enable_static=no ;;
  6688. *)
  6689. enable_static=no
  6690. # Look at the argument we got. We use all the common list separators.
  6691. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6692. for pkg in $enableval; do
  6693. IFS="$lt_save_ifs"
  6694. if test "X$pkg" = "X$p"; then
  6695. enable_static=yes
  6696. fi
  6697. done
  6698. IFS="$lt_save_ifs"
  6699. ;;
  6700. esac
  6701. else
  6702. enable_static=yes
  6703. fi
  6704. # Check whether --with-pic was given.
  6705. if test "${with_pic+set}" = set; then :
  6706. withval=$with_pic; lt_p=${PACKAGE-default}
  6707. case $withval in
  6708. yes|no) pic_mode=$withval ;;
  6709. *)
  6710. pic_mode=default
  6711. # Look at the argument we got. We use all the common list separators.
  6712. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6713. for lt_pkg in $withval; do
  6714. IFS="$lt_save_ifs"
  6715. if test "X$lt_pkg" = "X$lt_p"; then
  6716. pic_mode=yes
  6717. fi
  6718. done
  6719. IFS="$lt_save_ifs"
  6720. ;;
  6721. esac
  6722. else
  6723. pic_mode=default
  6724. fi
  6725. test -z "$pic_mode" && pic_mode=default
  6726. # Check whether --enable-fast-install was given.
  6727. if test "${enable_fast_install+set}" = set; then :
  6728. enableval=$enable_fast_install; p=${PACKAGE-default}
  6729. case $enableval in
  6730. yes) enable_fast_install=yes ;;
  6731. no) enable_fast_install=no ;;
  6732. *)
  6733. enable_fast_install=no
  6734. # Look at the argument we got. We use all the common list separators.
  6735. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6736. for pkg in $enableval; do
  6737. IFS="$lt_save_ifs"
  6738. if test "X$pkg" = "X$p"; then
  6739. enable_fast_install=yes
  6740. fi
  6741. done
  6742. IFS="$lt_save_ifs"
  6743. ;;
  6744. esac
  6745. else
  6746. enable_fast_install=yes
  6747. fi
  6748. # This can be used to rebuild libtool when needed
  6749. LIBTOOL_DEPS="$ltmain"
  6750. # Always use our own libtool.
  6751. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6752. test -z "$LN_S" && LN_S="ln -s"
  6753. if test -n "${ZSH_VERSION+set}" ; then
  6754. setopt NO_GLOB_SUBST
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6757. $as_echo_n "checking for objdir... " >&6; }
  6758. if ${lt_cv_objdir+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. rm -f .libs 2>/dev/null
  6762. mkdir .libs 2>/dev/null
  6763. if test -d .libs; then
  6764. lt_cv_objdir=.libs
  6765. else
  6766. # MS-DOS does not allow filenames that begin with a dot.
  6767. lt_cv_objdir=_libs
  6768. fi
  6769. rmdir .libs 2>/dev/null
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6772. $as_echo "$lt_cv_objdir" >&6; }
  6773. objdir=$lt_cv_objdir
  6774. cat >>confdefs.h <<_ACEOF
  6775. #define LT_OBJDIR "$lt_cv_objdir/"
  6776. _ACEOF
  6777. case $host_os in
  6778. aix3*)
  6779. # AIX sometimes has problems with the GCC collect2 program. For some
  6780. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6781. # vanish in a puff of smoke.
  6782. if test "X${COLLECT_NAMES+set}" != Xset; then
  6783. COLLECT_NAMES=
  6784. export COLLECT_NAMES
  6785. fi
  6786. ;;
  6787. esac
  6788. # Global variables:
  6789. ofile=libtool
  6790. can_build_shared=yes
  6791. # All known linkers require a `.a' archive for static linking (except MSVC,
  6792. # which needs '.lib').
  6793. libext=a
  6794. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6795. old_CC="$CC"
  6796. old_CFLAGS="$CFLAGS"
  6797. # Set sane defaults for various variables
  6798. test -z "$CC" && CC=cc
  6799. test -z "$LTCC" && LTCC=$CC
  6800. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6801. test -z "$LD" && LD=ld
  6802. test -z "$ac_objext" && ac_objext=o
  6803. for cc_temp in $compiler""; do
  6804. case $cc_temp in
  6805. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6806. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6807. \-*) ;;
  6808. *) break;;
  6809. esac
  6810. done
  6811. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6812. # Only perform the check for file, if the check method requires it
  6813. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6814. case $deplibs_check_method in
  6815. file_magic*)
  6816. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6818. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6819. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. case $MAGIC_CMD in
  6823. [\\/*] | ?:[\\/]*)
  6824. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6825. ;;
  6826. *)
  6827. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6829. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6830. for ac_dir in $ac_dummy; do
  6831. IFS="$lt_save_ifs"
  6832. test -z "$ac_dir" && ac_dir=.
  6833. if test -f $ac_dir/${ac_tool_prefix}file; then
  6834. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6835. if test -n "$file_magic_test_file"; then
  6836. case $deplibs_check_method in
  6837. "file_magic "*)
  6838. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6839. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6840. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6841. $EGREP "$file_magic_regex" > /dev/null; then
  6842. :
  6843. else
  6844. cat <<_LT_EOF 1>&2
  6845. *** Warning: the command libtool uses to detect shared libraries,
  6846. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6847. *** The result is that libtool may fail to recognize shared libraries
  6848. *** as such. This will affect the creation of libtool libraries that
  6849. *** depend on shared libraries, but programs linked with such libtool
  6850. *** libraries will work regardless of this problem. Nevertheless, you
  6851. *** may want to report the problem to your system manager and/or to
  6852. *** bug-libtool@gnu.org
  6853. _LT_EOF
  6854. fi ;;
  6855. esac
  6856. fi
  6857. break
  6858. fi
  6859. done
  6860. IFS="$lt_save_ifs"
  6861. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6862. ;;
  6863. esac
  6864. fi
  6865. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6866. if test -n "$MAGIC_CMD"; then
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6868. $as_echo "$MAGIC_CMD" >&6; }
  6869. else
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. $as_echo "no" >&6; }
  6872. fi
  6873. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6874. if test -n "$ac_tool_prefix"; then
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6876. $as_echo_n "checking for file... " >&6; }
  6877. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. case $MAGIC_CMD in
  6881. [\\/*] | ?:[\\/]*)
  6882. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6883. ;;
  6884. *)
  6885. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6886. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6887. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6888. for ac_dir in $ac_dummy; do
  6889. IFS="$lt_save_ifs"
  6890. test -z "$ac_dir" && ac_dir=.
  6891. if test -f $ac_dir/file; then
  6892. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6893. if test -n "$file_magic_test_file"; then
  6894. case $deplibs_check_method in
  6895. "file_magic "*)
  6896. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6897. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6898. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6899. $EGREP "$file_magic_regex" > /dev/null; then
  6900. :
  6901. else
  6902. cat <<_LT_EOF 1>&2
  6903. *** Warning: the command libtool uses to detect shared libraries,
  6904. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6905. *** The result is that libtool may fail to recognize shared libraries
  6906. *** as such. This will affect the creation of libtool libraries that
  6907. *** depend on shared libraries, but programs linked with such libtool
  6908. *** libraries will work regardless of this problem. Nevertheless, you
  6909. *** may want to report the problem to your system manager and/or to
  6910. *** bug-libtool@gnu.org
  6911. _LT_EOF
  6912. fi ;;
  6913. esac
  6914. fi
  6915. break
  6916. fi
  6917. done
  6918. IFS="$lt_save_ifs"
  6919. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6920. ;;
  6921. esac
  6922. fi
  6923. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6924. if test -n "$MAGIC_CMD"; then
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6926. $as_echo "$MAGIC_CMD" >&6; }
  6927. else
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. $as_echo "no" >&6; }
  6930. fi
  6931. else
  6932. MAGIC_CMD=:
  6933. fi
  6934. fi
  6935. fi
  6936. ;;
  6937. esac
  6938. # Use C for the default configuration in the libtool script
  6939. lt_save_CC="$CC"
  6940. ac_ext=c
  6941. ac_cpp='$CPP $CPPFLAGS'
  6942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6945. # Source file extension for C test sources.
  6946. ac_ext=c
  6947. # Object file extension for compiled C test sources.
  6948. objext=o
  6949. objext=$objext
  6950. # Code to be used in simple compile tests
  6951. lt_simple_compile_test_code="int some_variable = 0;"
  6952. # Code to be used in simple link tests
  6953. lt_simple_link_test_code='int main(){return(0);}'
  6954. # If no C compiler was specified, use CC.
  6955. LTCC=${LTCC-"$CC"}
  6956. # If no C compiler flags were specified, use CFLAGS.
  6957. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6958. # Allow CC to be a program name with arguments.
  6959. compiler=$CC
  6960. # Save the default compiler, since it gets overwritten when the other
  6961. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6962. compiler_DEFAULT=$CC
  6963. # save warnings/boilerplate of simple test code
  6964. ac_outfile=conftest.$ac_objext
  6965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6967. _lt_compiler_boilerplate=`cat conftest.err`
  6968. $RM conftest*
  6969. ac_outfile=conftest.$ac_objext
  6970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6972. _lt_linker_boilerplate=`cat conftest.err`
  6973. $RM -r conftest*
  6974. ## CAVEAT EMPTOR:
  6975. ## There is no encapsulation within the following macros, do not change
  6976. ## the running order or otherwise move them around unless you know exactly
  6977. ## what you are doing...
  6978. if test -n "$compiler"; then
  6979. lt_prog_compiler_no_builtin_flag=
  6980. if test "$GCC" = yes; then
  6981. case $cc_basename in
  6982. nvcc*)
  6983. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6984. *)
  6985. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6986. esac
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6988. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6989. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6990. $as_echo_n "(cached) " >&6
  6991. else
  6992. lt_cv_prog_compiler_rtti_exceptions=no
  6993. ac_outfile=conftest.$ac_objext
  6994. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6995. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6996. # Insert the option either (1) after the last *FLAGS variable, or
  6997. # (2) before a word containing "conftest.", or (3) at the end.
  6998. # Note that $ac_compile itself does not contain backslashes and begins
  6999. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7000. # The option is referenced via a variable to avoid confusing sed.
  7001. lt_compile=`echo "$ac_compile" | $SED \
  7002. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7003. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7004. -e 's:$: $lt_compiler_flag:'`
  7005. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7006. (eval "$lt_compile" 2>conftest.err)
  7007. ac_status=$?
  7008. cat conftest.err >&5
  7009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7010. if (exit $ac_status) && test -s "$ac_outfile"; then
  7011. # The compiler can only warn and ignore the option if not recognized
  7012. # So say no if there are warnings other than the usual output.
  7013. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7014. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7015. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7016. lt_cv_prog_compiler_rtti_exceptions=yes
  7017. fi
  7018. fi
  7019. $RM conftest*
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7022. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7023. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7024. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7025. else
  7026. :
  7027. fi
  7028. fi
  7029. lt_prog_compiler_wl=
  7030. lt_prog_compiler_pic=
  7031. lt_prog_compiler_static=
  7032. if test "$GCC" = yes; then
  7033. lt_prog_compiler_wl='-Wl,'
  7034. lt_prog_compiler_static='-static'
  7035. case $host_os in
  7036. aix*)
  7037. # All AIX code is PIC.
  7038. if test "$host_cpu" = ia64; then
  7039. # AIX 5 now supports IA64 processor
  7040. lt_prog_compiler_static='-Bstatic'
  7041. fi
  7042. ;;
  7043. amigaos*)
  7044. case $host_cpu in
  7045. powerpc)
  7046. # see comment about AmigaOS4 .so support
  7047. lt_prog_compiler_pic='-fPIC'
  7048. ;;
  7049. m68k)
  7050. # FIXME: we need at least 68020 code to build shared libraries, but
  7051. # adding the `-m68020' flag to GCC prevents building anything better,
  7052. # like `-m68040'.
  7053. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7054. ;;
  7055. esac
  7056. ;;
  7057. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7058. # PIC is the default for these OSes.
  7059. ;;
  7060. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7061. # This hack is so that the source file can tell whether it is being
  7062. # built for inclusion in a dll (and should export symbols for example).
  7063. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7064. # (--disable-auto-import) libraries
  7065. lt_prog_compiler_pic='-DDLL_EXPORT'
  7066. ;;
  7067. darwin* | rhapsody*)
  7068. # PIC is the default on this platform
  7069. # Common symbols not allowed in MH_DYLIB files
  7070. lt_prog_compiler_pic='-fno-common'
  7071. ;;
  7072. haiku*)
  7073. # PIC is the default for Haiku.
  7074. # The "-static" flag exists, but is broken.
  7075. lt_prog_compiler_static=
  7076. ;;
  7077. hpux*)
  7078. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7079. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7080. # sets the default TLS model and affects inlining.
  7081. case $host_cpu in
  7082. hppa*64*)
  7083. # +Z the default
  7084. ;;
  7085. *)
  7086. lt_prog_compiler_pic='-fPIC'
  7087. ;;
  7088. esac
  7089. ;;
  7090. interix[3-9]*)
  7091. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7092. # Instead, we relocate shared libraries at runtime.
  7093. ;;
  7094. msdosdjgpp*)
  7095. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7096. # on systems that don't support them.
  7097. lt_prog_compiler_can_build_shared=no
  7098. enable_shared=no
  7099. ;;
  7100. *nto* | *qnx*)
  7101. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7102. # it will coredump.
  7103. lt_prog_compiler_pic='-fPIC -shared'
  7104. ;;
  7105. sysv4*MP*)
  7106. if test -d /usr/nec; then
  7107. lt_prog_compiler_pic=-Kconform_pic
  7108. fi
  7109. ;;
  7110. *)
  7111. lt_prog_compiler_pic='-fPIC'
  7112. ;;
  7113. esac
  7114. case $cc_basename in
  7115. nvcc*) # Cuda Compiler Driver 2.2
  7116. lt_prog_compiler_wl='-Xlinker '
  7117. if test -n "$lt_prog_compiler_pic"; then
  7118. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7119. fi
  7120. ;;
  7121. esac
  7122. else
  7123. # PORTME Check for flag to pass linker flags through the system compiler.
  7124. case $host_os in
  7125. aix*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. if test "$host_cpu" = ia64; then
  7128. # AIX 5 now supports IA64 processor
  7129. lt_prog_compiler_static='-Bstatic'
  7130. else
  7131. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7132. fi
  7133. ;;
  7134. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7135. # This hack is so that the source file can tell whether it is being
  7136. # built for inclusion in a dll (and should export symbols for example).
  7137. lt_prog_compiler_pic='-DDLL_EXPORT'
  7138. ;;
  7139. hpux9* | hpux10* | hpux11*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7142. # not for PA HP-UX.
  7143. case $host_cpu in
  7144. hppa*64*|ia64*)
  7145. # +Z the default
  7146. ;;
  7147. *)
  7148. lt_prog_compiler_pic='+Z'
  7149. ;;
  7150. esac
  7151. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7152. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7153. ;;
  7154. irix5* | irix6* | nonstopux*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. # PIC (with -KPIC) is the default.
  7157. lt_prog_compiler_static='-non_shared'
  7158. ;;
  7159. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7160. case $cc_basename in
  7161. # old Intel for x86_64 which still supported -KPIC.
  7162. ecc*)
  7163. lt_prog_compiler_wl='-Wl,'
  7164. lt_prog_compiler_pic='-KPIC'
  7165. lt_prog_compiler_static='-static'
  7166. ;;
  7167. # icc used to be incompatible with GCC.
  7168. # ICC 10 doesn't accept -KPIC any more.
  7169. icc* | ifort*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. lt_prog_compiler_pic='-fPIC'
  7172. lt_prog_compiler_static='-static'
  7173. ;;
  7174. # Lahey Fortran 8.1.
  7175. lf95*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='--shared'
  7178. lt_prog_compiler_static='--static'
  7179. ;;
  7180. nagfor*)
  7181. # NAG Fortran compiler
  7182. lt_prog_compiler_wl='-Wl,-Wl,,'
  7183. lt_prog_compiler_pic='-PIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7187. # Portland Group compilers (*not* the Pentium gcc compiler,
  7188. # which looks to be a dead project)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='-fpic'
  7191. lt_prog_compiler_static='-Bstatic'
  7192. ;;
  7193. ccc*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. # All Alpha code is PIC.
  7196. lt_prog_compiler_static='-non_shared'
  7197. ;;
  7198. xl* | bgxl* | bgf* | mpixl*)
  7199. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='-qpic'
  7202. lt_prog_compiler_static='-qstaticlink'
  7203. ;;
  7204. *)
  7205. case `$CC -V 2>&1 | sed 5q` in
  7206. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7207. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7208. lt_prog_compiler_pic='-KPIC'
  7209. lt_prog_compiler_static='-Bstatic'
  7210. lt_prog_compiler_wl=''
  7211. ;;
  7212. *Sun\ F* | *Sun*Fortran*)
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. lt_prog_compiler_wl='-Qoption ld '
  7216. ;;
  7217. *Sun\ C*)
  7218. # Sun C 5.9
  7219. lt_prog_compiler_pic='-KPIC'
  7220. lt_prog_compiler_static='-Bstatic'
  7221. lt_prog_compiler_wl='-Wl,'
  7222. ;;
  7223. *Intel*\ [CF]*Compiler*)
  7224. lt_prog_compiler_wl='-Wl,'
  7225. lt_prog_compiler_pic='-fPIC'
  7226. lt_prog_compiler_static='-static'
  7227. ;;
  7228. *Portland\ Group*)
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_pic='-fpic'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. ;;
  7233. esac
  7234. ;;
  7235. esac
  7236. ;;
  7237. newsos6)
  7238. lt_prog_compiler_pic='-KPIC'
  7239. lt_prog_compiler_static='-Bstatic'
  7240. ;;
  7241. *nto* | *qnx*)
  7242. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7243. # it will coredump.
  7244. lt_prog_compiler_pic='-fPIC -shared'
  7245. ;;
  7246. osf3* | osf4* | osf5*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. # All OSF/1 code is PIC.
  7249. lt_prog_compiler_static='-non_shared'
  7250. ;;
  7251. rdos*)
  7252. lt_prog_compiler_static='-non_shared'
  7253. ;;
  7254. solaris*)
  7255. lt_prog_compiler_pic='-KPIC'
  7256. lt_prog_compiler_static='-Bstatic'
  7257. case $cc_basename in
  7258. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7259. lt_prog_compiler_wl='-Qoption ld ';;
  7260. *)
  7261. lt_prog_compiler_wl='-Wl,';;
  7262. esac
  7263. ;;
  7264. sunos4*)
  7265. lt_prog_compiler_wl='-Qoption ld '
  7266. lt_prog_compiler_pic='-PIC'
  7267. lt_prog_compiler_static='-Bstatic'
  7268. ;;
  7269. sysv4 | sysv4.2uw2* | sysv4.3*)
  7270. lt_prog_compiler_wl='-Wl,'
  7271. lt_prog_compiler_pic='-KPIC'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. ;;
  7274. sysv4*MP*)
  7275. if test -d /usr/nec ;then
  7276. lt_prog_compiler_pic='-Kconform_pic'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. fi
  7279. ;;
  7280. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_pic='-KPIC'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. ;;
  7285. unicos*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. lt_prog_compiler_can_build_shared=no
  7288. ;;
  7289. uts4*)
  7290. lt_prog_compiler_pic='-pic'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. ;;
  7293. *)
  7294. lt_prog_compiler_can_build_shared=no
  7295. ;;
  7296. esac
  7297. fi
  7298. case $host_os in
  7299. # For platforms which do not support PIC, -DPIC is meaningless:
  7300. *djgpp*)
  7301. lt_prog_compiler_pic=
  7302. ;;
  7303. *)
  7304. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7305. ;;
  7306. esac
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7308. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7309. if ${lt_cv_prog_compiler_pic+:} false; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7315. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7316. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7317. #
  7318. # Check to make sure the PIC flag actually works.
  7319. #
  7320. if test -n "$lt_prog_compiler_pic"; then
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7322. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7323. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_prog_compiler_pic_works=no
  7327. ac_outfile=conftest.$ac_objext
  7328. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7329. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7330. # Insert the option either (1) after the last *FLAGS variable, or
  7331. # (2) before a word containing "conftest.", or (3) at the end.
  7332. # Note that $ac_compile itself does not contain backslashes and begins
  7333. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7334. # The option is referenced via a variable to avoid confusing sed.
  7335. lt_compile=`echo "$ac_compile" | $SED \
  7336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7338. -e 's:$: $lt_compiler_flag:'`
  7339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7340. (eval "$lt_compile" 2>conftest.err)
  7341. ac_status=$?
  7342. cat conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. if (exit $ac_status) && test -s "$ac_outfile"; then
  7345. # The compiler can only warn and ignore the option if not recognized
  7346. # So say no if there are warnings other than the usual output.
  7347. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7348. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7349. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7350. lt_cv_prog_compiler_pic_works=yes
  7351. fi
  7352. fi
  7353. $RM conftest*
  7354. fi
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7356. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7357. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7358. case $lt_prog_compiler_pic in
  7359. "" | " "*) ;;
  7360. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7361. esac
  7362. else
  7363. lt_prog_compiler_pic=
  7364. lt_prog_compiler_can_build_shared=no
  7365. fi
  7366. fi
  7367. #
  7368. # Check to make sure the static flag actually works.
  7369. #
  7370. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7372. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7373. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. lt_cv_prog_compiler_static_works=no
  7377. save_LDFLAGS="$LDFLAGS"
  7378. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7379. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7380. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7381. # The linker can only warn and ignore the option if not recognized
  7382. # So say no if there are warnings
  7383. if test -s conftest.err; then
  7384. # Append any errors to the config.log.
  7385. cat conftest.err 1>&5
  7386. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7387. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7388. if diff conftest.exp conftest.er2 >/dev/null; then
  7389. lt_cv_prog_compiler_static_works=yes
  7390. fi
  7391. else
  7392. lt_cv_prog_compiler_static_works=yes
  7393. fi
  7394. fi
  7395. $RM -r conftest*
  7396. LDFLAGS="$save_LDFLAGS"
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7399. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7400. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7401. :
  7402. else
  7403. lt_prog_compiler_static=
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7406. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7407. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. lt_cv_prog_compiler_c_o=no
  7411. $RM -r conftest 2>/dev/null
  7412. mkdir conftest
  7413. cd conftest
  7414. mkdir out
  7415. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7416. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7417. # Insert the option either (1) after the last *FLAGS variable, or
  7418. # (2) before a word containing "conftest.", or (3) at the end.
  7419. # Note that $ac_compile itself does not contain backslashes and begins
  7420. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7421. lt_compile=`echo "$ac_compile" | $SED \
  7422. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7423. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7424. -e 's:$: $lt_compiler_flag:'`
  7425. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7426. (eval "$lt_compile" 2>out/conftest.err)
  7427. ac_status=$?
  7428. cat out/conftest.err >&5
  7429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7430. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7431. then
  7432. # The compiler can only warn and ignore the option if not recognized
  7433. # So say no if there are warnings
  7434. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7435. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7436. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7437. lt_cv_prog_compiler_c_o=yes
  7438. fi
  7439. fi
  7440. chmod u+w . 2>&5
  7441. $RM conftest*
  7442. # SGI C++ compiler will create directory out/ii_files/ for
  7443. # template instantiation
  7444. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7445. $RM out/* && rmdir out
  7446. cd ..
  7447. $RM -r conftest
  7448. $RM conftest*
  7449. fi
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7451. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7453. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7454. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7455. $as_echo_n "(cached) " >&6
  7456. else
  7457. lt_cv_prog_compiler_c_o=no
  7458. $RM -r conftest 2>/dev/null
  7459. mkdir conftest
  7460. cd conftest
  7461. mkdir out
  7462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7463. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7464. # Insert the option either (1) after the last *FLAGS variable, or
  7465. # (2) before a word containing "conftest.", or (3) at the end.
  7466. # Note that $ac_compile itself does not contain backslashes and begins
  7467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7468. lt_compile=`echo "$ac_compile" | $SED \
  7469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7471. -e 's:$: $lt_compiler_flag:'`
  7472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7473. (eval "$lt_compile" 2>out/conftest.err)
  7474. ac_status=$?
  7475. cat out/conftest.err >&5
  7476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7477. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7478. then
  7479. # The compiler can only warn and ignore the option if not recognized
  7480. # So say no if there are warnings
  7481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7482. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7483. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7484. lt_cv_prog_compiler_c_o=yes
  7485. fi
  7486. fi
  7487. chmod u+w . 2>&5
  7488. $RM conftest*
  7489. # SGI C++ compiler will create directory out/ii_files/ for
  7490. # template instantiation
  7491. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7492. $RM out/* && rmdir out
  7493. cd ..
  7494. $RM -r conftest
  7495. $RM conftest*
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7498. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7499. hard_links="nottested"
  7500. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7501. # do not overwrite the value of need_locks provided by the user
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7503. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7504. hard_links=yes
  7505. $RM conftest*
  7506. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7507. touch conftest.a
  7508. ln conftest.a conftest.b 2>&5 || hard_links=no
  7509. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7511. $as_echo "$hard_links" >&6; }
  7512. if test "$hard_links" = no; then
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7514. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7515. need_locks=warn
  7516. fi
  7517. else
  7518. need_locks=no
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7521. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7522. runpath_var=
  7523. allow_undefined_flag=
  7524. always_export_symbols=no
  7525. archive_cmds=
  7526. archive_expsym_cmds=
  7527. compiler_needs_object=no
  7528. enable_shared_with_static_runtimes=no
  7529. export_dynamic_flag_spec=
  7530. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7531. hardcode_automatic=no
  7532. hardcode_direct=no
  7533. hardcode_direct_absolute=no
  7534. hardcode_libdir_flag_spec=
  7535. hardcode_libdir_separator=
  7536. hardcode_minus_L=no
  7537. hardcode_shlibpath_var=unsupported
  7538. inherit_rpath=no
  7539. link_all_deplibs=unknown
  7540. module_cmds=
  7541. module_expsym_cmds=
  7542. old_archive_from_new_cmds=
  7543. old_archive_from_expsyms_cmds=
  7544. thread_safe_flag_spec=
  7545. whole_archive_flag_spec=
  7546. # include_expsyms should be a list of space-separated symbols to be *always*
  7547. # included in the symbol list
  7548. include_expsyms=
  7549. # exclude_expsyms can be an extended regexp of symbols to exclude
  7550. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7551. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7552. # as well as any symbol that contains `d'.
  7553. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7554. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7555. # platforms (ab)use it in PIC code, but their linkers get confused if
  7556. # the symbol is explicitly referenced. Since portable code cannot
  7557. # rely on this symbol name, it's probably fine to never include it in
  7558. # preloaded symbol tables.
  7559. # Exclude shared library initialization/finalization symbols.
  7560. extract_expsyms_cmds=
  7561. case $host_os in
  7562. cygwin* | mingw* | pw32* | cegcc*)
  7563. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7564. # When not using gcc, we currently assume that we are using
  7565. # Microsoft Visual C++.
  7566. if test "$GCC" != yes; then
  7567. with_gnu_ld=no
  7568. fi
  7569. ;;
  7570. interix*)
  7571. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7572. with_gnu_ld=yes
  7573. ;;
  7574. openbsd*)
  7575. with_gnu_ld=no
  7576. ;;
  7577. esac
  7578. ld_shlibs=yes
  7579. # On some targets, GNU ld is compatible enough with the native linker
  7580. # that we're better off using the native interface for both.
  7581. lt_use_gnu_ld_interface=no
  7582. if test "$with_gnu_ld" = yes; then
  7583. case $host_os in
  7584. aix*)
  7585. # The AIX port of GNU ld has always aspired to compatibility
  7586. # with the native linker. However, as the warning in the GNU ld
  7587. # block says, versions before 2.19.5* couldn't really create working
  7588. # shared libraries, regardless of the interface used.
  7589. case `$LD -v 2>&1` in
  7590. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7591. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7592. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7593. *)
  7594. lt_use_gnu_ld_interface=yes
  7595. ;;
  7596. esac
  7597. ;;
  7598. *)
  7599. lt_use_gnu_ld_interface=yes
  7600. ;;
  7601. esac
  7602. fi
  7603. if test "$lt_use_gnu_ld_interface" = yes; then
  7604. # If archive_cmds runs LD, not CC, wlarc should be empty
  7605. wlarc='${wl}'
  7606. # Set some defaults for GNU ld with shared library support. These
  7607. # are reset later if shared libraries are not supported. Putting them
  7608. # here allows them to be overridden if necessary.
  7609. runpath_var=LD_RUN_PATH
  7610. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7611. export_dynamic_flag_spec='${wl}--export-dynamic'
  7612. # ancient GNU ld didn't support --whole-archive et. al.
  7613. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7614. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7615. else
  7616. whole_archive_flag_spec=
  7617. fi
  7618. supports_anon_versioning=no
  7619. case `$LD -v 2>&1` in
  7620. *GNU\ gold*) supports_anon_versioning=yes ;;
  7621. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7622. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7623. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7624. *\ 2.11.*) ;; # other 2.11 versions
  7625. *) supports_anon_versioning=yes ;;
  7626. esac
  7627. # See if GNU ld supports shared libraries.
  7628. case $host_os in
  7629. aix[3-9]*)
  7630. # On AIX/PPC, the GNU linker is very broken
  7631. if test "$host_cpu" != ia64; then
  7632. ld_shlibs=no
  7633. cat <<_LT_EOF 1>&2
  7634. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7635. *** to be unable to reliably create shared libraries on AIX.
  7636. *** Therefore, libtool is disabling shared libraries support. If you
  7637. *** really care for shared libraries, you may want to install binutils
  7638. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7639. *** You will then need to restart the configuration process.
  7640. _LT_EOF
  7641. fi
  7642. ;;
  7643. amigaos*)
  7644. case $host_cpu in
  7645. powerpc)
  7646. # see comment about AmigaOS4 .so support
  7647. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7648. archive_expsym_cmds=''
  7649. ;;
  7650. m68k)
  7651. 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)'
  7652. hardcode_libdir_flag_spec='-L$libdir'
  7653. hardcode_minus_L=yes
  7654. ;;
  7655. esac
  7656. ;;
  7657. beos*)
  7658. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7659. allow_undefined_flag=unsupported
  7660. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7661. # support --undefined. This deserves some investigation. FIXME
  7662. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7663. else
  7664. ld_shlibs=no
  7665. fi
  7666. ;;
  7667. cygwin* | mingw* | pw32* | cegcc*)
  7668. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7669. # as there is no search path for DLLs.
  7670. hardcode_libdir_flag_spec='-L$libdir'
  7671. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7672. allow_undefined_flag=unsupported
  7673. always_export_symbols=no
  7674. enable_shared_with_static_runtimes=yes
  7675. 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'
  7676. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7677. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7678. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7679. # If the export-symbols file already is a .def file (1st line
  7680. # is EXPORTS), use it as is; otherwise, prepend...
  7681. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7682. cp $export_symbols $output_objdir/$soname.def;
  7683. else
  7684. echo EXPORTS > $output_objdir/$soname.def;
  7685. cat $export_symbols >> $output_objdir/$soname.def;
  7686. fi~
  7687. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7688. else
  7689. ld_shlibs=no
  7690. fi
  7691. ;;
  7692. haiku*)
  7693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7694. link_all_deplibs=yes
  7695. ;;
  7696. interix[3-9]*)
  7697. hardcode_direct=no
  7698. hardcode_shlibpath_var=no
  7699. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7700. export_dynamic_flag_spec='${wl}-E'
  7701. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7702. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7703. # default) and relocated if they conflict, which is a slow very memory
  7704. # consuming and fragmenting process. To avoid this, we pick a random,
  7705. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7706. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7707. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7708. 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'
  7709. ;;
  7710. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7711. tmp_diet=no
  7712. if test "$host_os" = linux-dietlibc; then
  7713. case $cc_basename in
  7714. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7715. esac
  7716. fi
  7717. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7718. && test "$tmp_diet" = no
  7719. then
  7720. tmp_addflag=' $pic_flag'
  7721. tmp_sharedflag='-shared'
  7722. case $cc_basename,$host_cpu in
  7723. pgcc*) # Portland Group C compiler
  7724. 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'
  7725. tmp_addflag=' $pic_flag'
  7726. ;;
  7727. pgf77* | pgf90* | pgf95* | pgfortran*)
  7728. # Portland Group f77 and f90 compilers
  7729. 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'
  7730. tmp_addflag=' $pic_flag -Mnomain' ;;
  7731. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7732. tmp_addflag=' -i_dynamic' ;;
  7733. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7734. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7735. ifc* | ifort*) # Intel Fortran compiler
  7736. tmp_addflag=' -nofor_main' ;;
  7737. lf95*) # Lahey Fortran 8.1
  7738. whole_archive_flag_spec=
  7739. tmp_sharedflag='--shared' ;;
  7740. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7741. tmp_sharedflag='-qmkshrobj'
  7742. tmp_addflag= ;;
  7743. nvcc*) # Cuda Compiler Driver 2.2
  7744. 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'
  7745. compiler_needs_object=yes
  7746. ;;
  7747. esac
  7748. case `$CC -V 2>&1 | sed 5q` in
  7749. *Sun\ C*) # Sun C 5.9
  7750. 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'
  7751. compiler_needs_object=yes
  7752. tmp_sharedflag='-G' ;;
  7753. *Sun\ F*) # Sun Fortran 8.3
  7754. tmp_sharedflag='-G' ;;
  7755. esac
  7756. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7757. if test "x$supports_anon_versioning" = xyes; then
  7758. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7759. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7760. echo "local: *; };" >> $output_objdir/$libname.ver~
  7761. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7762. fi
  7763. case $cc_basename in
  7764. xlf* | bgf* | bgxlf* | mpixlf*)
  7765. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7766. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7767. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7768. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7769. if test "x$supports_anon_versioning" = xyes; then
  7770. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7771. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7772. echo "local: *; };" >> $output_objdir/$libname.ver~
  7773. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7774. fi
  7775. ;;
  7776. esac
  7777. else
  7778. ld_shlibs=no
  7779. fi
  7780. ;;
  7781. netbsd*)
  7782. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7783. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7784. wlarc=
  7785. else
  7786. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7787. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7788. fi
  7789. ;;
  7790. solaris*)
  7791. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7792. ld_shlibs=no
  7793. cat <<_LT_EOF 1>&2
  7794. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7795. *** create shared libraries on Solaris systems. Therefore, libtool
  7796. *** is disabling shared libraries support. We urge you to upgrade GNU
  7797. *** binutils to release 2.9.1 or newer. Another option is to modify
  7798. *** your PATH or compiler configuration so that the native linker is
  7799. *** used, and then restart.
  7800. _LT_EOF
  7801. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7802. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7803. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7804. else
  7805. ld_shlibs=no
  7806. fi
  7807. ;;
  7808. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7809. case `$LD -v 2>&1` in
  7810. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7811. ld_shlibs=no
  7812. cat <<_LT_EOF 1>&2
  7813. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7814. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7815. *** is disabling shared libraries support. We urge you to upgrade GNU
  7816. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7817. *** your PATH or compiler configuration so that the native linker is
  7818. *** used, and then restart.
  7819. _LT_EOF
  7820. ;;
  7821. *)
  7822. # For security reasons, it is highly recommended that you always
  7823. # use absolute paths for naming shared libraries, and exclude the
  7824. # DT_RUNPATH tag from executables and libraries. But doing so
  7825. # requires that you compile everything twice, which is a pain.
  7826. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7827. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7828. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7829. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7830. else
  7831. ld_shlibs=no
  7832. fi
  7833. ;;
  7834. esac
  7835. ;;
  7836. sunos4*)
  7837. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7838. wlarc=
  7839. hardcode_direct=yes
  7840. hardcode_shlibpath_var=no
  7841. ;;
  7842. *)
  7843. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7844. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7845. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7846. else
  7847. ld_shlibs=no
  7848. fi
  7849. ;;
  7850. esac
  7851. if test "$ld_shlibs" = no; then
  7852. runpath_var=
  7853. hardcode_libdir_flag_spec=
  7854. export_dynamic_flag_spec=
  7855. whole_archive_flag_spec=
  7856. fi
  7857. else
  7858. # PORTME fill in a description of your system's linker (not GNU ld)
  7859. case $host_os in
  7860. aix3*)
  7861. allow_undefined_flag=unsupported
  7862. always_export_symbols=yes
  7863. 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'
  7864. # Note: this linker hardcodes the directories in LIBPATH if there
  7865. # are no directories specified by -L.
  7866. hardcode_minus_L=yes
  7867. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7868. # Neither direct hardcoding nor static linking is supported with a
  7869. # broken collect2.
  7870. hardcode_direct=unsupported
  7871. fi
  7872. ;;
  7873. aix[4-9]*)
  7874. if test "$host_cpu" = ia64; then
  7875. # On IA64, the linker does run time linking by default, so we don't
  7876. # have to do anything special.
  7877. aix_use_runtimelinking=no
  7878. exp_sym_flag='-Bexport'
  7879. no_entry_flag=""
  7880. else
  7881. # If we're using GNU nm, then we don't want the "-C" option.
  7882. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7883. # Also, AIX nm treats weak defined symbols like other global
  7884. # defined symbols, whereas GNU nm marks them as "W".
  7885. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7886. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7887. else
  7888. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7889. fi
  7890. aix_use_runtimelinking=no
  7891. # Test if we are trying to use run time linking or normal
  7892. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7893. # need to do runtime linking.
  7894. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7895. for ld_flag in $LDFLAGS; do
  7896. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7897. aix_use_runtimelinking=yes
  7898. break
  7899. fi
  7900. done
  7901. ;;
  7902. esac
  7903. exp_sym_flag='-bexport'
  7904. no_entry_flag='-bnoentry'
  7905. fi
  7906. # When large executables or shared objects are built, AIX ld can
  7907. # have problems creating the table of contents. If linking a library
  7908. # or program results in "error TOC overflow" add -mminimal-toc to
  7909. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7910. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7911. archive_cmds=''
  7912. hardcode_direct=yes
  7913. hardcode_direct_absolute=yes
  7914. hardcode_libdir_separator=':'
  7915. link_all_deplibs=yes
  7916. file_list_spec='${wl}-f,'
  7917. if test "$GCC" = yes; then
  7918. case $host_os in aix4.[012]|aix4.[012].*)
  7919. # We only want to do this on AIX 4.2 and lower, the check
  7920. # below for broken collect2 doesn't work under 4.3+
  7921. collect2name=`${CC} -print-prog-name=collect2`
  7922. if test -f "$collect2name" &&
  7923. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7924. then
  7925. # We have reworked collect2
  7926. :
  7927. else
  7928. # We have old collect2
  7929. hardcode_direct=unsupported
  7930. # It fails to find uninstalled libraries when the uninstalled
  7931. # path is not listed in the libpath. Setting hardcode_minus_L
  7932. # to unsupported forces relinking
  7933. hardcode_minus_L=yes
  7934. hardcode_libdir_flag_spec='-L$libdir'
  7935. hardcode_libdir_separator=
  7936. fi
  7937. ;;
  7938. esac
  7939. shared_flag='-shared'
  7940. if test "$aix_use_runtimelinking" = yes; then
  7941. shared_flag="$shared_flag "'${wl}-G'
  7942. fi
  7943. else
  7944. # not using gcc
  7945. if test "$host_cpu" = ia64; then
  7946. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7947. # chokes on -Wl,-G. The following line is correct:
  7948. shared_flag='-G'
  7949. else
  7950. if test "$aix_use_runtimelinking" = yes; then
  7951. shared_flag='${wl}-G'
  7952. else
  7953. shared_flag='${wl}-bM:SRE'
  7954. fi
  7955. fi
  7956. fi
  7957. export_dynamic_flag_spec='${wl}-bexpall'
  7958. # It seems that -bexpall does not export symbols beginning with
  7959. # underscore (_), so it is better to generate a list of symbols to export.
  7960. always_export_symbols=yes
  7961. if test "$aix_use_runtimelinking" = yes; then
  7962. # Warning - without using the other runtime loading flags (-brtl),
  7963. # -berok will link without error, but may produce a broken library.
  7964. allow_undefined_flag='-berok'
  7965. # Determine the default libpath from the value encoded in an
  7966. # empty executable.
  7967. if test "${lt_cv_aix_libpath+set}" = set; then
  7968. aix_libpath=$lt_cv_aix_libpath
  7969. else
  7970. if ${lt_cv_aix_libpath_+:} false; then :
  7971. $as_echo_n "(cached) " >&6
  7972. else
  7973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7974. /* end confdefs.h. */
  7975. int
  7976. main ()
  7977. {
  7978. ;
  7979. return 0;
  7980. }
  7981. _ACEOF
  7982. if ac_fn_c_try_link "$LINENO"; then :
  7983. lt_aix_libpath_sed='
  7984. /Import File Strings/,/^$/ {
  7985. /^0/ {
  7986. s/^0 *\([^ ]*\) *$/\1/
  7987. p
  7988. }
  7989. }'
  7990. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7991. # Check for a 64-bit object if we didn't find anything.
  7992. if test -z "$lt_cv_aix_libpath_"; then
  7993. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7994. fi
  7995. fi
  7996. rm -f core conftest.err conftest.$ac_objext \
  7997. conftest$ac_exeext conftest.$ac_ext
  7998. if test -z "$lt_cv_aix_libpath_"; then
  7999. lt_cv_aix_libpath_="/usr/lib:/lib"
  8000. fi
  8001. fi
  8002. aix_libpath=$lt_cv_aix_libpath_
  8003. fi
  8004. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8005. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8006. else
  8007. if test "$host_cpu" = ia64; then
  8008. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8009. allow_undefined_flag="-z nodefs"
  8010. 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"
  8011. else
  8012. # Determine the default libpath from the value encoded in an
  8013. # empty executable.
  8014. if test "${lt_cv_aix_libpath+set}" = set; then
  8015. aix_libpath=$lt_cv_aix_libpath
  8016. else
  8017. if ${lt_cv_aix_libpath_+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8021. /* end confdefs.h. */
  8022. int
  8023. main ()
  8024. {
  8025. ;
  8026. return 0;
  8027. }
  8028. _ACEOF
  8029. if ac_fn_c_try_link "$LINENO"; then :
  8030. lt_aix_libpath_sed='
  8031. /Import File Strings/,/^$/ {
  8032. /^0/ {
  8033. s/^0 *\([^ ]*\) *$/\1/
  8034. p
  8035. }
  8036. }'
  8037. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8038. # Check for a 64-bit object if we didn't find anything.
  8039. if test -z "$lt_cv_aix_libpath_"; then
  8040. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8041. fi
  8042. fi
  8043. rm -f core conftest.err conftest.$ac_objext \
  8044. conftest$ac_exeext conftest.$ac_ext
  8045. if test -z "$lt_cv_aix_libpath_"; then
  8046. lt_cv_aix_libpath_="/usr/lib:/lib"
  8047. fi
  8048. fi
  8049. aix_libpath=$lt_cv_aix_libpath_
  8050. fi
  8051. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8052. # Warning - without using the other run time loading flags,
  8053. # -berok will link without error, but may produce a broken library.
  8054. no_undefined_flag=' ${wl}-bernotok'
  8055. allow_undefined_flag=' ${wl}-berok'
  8056. if test "$with_gnu_ld" = yes; then
  8057. # We only use this code for GNU lds that support --whole-archive.
  8058. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8059. else
  8060. # Exported symbols can be pulled into shared objects from archives
  8061. whole_archive_flag_spec='$convenience'
  8062. fi
  8063. archive_cmds_need_lc=yes
  8064. # This is similar to how AIX traditionally builds its shared libraries.
  8065. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8066. fi
  8067. fi
  8068. ;;
  8069. amigaos*)
  8070. case $host_cpu in
  8071. powerpc)
  8072. # see comment about AmigaOS4 .so support
  8073. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8074. archive_expsym_cmds=''
  8075. ;;
  8076. m68k)
  8077. 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)'
  8078. hardcode_libdir_flag_spec='-L$libdir'
  8079. hardcode_minus_L=yes
  8080. ;;
  8081. esac
  8082. ;;
  8083. bsdi[45]*)
  8084. export_dynamic_flag_spec=-rdynamic
  8085. ;;
  8086. cygwin* | mingw* | pw32* | cegcc*)
  8087. # When not using gcc, we currently assume that we are using
  8088. # Microsoft Visual C++.
  8089. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8090. # no search path for DLLs.
  8091. case $cc_basename in
  8092. cl*)
  8093. # Native MSVC
  8094. hardcode_libdir_flag_spec=' '
  8095. allow_undefined_flag=unsupported
  8096. always_export_symbols=yes
  8097. file_list_spec='@'
  8098. # Tell ltmain to make .lib files, not .a files.
  8099. libext=lib
  8100. # Tell ltmain to make .dll files, not .so files.
  8101. shrext_cmds=".dll"
  8102. # FIXME: Setting linknames here is a bad hack.
  8103. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8104. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8105. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8106. else
  8107. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8108. fi~
  8109. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8110. linknames='
  8111. # The linker will not automatically build a static lib if we build a DLL.
  8112. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8113. enable_shared_with_static_runtimes=yes
  8114. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8115. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8116. # Don't use ranlib
  8117. old_postinstall_cmds='chmod 644 $oldlib'
  8118. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8119. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8120. case $lt_outputfile in
  8121. *.exe|*.EXE) ;;
  8122. *)
  8123. lt_outputfile="$lt_outputfile.exe"
  8124. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8125. ;;
  8126. esac~
  8127. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8128. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8129. $RM "$lt_outputfile.manifest";
  8130. fi'
  8131. ;;
  8132. *)
  8133. # Assume MSVC wrapper
  8134. hardcode_libdir_flag_spec=' '
  8135. allow_undefined_flag=unsupported
  8136. # Tell ltmain to make .lib files, not .a files.
  8137. libext=lib
  8138. # Tell ltmain to make .dll files, not .so files.
  8139. shrext_cmds=".dll"
  8140. # FIXME: Setting linknames here is a bad hack.
  8141. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8142. # The linker will automatically build a .lib file if we build a DLL.
  8143. old_archive_from_new_cmds='true'
  8144. # FIXME: Should let the user specify the lib program.
  8145. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8146. enable_shared_with_static_runtimes=yes
  8147. ;;
  8148. esac
  8149. ;;
  8150. darwin* | rhapsody*)
  8151. archive_cmds_need_lc=no
  8152. hardcode_direct=no
  8153. hardcode_automatic=yes
  8154. hardcode_shlibpath_var=unsupported
  8155. if test "$lt_cv_ld_force_load" = "yes"; then
  8156. 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\"`'
  8157. else
  8158. whole_archive_flag_spec=''
  8159. fi
  8160. link_all_deplibs=yes
  8161. allow_undefined_flag="$_lt_dar_allow_undefined"
  8162. case $cc_basename in
  8163. ifort*) _lt_dar_can_shared=yes ;;
  8164. *) _lt_dar_can_shared=$GCC ;;
  8165. esac
  8166. if test "$_lt_dar_can_shared" = "yes"; then
  8167. output_verbose_link_cmd=func_echo_all
  8168. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8169. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8170. 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}"
  8171. 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}"
  8172. else
  8173. ld_shlibs=no
  8174. fi
  8175. ;;
  8176. dgux*)
  8177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8178. hardcode_libdir_flag_spec='-L$libdir'
  8179. hardcode_shlibpath_var=no
  8180. ;;
  8181. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8182. # support. Future versions do this automatically, but an explicit c++rt0.o
  8183. # does not break anything, and helps significantly (at the cost of a little
  8184. # extra space).
  8185. freebsd2.2*)
  8186. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8187. hardcode_libdir_flag_spec='-R$libdir'
  8188. hardcode_direct=yes
  8189. hardcode_shlibpath_var=no
  8190. ;;
  8191. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8192. freebsd2.*)
  8193. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8194. hardcode_direct=yes
  8195. hardcode_minus_L=yes
  8196. hardcode_shlibpath_var=no
  8197. ;;
  8198. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8199. freebsd* | dragonfly*)
  8200. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8201. hardcode_libdir_flag_spec='-R$libdir'
  8202. hardcode_direct=yes
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. hpux9*)
  8206. if test "$GCC" = yes; then
  8207. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8208. else
  8209. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8210. fi
  8211. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8212. hardcode_libdir_separator=:
  8213. hardcode_direct=yes
  8214. # hardcode_minus_L: Not really in the search PATH,
  8215. # but as the default location of the library.
  8216. hardcode_minus_L=yes
  8217. export_dynamic_flag_spec='${wl}-E'
  8218. ;;
  8219. hpux10*)
  8220. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8221. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8222. else
  8223. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8224. fi
  8225. if test "$with_gnu_ld" = no; then
  8226. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8227. hardcode_libdir_separator=:
  8228. hardcode_direct=yes
  8229. hardcode_direct_absolute=yes
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. fi
  8235. ;;
  8236. hpux11*)
  8237. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8238. case $host_cpu in
  8239. hppa*64*)
  8240. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8241. ;;
  8242. ia64*)
  8243. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. *)
  8246. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. esac
  8249. else
  8250. case $host_cpu in
  8251. hppa*64*)
  8252. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. ia64*)
  8255. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. *)
  8258. # Older versions of the 11.00 compiler do not understand -b yet
  8259. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8261. $as_echo_n "checking if $CC understands -b... " >&6; }
  8262. if ${lt_cv_prog_compiler__b+:} false; then :
  8263. $as_echo_n "(cached) " >&6
  8264. else
  8265. lt_cv_prog_compiler__b=no
  8266. save_LDFLAGS="$LDFLAGS"
  8267. LDFLAGS="$LDFLAGS -b"
  8268. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8269. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8270. # The linker can only warn and ignore the option if not recognized
  8271. # So say no if there are warnings
  8272. if test -s conftest.err; then
  8273. # Append any errors to the config.log.
  8274. cat conftest.err 1>&5
  8275. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8276. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8277. if diff conftest.exp conftest.er2 >/dev/null; then
  8278. lt_cv_prog_compiler__b=yes
  8279. fi
  8280. else
  8281. lt_cv_prog_compiler__b=yes
  8282. fi
  8283. fi
  8284. $RM -r conftest*
  8285. LDFLAGS="$save_LDFLAGS"
  8286. fi
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8288. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8289. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8290. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8291. else
  8292. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8293. fi
  8294. ;;
  8295. esac
  8296. fi
  8297. if test "$with_gnu_ld" = no; then
  8298. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8299. hardcode_libdir_separator=:
  8300. case $host_cpu in
  8301. hppa*64*|ia64*)
  8302. hardcode_direct=no
  8303. hardcode_shlibpath_var=no
  8304. ;;
  8305. *)
  8306. hardcode_direct=yes
  8307. hardcode_direct_absolute=yes
  8308. export_dynamic_flag_spec='${wl}-E'
  8309. # hardcode_minus_L: Not really in the search PATH,
  8310. # but as the default location of the library.
  8311. hardcode_minus_L=yes
  8312. ;;
  8313. esac
  8314. fi
  8315. ;;
  8316. irix5* | irix6* | nonstopux*)
  8317. if test "$GCC" = yes; then
  8318. 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'
  8319. # Try to use the -exported_symbol ld option, if it does not
  8320. # work, assume that -exports_file does not work either and
  8321. # implicitly export all symbols.
  8322. # This should be the same for all languages, so no per-tag cache variable.
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8324. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8325. if ${lt_cv_irix_exported_symbol+:} false; then :
  8326. $as_echo_n "(cached) " >&6
  8327. else
  8328. save_LDFLAGS="$LDFLAGS"
  8329. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int foo (void) { return 0; }
  8333. _ACEOF
  8334. if ac_fn_c_try_link "$LINENO"; then :
  8335. lt_cv_irix_exported_symbol=yes
  8336. else
  8337. lt_cv_irix_exported_symbol=no
  8338. fi
  8339. rm -f core conftest.err conftest.$ac_objext \
  8340. conftest$ac_exeext conftest.$ac_ext
  8341. LDFLAGS="$save_LDFLAGS"
  8342. fi
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8344. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8345. if test "$lt_cv_irix_exported_symbol" = yes; then
  8346. 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'
  8347. fi
  8348. else
  8349. 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'
  8350. 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'
  8351. fi
  8352. archive_cmds_need_lc='no'
  8353. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8354. hardcode_libdir_separator=:
  8355. inherit_rpath=yes
  8356. link_all_deplibs=yes
  8357. ;;
  8358. netbsd*)
  8359. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8360. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8361. else
  8362. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8363. fi
  8364. hardcode_libdir_flag_spec='-R$libdir'
  8365. hardcode_direct=yes
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. newsos6)
  8369. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8370. hardcode_direct=yes
  8371. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8372. hardcode_libdir_separator=:
  8373. hardcode_shlibpath_var=no
  8374. ;;
  8375. *nto* | *qnx*)
  8376. ;;
  8377. openbsd*)
  8378. if test -f /usr/libexec/ld.so; then
  8379. hardcode_direct=yes
  8380. hardcode_shlibpath_var=no
  8381. hardcode_direct_absolute=yes
  8382. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8383. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8384. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8385. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8386. export_dynamic_flag_spec='${wl}-E'
  8387. else
  8388. case $host_os in
  8389. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8390. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_libdir_flag_spec='-R$libdir'
  8392. ;;
  8393. *)
  8394. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8395. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8396. ;;
  8397. esac
  8398. fi
  8399. else
  8400. ld_shlibs=no
  8401. fi
  8402. ;;
  8403. os2*)
  8404. hardcode_libdir_flag_spec='-L$libdir'
  8405. hardcode_minus_L=yes
  8406. allow_undefined_flag=unsupported
  8407. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8408. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8409. ;;
  8410. osf3*)
  8411. if test "$GCC" = yes; then
  8412. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8413. 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'
  8414. else
  8415. allow_undefined_flag=' -expect_unresolved \*'
  8416. 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'
  8417. fi
  8418. archive_cmds_need_lc='no'
  8419. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8420. hardcode_libdir_separator=:
  8421. ;;
  8422. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8423. if test "$GCC" = yes; then
  8424. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8425. 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'
  8426. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8427. else
  8428. allow_undefined_flag=' -expect_unresolved \*'
  8429. 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'
  8430. 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~
  8431. $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'
  8432. # Both c and cxx compiler support -rpath directly
  8433. hardcode_libdir_flag_spec='-rpath $libdir'
  8434. fi
  8435. archive_cmds_need_lc='no'
  8436. hardcode_libdir_separator=:
  8437. ;;
  8438. solaris*)
  8439. no_undefined_flag=' -z defs'
  8440. if test "$GCC" = yes; then
  8441. wlarc='${wl}'
  8442. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8444. $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'
  8445. else
  8446. case `$CC -V 2>&1` in
  8447. *"Compilers 5.0"*)
  8448. wlarc=''
  8449. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8450. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8451. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8452. ;;
  8453. *)
  8454. wlarc='${wl}'
  8455. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8457. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8458. ;;
  8459. esac
  8460. fi
  8461. hardcode_libdir_flag_spec='-R$libdir'
  8462. hardcode_shlibpath_var=no
  8463. case $host_os in
  8464. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8465. *)
  8466. # The compiler driver will combine and reorder linker options,
  8467. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8468. # but is careful enough not to reorder.
  8469. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8470. if test "$GCC" = yes; then
  8471. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8472. else
  8473. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8474. fi
  8475. ;;
  8476. esac
  8477. link_all_deplibs=yes
  8478. ;;
  8479. sunos4*)
  8480. if test "x$host_vendor" = xsequent; then
  8481. # Use $CC to link under sequent, because it throws in some extra .o
  8482. # files that make .init and .fini sections work.
  8483. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8484. else
  8485. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8486. fi
  8487. hardcode_libdir_flag_spec='-L$libdir'
  8488. hardcode_direct=yes
  8489. hardcode_minus_L=yes
  8490. hardcode_shlibpath_var=no
  8491. ;;
  8492. sysv4)
  8493. case $host_vendor in
  8494. sni)
  8495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. hardcode_direct=yes # is this really true???
  8497. ;;
  8498. siemens)
  8499. ## LD is ld it makes a PLAMLIB
  8500. ## CC just makes a GrossModule.
  8501. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8502. reload_cmds='$CC -r -o $output$reload_objs'
  8503. hardcode_direct=no
  8504. ;;
  8505. motorola)
  8506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8507. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8508. ;;
  8509. esac
  8510. runpath_var='LD_RUN_PATH'
  8511. hardcode_shlibpath_var=no
  8512. ;;
  8513. sysv4.3*)
  8514. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8515. hardcode_shlibpath_var=no
  8516. export_dynamic_flag_spec='-Bexport'
  8517. ;;
  8518. sysv4*MP*)
  8519. if test -d /usr/nec; then
  8520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8521. hardcode_shlibpath_var=no
  8522. runpath_var=LD_RUN_PATH
  8523. hardcode_runpath_var=yes
  8524. ld_shlibs=yes
  8525. fi
  8526. ;;
  8527. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8528. no_undefined_flag='${wl}-z,text'
  8529. archive_cmds_need_lc=no
  8530. hardcode_shlibpath_var=no
  8531. runpath_var='LD_RUN_PATH'
  8532. if test "$GCC" = yes; then
  8533. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8535. else
  8536. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. fi
  8539. ;;
  8540. sysv5* | sco3.2v5* | sco5v6*)
  8541. # Note: We can NOT use -z defs as we might desire, because we do not
  8542. # link with -lc, and that would cause any symbols used from libc to
  8543. # always be unresolved, which means just about no library would
  8544. # ever link correctly. If we're not using GNU ld we use -z text
  8545. # though, which does catch some bad symbols but isn't as heavy-handed
  8546. # as -z defs.
  8547. no_undefined_flag='${wl}-z,text'
  8548. allow_undefined_flag='${wl}-z,nodefs'
  8549. archive_cmds_need_lc=no
  8550. hardcode_shlibpath_var=no
  8551. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8552. hardcode_libdir_separator=':'
  8553. link_all_deplibs=yes
  8554. export_dynamic_flag_spec='${wl}-Bexport'
  8555. runpath_var='LD_RUN_PATH'
  8556. if test "$GCC" = yes; then
  8557. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. else
  8560. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. fi
  8563. ;;
  8564. uts4*)
  8565. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8566. hardcode_libdir_flag_spec='-L$libdir'
  8567. hardcode_shlibpath_var=no
  8568. ;;
  8569. *)
  8570. ld_shlibs=no
  8571. ;;
  8572. esac
  8573. if test x$host_vendor = xsni; then
  8574. case $host in
  8575. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8576. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8577. ;;
  8578. esac
  8579. fi
  8580. fi
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8582. $as_echo "$ld_shlibs" >&6; }
  8583. test "$ld_shlibs" = no && can_build_shared=no
  8584. with_gnu_ld=$with_gnu_ld
  8585. #
  8586. # Do we need to explicitly link libc?
  8587. #
  8588. case "x$archive_cmds_need_lc" in
  8589. x|xyes)
  8590. # Assume -lc should be added
  8591. archive_cmds_need_lc=yes
  8592. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8593. case $archive_cmds in
  8594. *'~'*)
  8595. # FIXME: we may have to deal with multi-command sequences.
  8596. ;;
  8597. '$CC '*)
  8598. # Test whether the compiler implicitly links with -lc since on some
  8599. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8600. # to ld, don't add -lc before -lgcc.
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8602. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8603. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8604. $as_echo_n "(cached) " >&6
  8605. else
  8606. $RM conftest*
  8607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8609. (eval $ac_compile) 2>&5
  8610. ac_status=$?
  8611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8612. test $ac_status = 0; } 2>conftest.err; then
  8613. soname=conftest
  8614. lib=conftest
  8615. libobjs=conftest.$ac_objext
  8616. deplibs=
  8617. wl=$lt_prog_compiler_wl
  8618. pic_flag=$lt_prog_compiler_pic
  8619. compiler_flags=-v
  8620. linker_flags=-v
  8621. verstring=
  8622. output_objdir=.
  8623. libname=conftest
  8624. lt_save_allow_undefined_flag=$allow_undefined_flag
  8625. allow_undefined_flag=
  8626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8627. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8628. ac_status=$?
  8629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8630. test $ac_status = 0; }
  8631. then
  8632. lt_cv_archive_cmds_need_lc=no
  8633. else
  8634. lt_cv_archive_cmds_need_lc=yes
  8635. fi
  8636. allow_undefined_flag=$lt_save_allow_undefined_flag
  8637. else
  8638. cat conftest.err 1>&5
  8639. fi
  8640. $RM conftest*
  8641. fi
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8643. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8644. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8645. ;;
  8646. esac
  8647. fi
  8648. ;;
  8649. esac
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8651. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8652. if test "$GCC" = yes; then
  8653. case $host_os in
  8654. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8655. *) lt_awk_arg="/^libraries:/" ;;
  8656. esac
  8657. case $host_os in
  8658. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8659. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8660. esac
  8661. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8662. case $lt_search_path_spec in
  8663. *\;*)
  8664. # if the path contains ";" then we assume it to be the separator
  8665. # otherwise default to the standard path separator (i.e. ":") - it is
  8666. # assumed that no part of a normal pathname contains ";" but that should
  8667. # okay in the real world where ";" in dirpaths is itself problematic.
  8668. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8669. ;;
  8670. *)
  8671. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8672. ;;
  8673. esac
  8674. # Ok, now we have the path, separated by spaces, we can step through it
  8675. # and add multilib dir if necessary...
  8676. lt_tmp_lt_search_path_spec=
  8677. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8678. # ...but if some path already ends with the multilib dir we assume
  8679. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8680. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8681. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8682. lt_multi_os_dir=
  8683. ;;
  8684. esac
  8685. for lt_sys_path in $lt_search_path_spec; do
  8686. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8687. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8688. elif test -n "$lt_multi_os_dir"; then
  8689. test -d "$lt_sys_path" && \
  8690. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8691. fi
  8692. done
  8693. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8694. BEGIN {RS=" "; FS="/|\n";} {
  8695. lt_foo="";
  8696. lt_count=0;
  8697. for (lt_i = NF; lt_i > 0; lt_i--) {
  8698. if ($lt_i != "" && $lt_i != ".") {
  8699. if ($lt_i == "..") {
  8700. lt_count++;
  8701. } else {
  8702. if (lt_count == 0) {
  8703. lt_foo="/" $lt_i lt_foo;
  8704. } else {
  8705. lt_count--;
  8706. }
  8707. }
  8708. }
  8709. }
  8710. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8711. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8712. }'`
  8713. # AWK program above erroneously prepends '/' to C:/dos/paths
  8714. # for these hosts.
  8715. case $host_os in
  8716. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8717. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8718. esac
  8719. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8720. else
  8721. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8722. fi
  8723. library_names_spec=
  8724. libname_spec='lib$name'
  8725. soname_spec=
  8726. shrext_cmds=".so"
  8727. postinstall_cmds=
  8728. postuninstall_cmds=
  8729. finish_cmds=
  8730. finish_eval=
  8731. shlibpath_var=
  8732. shlibpath_overrides_runpath=unknown
  8733. version_type=none
  8734. dynamic_linker="$host_os ld.so"
  8735. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8736. need_lib_prefix=unknown
  8737. hardcode_into_libs=no
  8738. # when you set need_version to no, make sure it does not cause -set_version
  8739. # flags to be left without arguments
  8740. need_version=unknown
  8741. case $host_os in
  8742. aix3*)
  8743. version_type=linux # correct to gnu/linux during the next big refactor
  8744. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8745. shlibpath_var=LIBPATH
  8746. # AIX 3 has no versioning support, so we append a major version to the name.
  8747. soname_spec='${libname}${release}${shared_ext}$major'
  8748. ;;
  8749. aix[4-9]*)
  8750. version_type=linux # correct to gnu/linux during the next big refactor
  8751. need_lib_prefix=no
  8752. need_version=no
  8753. hardcode_into_libs=yes
  8754. if test "$host_cpu" = ia64; then
  8755. # AIX 5 supports IA64
  8756. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. else
  8759. # With GCC up to 2.95.x, collect2 would create an import file
  8760. # for dependence libraries. The import file would start with
  8761. # the line `#! .'. This would cause the generated library to
  8762. # depend on `.', always an invalid library. This was fixed in
  8763. # development snapshots of GCC prior to 3.0.
  8764. case $host_os in
  8765. aix4 | aix4.[01] | aix4.[01].*)
  8766. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8767. echo ' yes '
  8768. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8769. :
  8770. else
  8771. can_build_shared=no
  8772. fi
  8773. ;;
  8774. esac
  8775. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8776. # soname into executable. Probably we can add versioning support to
  8777. # collect2, so additional links can be useful in future.
  8778. if test "$aix_use_runtimelinking" = yes; then
  8779. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8780. # instead of lib<name>.a to let people know that these are not
  8781. # typical AIX shared libraries.
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. else
  8784. # We preserve .a as extension for shared libraries through AIX4.2
  8785. # and later when we are not doing run time linking.
  8786. library_names_spec='${libname}${release}.a $libname.a'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. fi
  8789. shlibpath_var=LIBPATH
  8790. fi
  8791. ;;
  8792. amigaos*)
  8793. case $host_cpu in
  8794. powerpc)
  8795. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8796. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8798. ;;
  8799. m68k)
  8800. library_names_spec='$libname.ixlibrary $libname.a'
  8801. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8802. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8803. ;;
  8804. esac
  8805. ;;
  8806. beos*)
  8807. library_names_spec='${libname}${shared_ext}'
  8808. dynamic_linker="$host_os ld.so"
  8809. shlibpath_var=LIBRARY_PATH
  8810. ;;
  8811. bsdi[45]*)
  8812. version_type=linux # correct to gnu/linux during the next big refactor
  8813. need_version=no
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8815. soname_spec='${libname}${release}${shared_ext}$major'
  8816. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8817. shlibpath_var=LD_LIBRARY_PATH
  8818. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8819. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8820. # the default ld.so.conf also contains /usr/contrib/lib and
  8821. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8822. # libtool to hard-code these into programs
  8823. ;;
  8824. cygwin* | mingw* | pw32* | cegcc*)
  8825. version_type=windows
  8826. shrext_cmds=".dll"
  8827. need_version=no
  8828. need_lib_prefix=no
  8829. case $GCC,$cc_basename in
  8830. yes,*)
  8831. # gcc
  8832. library_names_spec='$libname.dll.a'
  8833. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8834. postinstall_cmds='base_file=`basename \${file}`~
  8835. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8836. dldir=$destdir/`dirname \$dlpath`~
  8837. test -d \$dldir || mkdir -p \$dldir~
  8838. $install_prog $dir/$dlname \$dldir/$dlname~
  8839. chmod a+x \$dldir/$dlname~
  8840. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8841. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8842. fi'
  8843. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8844. dlpath=$dir/\$dldll~
  8845. $RM \$dlpath'
  8846. shlibpath_overrides_runpath=yes
  8847. case $host_os in
  8848. cygwin*)
  8849. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8850. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8851. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8852. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8853. ;;
  8854. mingw* | cegcc*)
  8855. # MinGW DLLs use traditional 'lib' prefix
  8856. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8857. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8858. ;;
  8859. pw32*)
  8860. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8861. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8862. ;;
  8863. esac
  8864. dynamic_linker='Win32 ld.exe'
  8865. ;;
  8866. *,cl*)
  8867. # Native MSVC
  8868. libname_spec='$name'
  8869. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8870. library_names_spec='${libname}.dll.lib'
  8871. case $build_os in
  8872. mingw*)
  8873. sys_lib_search_path_spec=
  8874. lt_save_ifs=$IFS
  8875. IFS=';'
  8876. for lt_path in $LIB
  8877. do
  8878. IFS=$lt_save_ifs
  8879. # Let DOS variable expansion print the short 8.3 style file name.
  8880. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8881. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8882. done
  8883. IFS=$lt_save_ifs
  8884. # Convert to MSYS style.
  8885. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8886. ;;
  8887. cygwin*)
  8888. # Convert to unix form, then to dos form, then back to unix form
  8889. # but this time dos style (no spaces!) so that the unix form looks
  8890. # like /cygdrive/c/PROGRA~1:/cygdr...
  8891. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8892. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8893. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8894. ;;
  8895. *)
  8896. sys_lib_search_path_spec="$LIB"
  8897. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8898. # It is most probably a Windows format PATH.
  8899. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8900. else
  8901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8902. fi
  8903. # FIXME: find the short name or the path components, as spaces are
  8904. # common. (e.g. "Program Files" -> "PROGRA~1")
  8905. ;;
  8906. esac
  8907. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8908. postinstall_cmds='base_file=`basename \${file}`~
  8909. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8910. dldir=$destdir/`dirname \$dlpath`~
  8911. test -d \$dldir || mkdir -p \$dldir~
  8912. $install_prog $dir/$dlname \$dldir/$dlname'
  8913. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8914. dlpath=$dir/\$dldll~
  8915. $RM \$dlpath'
  8916. shlibpath_overrides_runpath=yes
  8917. dynamic_linker='Win32 link.exe'
  8918. ;;
  8919. *)
  8920. # Assume MSVC wrapper
  8921. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8922. dynamic_linker='Win32 ld.exe'
  8923. ;;
  8924. esac
  8925. # FIXME: first we should search . and the directory the executable is in
  8926. shlibpath_var=PATH
  8927. ;;
  8928. darwin* | rhapsody*)
  8929. dynamic_linker="$host_os dyld"
  8930. version_type=darwin
  8931. need_lib_prefix=no
  8932. need_version=no
  8933. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8934. soname_spec='${libname}${release}${major}$shared_ext'
  8935. shlibpath_overrides_runpath=yes
  8936. shlibpath_var=DYLD_LIBRARY_PATH
  8937. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8938. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8939. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8940. ;;
  8941. dgux*)
  8942. version_type=linux # correct to gnu/linux during the next big refactor
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. shlibpath_var=LD_LIBRARY_PATH
  8948. ;;
  8949. freebsd* | dragonfly*)
  8950. # DragonFly does not have aout. When/if they implement a new
  8951. # versioning mechanism, adjust this.
  8952. if test -x /usr/bin/objformat; then
  8953. objformat=`/usr/bin/objformat`
  8954. else
  8955. case $host_os in
  8956. freebsd[23].*) objformat=aout ;;
  8957. *) objformat=elf ;;
  8958. esac
  8959. fi
  8960. version_type=freebsd-$objformat
  8961. case $version_type in
  8962. freebsd-elf*)
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8964. need_version=no
  8965. need_lib_prefix=no
  8966. ;;
  8967. freebsd-*)
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8969. need_version=yes
  8970. ;;
  8971. esac
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. case $host_os in
  8974. freebsd2.*)
  8975. shlibpath_overrides_runpath=yes
  8976. ;;
  8977. freebsd3.[01]* | freebsdelf3.[01]*)
  8978. shlibpath_overrides_runpath=yes
  8979. hardcode_into_libs=yes
  8980. ;;
  8981. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8982. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8983. shlibpath_overrides_runpath=no
  8984. hardcode_into_libs=yes
  8985. ;;
  8986. *) # from 4.6 on, and DragonFly
  8987. shlibpath_overrides_runpath=yes
  8988. hardcode_into_libs=yes
  8989. ;;
  8990. esac
  8991. ;;
  8992. gnu*)
  8993. version_type=linux # correct to gnu/linux during the next big refactor
  8994. need_lib_prefix=no
  8995. need_version=no
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8997. soname_spec='${libname}${release}${shared_ext}$major'
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. shlibpath_overrides_runpath=no
  9000. hardcode_into_libs=yes
  9001. ;;
  9002. haiku*)
  9003. version_type=linux # correct to gnu/linux during the next big refactor
  9004. need_lib_prefix=no
  9005. need_version=no
  9006. dynamic_linker="$host_os runtime_loader"
  9007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9008. soname_spec='${libname}${release}${shared_ext}$major'
  9009. shlibpath_var=LIBRARY_PATH
  9010. shlibpath_overrides_runpath=yes
  9011. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. hpux9* | hpux10* | hpux11*)
  9015. # Give a soname corresponding to the major version so that dld.sl refuses to
  9016. # link against other versions.
  9017. version_type=sunos
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. case $host_cpu in
  9021. ia64*)
  9022. shrext_cmds='.so'
  9023. hardcode_into_libs=yes
  9024. dynamic_linker="$host_os dld.so"
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. if test "X$HPUX_IA64_MODE" = X32; then
  9030. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9031. else
  9032. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9033. fi
  9034. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9035. ;;
  9036. hppa*64*)
  9037. shrext_cmds='.sl'
  9038. hardcode_into_libs=yes
  9039. dynamic_linker="$host_os dld.sl"
  9040. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9045. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9046. ;;
  9047. *)
  9048. shrext_cmds='.sl'
  9049. dynamic_linker="$host_os dld.sl"
  9050. shlibpath_var=SHLIB_PATH
  9051. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. ;;
  9055. esac
  9056. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9057. postinstall_cmds='chmod 555 $lib'
  9058. # or fails outright, so override atomically:
  9059. install_override_mode=555
  9060. ;;
  9061. interix[3-9]*)
  9062. version_type=linux # correct to gnu/linux during the next big refactor
  9063. need_lib_prefix=no
  9064. need_version=no
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=no
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. irix5* | irix6* | nonstopux*)
  9073. case $host_os in
  9074. nonstopux*) version_type=nonstopux ;;
  9075. *)
  9076. if test "$lt_cv_prog_gnu_ld" = yes; then
  9077. version_type=linux # correct to gnu/linux during the next big refactor
  9078. else
  9079. version_type=irix
  9080. fi ;;
  9081. esac
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9086. case $host_os in
  9087. irix5* | nonstopux*)
  9088. libsuff= shlibsuff=
  9089. ;;
  9090. *)
  9091. case $LD in # libtool.m4 will add one of these switches to LD
  9092. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9093. libsuff= shlibsuff= libmagic=32-bit;;
  9094. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9095. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9096. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9097. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9098. *) libsuff= shlibsuff= libmagic=never-match;;
  9099. esac
  9100. ;;
  9101. esac
  9102. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9103. shlibpath_overrides_runpath=no
  9104. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9105. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9106. hardcode_into_libs=yes
  9107. ;;
  9108. # No shared lib support for Linux oldld, aout, or coff.
  9109. linux*oldld* | linux*aout* | linux*coff*)
  9110. dynamic_linker=no
  9111. ;;
  9112. # This must be glibc/ELF.
  9113. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9114. version_type=linux # correct to gnu/linux during the next big refactor
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. shlibpath_overrides_runpath=no
  9122. # Some binutils ld are patched to set DT_RUNPATH
  9123. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. lt_cv_shlibpath_overrides_runpath=no
  9127. save_LDFLAGS=$LDFLAGS
  9128. save_libdir=$libdir
  9129. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9130. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main ()
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"; then :
  9141. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9142. lt_cv_shlibpath_overrides_runpath=yes
  9143. fi
  9144. fi
  9145. rm -f core conftest.err conftest.$ac_objext \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. LDFLAGS=$save_LDFLAGS
  9148. libdir=$save_libdir
  9149. fi
  9150. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9151. # This implies no fast_install, which is unacceptable.
  9152. # Some rework will be needed to allow for fast_install
  9153. # before this can be enabled.
  9154. hardcode_into_libs=yes
  9155. # Append ld.so.conf contents to the search path
  9156. if test -f /etc/ld.so.conf; then
  9157. 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' ' '`
  9158. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9159. fi
  9160. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9161. # powerpc, because MkLinux only supported shared libraries with the
  9162. # GNU dynamic linker. Since this was broken with cross compilers,
  9163. # most powerpc-linux boxes support dynamic linking these days and
  9164. # people can always --disable-shared, the test was removed, and we
  9165. # assume the GNU/Linux dynamic linker is in use.
  9166. dynamic_linker='GNU/Linux ld.so'
  9167. ;;
  9168. netbsd*)
  9169. version_type=sunos
  9170. need_lib_prefix=no
  9171. need_version=no
  9172. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9174. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9175. dynamic_linker='NetBSD (a.out) ld.so'
  9176. else
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. dynamic_linker='NetBSD ld.elf_so'
  9180. fi
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. shlibpath_overrides_runpath=yes
  9183. hardcode_into_libs=yes
  9184. ;;
  9185. newsos6)
  9186. version_type=linux # correct to gnu/linux during the next big refactor
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. shlibpath_overrides_runpath=yes
  9190. ;;
  9191. *nto* | *qnx*)
  9192. version_type=qnx
  9193. need_lib_prefix=no
  9194. need_version=no
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9196. soname_spec='${libname}${release}${shared_ext}$major'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=no
  9199. hardcode_into_libs=yes
  9200. dynamic_linker='ldqnx.so'
  9201. ;;
  9202. openbsd*)
  9203. version_type=sunos
  9204. sys_lib_dlsearch_path_spec="/usr/lib"
  9205. need_lib_prefix=no
  9206. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9207. case $host_os in
  9208. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9209. *) need_version=no ;;
  9210. esac
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9212. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9215. case $host_os in
  9216. openbsd2.[89] | openbsd2.[89].*)
  9217. shlibpath_overrides_runpath=no
  9218. ;;
  9219. *)
  9220. shlibpath_overrides_runpath=yes
  9221. ;;
  9222. esac
  9223. else
  9224. shlibpath_overrides_runpath=yes
  9225. fi
  9226. ;;
  9227. os2*)
  9228. libname_spec='$name'
  9229. shrext_cmds=".dll"
  9230. need_lib_prefix=no
  9231. library_names_spec='$libname${shared_ext} $libname.a'
  9232. dynamic_linker='OS/2 ld.exe'
  9233. shlibpath_var=LIBPATH
  9234. ;;
  9235. osf3* | osf4* | osf5*)
  9236. version_type=osf
  9237. need_lib_prefix=no
  9238. need_version=no
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9241. shlibpath_var=LD_LIBRARY_PATH
  9242. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9243. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9244. ;;
  9245. rdos*)
  9246. dynamic_linker=no
  9247. ;;
  9248. solaris*)
  9249. version_type=linux # correct to gnu/linux during the next big refactor
  9250. need_lib_prefix=no
  9251. need_version=no
  9252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9253. soname_spec='${libname}${release}${shared_ext}$major'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. shlibpath_overrides_runpath=yes
  9256. hardcode_into_libs=yes
  9257. # ldd complains unless libraries are executable
  9258. postinstall_cmds='chmod +x $lib'
  9259. ;;
  9260. sunos4*)
  9261. version_type=sunos
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9263. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. shlibpath_overrides_runpath=yes
  9266. if test "$with_gnu_ld" = yes; then
  9267. need_lib_prefix=no
  9268. fi
  9269. need_version=yes
  9270. ;;
  9271. sysv4 | sysv4.3*)
  9272. version_type=linux # correct to gnu/linux during the next big refactor
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. case $host_vendor in
  9277. sni)
  9278. shlibpath_overrides_runpath=no
  9279. need_lib_prefix=no
  9280. runpath_var=LD_RUN_PATH
  9281. ;;
  9282. siemens)
  9283. need_lib_prefix=no
  9284. ;;
  9285. motorola)
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. shlibpath_overrides_runpath=no
  9289. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9290. ;;
  9291. esac
  9292. ;;
  9293. sysv4*MP*)
  9294. if test -d /usr/nec ;then
  9295. version_type=linux # correct to gnu/linux during the next big refactor
  9296. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9297. soname_spec='$libname${shared_ext}.$major'
  9298. shlibpath_var=LD_LIBRARY_PATH
  9299. fi
  9300. ;;
  9301. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9302. version_type=freebsd-elf
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9306. soname_spec='${libname}${release}${shared_ext}$major'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. shlibpath_overrides_runpath=yes
  9309. hardcode_into_libs=yes
  9310. if test "$with_gnu_ld" = yes; then
  9311. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9312. else
  9313. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9314. case $host_os in
  9315. sco3.2v5*)
  9316. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9317. ;;
  9318. esac
  9319. fi
  9320. sys_lib_dlsearch_path_spec='/usr/lib'
  9321. ;;
  9322. tpf*)
  9323. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9324. version_type=linux # correct to gnu/linux during the next big refactor
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. shlibpath_overrides_runpath=no
  9330. hardcode_into_libs=yes
  9331. ;;
  9332. uts4*)
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9335. soname_spec='${libname}${release}${shared_ext}$major'
  9336. shlibpath_var=LD_LIBRARY_PATH
  9337. ;;
  9338. *)
  9339. dynamic_linker=no
  9340. ;;
  9341. esac
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9343. $as_echo "$dynamic_linker" >&6; }
  9344. test "$dynamic_linker" = no && can_build_shared=no
  9345. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9346. if test "$GCC" = yes; then
  9347. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9348. fi
  9349. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9350. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9351. fi
  9352. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9353. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9354. fi
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9356. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9357. hardcode_action=
  9358. if test -n "$hardcode_libdir_flag_spec" ||
  9359. test -n "$runpath_var" ||
  9360. test "X$hardcode_automatic" = "Xyes" ; then
  9361. # We can hardcode non-existent directories.
  9362. if test "$hardcode_direct" != no &&
  9363. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9364. # have to relink, otherwise we might link with an installed library
  9365. # when we should be linking with a yet-to-be-installed one
  9366. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9367. test "$hardcode_minus_L" != no; then
  9368. # Linking always hardcodes the temporary library directory.
  9369. hardcode_action=relink
  9370. else
  9371. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9372. hardcode_action=immediate
  9373. fi
  9374. else
  9375. # We cannot hardcode anything, or else we can only hardcode existing
  9376. # directories.
  9377. hardcode_action=unsupported
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9380. $as_echo "$hardcode_action" >&6; }
  9381. if test "$hardcode_action" = relink ||
  9382. test "$inherit_rpath" = yes; then
  9383. # Fast installation is not supported
  9384. enable_fast_install=no
  9385. elif test "$shlibpath_overrides_runpath" = yes ||
  9386. test "$enable_shared" = no; then
  9387. # Fast installation is not necessary
  9388. enable_fast_install=needless
  9389. fi
  9390. if test "x$enable_dlopen" != xyes; then
  9391. enable_dlopen=unknown
  9392. enable_dlopen_self=unknown
  9393. enable_dlopen_self_static=unknown
  9394. else
  9395. lt_cv_dlopen=no
  9396. lt_cv_dlopen_libs=
  9397. case $host_os in
  9398. beos*)
  9399. lt_cv_dlopen="load_add_on"
  9400. lt_cv_dlopen_libs=
  9401. lt_cv_dlopen_self=yes
  9402. ;;
  9403. mingw* | pw32* | cegcc*)
  9404. lt_cv_dlopen="LoadLibrary"
  9405. lt_cv_dlopen_libs=
  9406. ;;
  9407. cygwin*)
  9408. lt_cv_dlopen="dlopen"
  9409. lt_cv_dlopen_libs=
  9410. ;;
  9411. darwin*)
  9412. # if libdl is installed we need to link against it
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9414. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9415. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. ac_check_lib_save_LIBS=$LIBS
  9419. LIBS="-ldl $LIBS"
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. /* Override any GCC internal prototype to avoid an error.
  9423. Use char because int might match the return type of a GCC
  9424. builtin and then its argument prototype would still apply. */
  9425. #ifdef __cplusplus
  9426. extern "C"
  9427. #endif
  9428. char dlopen ();
  9429. int
  9430. main ()
  9431. {
  9432. return dlopen ();
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. if ac_fn_c_try_link "$LINENO"; then :
  9438. ac_cv_lib_dl_dlopen=yes
  9439. else
  9440. ac_cv_lib_dl_dlopen=no
  9441. fi
  9442. rm -f core conftest.err conftest.$ac_objext \
  9443. conftest$ac_exeext conftest.$ac_ext
  9444. LIBS=$ac_check_lib_save_LIBS
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9447. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9448. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9449. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9450. else
  9451. lt_cv_dlopen="dyld"
  9452. lt_cv_dlopen_libs=
  9453. lt_cv_dlopen_self=yes
  9454. fi
  9455. ;;
  9456. *)
  9457. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9458. if test "x$ac_cv_func_shl_load" = xyes; then :
  9459. lt_cv_dlopen="shl_load"
  9460. else
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9462. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9463. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9464. $as_echo_n "(cached) " >&6
  9465. else
  9466. ac_check_lib_save_LIBS=$LIBS
  9467. LIBS="-ldld $LIBS"
  9468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9469. /* end confdefs.h. */
  9470. /* Override any GCC internal prototype to avoid an error.
  9471. Use char because int might match the return type of a GCC
  9472. builtin and then its argument prototype would still apply. */
  9473. #ifdef __cplusplus
  9474. extern "C"
  9475. #endif
  9476. char shl_load ();
  9477. int
  9478. main ()
  9479. {
  9480. return shl_load ();
  9481. ;
  9482. return 0;
  9483. }
  9484. _ACEOF
  9485. if ac_fn_c_try_link "$LINENO"; then :
  9486. ac_cv_lib_dld_shl_load=yes
  9487. else
  9488. ac_cv_lib_dld_shl_load=no
  9489. fi
  9490. rm -f core conftest.err conftest.$ac_objext \
  9491. conftest$ac_exeext conftest.$ac_ext
  9492. LIBS=$ac_check_lib_save_LIBS
  9493. fi
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9495. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9496. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9497. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9498. else
  9499. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9500. if test "x$ac_cv_func_dlopen" = xyes; then :
  9501. lt_cv_dlopen="dlopen"
  9502. else
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9504. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9505. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9506. $as_echo_n "(cached) " >&6
  9507. else
  9508. ac_check_lib_save_LIBS=$LIBS
  9509. LIBS="-ldl $LIBS"
  9510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9511. /* end confdefs.h. */
  9512. /* Override any GCC internal prototype to avoid an error.
  9513. Use char because int might match the return type of a GCC
  9514. builtin and then its argument prototype would still apply. */
  9515. #ifdef __cplusplus
  9516. extern "C"
  9517. #endif
  9518. char dlopen ();
  9519. int
  9520. main ()
  9521. {
  9522. return dlopen ();
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. if ac_fn_c_try_link "$LINENO"; then :
  9528. ac_cv_lib_dl_dlopen=yes
  9529. else
  9530. ac_cv_lib_dl_dlopen=no
  9531. fi
  9532. rm -f core conftest.err conftest.$ac_objext \
  9533. conftest$ac_exeext conftest.$ac_ext
  9534. LIBS=$ac_check_lib_save_LIBS
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9537. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9538. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9539. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9540. else
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9542. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9543. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. ac_check_lib_save_LIBS=$LIBS
  9547. LIBS="-lsvld $LIBS"
  9548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9549. /* end confdefs.h. */
  9550. /* Override any GCC internal prototype to avoid an error.
  9551. Use char because int might match the return type of a GCC
  9552. builtin and then its argument prototype would still apply. */
  9553. #ifdef __cplusplus
  9554. extern "C"
  9555. #endif
  9556. char dlopen ();
  9557. int
  9558. main ()
  9559. {
  9560. return dlopen ();
  9561. ;
  9562. return 0;
  9563. }
  9564. _ACEOF
  9565. if ac_fn_c_try_link "$LINENO"; then :
  9566. ac_cv_lib_svld_dlopen=yes
  9567. else
  9568. ac_cv_lib_svld_dlopen=no
  9569. fi
  9570. rm -f core conftest.err conftest.$ac_objext \
  9571. conftest$ac_exeext conftest.$ac_ext
  9572. LIBS=$ac_check_lib_save_LIBS
  9573. fi
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9575. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9576. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9577. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9578. else
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9580. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9581. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9582. $as_echo_n "(cached) " >&6
  9583. else
  9584. ac_check_lib_save_LIBS=$LIBS
  9585. LIBS="-ldld $LIBS"
  9586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9587. /* end confdefs.h. */
  9588. /* Override any GCC internal prototype to avoid an error.
  9589. Use char because int might match the return type of a GCC
  9590. builtin and then its argument prototype would still apply. */
  9591. #ifdef __cplusplus
  9592. extern "C"
  9593. #endif
  9594. char dld_link ();
  9595. int
  9596. main ()
  9597. {
  9598. return dld_link ();
  9599. ;
  9600. return 0;
  9601. }
  9602. _ACEOF
  9603. if ac_fn_c_try_link "$LINENO"; then :
  9604. ac_cv_lib_dld_dld_link=yes
  9605. else
  9606. ac_cv_lib_dld_dld_link=no
  9607. fi
  9608. rm -f core conftest.err conftest.$ac_objext \
  9609. conftest$ac_exeext conftest.$ac_ext
  9610. LIBS=$ac_check_lib_save_LIBS
  9611. fi
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9613. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9614. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9615. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9616. fi
  9617. fi
  9618. fi
  9619. fi
  9620. fi
  9621. fi
  9622. ;;
  9623. esac
  9624. if test "x$lt_cv_dlopen" != xno; then
  9625. enable_dlopen=yes
  9626. else
  9627. enable_dlopen=no
  9628. fi
  9629. case $lt_cv_dlopen in
  9630. dlopen)
  9631. save_CPPFLAGS="$CPPFLAGS"
  9632. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9633. save_LDFLAGS="$LDFLAGS"
  9634. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9635. save_LIBS="$LIBS"
  9636. LIBS="$lt_cv_dlopen_libs $LIBS"
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9638. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9639. if ${lt_cv_dlopen_self+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. if test "$cross_compiling" = yes; then :
  9643. lt_cv_dlopen_self=cross
  9644. else
  9645. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9646. lt_status=$lt_dlunknown
  9647. cat > conftest.$ac_ext <<_LT_EOF
  9648. #line $LINENO "configure"
  9649. #include "confdefs.h"
  9650. #if HAVE_DLFCN_H
  9651. #include <dlfcn.h>
  9652. #endif
  9653. #include <stdio.h>
  9654. #ifdef RTLD_GLOBAL
  9655. # define LT_DLGLOBAL RTLD_GLOBAL
  9656. #else
  9657. # ifdef DL_GLOBAL
  9658. # define LT_DLGLOBAL DL_GLOBAL
  9659. # else
  9660. # define LT_DLGLOBAL 0
  9661. # endif
  9662. #endif
  9663. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9664. find out it does not work in some platform. */
  9665. #ifndef LT_DLLAZY_OR_NOW
  9666. # ifdef RTLD_LAZY
  9667. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9668. # else
  9669. # ifdef DL_LAZY
  9670. # define LT_DLLAZY_OR_NOW DL_LAZY
  9671. # else
  9672. # ifdef RTLD_NOW
  9673. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9674. # else
  9675. # ifdef DL_NOW
  9676. # define LT_DLLAZY_OR_NOW DL_NOW
  9677. # else
  9678. # define LT_DLLAZY_OR_NOW 0
  9679. # endif
  9680. # endif
  9681. # endif
  9682. # endif
  9683. #endif
  9684. /* When -fvisbility=hidden is used, assume the code has been annotated
  9685. correspondingly for the symbols needed. */
  9686. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9687. int fnord () __attribute__((visibility("default")));
  9688. #endif
  9689. int fnord () { return 42; }
  9690. int main ()
  9691. {
  9692. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9693. int status = $lt_dlunknown;
  9694. if (self)
  9695. {
  9696. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9697. else
  9698. {
  9699. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9700. else puts (dlerror ());
  9701. }
  9702. /* dlclose (self); */
  9703. }
  9704. else
  9705. puts (dlerror ());
  9706. return status;
  9707. }
  9708. _LT_EOF
  9709. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9710. (eval $ac_link) 2>&5
  9711. ac_status=$?
  9712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9713. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9714. (./conftest; exit; ) >&5 2>/dev/null
  9715. lt_status=$?
  9716. case x$lt_status in
  9717. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9718. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9719. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9720. esac
  9721. else :
  9722. # compilation failed
  9723. lt_cv_dlopen_self=no
  9724. fi
  9725. fi
  9726. rm -fr conftest*
  9727. fi
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9729. $as_echo "$lt_cv_dlopen_self" >&6; }
  9730. if test "x$lt_cv_dlopen_self" = xyes; then
  9731. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9733. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9734. if ${lt_cv_dlopen_self_static+:} false; then :
  9735. $as_echo_n "(cached) " >&6
  9736. else
  9737. if test "$cross_compiling" = yes; then :
  9738. lt_cv_dlopen_self_static=cross
  9739. else
  9740. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9741. lt_status=$lt_dlunknown
  9742. cat > conftest.$ac_ext <<_LT_EOF
  9743. #line $LINENO "configure"
  9744. #include "confdefs.h"
  9745. #if HAVE_DLFCN_H
  9746. #include <dlfcn.h>
  9747. #endif
  9748. #include <stdio.h>
  9749. #ifdef RTLD_GLOBAL
  9750. # define LT_DLGLOBAL RTLD_GLOBAL
  9751. #else
  9752. # ifdef DL_GLOBAL
  9753. # define LT_DLGLOBAL DL_GLOBAL
  9754. # else
  9755. # define LT_DLGLOBAL 0
  9756. # endif
  9757. #endif
  9758. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9759. find out it does not work in some platform. */
  9760. #ifndef LT_DLLAZY_OR_NOW
  9761. # ifdef RTLD_LAZY
  9762. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9763. # else
  9764. # ifdef DL_LAZY
  9765. # define LT_DLLAZY_OR_NOW DL_LAZY
  9766. # else
  9767. # ifdef RTLD_NOW
  9768. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9769. # else
  9770. # ifdef DL_NOW
  9771. # define LT_DLLAZY_OR_NOW DL_NOW
  9772. # else
  9773. # define LT_DLLAZY_OR_NOW 0
  9774. # endif
  9775. # endif
  9776. # endif
  9777. # endif
  9778. #endif
  9779. /* When -fvisbility=hidden is used, assume the code has been annotated
  9780. correspondingly for the symbols needed. */
  9781. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9782. int fnord () __attribute__((visibility("default")));
  9783. #endif
  9784. int fnord () { return 42; }
  9785. int main ()
  9786. {
  9787. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9788. int status = $lt_dlunknown;
  9789. if (self)
  9790. {
  9791. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9792. else
  9793. {
  9794. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9795. else puts (dlerror ());
  9796. }
  9797. /* dlclose (self); */
  9798. }
  9799. else
  9800. puts (dlerror ());
  9801. return status;
  9802. }
  9803. _LT_EOF
  9804. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9805. (eval $ac_link) 2>&5
  9806. ac_status=$?
  9807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9808. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9809. (./conftest; exit; ) >&5 2>/dev/null
  9810. lt_status=$?
  9811. case x$lt_status in
  9812. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9813. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9814. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9815. esac
  9816. else :
  9817. # compilation failed
  9818. lt_cv_dlopen_self_static=no
  9819. fi
  9820. fi
  9821. rm -fr conftest*
  9822. fi
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9824. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9825. fi
  9826. CPPFLAGS="$save_CPPFLAGS"
  9827. LDFLAGS="$save_LDFLAGS"
  9828. LIBS="$save_LIBS"
  9829. ;;
  9830. esac
  9831. case $lt_cv_dlopen_self in
  9832. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9833. *) enable_dlopen_self=unknown ;;
  9834. esac
  9835. case $lt_cv_dlopen_self_static in
  9836. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9837. *) enable_dlopen_self_static=unknown ;;
  9838. esac
  9839. fi
  9840. striplib=
  9841. old_striplib=
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9843. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9844. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9845. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9846. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9848. $as_echo "yes" >&6; }
  9849. else
  9850. # FIXME - insert some real tests, host_os isn't really good enough
  9851. case $host_os in
  9852. darwin*)
  9853. if test -n "$STRIP" ; then
  9854. striplib="$STRIP -x"
  9855. old_striplib="$STRIP -S"
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9857. $as_echo "yes" >&6; }
  9858. else
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9860. $as_echo "no" >&6; }
  9861. fi
  9862. ;;
  9863. *)
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9865. $as_echo "no" >&6; }
  9866. ;;
  9867. esac
  9868. fi
  9869. # Report which library types will actually be built
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9871. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9873. $as_echo "$can_build_shared" >&6; }
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9875. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9876. test "$can_build_shared" = "no" && enable_shared=no
  9877. # On AIX, shared libraries and static libraries use the same namespace, and
  9878. # are all built from PIC.
  9879. case $host_os in
  9880. aix3*)
  9881. test "$enable_shared" = yes && enable_static=no
  9882. if test -n "$RANLIB"; then
  9883. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9884. postinstall_cmds='$RANLIB $lib'
  9885. fi
  9886. ;;
  9887. aix[4-9]*)
  9888. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9889. test "$enable_shared" = yes && enable_static=no
  9890. fi
  9891. ;;
  9892. esac
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9894. $as_echo "$enable_shared" >&6; }
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9896. $as_echo_n "checking whether to build static libraries... " >&6; }
  9897. # Make sure either enable_shared or enable_static is yes.
  9898. test "$enable_shared" = yes || enable_static=yes
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9900. $as_echo "$enable_static" >&6; }
  9901. fi
  9902. ac_ext=c
  9903. ac_cpp='$CPP $CPPFLAGS'
  9904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9907. CC="$lt_save_CC"
  9908. ac_config_commands="$ac_config_commands libtool"
  9909. # Only expand once:
  9910. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9911. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9912. LT_REVISION=$SDL_INTERFACE_AGE
  9913. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9914. ac_ext=c
  9915. ac_cpp='$CPP $CPPFLAGS'
  9916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9919. if test -n "$ac_tool_prefix"; then
  9920. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9921. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9923. $as_echo_n "checking for $ac_word... " >&6; }
  9924. if ${ac_cv_prog_CC+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. if test -n "$CC"; then
  9928. ac_cv_prog_CC="$CC" # Let the user override the test.
  9929. else
  9930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9931. for as_dir in $PATH
  9932. do
  9933. IFS=$as_save_IFS
  9934. test -z "$as_dir" && as_dir=.
  9935. for ac_exec_ext in '' $ac_executable_extensions; do
  9936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9937. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9939. break 2
  9940. fi
  9941. done
  9942. done
  9943. IFS=$as_save_IFS
  9944. fi
  9945. fi
  9946. CC=$ac_cv_prog_CC
  9947. if test -n "$CC"; then
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9949. $as_echo "$CC" >&6; }
  9950. else
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9952. $as_echo "no" >&6; }
  9953. fi
  9954. fi
  9955. if test -z "$ac_cv_prog_CC"; then
  9956. ac_ct_CC=$CC
  9957. # Extract the first word of "gcc", so it can be a program name with args.
  9958. set dummy gcc; ac_word=$2
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9960. $as_echo_n "checking for $ac_word... " >&6; }
  9961. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9962. $as_echo_n "(cached) " >&6
  9963. else
  9964. if test -n "$ac_ct_CC"; then
  9965. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9966. else
  9967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9968. for as_dir in $PATH
  9969. do
  9970. IFS=$as_save_IFS
  9971. test -z "$as_dir" && as_dir=.
  9972. for ac_exec_ext in '' $ac_executable_extensions; do
  9973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9974. ac_cv_prog_ac_ct_CC="gcc"
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9976. break 2
  9977. fi
  9978. done
  9979. done
  9980. IFS=$as_save_IFS
  9981. fi
  9982. fi
  9983. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9984. if test -n "$ac_ct_CC"; then
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9986. $as_echo "$ac_ct_CC" >&6; }
  9987. else
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9989. $as_echo "no" >&6; }
  9990. fi
  9991. if test "x$ac_ct_CC" = x; then
  9992. CC=""
  9993. else
  9994. case $cross_compiling:$ac_tool_warned in
  9995. yes:)
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9997. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9998. ac_tool_warned=yes ;;
  9999. esac
  10000. CC=$ac_ct_CC
  10001. fi
  10002. else
  10003. CC="$ac_cv_prog_CC"
  10004. fi
  10005. if test -z "$CC"; then
  10006. if test -n "$ac_tool_prefix"; then
  10007. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10008. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10010. $as_echo_n "checking for $ac_word... " >&6; }
  10011. if ${ac_cv_prog_CC+:} false; then :
  10012. $as_echo_n "(cached) " >&6
  10013. else
  10014. if test -n "$CC"; then
  10015. ac_cv_prog_CC="$CC" # Let the user override the test.
  10016. else
  10017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10018. for as_dir in $PATH
  10019. do
  10020. IFS=$as_save_IFS
  10021. test -z "$as_dir" && as_dir=.
  10022. for ac_exec_ext in '' $ac_executable_extensions; do
  10023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10024. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10026. break 2
  10027. fi
  10028. done
  10029. done
  10030. IFS=$as_save_IFS
  10031. fi
  10032. fi
  10033. CC=$ac_cv_prog_CC
  10034. if test -n "$CC"; then
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10036. $as_echo "$CC" >&6; }
  10037. else
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10039. $as_echo "no" >&6; }
  10040. fi
  10041. fi
  10042. fi
  10043. if test -z "$CC"; then
  10044. # Extract the first word of "cc", so it can be a program name with args.
  10045. set dummy cc; ac_word=$2
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10047. $as_echo_n "checking for $ac_word... " >&6; }
  10048. if ${ac_cv_prog_CC+:} false; then :
  10049. $as_echo_n "(cached) " >&6
  10050. else
  10051. if test -n "$CC"; then
  10052. ac_cv_prog_CC="$CC" # Let the user override the test.
  10053. else
  10054. ac_prog_rejected=no
  10055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10056. for as_dir in $PATH
  10057. do
  10058. IFS=$as_save_IFS
  10059. test -z "$as_dir" && as_dir=.
  10060. for ac_exec_ext in '' $ac_executable_extensions; do
  10061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10062. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10063. ac_prog_rejected=yes
  10064. continue
  10065. fi
  10066. ac_cv_prog_CC="cc"
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10068. break 2
  10069. fi
  10070. done
  10071. done
  10072. IFS=$as_save_IFS
  10073. if test $ac_prog_rejected = yes; then
  10074. # We found a bogon in the path, so make sure we never use it.
  10075. set dummy $ac_cv_prog_CC
  10076. shift
  10077. if test $# != 0; then
  10078. # We chose a different compiler from the bogus one.
  10079. # However, it has the same basename, so the bogon will be chosen
  10080. # first if we set CC to just the basename; use the full file name.
  10081. shift
  10082. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10083. fi
  10084. fi
  10085. fi
  10086. fi
  10087. CC=$ac_cv_prog_CC
  10088. if test -n "$CC"; then
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10090. $as_echo "$CC" >&6; }
  10091. else
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10093. $as_echo "no" >&6; }
  10094. fi
  10095. fi
  10096. if test -z "$CC"; then
  10097. if test -n "$ac_tool_prefix"; then
  10098. for ac_prog in cl.exe
  10099. do
  10100. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10101. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10103. $as_echo_n "checking for $ac_word... " >&6; }
  10104. if ${ac_cv_prog_CC+:} false; then :
  10105. $as_echo_n "(cached) " >&6
  10106. else
  10107. if test -n "$CC"; then
  10108. ac_cv_prog_CC="$CC" # Let the user override the test.
  10109. else
  10110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10111. for as_dir in $PATH
  10112. do
  10113. IFS=$as_save_IFS
  10114. test -z "$as_dir" && as_dir=.
  10115. for ac_exec_ext in '' $ac_executable_extensions; do
  10116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10117. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10119. break 2
  10120. fi
  10121. done
  10122. done
  10123. IFS=$as_save_IFS
  10124. fi
  10125. fi
  10126. CC=$ac_cv_prog_CC
  10127. if test -n "$CC"; then
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10129. $as_echo "$CC" >&6; }
  10130. else
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10132. $as_echo "no" >&6; }
  10133. fi
  10134. test -n "$CC" && break
  10135. done
  10136. fi
  10137. if test -z "$CC"; then
  10138. ac_ct_CC=$CC
  10139. for ac_prog in cl.exe
  10140. do
  10141. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10142. set dummy $ac_prog; ac_word=$2
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10144. $as_echo_n "checking for $ac_word... " >&6; }
  10145. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. if test -n "$ac_ct_CC"; then
  10149. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10150. else
  10151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10152. for as_dir in $PATH
  10153. do
  10154. IFS=$as_save_IFS
  10155. test -z "$as_dir" && as_dir=.
  10156. for ac_exec_ext in '' $ac_executable_extensions; do
  10157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10158. ac_cv_prog_ac_ct_CC="$ac_prog"
  10159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10160. break 2
  10161. fi
  10162. done
  10163. done
  10164. IFS=$as_save_IFS
  10165. fi
  10166. fi
  10167. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10168. if test -n "$ac_ct_CC"; then
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10170. $as_echo "$ac_ct_CC" >&6; }
  10171. else
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10173. $as_echo "no" >&6; }
  10174. fi
  10175. test -n "$ac_ct_CC" && break
  10176. done
  10177. if test "x$ac_ct_CC" = x; then
  10178. CC=""
  10179. else
  10180. case $cross_compiling:$ac_tool_warned in
  10181. yes:)
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10184. ac_tool_warned=yes ;;
  10185. esac
  10186. CC=$ac_ct_CC
  10187. fi
  10188. fi
  10189. fi
  10190. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10192. as_fn_error $? "no acceptable C compiler found in \$PATH
  10193. See \`config.log' for more details" "$LINENO" 5; }
  10194. # Provide some information about the compiler.
  10195. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10196. set X $ac_compile
  10197. ac_compiler=$2
  10198. for ac_option in --version -v -V -qversion; do
  10199. { { ac_try="$ac_compiler $ac_option >&5"
  10200. case "(($ac_try" in
  10201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10202. *) ac_try_echo=$ac_try;;
  10203. esac
  10204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10205. $as_echo "$ac_try_echo"; } >&5
  10206. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10207. ac_status=$?
  10208. if test -s conftest.err; then
  10209. sed '10a\
  10210. ... rest of stderr output deleted ...
  10211. 10q' conftest.err >conftest.er1
  10212. cat conftest.er1 >&5
  10213. fi
  10214. rm -f conftest.er1 conftest.err
  10215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10216. test $ac_status = 0; }
  10217. done
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10219. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10220. if ${ac_cv_c_compiler_gnu+:} false; then :
  10221. $as_echo_n "(cached) " >&6
  10222. else
  10223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10224. /* end confdefs.h. */
  10225. int
  10226. main ()
  10227. {
  10228. #ifndef __GNUC__
  10229. choke me
  10230. #endif
  10231. ;
  10232. return 0;
  10233. }
  10234. _ACEOF
  10235. if ac_fn_c_try_compile "$LINENO"; then :
  10236. ac_compiler_gnu=yes
  10237. else
  10238. ac_compiler_gnu=no
  10239. fi
  10240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10241. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10242. fi
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10244. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10245. if test $ac_compiler_gnu = yes; then
  10246. GCC=yes
  10247. else
  10248. GCC=
  10249. fi
  10250. ac_test_CFLAGS=${CFLAGS+set}
  10251. ac_save_CFLAGS=$CFLAGS
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10253. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10254. if ${ac_cv_prog_cc_g+:} false; then :
  10255. $as_echo_n "(cached) " >&6
  10256. else
  10257. ac_save_c_werror_flag=$ac_c_werror_flag
  10258. ac_c_werror_flag=yes
  10259. ac_cv_prog_cc_g=no
  10260. CFLAGS="-g"
  10261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10262. /* end confdefs.h. */
  10263. int
  10264. main ()
  10265. {
  10266. ;
  10267. return 0;
  10268. }
  10269. _ACEOF
  10270. if ac_fn_c_try_compile "$LINENO"; then :
  10271. ac_cv_prog_cc_g=yes
  10272. else
  10273. CFLAGS=""
  10274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10275. /* end confdefs.h. */
  10276. int
  10277. main ()
  10278. {
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. if ac_fn_c_try_compile "$LINENO"; then :
  10284. else
  10285. ac_c_werror_flag=$ac_save_c_werror_flag
  10286. CFLAGS="-g"
  10287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10288. /* end confdefs.h. */
  10289. int
  10290. main ()
  10291. {
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. if ac_fn_c_try_compile "$LINENO"; then :
  10297. ac_cv_prog_cc_g=yes
  10298. fi
  10299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. fi
  10303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10304. ac_c_werror_flag=$ac_save_c_werror_flag
  10305. fi
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10307. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10308. if test "$ac_test_CFLAGS" = set; then
  10309. CFLAGS=$ac_save_CFLAGS
  10310. elif test $ac_cv_prog_cc_g = yes; then
  10311. if test "$GCC" = yes; then
  10312. CFLAGS="-g -O2"
  10313. else
  10314. CFLAGS="-g"
  10315. fi
  10316. else
  10317. if test "$GCC" = yes; then
  10318. CFLAGS="-O2"
  10319. else
  10320. CFLAGS=
  10321. fi
  10322. fi
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10324. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10325. if ${ac_cv_prog_cc_c89+:} false; then :
  10326. $as_echo_n "(cached) " >&6
  10327. else
  10328. ac_cv_prog_cc_c89=no
  10329. ac_save_CC=$CC
  10330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10331. /* end confdefs.h. */
  10332. #include <stdarg.h>
  10333. #include <stdio.h>
  10334. struct stat;
  10335. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10336. struct buf { int x; };
  10337. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10338. static char *e (p, i)
  10339. char **p;
  10340. int i;
  10341. {
  10342. return p[i];
  10343. }
  10344. static char *f (char * (*g) (char **, int), char **p, ...)
  10345. {
  10346. char *s;
  10347. va_list v;
  10348. va_start (v,p);
  10349. s = g (p, va_arg (v,int));
  10350. va_end (v);
  10351. return s;
  10352. }
  10353. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10354. function prototypes and stuff, but not '\xHH' hex character constants.
  10355. These don't provoke an error unfortunately, instead are silently treated
  10356. as 'x'. The following induces an error, until -std is added to get
  10357. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10358. array size at least. It's necessary to write '\x00'==0 to get something
  10359. that's true only with -std. */
  10360. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10361. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10362. inside strings and character constants. */
  10363. #define FOO(x) 'x'
  10364. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10365. int test (int i, double x);
  10366. struct s1 {int (*f) (int a);};
  10367. struct s2 {int (*f) (double a);};
  10368. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10369. int argc;
  10370. char **argv;
  10371. int
  10372. main ()
  10373. {
  10374. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10375. ;
  10376. return 0;
  10377. }
  10378. _ACEOF
  10379. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10380. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10381. do
  10382. CC="$ac_save_CC $ac_arg"
  10383. if ac_fn_c_try_compile "$LINENO"; then :
  10384. ac_cv_prog_cc_c89=$ac_arg
  10385. fi
  10386. rm -f core conftest.err conftest.$ac_objext
  10387. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10388. done
  10389. rm -f conftest.$ac_ext
  10390. CC=$ac_save_CC
  10391. fi
  10392. # AC_CACHE_VAL
  10393. case "x$ac_cv_prog_cc_c89" in
  10394. x)
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10396. $as_echo "none needed" >&6; } ;;
  10397. xno)
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10399. $as_echo "unsupported" >&6; } ;;
  10400. *)
  10401. CC="$CC $ac_cv_prog_cc_c89"
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10403. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10404. esac
  10405. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10406. fi
  10407. ac_ext=c
  10408. ac_cpp='$CPP $CPPFLAGS'
  10409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10412. ac_ext=cpp
  10413. ac_cpp='$CXXCPP $CPPFLAGS'
  10414. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10415. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10416. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10417. if test -z "$CXX"; then
  10418. if test -n "$CCC"; then
  10419. CXX=$CCC
  10420. else
  10421. if test -n "$ac_tool_prefix"; then
  10422. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10423. do
  10424. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10425. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10427. $as_echo_n "checking for $ac_word... " >&6; }
  10428. if ${ac_cv_prog_CXX+:} false; then :
  10429. $as_echo_n "(cached) " >&6
  10430. else
  10431. if test -n "$CXX"; then
  10432. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10433. else
  10434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10435. for as_dir in $PATH
  10436. do
  10437. IFS=$as_save_IFS
  10438. test -z "$as_dir" && as_dir=.
  10439. for ac_exec_ext in '' $ac_executable_extensions; do
  10440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10441. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10443. break 2
  10444. fi
  10445. done
  10446. done
  10447. IFS=$as_save_IFS
  10448. fi
  10449. fi
  10450. CXX=$ac_cv_prog_CXX
  10451. if test -n "$CXX"; then
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10453. $as_echo "$CXX" >&6; }
  10454. else
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10456. $as_echo "no" >&6; }
  10457. fi
  10458. test -n "$CXX" && break
  10459. done
  10460. fi
  10461. if test -z "$CXX"; then
  10462. ac_ct_CXX=$CXX
  10463. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10464. do
  10465. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10466. set dummy $ac_prog; ac_word=$2
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10468. $as_echo_n "checking for $ac_word... " >&6; }
  10469. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10470. $as_echo_n "(cached) " >&6
  10471. else
  10472. if test -n "$ac_ct_CXX"; then
  10473. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10474. else
  10475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10476. for as_dir in $PATH
  10477. do
  10478. IFS=$as_save_IFS
  10479. test -z "$as_dir" && as_dir=.
  10480. for ac_exec_ext in '' $ac_executable_extensions; do
  10481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10482. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10484. break 2
  10485. fi
  10486. done
  10487. done
  10488. IFS=$as_save_IFS
  10489. fi
  10490. fi
  10491. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10492. if test -n "$ac_ct_CXX"; then
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10494. $as_echo "$ac_ct_CXX" >&6; }
  10495. else
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10497. $as_echo "no" >&6; }
  10498. fi
  10499. test -n "$ac_ct_CXX" && break
  10500. done
  10501. if test "x$ac_ct_CXX" = x; then
  10502. CXX="g++"
  10503. else
  10504. case $cross_compiling:$ac_tool_warned in
  10505. yes:)
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10508. ac_tool_warned=yes ;;
  10509. esac
  10510. CXX=$ac_ct_CXX
  10511. fi
  10512. fi
  10513. fi
  10514. fi
  10515. # Provide some information about the compiler.
  10516. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10517. set X $ac_compile
  10518. ac_compiler=$2
  10519. for ac_option in --version -v -V -qversion; do
  10520. { { ac_try="$ac_compiler $ac_option >&5"
  10521. case "(($ac_try" in
  10522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10523. *) ac_try_echo=$ac_try;;
  10524. esac
  10525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10526. $as_echo "$ac_try_echo"; } >&5
  10527. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10528. ac_status=$?
  10529. if test -s conftest.err; then
  10530. sed '10a\
  10531. ... rest of stderr output deleted ...
  10532. 10q' conftest.err >conftest.er1
  10533. cat conftest.er1 >&5
  10534. fi
  10535. rm -f conftest.er1 conftest.err
  10536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10537. test $ac_status = 0; }
  10538. done
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10540. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10541. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10542. $as_echo_n "(cached) " >&6
  10543. else
  10544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10545. /* end confdefs.h. */
  10546. int
  10547. main ()
  10548. {
  10549. #ifndef __GNUC__
  10550. choke me
  10551. #endif
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. if ac_fn_cxx_try_compile "$LINENO"; then :
  10557. ac_compiler_gnu=yes
  10558. else
  10559. ac_compiler_gnu=no
  10560. fi
  10561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10562. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10563. fi
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10565. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10566. if test $ac_compiler_gnu = yes; then
  10567. GXX=yes
  10568. else
  10569. GXX=
  10570. fi
  10571. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10572. ac_save_CXXFLAGS=$CXXFLAGS
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10574. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10575. if ${ac_cv_prog_cxx_g+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10579. ac_cxx_werror_flag=yes
  10580. ac_cv_prog_cxx_g=no
  10581. CXXFLAGS="-g"
  10582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10583. /* end confdefs.h. */
  10584. int
  10585. main ()
  10586. {
  10587. ;
  10588. return 0;
  10589. }
  10590. _ACEOF
  10591. if ac_fn_cxx_try_compile "$LINENO"; then :
  10592. ac_cv_prog_cxx_g=yes
  10593. else
  10594. CXXFLAGS=""
  10595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10596. /* end confdefs.h. */
  10597. int
  10598. main ()
  10599. {
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. if ac_fn_cxx_try_compile "$LINENO"; then :
  10605. else
  10606. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10607. CXXFLAGS="-g"
  10608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10609. /* end confdefs.h. */
  10610. int
  10611. main ()
  10612. {
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_cxx_try_compile "$LINENO"; then :
  10618. ac_cv_prog_cxx_g=yes
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. fi
  10624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10625. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10628. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10629. if test "$ac_test_CXXFLAGS" = set; then
  10630. CXXFLAGS=$ac_save_CXXFLAGS
  10631. elif test $ac_cv_prog_cxx_g = yes; then
  10632. if test "$GXX" = yes; then
  10633. CXXFLAGS="-g -O2"
  10634. else
  10635. CXXFLAGS="-g"
  10636. fi
  10637. else
  10638. if test "$GXX" = yes; then
  10639. CXXFLAGS="-O2"
  10640. else
  10641. CXXFLAGS=
  10642. fi
  10643. fi
  10644. ac_ext=c
  10645. ac_cpp='$CPP $CPPFLAGS'
  10646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10649. func_stripname_cnf ()
  10650. {
  10651. case ${2} in
  10652. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10653. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10654. esac
  10655. } # func_stripname_cnf
  10656. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10657. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10658. (test "X$CXX" != "Xg++"))) ; then
  10659. ac_ext=cpp
  10660. ac_cpp='$CXXCPP $CPPFLAGS'
  10661. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10662. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10663. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10665. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10666. if test -z "$CXXCPP"; then
  10667. if ${ac_cv_prog_CXXCPP+:} false; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. # Double quotes because CXXCPP needs to be expanded
  10671. for CXXCPP in "$CXX -E" "/lib/cpp"
  10672. do
  10673. ac_preproc_ok=false
  10674. for ac_cxx_preproc_warn_flag in '' yes
  10675. do
  10676. # Use a header file that comes with gcc, so configuring glibc
  10677. # with a fresh cross-compiler works.
  10678. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10679. # <limits.h> exists even on freestanding compilers.
  10680. # On the NeXT, cc -E runs the code through the compiler's parser,
  10681. # not just through cpp. "Syntax error" is here to catch this case.
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. #ifdef __STDC__
  10685. # include <limits.h>
  10686. #else
  10687. # include <assert.h>
  10688. #endif
  10689. Syntax error
  10690. _ACEOF
  10691. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10692. else
  10693. # Broken: fails on valid input.
  10694. continue
  10695. fi
  10696. rm -f conftest.err conftest.i conftest.$ac_ext
  10697. # OK, works on sane cases. Now check whether nonexistent headers
  10698. # can be detected and how.
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. #include <ac_nonexistent.h>
  10702. _ACEOF
  10703. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10704. # Broken: success on invalid input.
  10705. continue
  10706. else
  10707. # Passes both tests.
  10708. ac_preproc_ok=:
  10709. break
  10710. fi
  10711. rm -f conftest.err conftest.i conftest.$ac_ext
  10712. done
  10713. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10714. rm -f conftest.i conftest.err conftest.$ac_ext
  10715. if $ac_preproc_ok; then :
  10716. break
  10717. fi
  10718. done
  10719. ac_cv_prog_CXXCPP=$CXXCPP
  10720. fi
  10721. CXXCPP=$ac_cv_prog_CXXCPP
  10722. else
  10723. ac_cv_prog_CXXCPP=$CXXCPP
  10724. fi
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10726. $as_echo "$CXXCPP" >&6; }
  10727. ac_preproc_ok=false
  10728. for ac_cxx_preproc_warn_flag in '' yes
  10729. do
  10730. # Use a header file that comes with gcc, so configuring glibc
  10731. # with a fresh cross-compiler works.
  10732. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10733. # <limits.h> exists even on freestanding compilers.
  10734. # On the NeXT, cc -E runs the code through the compiler's parser,
  10735. # not just through cpp. "Syntax error" is here to catch this case.
  10736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10737. /* end confdefs.h. */
  10738. #ifdef __STDC__
  10739. # include <limits.h>
  10740. #else
  10741. # include <assert.h>
  10742. #endif
  10743. Syntax error
  10744. _ACEOF
  10745. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10746. else
  10747. # Broken: fails on valid input.
  10748. continue
  10749. fi
  10750. rm -f conftest.err conftest.i conftest.$ac_ext
  10751. # OK, works on sane cases. Now check whether nonexistent headers
  10752. # can be detected and how.
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. #include <ac_nonexistent.h>
  10756. _ACEOF
  10757. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10758. # Broken: success on invalid input.
  10759. continue
  10760. else
  10761. # Passes both tests.
  10762. ac_preproc_ok=:
  10763. break
  10764. fi
  10765. rm -f conftest.err conftest.i conftest.$ac_ext
  10766. done
  10767. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10768. rm -f conftest.i conftest.err conftest.$ac_ext
  10769. if $ac_preproc_ok; then :
  10770. else
  10771. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10773. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10774. See \`config.log' for more details" "$LINENO" 5; }
  10775. fi
  10776. ac_ext=c
  10777. ac_cpp='$CPP $CPPFLAGS'
  10778. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10779. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10780. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10781. else
  10782. _lt_caught_CXX_error=yes
  10783. fi
  10784. ac_ext=cpp
  10785. ac_cpp='$CXXCPP $CPPFLAGS'
  10786. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10787. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10788. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10789. archive_cmds_need_lc_CXX=no
  10790. allow_undefined_flag_CXX=
  10791. always_export_symbols_CXX=no
  10792. archive_expsym_cmds_CXX=
  10793. compiler_needs_object_CXX=no
  10794. export_dynamic_flag_spec_CXX=
  10795. hardcode_direct_CXX=no
  10796. hardcode_direct_absolute_CXX=no
  10797. hardcode_libdir_flag_spec_CXX=
  10798. hardcode_libdir_separator_CXX=
  10799. hardcode_minus_L_CXX=no
  10800. hardcode_shlibpath_var_CXX=unsupported
  10801. hardcode_automatic_CXX=no
  10802. inherit_rpath_CXX=no
  10803. module_cmds_CXX=
  10804. module_expsym_cmds_CXX=
  10805. link_all_deplibs_CXX=unknown
  10806. old_archive_cmds_CXX=$old_archive_cmds
  10807. reload_flag_CXX=$reload_flag
  10808. reload_cmds_CXX=$reload_cmds
  10809. no_undefined_flag_CXX=
  10810. whole_archive_flag_spec_CXX=
  10811. enable_shared_with_static_runtimes_CXX=no
  10812. # Source file extension for C++ test sources.
  10813. ac_ext=cpp
  10814. # Object file extension for compiled C++ test sources.
  10815. objext=o
  10816. objext_CXX=$objext
  10817. # No sense in running all these tests if we already determined that
  10818. # the CXX compiler isn't working. Some variables (like enable_shared)
  10819. # are currently assumed to apply to all compilers on this platform,
  10820. # and will be corrupted by setting them based on a non-working compiler.
  10821. if test "$_lt_caught_CXX_error" != yes; then
  10822. # Code to be used in simple compile tests
  10823. lt_simple_compile_test_code="int some_variable = 0;"
  10824. # Code to be used in simple link tests
  10825. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10826. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10827. # If no C compiler was specified, use CC.
  10828. LTCC=${LTCC-"$CC"}
  10829. # If no C compiler flags were specified, use CFLAGS.
  10830. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10831. # Allow CC to be a program name with arguments.
  10832. compiler=$CC
  10833. # save warnings/boilerplate of simple test code
  10834. ac_outfile=conftest.$ac_objext
  10835. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10836. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10837. _lt_compiler_boilerplate=`cat conftest.err`
  10838. $RM conftest*
  10839. ac_outfile=conftest.$ac_objext
  10840. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10841. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10842. _lt_linker_boilerplate=`cat conftest.err`
  10843. $RM -r conftest*
  10844. # Allow CC to be a program name with arguments.
  10845. lt_save_CC=$CC
  10846. lt_save_CFLAGS=$CFLAGS
  10847. lt_save_LD=$LD
  10848. lt_save_GCC=$GCC
  10849. GCC=$GXX
  10850. lt_save_with_gnu_ld=$with_gnu_ld
  10851. lt_save_path_LD=$lt_cv_path_LD
  10852. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10853. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10854. else
  10855. $as_unset lt_cv_prog_gnu_ld
  10856. fi
  10857. if test -n "${lt_cv_path_LDCXX+set}"; then
  10858. lt_cv_path_LD=$lt_cv_path_LDCXX
  10859. else
  10860. $as_unset lt_cv_path_LD
  10861. fi
  10862. test -z "${LDCXX+set}" || LD=$LDCXX
  10863. CC=${CXX-"c++"}
  10864. CFLAGS=$CXXFLAGS
  10865. compiler=$CC
  10866. compiler_CXX=$CC
  10867. for cc_temp in $compiler""; do
  10868. case $cc_temp in
  10869. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10870. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10871. \-*) ;;
  10872. *) break;;
  10873. esac
  10874. done
  10875. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10876. if test -n "$compiler"; then
  10877. # We don't want -fno-exception when compiling C++ code, so set the
  10878. # no_builtin_flag separately
  10879. if test "$GXX" = yes; then
  10880. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10881. else
  10882. lt_prog_compiler_no_builtin_flag_CXX=
  10883. fi
  10884. if test "$GXX" = yes; then
  10885. # Set up default GNU C++ configuration
  10886. # Check whether --with-gnu-ld was given.
  10887. if test "${with_gnu_ld+set}" = set; then :
  10888. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10889. else
  10890. with_gnu_ld=no
  10891. fi
  10892. ac_prog=ld
  10893. if test "$GCC" = yes; then
  10894. # Check if gcc -print-prog-name=ld gives a path.
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10896. $as_echo_n "checking for ld used by $CC... " >&6; }
  10897. case $host in
  10898. *-*-mingw*)
  10899. # gcc leaves a trailing carriage return which upsets mingw
  10900. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10901. *)
  10902. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10903. esac
  10904. case $ac_prog in
  10905. # Accept absolute paths.
  10906. [\\/]* | ?:[\\/]*)
  10907. re_direlt='/[^/][^/]*/\.\./'
  10908. # Canonicalize the pathname of ld
  10909. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10910. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10911. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10912. done
  10913. test -z "$LD" && LD="$ac_prog"
  10914. ;;
  10915. "")
  10916. # If it fails, then pretend we aren't using GCC.
  10917. ac_prog=ld
  10918. ;;
  10919. *)
  10920. # If it is relative, then search for the first ld in PATH.
  10921. with_gnu_ld=unknown
  10922. ;;
  10923. esac
  10924. elif test "$with_gnu_ld" = yes; then
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10926. $as_echo_n "checking for GNU ld... " >&6; }
  10927. else
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10929. $as_echo_n "checking for non-GNU ld... " >&6; }
  10930. fi
  10931. if ${lt_cv_path_LD+:} false; then :
  10932. $as_echo_n "(cached) " >&6
  10933. else
  10934. if test -z "$LD"; then
  10935. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10936. for ac_dir in $PATH; do
  10937. IFS="$lt_save_ifs"
  10938. test -z "$ac_dir" && ac_dir=.
  10939. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10940. lt_cv_path_LD="$ac_dir/$ac_prog"
  10941. # Check to see if the program is GNU ld. I'd rather use --version,
  10942. # but apparently some variants of GNU ld only accept -v.
  10943. # Break only if it was the GNU/non-GNU ld that we prefer.
  10944. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10945. *GNU* | *'with BFD'*)
  10946. test "$with_gnu_ld" != no && break
  10947. ;;
  10948. *)
  10949. test "$with_gnu_ld" != yes && break
  10950. ;;
  10951. esac
  10952. fi
  10953. done
  10954. IFS="$lt_save_ifs"
  10955. else
  10956. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10957. fi
  10958. fi
  10959. LD="$lt_cv_path_LD"
  10960. if test -n "$LD"; then
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10962. $as_echo "$LD" >&6; }
  10963. else
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10965. $as_echo "no" >&6; }
  10966. fi
  10967. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10969. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10970. if ${lt_cv_prog_gnu_ld+:} false; then :
  10971. $as_echo_n "(cached) " >&6
  10972. else
  10973. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10974. case `$LD -v 2>&1 </dev/null` in
  10975. *GNU* | *'with BFD'*)
  10976. lt_cv_prog_gnu_ld=yes
  10977. ;;
  10978. *)
  10979. lt_cv_prog_gnu_ld=no
  10980. ;;
  10981. esac
  10982. fi
  10983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10984. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10985. with_gnu_ld=$lt_cv_prog_gnu_ld
  10986. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10987. # archiving commands below assume that GNU ld is being used.
  10988. if test "$with_gnu_ld" = yes; then
  10989. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10990. 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'
  10991. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10992. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10993. # If archive_cmds runs LD, not CC, wlarc should be empty
  10994. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10995. # investigate it a little bit more. (MM)
  10996. wlarc='${wl}'
  10997. # ancient GNU ld didn't support --whole-archive et. al.
  10998. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10999. $GREP 'no-whole-archive' > /dev/null; then
  11000. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11001. else
  11002. whole_archive_flag_spec_CXX=
  11003. fi
  11004. else
  11005. with_gnu_ld=no
  11006. wlarc=
  11007. # A generic and very simple default shared library creation
  11008. # command for GNU C++ for the case where it uses the native
  11009. # linker, instead of GNU ld. If possible, this setting should
  11010. # overridden to take advantage of the native linker features on
  11011. # the platform it is being used on.
  11012. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11013. fi
  11014. # Commands to make compiler produce verbose output that lists
  11015. # what "hidden" libraries, object files and flags are used when
  11016. # linking a shared library.
  11017. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11018. else
  11019. GXX=no
  11020. with_gnu_ld=no
  11021. wlarc=
  11022. fi
  11023. # PORTME: fill in a description of your system's C++ link characteristics
  11024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11025. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11026. ld_shlibs_CXX=yes
  11027. case $host_os in
  11028. aix3*)
  11029. # FIXME: insert proper C++ library support
  11030. ld_shlibs_CXX=no
  11031. ;;
  11032. aix[4-9]*)
  11033. if test "$host_cpu" = ia64; then
  11034. # On IA64, the linker does run time linking by default, so we don't
  11035. # have to do anything special.
  11036. aix_use_runtimelinking=no
  11037. exp_sym_flag='-Bexport'
  11038. no_entry_flag=""
  11039. else
  11040. aix_use_runtimelinking=no
  11041. # Test if we are trying to use run time linking or normal
  11042. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11043. # need to do runtime linking.
  11044. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11045. for ld_flag in $LDFLAGS; do
  11046. case $ld_flag in
  11047. *-brtl*)
  11048. aix_use_runtimelinking=yes
  11049. break
  11050. ;;
  11051. esac
  11052. done
  11053. ;;
  11054. esac
  11055. exp_sym_flag='-bexport'
  11056. no_entry_flag='-bnoentry'
  11057. fi
  11058. # When large executables or shared objects are built, AIX ld can
  11059. # have problems creating the table of contents. If linking a library
  11060. # or program results in "error TOC overflow" add -mminimal-toc to
  11061. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11062. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11063. archive_cmds_CXX=''
  11064. hardcode_direct_CXX=yes
  11065. hardcode_direct_absolute_CXX=yes
  11066. hardcode_libdir_separator_CXX=':'
  11067. link_all_deplibs_CXX=yes
  11068. file_list_spec_CXX='${wl}-f,'
  11069. if test "$GXX" = yes; then
  11070. case $host_os in aix4.[012]|aix4.[012].*)
  11071. # We only want to do this on AIX 4.2 and lower, the check
  11072. # below for broken collect2 doesn't work under 4.3+
  11073. collect2name=`${CC} -print-prog-name=collect2`
  11074. if test -f "$collect2name" &&
  11075. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11076. then
  11077. # We have reworked collect2
  11078. :
  11079. else
  11080. # We have old collect2
  11081. hardcode_direct_CXX=unsupported
  11082. # It fails to find uninstalled libraries when the uninstalled
  11083. # path is not listed in the libpath. Setting hardcode_minus_L
  11084. # to unsupported forces relinking
  11085. hardcode_minus_L_CXX=yes
  11086. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11087. hardcode_libdir_separator_CXX=
  11088. fi
  11089. esac
  11090. shared_flag='-shared'
  11091. if test "$aix_use_runtimelinking" = yes; then
  11092. shared_flag="$shared_flag "'${wl}-G'
  11093. fi
  11094. else
  11095. # not using gcc
  11096. if test "$host_cpu" = ia64; then
  11097. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11098. # chokes on -Wl,-G. The following line is correct:
  11099. shared_flag='-G'
  11100. else
  11101. if test "$aix_use_runtimelinking" = yes; then
  11102. shared_flag='${wl}-G'
  11103. else
  11104. shared_flag='${wl}-bM:SRE'
  11105. fi
  11106. fi
  11107. fi
  11108. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11109. # It seems that -bexpall does not export symbols beginning with
  11110. # underscore (_), so it is better to generate a list of symbols to
  11111. # export.
  11112. always_export_symbols_CXX=yes
  11113. if test "$aix_use_runtimelinking" = yes; then
  11114. # Warning - without using the other runtime loading flags (-brtl),
  11115. # -berok will link without error, but may produce a broken library.
  11116. allow_undefined_flag_CXX='-berok'
  11117. # Determine the default libpath from the value encoded in an empty
  11118. # executable.
  11119. if test "${lt_cv_aix_libpath+set}" = set; then
  11120. aix_libpath=$lt_cv_aix_libpath
  11121. else
  11122. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11123. $as_echo_n "(cached) " >&6
  11124. else
  11125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11126. /* end confdefs.h. */
  11127. int
  11128. main ()
  11129. {
  11130. ;
  11131. return 0;
  11132. }
  11133. _ACEOF
  11134. if ac_fn_cxx_try_link "$LINENO"; then :
  11135. lt_aix_libpath_sed='
  11136. /Import File Strings/,/^$/ {
  11137. /^0/ {
  11138. s/^0 *\([^ ]*\) *$/\1/
  11139. p
  11140. }
  11141. }'
  11142. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11143. # Check for a 64-bit object if we didn't find anything.
  11144. if test -z "$lt_cv_aix_libpath__CXX"; then
  11145. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11146. fi
  11147. fi
  11148. rm -f core conftest.err conftest.$ac_objext \
  11149. conftest$ac_exeext conftest.$ac_ext
  11150. if test -z "$lt_cv_aix_libpath__CXX"; then
  11151. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11152. fi
  11153. fi
  11154. aix_libpath=$lt_cv_aix_libpath__CXX
  11155. fi
  11156. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11157. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11158. else
  11159. if test "$host_cpu" = ia64; then
  11160. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11161. allow_undefined_flag_CXX="-z nodefs"
  11162. 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"
  11163. else
  11164. # Determine the default libpath from the value encoded in an
  11165. # empty executable.
  11166. if test "${lt_cv_aix_libpath+set}" = set; then
  11167. aix_libpath=$lt_cv_aix_libpath
  11168. else
  11169. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11170. $as_echo_n "(cached) " >&6
  11171. else
  11172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11173. /* end confdefs.h. */
  11174. int
  11175. main ()
  11176. {
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. if ac_fn_cxx_try_link "$LINENO"; then :
  11182. lt_aix_libpath_sed='
  11183. /Import File Strings/,/^$/ {
  11184. /^0/ {
  11185. s/^0 *\([^ ]*\) *$/\1/
  11186. p
  11187. }
  11188. }'
  11189. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11190. # Check for a 64-bit object if we didn't find anything.
  11191. if test -z "$lt_cv_aix_libpath__CXX"; then
  11192. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11193. fi
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext \
  11196. conftest$ac_exeext conftest.$ac_ext
  11197. if test -z "$lt_cv_aix_libpath__CXX"; then
  11198. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11199. fi
  11200. fi
  11201. aix_libpath=$lt_cv_aix_libpath__CXX
  11202. fi
  11203. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11204. # Warning - without using the other run time loading flags,
  11205. # -berok will link without error, but may produce a broken library.
  11206. no_undefined_flag_CXX=' ${wl}-bernotok'
  11207. allow_undefined_flag_CXX=' ${wl}-berok'
  11208. if test "$with_gnu_ld" = yes; then
  11209. # We only use this code for GNU lds that support --whole-archive.
  11210. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11211. else
  11212. # Exported symbols can be pulled into shared objects from archives
  11213. whole_archive_flag_spec_CXX='$convenience'
  11214. fi
  11215. archive_cmds_need_lc_CXX=yes
  11216. # This is similar to how AIX traditionally builds its shared
  11217. # libraries.
  11218. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11219. fi
  11220. fi
  11221. ;;
  11222. beos*)
  11223. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11224. allow_undefined_flag_CXX=unsupported
  11225. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11226. # support --undefined. This deserves some investigation. FIXME
  11227. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11228. else
  11229. ld_shlibs_CXX=no
  11230. fi
  11231. ;;
  11232. chorus*)
  11233. case $cc_basename in
  11234. *)
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. ;;
  11238. esac
  11239. ;;
  11240. cygwin* | mingw* | pw32* | cegcc*)
  11241. case $GXX,$cc_basename in
  11242. ,cl* | no,cl*)
  11243. # Native MSVC
  11244. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11245. # no search path for DLLs.
  11246. hardcode_libdir_flag_spec_CXX=' '
  11247. allow_undefined_flag_CXX=unsupported
  11248. always_export_symbols_CXX=yes
  11249. file_list_spec_CXX='@'
  11250. # Tell ltmain to make .lib files, not .a files.
  11251. libext=lib
  11252. # Tell ltmain to make .dll files, not .so files.
  11253. shrext_cmds=".dll"
  11254. # FIXME: Setting linknames here is a bad hack.
  11255. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11256. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11257. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11258. else
  11259. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11260. fi~
  11261. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11262. linknames='
  11263. # The linker will not automatically build a static lib if we build a DLL.
  11264. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11265. enable_shared_with_static_runtimes_CXX=yes
  11266. # Don't use ranlib
  11267. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11268. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11269. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11270. case $lt_outputfile in
  11271. *.exe|*.EXE) ;;
  11272. *)
  11273. lt_outputfile="$lt_outputfile.exe"
  11274. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11275. ;;
  11276. esac~
  11277. func_to_tool_file "$lt_outputfile"~
  11278. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11279. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11280. $RM "$lt_outputfile.manifest";
  11281. fi'
  11282. ;;
  11283. *)
  11284. # g++
  11285. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11286. # as there is no search path for DLLs.
  11287. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11288. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11289. allow_undefined_flag_CXX=unsupported
  11290. always_export_symbols_CXX=no
  11291. enable_shared_with_static_runtimes_CXX=yes
  11292. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11293. 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'
  11294. # If the export-symbols file already is a .def file (1st line
  11295. # is EXPORTS), use it as is; otherwise, prepend...
  11296. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11297. cp $export_symbols $output_objdir/$soname.def;
  11298. else
  11299. echo EXPORTS > $output_objdir/$soname.def;
  11300. cat $export_symbols >> $output_objdir/$soname.def;
  11301. fi~
  11302. $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'
  11303. else
  11304. ld_shlibs_CXX=no
  11305. fi
  11306. ;;
  11307. esac
  11308. ;;
  11309. darwin* | rhapsody*)
  11310. archive_cmds_need_lc_CXX=no
  11311. hardcode_direct_CXX=no
  11312. hardcode_automatic_CXX=yes
  11313. hardcode_shlibpath_var_CXX=unsupported
  11314. if test "$lt_cv_ld_force_load" = "yes"; then
  11315. 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\"`'
  11316. else
  11317. whole_archive_flag_spec_CXX=''
  11318. fi
  11319. link_all_deplibs_CXX=yes
  11320. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11321. case $cc_basename in
  11322. ifort*) _lt_dar_can_shared=yes ;;
  11323. *) _lt_dar_can_shared=$GCC ;;
  11324. esac
  11325. if test "$_lt_dar_can_shared" = "yes"; then
  11326. output_verbose_link_cmd=func_echo_all
  11327. 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}"
  11328. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11329. 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}"
  11330. 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}"
  11331. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11332. 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}"
  11333. 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}"
  11334. fi
  11335. else
  11336. ld_shlibs_CXX=no
  11337. fi
  11338. ;;
  11339. dgux*)
  11340. case $cc_basename in
  11341. ec++*)
  11342. # FIXME: insert proper C++ library support
  11343. ld_shlibs_CXX=no
  11344. ;;
  11345. ghcx*)
  11346. # Green Hills C++ Compiler
  11347. # FIXME: insert proper C++ library support
  11348. ld_shlibs_CXX=no
  11349. ;;
  11350. *)
  11351. # FIXME: insert proper C++ library support
  11352. ld_shlibs_CXX=no
  11353. ;;
  11354. esac
  11355. ;;
  11356. freebsd2.*)
  11357. # C++ shared libraries reported to be fairly broken before
  11358. # switch to ELF
  11359. ld_shlibs_CXX=no
  11360. ;;
  11361. freebsd-elf*)
  11362. archive_cmds_need_lc_CXX=no
  11363. ;;
  11364. freebsd* | dragonfly*)
  11365. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11366. # conventions
  11367. ld_shlibs_CXX=yes
  11368. ;;
  11369. gnu*)
  11370. ;;
  11371. haiku*)
  11372. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11373. link_all_deplibs_CXX=yes
  11374. ;;
  11375. hpux9*)
  11376. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11377. hardcode_libdir_separator_CXX=:
  11378. export_dynamic_flag_spec_CXX='${wl}-E'
  11379. hardcode_direct_CXX=yes
  11380. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11381. # but as the default
  11382. # location of the library.
  11383. case $cc_basename in
  11384. CC*)
  11385. # FIXME: insert proper C++ library support
  11386. ld_shlibs_CXX=no
  11387. ;;
  11388. aCC*)
  11389. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11390. # Commands to make compiler produce verbose output that lists
  11391. # what "hidden" libraries, object files and flags are used when
  11392. # linking a shared library.
  11393. #
  11394. # There doesn't appear to be a way to prevent this compiler from
  11395. # explicitly linking system object files so we need to strip them
  11396. # from the output so that they don't get included in the library
  11397. # dependencies.
  11398. 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"'
  11399. ;;
  11400. *)
  11401. if test "$GXX" = yes; then
  11402. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11403. else
  11404. # FIXME: insert proper C++ library support
  11405. ld_shlibs_CXX=no
  11406. fi
  11407. ;;
  11408. esac
  11409. ;;
  11410. hpux10*|hpux11*)
  11411. if test $with_gnu_ld = no; then
  11412. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11413. hardcode_libdir_separator_CXX=:
  11414. case $host_cpu in
  11415. hppa*64*|ia64*)
  11416. ;;
  11417. *)
  11418. export_dynamic_flag_spec_CXX='${wl}-E'
  11419. ;;
  11420. esac
  11421. fi
  11422. case $host_cpu in
  11423. hppa*64*|ia64*)
  11424. hardcode_direct_CXX=no
  11425. hardcode_shlibpath_var_CXX=no
  11426. ;;
  11427. *)
  11428. hardcode_direct_CXX=yes
  11429. hardcode_direct_absolute_CXX=yes
  11430. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11431. # but as the default
  11432. # location of the library.
  11433. ;;
  11434. esac
  11435. case $cc_basename in
  11436. CC*)
  11437. # FIXME: insert proper C++ library support
  11438. ld_shlibs_CXX=no
  11439. ;;
  11440. aCC*)
  11441. case $host_cpu in
  11442. hppa*64*)
  11443. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11444. ;;
  11445. ia64*)
  11446. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11447. ;;
  11448. *)
  11449. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11450. ;;
  11451. esac
  11452. # Commands to make compiler produce verbose output that lists
  11453. # what "hidden" libraries, object files and flags are used when
  11454. # linking a shared library.
  11455. #
  11456. # There doesn't appear to be a way to prevent this compiler from
  11457. # explicitly linking system object files so we need to strip them
  11458. # from the output so that they don't get included in the library
  11459. # dependencies.
  11460. 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"'
  11461. ;;
  11462. *)
  11463. if test "$GXX" = yes; then
  11464. if test $with_gnu_ld = no; then
  11465. case $host_cpu in
  11466. hppa*64*)
  11467. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11468. ;;
  11469. ia64*)
  11470. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11471. ;;
  11472. *)
  11473. 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'
  11474. ;;
  11475. esac
  11476. fi
  11477. else
  11478. # FIXME: insert proper C++ library support
  11479. ld_shlibs_CXX=no
  11480. fi
  11481. ;;
  11482. esac
  11483. ;;
  11484. interix[3-9]*)
  11485. hardcode_direct_CXX=no
  11486. hardcode_shlibpath_var_CXX=no
  11487. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11488. export_dynamic_flag_spec_CXX='${wl}-E'
  11489. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11490. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11491. # default) and relocated if they conflict, which is a slow very memory
  11492. # consuming and fragmenting process. To avoid this, we pick a random,
  11493. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11494. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11495. 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'
  11496. 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'
  11497. ;;
  11498. irix5* | irix6*)
  11499. case $cc_basename in
  11500. CC*)
  11501. # SGI C++
  11502. 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'
  11503. # Archives containing C++ object files must be created using
  11504. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11505. # necessary to make sure instantiated templates are included
  11506. # in the archive.
  11507. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11508. ;;
  11509. *)
  11510. if test "$GXX" = yes; then
  11511. if test "$with_gnu_ld" = no; then
  11512. 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'
  11513. else
  11514. 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'
  11515. fi
  11516. fi
  11517. link_all_deplibs_CXX=yes
  11518. ;;
  11519. esac
  11520. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11521. hardcode_libdir_separator_CXX=:
  11522. inherit_rpath_CXX=yes
  11523. ;;
  11524. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11525. case $cc_basename in
  11526. KCC*)
  11527. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11528. # KCC will only create a shared library if the output file
  11529. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11530. # to its proper name (with version) after linking.
  11531. 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'
  11532. 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'
  11533. # Commands to make compiler produce verbose output that lists
  11534. # what "hidden" libraries, object files and flags are used when
  11535. # linking a shared library.
  11536. #
  11537. # There doesn't appear to be a way to prevent this compiler from
  11538. # explicitly linking system object files so we need to strip them
  11539. # from the output so that they don't get included in the library
  11540. # dependencies.
  11541. 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"'
  11542. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11543. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11544. # Archives containing C++ object files must be created using
  11545. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11546. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11547. ;;
  11548. icpc* | ecpc* )
  11549. # Intel C++
  11550. with_gnu_ld=yes
  11551. # version 8.0 and above of icpc choke on multiply defined symbols
  11552. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11553. # earlier do not add the objects themselves.
  11554. case `$CC -V 2>&1` in
  11555. *"Version 7."*)
  11556. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11557. 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'
  11558. ;;
  11559. *) # Version 8.0 or newer
  11560. tmp_idyn=
  11561. case $host_cpu in
  11562. ia64*) tmp_idyn=' -i_dynamic';;
  11563. esac
  11564. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11565. 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'
  11566. ;;
  11567. esac
  11568. archive_cmds_need_lc_CXX=no
  11569. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11570. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11571. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11572. ;;
  11573. pgCC* | pgcpp*)
  11574. # Portland Group C++ compiler
  11575. case `$CC -V` in
  11576. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11577. prelink_cmds_CXX='tpldir=Template.dir~
  11578. rm -rf $tpldir~
  11579. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11580. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11581. old_archive_cmds_CXX='tpldir=Template.dir~
  11582. rm -rf $tpldir~
  11583. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11584. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11585. $RANLIB $oldlib'
  11586. archive_cmds_CXX='tpldir=Template.dir~
  11587. rm -rf $tpldir~
  11588. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11589. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11590. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11591. rm -rf $tpldir~
  11592. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11593. $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'
  11594. ;;
  11595. *) # Version 6 and above use weak symbols
  11596. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11597. 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'
  11598. ;;
  11599. esac
  11600. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11601. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11602. 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'
  11603. ;;
  11604. cxx*)
  11605. # Compaq C++
  11606. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11607. 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'
  11608. runpath_var=LD_RUN_PATH
  11609. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11610. hardcode_libdir_separator_CXX=:
  11611. # Commands to make compiler produce verbose output that lists
  11612. # what "hidden" libraries, object files and flags are used when
  11613. # linking a shared library.
  11614. #
  11615. # There doesn't appear to be a way to prevent this compiler from
  11616. # explicitly linking system object files so we need to strip them
  11617. # from the output so that they don't get included in the library
  11618. # dependencies.
  11619. 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'
  11620. ;;
  11621. xl* | mpixl* | bgxl*)
  11622. # IBM XL 8.0 on PPC, with GNU ld
  11623. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11624. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11625. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11626. if test "x$supports_anon_versioning" = xyes; then
  11627. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11628. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11629. echo "local: *; };" >> $output_objdir/$libname.ver~
  11630. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11631. fi
  11632. ;;
  11633. *)
  11634. case `$CC -V 2>&1 | sed 5q` in
  11635. *Sun\ C*)
  11636. # Sun C++ 5.9
  11637. no_undefined_flag_CXX=' -zdefs'
  11638. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11639. 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'
  11640. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11641. 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'
  11642. compiler_needs_object_CXX=yes
  11643. # Not sure whether something based on
  11644. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11645. # would be better.
  11646. output_verbose_link_cmd='func_echo_all'
  11647. # Archives containing C++ object files must be created using
  11648. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11649. # necessary to make sure instantiated templates are included
  11650. # in the archive.
  11651. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11652. ;;
  11653. esac
  11654. ;;
  11655. esac
  11656. ;;
  11657. lynxos*)
  11658. # FIXME: insert proper C++ library support
  11659. ld_shlibs_CXX=no
  11660. ;;
  11661. m88k*)
  11662. # FIXME: insert proper C++ library support
  11663. ld_shlibs_CXX=no
  11664. ;;
  11665. mvs*)
  11666. case $cc_basename in
  11667. cxx*)
  11668. # FIXME: insert proper C++ library support
  11669. ld_shlibs_CXX=no
  11670. ;;
  11671. *)
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. esac
  11676. ;;
  11677. netbsd*)
  11678. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11679. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11680. wlarc=
  11681. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11682. hardcode_direct_CXX=yes
  11683. hardcode_shlibpath_var_CXX=no
  11684. fi
  11685. # Workaround some broken pre-1.5 toolchains
  11686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11687. ;;
  11688. *nto* | *qnx*)
  11689. ld_shlibs_CXX=yes
  11690. ;;
  11691. openbsd2*)
  11692. # C++ shared libraries are fairly broken
  11693. ld_shlibs_CXX=no
  11694. ;;
  11695. openbsd*)
  11696. if test -f /usr/libexec/ld.so; then
  11697. hardcode_direct_CXX=yes
  11698. hardcode_shlibpath_var_CXX=no
  11699. hardcode_direct_absolute_CXX=yes
  11700. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11701. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11702. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11703. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11704. export_dynamic_flag_spec_CXX='${wl}-E'
  11705. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11706. fi
  11707. output_verbose_link_cmd=func_echo_all
  11708. else
  11709. ld_shlibs_CXX=no
  11710. fi
  11711. ;;
  11712. osf3* | osf4* | osf5*)
  11713. case $cc_basename in
  11714. KCC*)
  11715. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11716. # KCC will only create a shared library if the output file
  11717. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11718. # to its proper name (with version) after linking.
  11719. 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'
  11720. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11721. hardcode_libdir_separator_CXX=:
  11722. # Archives containing C++ object files must be created using
  11723. # the KAI C++ compiler.
  11724. case $host in
  11725. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11726. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11727. esac
  11728. ;;
  11729. RCC*)
  11730. # Rational C++ 2.4.1
  11731. # FIXME: insert proper C++ library support
  11732. ld_shlibs_CXX=no
  11733. ;;
  11734. cxx*)
  11735. case $host in
  11736. osf3*)
  11737. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11738. 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'
  11739. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11740. ;;
  11741. *)
  11742. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11743. 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'
  11744. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11745. echo "-hidden">> $lib.exp~
  11746. $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~
  11747. $RM $lib.exp'
  11748. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11749. ;;
  11750. esac
  11751. hardcode_libdir_separator_CXX=:
  11752. # Commands to make compiler produce verbose output that lists
  11753. # what "hidden" libraries, object files and flags are used when
  11754. # linking a shared library.
  11755. #
  11756. # There doesn't appear to be a way to prevent this compiler from
  11757. # explicitly linking system object files so we need to strip them
  11758. # from the output so that they don't get included in the library
  11759. # dependencies.
  11760. 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"'
  11761. ;;
  11762. *)
  11763. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11764. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11765. case $host in
  11766. osf3*)
  11767. 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'
  11768. ;;
  11769. *)
  11770. 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'
  11771. ;;
  11772. esac
  11773. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11774. hardcode_libdir_separator_CXX=:
  11775. # Commands to make compiler produce verbose output that lists
  11776. # what "hidden" libraries, object files and flags are used when
  11777. # linking a shared library.
  11778. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11779. else
  11780. # FIXME: insert proper C++ library support
  11781. ld_shlibs_CXX=no
  11782. fi
  11783. ;;
  11784. esac
  11785. ;;
  11786. psos*)
  11787. # FIXME: insert proper C++ library support
  11788. ld_shlibs_CXX=no
  11789. ;;
  11790. sunos4*)
  11791. case $cc_basename in
  11792. CC*)
  11793. # Sun C++ 4.x
  11794. # FIXME: insert proper C++ library support
  11795. ld_shlibs_CXX=no
  11796. ;;
  11797. lcc*)
  11798. # Lucid
  11799. # FIXME: insert proper C++ library support
  11800. ld_shlibs_CXX=no
  11801. ;;
  11802. *)
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. esac
  11807. ;;
  11808. solaris*)
  11809. case $cc_basename in
  11810. CC* | sunCC*)
  11811. # Sun C++ 4.2, 5.x and Centerline C++
  11812. archive_cmds_need_lc_CXX=yes
  11813. no_undefined_flag_CXX=' -zdefs'
  11814. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11815. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11816. $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'
  11817. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11818. hardcode_shlibpath_var_CXX=no
  11819. case $host_os in
  11820. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11821. *)
  11822. # The compiler driver will combine and reorder linker options,
  11823. # but understands `-z linker_flag'.
  11824. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11825. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11826. ;;
  11827. esac
  11828. link_all_deplibs_CXX=yes
  11829. output_verbose_link_cmd='func_echo_all'
  11830. # Archives containing C++ object files must be created using
  11831. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11832. # necessary to make sure instantiated templates are included
  11833. # in the archive.
  11834. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11835. ;;
  11836. gcx*)
  11837. # Green Hills C++ Compiler
  11838. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11839. # The C++ compiler must be used to create the archive.
  11840. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11841. ;;
  11842. *)
  11843. # GNU C++ compiler with Solaris linker
  11844. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11845. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11846. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11847. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11848. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11849. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11850. # Commands to make compiler produce verbose output that lists
  11851. # what "hidden" libraries, object files and flags are used when
  11852. # linking a shared library.
  11853. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11854. else
  11855. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11856. # platform.
  11857. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11858. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11859. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11860. # Commands to make compiler produce verbose output that lists
  11861. # what "hidden" libraries, object files and flags are used when
  11862. # linking a shared library.
  11863. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11864. fi
  11865. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11866. case $host_os in
  11867. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11868. *)
  11869. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11870. ;;
  11871. esac
  11872. fi
  11873. ;;
  11874. esac
  11875. ;;
  11876. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11877. no_undefined_flag_CXX='${wl}-z,text'
  11878. archive_cmds_need_lc_CXX=no
  11879. hardcode_shlibpath_var_CXX=no
  11880. runpath_var='LD_RUN_PATH'
  11881. case $cc_basename in
  11882. CC*)
  11883. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11884. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11885. ;;
  11886. *)
  11887. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11888. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11889. ;;
  11890. esac
  11891. ;;
  11892. sysv5* | sco3.2v5* | sco5v6*)
  11893. # Note: We can NOT use -z defs as we might desire, because we do not
  11894. # link with -lc, and that would cause any symbols used from libc to
  11895. # always be unresolved, which means just about no library would
  11896. # ever link correctly. If we're not using GNU ld we use -z text
  11897. # though, which does catch some bad symbols but isn't as heavy-handed
  11898. # as -z defs.
  11899. no_undefined_flag_CXX='${wl}-z,text'
  11900. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11901. archive_cmds_need_lc_CXX=no
  11902. hardcode_shlibpath_var_CXX=no
  11903. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11904. hardcode_libdir_separator_CXX=':'
  11905. link_all_deplibs_CXX=yes
  11906. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11907. runpath_var='LD_RUN_PATH'
  11908. case $cc_basename in
  11909. CC*)
  11910. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11911. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11912. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11913. '"$old_archive_cmds_CXX"
  11914. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11915. '"$reload_cmds_CXX"
  11916. ;;
  11917. *)
  11918. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11919. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11920. ;;
  11921. esac
  11922. ;;
  11923. tandem*)
  11924. case $cc_basename in
  11925. NCC*)
  11926. # NonStop-UX NCC 3.20
  11927. # FIXME: insert proper C++ library support
  11928. ld_shlibs_CXX=no
  11929. ;;
  11930. *)
  11931. # FIXME: insert proper C++ library support
  11932. ld_shlibs_CXX=no
  11933. ;;
  11934. esac
  11935. ;;
  11936. vxworks*)
  11937. # FIXME: insert proper C++ library support
  11938. ld_shlibs_CXX=no
  11939. ;;
  11940. *)
  11941. # FIXME: insert proper C++ library support
  11942. ld_shlibs_CXX=no
  11943. ;;
  11944. esac
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11946. $as_echo "$ld_shlibs_CXX" >&6; }
  11947. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11948. GCC_CXX="$GXX"
  11949. LD_CXX="$LD"
  11950. ## CAVEAT EMPTOR:
  11951. ## There is no encapsulation within the following macros, do not change
  11952. ## the running order or otherwise move them around unless you know exactly
  11953. ## what you are doing...
  11954. # Dependencies to place before and after the object being linked:
  11955. predep_objects_CXX=
  11956. postdep_objects_CXX=
  11957. predeps_CXX=
  11958. postdeps_CXX=
  11959. compiler_lib_search_path_CXX=
  11960. cat > conftest.$ac_ext <<_LT_EOF
  11961. class Foo
  11962. {
  11963. public:
  11964. Foo (void) { a = 0; }
  11965. private:
  11966. int a;
  11967. };
  11968. _LT_EOF
  11969. _lt_libdeps_save_CFLAGS=$CFLAGS
  11970. case "$CC $CFLAGS " in #(
  11971. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11972. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11973. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11974. esac
  11975. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11976. (eval $ac_compile) 2>&5
  11977. ac_status=$?
  11978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11979. test $ac_status = 0; }; then
  11980. # Parse the compiler output and extract the necessary
  11981. # objects, libraries and library flags.
  11982. # Sentinel used to keep track of whether or not we are before
  11983. # the conftest object file.
  11984. pre_test_object_deps_done=no
  11985. for p in `eval "$output_verbose_link_cmd"`; do
  11986. case ${prev}${p} in
  11987. -L* | -R* | -l*)
  11988. # Some compilers place space between "-{L,R}" and the path.
  11989. # Remove the space.
  11990. if test $p = "-L" ||
  11991. test $p = "-R"; then
  11992. prev=$p
  11993. continue
  11994. fi
  11995. # Expand the sysroot to ease extracting the directories later.
  11996. if test -z "$prev"; then
  11997. case $p in
  11998. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11999. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12000. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12001. esac
  12002. fi
  12003. case $p in
  12004. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12005. esac
  12006. if test "$pre_test_object_deps_done" = no; then
  12007. case ${prev} in
  12008. -L | -R)
  12009. # Internal compiler library paths should come after those
  12010. # provided the user. The postdeps already come after the
  12011. # user supplied libs so there is no need to process them.
  12012. if test -z "$compiler_lib_search_path_CXX"; then
  12013. compiler_lib_search_path_CXX="${prev}${p}"
  12014. else
  12015. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12016. fi
  12017. ;;
  12018. # The "-l" case would never come before the object being
  12019. # linked, so don't bother handling this case.
  12020. esac
  12021. else
  12022. if test -z "$postdeps_CXX"; then
  12023. postdeps_CXX="${prev}${p}"
  12024. else
  12025. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12026. fi
  12027. fi
  12028. prev=
  12029. ;;
  12030. *.lto.$objext) ;; # Ignore GCC LTO objects
  12031. *.$objext)
  12032. # This assumes that the test object file only shows up
  12033. # once in the compiler output.
  12034. if test "$p" = "conftest.$objext"; then
  12035. pre_test_object_deps_done=yes
  12036. continue
  12037. fi
  12038. if test "$pre_test_object_deps_done" = no; then
  12039. if test -z "$predep_objects_CXX"; then
  12040. predep_objects_CXX="$p"
  12041. else
  12042. predep_objects_CXX="$predep_objects_CXX $p"
  12043. fi
  12044. else
  12045. if test -z "$postdep_objects_CXX"; then
  12046. postdep_objects_CXX="$p"
  12047. else
  12048. postdep_objects_CXX="$postdep_objects_CXX $p"
  12049. fi
  12050. fi
  12051. ;;
  12052. *) ;; # Ignore the rest.
  12053. esac
  12054. done
  12055. # Clean up.
  12056. rm -f a.out a.exe
  12057. else
  12058. echo "libtool.m4: error: problem compiling CXX test program"
  12059. fi
  12060. $RM -f confest.$objext
  12061. CFLAGS=$_lt_libdeps_save_CFLAGS
  12062. # PORTME: override above test on systems where it is broken
  12063. case $host_os in
  12064. interix[3-9]*)
  12065. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12066. # hack all around it, let's just trust "g++" to DTRT.
  12067. predep_objects_CXX=
  12068. postdep_objects_CXX=
  12069. postdeps_CXX=
  12070. ;;
  12071. linux*)
  12072. case `$CC -V 2>&1 | sed 5q` in
  12073. *Sun\ C*)
  12074. # Sun C++ 5.9
  12075. # The more standards-conforming stlport4 library is
  12076. # incompatible with the Cstd library. Avoid specifying
  12077. # it if it's in CXXFLAGS. Ignore libCrun as
  12078. # -library=stlport4 depends on it.
  12079. case " $CXX $CXXFLAGS " in
  12080. *" -library=stlport4 "*)
  12081. solaris_use_stlport4=yes
  12082. ;;
  12083. esac
  12084. if test "$solaris_use_stlport4" != yes; then
  12085. postdeps_CXX='-library=Cstd -library=Crun'
  12086. fi
  12087. ;;
  12088. esac
  12089. ;;
  12090. solaris*)
  12091. case $cc_basename in
  12092. CC* | sunCC*)
  12093. # The more standards-conforming stlport4 library is
  12094. # incompatible with the Cstd library. Avoid specifying
  12095. # it if it's in CXXFLAGS. Ignore libCrun as
  12096. # -library=stlport4 depends on it.
  12097. case " $CXX $CXXFLAGS " in
  12098. *" -library=stlport4 "*)
  12099. solaris_use_stlport4=yes
  12100. ;;
  12101. esac
  12102. # Adding this requires a known-good setup of shared libraries for
  12103. # Sun compiler versions before 5.6, else PIC objects from an old
  12104. # archive will be linked into the output, leading to subtle bugs.
  12105. if test "$solaris_use_stlport4" != yes; then
  12106. postdeps_CXX='-library=Cstd -library=Crun'
  12107. fi
  12108. ;;
  12109. esac
  12110. ;;
  12111. esac
  12112. case " $postdeps_CXX " in
  12113. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12114. esac
  12115. compiler_lib_search_dirs_CXX=
  12116. if test -n "${compiler_lib_search_path_CXX}"; then
  12117. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12118. fi
  12119. lt_prog_compiler_wl_CXX=
  12120. lt_prog_compiler_pic_CXX=
  12121. lt_prog_compiler_static_CXX=
  12122. # C++ specific cases for pic, static, wl, etc.
  12123. if test "$GXX" = yes; then
  12124. lt_prog_compiler_wl_CXX='-Wl,'
  12125. lt_prog_compiler_static_CXX='-static'
  12126. case $host_os in
  12127. aix*)
  12128. # All AIX code is PIC.
  12129. if test "$host_cpu" = ia64; then
  12130. # AIX 5 now supports IA64 processor
  12131. lt_prog_compiler_static_CXX='-Bstatic'
  12132. fi
  12133. ;;
  12134. amigaos*)
  12135. case $host_cpu in
  12136. powerpc)
  12137. # see comment about AmigaOS4 .so support
  12138. lt_prog_compiler_pic_CXX='-fPIC'
  12139. ;;
  12140. m68k)
  12141. # FIXME: we need at least 68020 code to build shared libraries, but
  12142. # adding the `-m68020' flag to GCC prevents building anything better,
  12143. # like `-m68040'.
  12144. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12145. ;;
  12146. esac
  12147. ;;
  12148. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12149. # PIC is the default for these OSes.
  12150. ;;
  12151. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12152. # This hack is so that the source file can tell whether it is being
  12153. # built for inclusion in a dll (and should export symbols for example).
  12154. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12155. # (--disable-auto-import) libraries
  12156. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12157. ;;
  12158. darwin* | rhapsody*)
  12159. # PIC is the default on this platform
  12160. # Common symbols not allowed in MH_DYLIB files
  12161. lt_prog_compiler_pic_CXX='-fno-common'
  12162. ;;
  12163. *djgpp*)
  12164. # DJGPP does not support shared libraries at all
  12165. lt_prog_compiler_pic_CXX=
  12166. ;;
  12167. haiku*)
  12168. # PIC is the default for Haiku.
  12169. # The "-static" flag exists, but is broken.
  12170. lt_prog_compiler_static_CXX=
  12171. ;;
  12172. interix[3-9]*)
  12173. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12174. # Instead, we relocate shared libraries at runtime.
  12175. ;;
  12176. sysv4*MP*)
  12177. if test -d /usr/nec; then
  12178. lt_prog_compiler_pic_CXX=-Kconform_pic
  12179. fi
  12180. ;;
  12181. hpux*)
  12182. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12183. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12184. # sets the default TLS model and affects inlining.
  12185. case $host_cpu in
  12186. hppa*64*)
  12187. ;;
  12188. *)
  12189. lt_prog_compiler_pic_CXX='-fPIC'
  12190. ;;
  12191. esac
  12192. ;;
  12193. *qnx* | *nto*)
  12194. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12195. # it will coredump.
  12196. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12197. ;;
  12198. *)
  12199. lt_prog_compiler_pic_CXX='-fPIC'
  12200. ;;
  12201. esac
  12202. else
  12203. case $host_os in
  12204. aix[4-9]*)
  12205. # All AIX code is PIC.
  12206. if test "$host_cpu" = ia64; then
  12207. # AIX 5 now supports IA64 processor
  12208. lt_prog_compiler_static_CXX='-Bstatic'
  12209. else
  12210. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12211. fi
  12212. ;;
  12213. chorus*)
  12214. case $cc_basename in
  12215. cxch68*)
  12216. # Green Hills C++ Compiler
  12217. # _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"
  12218. ;;
  12219. esac
  12220. ;;
  12221. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12222. # This hack is so that the source file can tell whether it is being
  12223. # built for inclusion in a dll (and should export symbols for example).
  12224. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12225. ;;
  12226. dgux*)
  12227. case $cc_basename in
  12228. ec++*)
  12229. lt_prog_compiler_pic_CXX='-KPIC'
  12230. ;;
  12231. ghcx*)
  12232. # Green Hills C++ Compiler
  12233. lt_prog_compiler_pic_CXX='-pic'
  12234. ;;
  12235. *)
  12236. ;;
  12237. esac
  12238. ;;
  12239. freebsd* | dragonfly*)
  12240. # FreeBSD uses GNU C++
  12241. ;;
  12242. hpux9* | hpux10* | hpux11*)
  12243. case $cc_basename in
  12244. CC*)
  12245. lt_prog_compiler_wl_CXX='-Wl,'
  12246. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12247. if test "$host_cpu" != ia64; then
  12248. lt_prog_compiler_pic_CXX='+Z'
  12249. fi
  12250. ;;
  12251. aCC*)
  12252. lt_prog_compiler_wl_CXX='-Wl,'
  12253. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12254. case $host_cpu in
  12255. hppa*64*|ia64*)
  12256. # +Z the default
  12257. ;;
  12258. *)
  12259. lt_prog_compiler_pic_CXX='+Z'
  12260. ;;
  12261. esac
  12262. ;;
  12263. *)
  12264. ;;
  12265. esac
  12266. ;;
  12267. interix*)
  12268. # This is c89, which is MS Visual C++ (no shared libs)
  12269. # Anyone wants to do a port?
  12270. ;;
  12271. irix5* | irix6* | nonstopux*)
  12272. case $cc_basename in
  12273. CC*)
  12274. lt_prog_compiler_wl_CXX='-Wl,'
  12275. lt_prog_compiler_static_CXX='-non_shared'
  12276. # CC pic flag -KPIC is the default.
  12277. ;;
  12278. *)
  12279. ;;
  12280. esac
  12281. ;;
  12282. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12283. case $cc_basename in
  12284. KCC*)
  12285. # KAI C++ Compiler
  12286. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12287. lt_prog_compiler_pic_CXX='-fPIC'
  12288. ;;
  12289. ecpc* )
  12290. # old Intel C++ for x86_64 which still supported -KPIC.
  12291. lt_prog_compiler_wl_CXX='-Wl,'
  12292. lt_prog_compiler_pic_CXX='-KPIC'
  12293. lt_prog_compiler_static_CXX='-static'
  12294. ;;
  12295. icpc* )
  12296. # Intel C++, used to be incompatible with GCC.
  12297. # ICC 10 doesn't accept -KPIC any more.
  12298. lt_prog_compiler_wl_CXX='-Wl,'
  12299. lt_prog_compiler_pic_CXX='-fPIC'
  12300. lt_prog_compiler_static_CXX='-static'
  12301. ;;
  12302. pgCC* | pgcpp*)
  12303. # Portland Group C++ compiler
  12304. lt_prog_compiler_wl_CXX='-Wl,'
  12305. lt_prog_compiler_pic_CXX='-fpic'
  12306. lt_prog_compiler_static_CXX='-Bstatic'
  12307. ;;
  12308. cxx*)
  12309. # Compaq C++
  12310. # Make sure the PIC flag is empty. It appears that all Alpha
  12311. # Linux and Compaq Tru64 Unix objects are PIC.
  12312. lt_prog_compiler_pic_CXX=
  12313. lt_prog_compiler_static_CXX='-non_shared'
  12314. ;;
  12315. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12316. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12317. lt_prog_compiler_wl_CXX='-Wl,'
  12318. lt_prog_compiler_pic_CXX='-qpic'
  12319. lt_prog_compiler_static_CXX='-qstaticlink'
  12320. ;;
  12321. *)
  12322. case `$CC -V 2>&1 | sed 5q` in
  12323. *Sun\ C*)
  12324. # Sun C++ 5.9
  12325. lt_prog_compiler_pic_CXX='-KPIC'
  12326. lt_prog_compiler_static_CXX='-Bstatic'
  12327. lt_prog_compiler_wl_CXX='-Qoption ld '
  12328. ;;
  12329. esac
  12330. ;;
  12331. esac
  12332. ;;
  12333. lynxos*)
  12334. ;;
  12335. m88k*)
  12336. ;;
  12337. mvs*)
  12338. case $cc_basename in
  12339. cxx*)
  12340. lt_prog_compiler_pic_CXX='-W c,exportall'
  12341. ;;
  12342. *)
  12343. ;;
  12344. esac
  12345. ;;
  12346. netbsd*)
  12347. ;;
  12348. *qnx* | *nto*)
  12349. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12350. # it will coredump.
  12351. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12352. ;;
  12353. osf3* | osf4* | osf5*)
  12354. case $cc_basename in
  12355. KCC*)
  12356. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12357. ;;
  12358. RCC*)
  12359. # Rational C++ 2.4.1
  12360. lt_prog_compiler_pic_CXX='-pic'
  12361. ;;
  12362. cxx*)
  12363. # Digital/Compaq C++
  12364. lt_prog_compiler_wl_CXX='-Wl,'
  12365. # Make sure the PIC flag is empty. It appears that all Alpha
  12366. # Linux and Compaq Tru64 Unix objects are PIC.
  12367. lt_prog_compiler_pic_CXX=
  12368. lt_prog_compiler_static_CXX='-non_shared'
  12369. ;;
  12370. *)
  12371. ;;
  12372. esac
  12373. ;;
  12374. psos*)
  12375. ;;
  12376. solaris*)
  12377. case $cc_basename in
  12378. CC* | sunCC*)
  12379. # Sun C++ 4.2, 5.x and Centerline C++
  12380. lt_prog_compiler_pic_CXX='-KPIC'
  12381. lt_prog_compiler_static_CXX='-Bstatic'
  12382. lt_prog_compiler_wl_CXX='-Qoption ld '
  12383. ;;
  12384. gcx*)
  12385. # Green Hills C++ Compiler
  12386. lt_prog_compiler_pic_CXX='-PIC'
  12387. ;;
  12388. *)
  12389. ;;
  12390. esac
  12391. ;;
  12392. sunos4*)
  12393. case $cc_basename in
  12394. CC*)
  12395. # Sun C++ 4.x
  12396. lt_prog_compiler_pic_CXX='-pic'
  12397. lt_prog_compiler_static_CXX='-Bstatic'
  12398. ;;
  12399. lcc*)
  12400. # Lucid
  12401. lt_prog_compiler_pic_CXX='-pic'
  12402. ;;
  12403. *)
  12404. ;;
  12405. esac
  12406. ;;
  12407. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12408. case $cc_basename in
  12409. CC*)
  12410. lt_prog_compiler_wl_CXX='-Wl,'
  12411. lt_prog_compiler_pic_CXX='-KPIC'
  12412. lt_prog_compiler_static_CXX='-Bstatic'
  12413. ;;
  12414. esac
  12415. ;;
  12416. tandem*)
  12417. case $cc_basename in
  12418. NCC*)
  12419. # NonStop-UX NCC 3.20
  12420. lt_prog_compiler_pic_CXX='-KPIC'
  12421. ;;
  12422. *)
  12423. ;;
  12424. esac
  12425. ;;
  12426. vxworks*)
  12427. ;;
  12428. *)
  12429. lt_prog_compiler_can_build_shared_CXX=no
  12430. ;;
  12431. esac
  12432. fi
  12433. case $host_os in
  12434. # For platforms which do not support PIC, -DPIC is meaningless:
  12435. *djgpp*)
  12436. lt_prog_compiler_pic_CXX=
  12437. ;;
  12438. *)
  12439. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12440. ;;
  12441. esac
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12443. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12444. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12445. $as_echo_n "(cached) " >&6
  12446. else
  12447. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12448. fi
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12450. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12451. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12452. #
  12453. # Check to make sure the PIC flag actually works.
  12454. #
  12455. if test -n "$lt_prog_compiler_pic_CXX"; then
  12456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12457. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12458. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12459. $as_echo_n "(cached) " >&6
  12460. else
  12461. lt_cv_prog_compiler_pic_works_CXX=no
  12462. ac_outfile=conftest.$ac_objext
  12463. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12464. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12465. # Insert the option either (1) after the last *FLAGS variable, or
  12466. # (2) before a word containing "conftest.", or (3) at the end.
  12467. # Note that $ac_compile itself does not contain backslashes and begins
  12468. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12469. # The option is referenced via a variable to avoid confusing sed.
  12470. lt_compile=`echo "$ac_compile" | $SED \
  12471. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12472. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12473. -e 's:$: $lt_compiler_flag:'`
  12474. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12475. (eval "$lt_compile" 2>conftest.err)
  12476. ac_status=$?
  12477. cat conftest.err >&5
  12478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12479. if (exit $ac_status) && test -s "$ac_outfile"; then
  12480. # The compiler can only warn and ignore the option if not recognized
  12481. # So say no if there are warnings other than the usual output.
  12482. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12483. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12484. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12485. lt_cv_prog_compiler_pic_works_CXX=yes
  12486. fi
  12487. fi
  12488. $RM conftest*
  12489. fi
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12491. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12492. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12493. case $lt_prog_compiler_pic_CXX in
  12494. "" | " "*) ;;
  12495. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12496. esac
  12497. else
  12498. lt_prog_compiler_pic_CXX=
  12499. lt_prog_compiler_can_build_shared_CXX=no
  12500. fi
  12501. fi
  12502. #
  12503. # Check to make sure the static flag actually works.
  12504. #
  12505. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12507. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12508. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12509. $as_echo_n "(cached) " >&6
  12510. else
  12511. lt_cv_prog_compiler_static_works_CXX=no
  12512. save_LDFLAGS="$LDFLAGS"
  12513. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12514. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12515. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12516. # The linker can only warn and ignore the option if not recognized
  12517. # So say no if there are warnings
  12518. if test -s conftest.err; then
  12519. # Append any errors to the config.log.
  12520. cat conftest.err 1>&5
  12521. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12522. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12523. if diff conftest.exp conftest.er2 >/dev/null; then
  12524. lt_cv_prog_compiler_static_works_CXX=yes
  12525. fi
  12526. else
  12527. lt_cv_prog_compiler_static_works_CXX=yes
  12528. fi
  12529. fi
  12530. $RM -r conftest*
  12531. LDFLAGS="$save_LDFLAGS"
  12532. fi
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12534. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12535. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12536. :
  12537. else
  12538. lt_prog_compiler_static_CXX=
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12541. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12542. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12543. $as_echo_n "(cached) " >&6
  12544. else
  12545. lt_cv_prog_compiler_c_o_CXX=no
  12546. $RM -r conftest 2>/dev/null
  12547. mkdir conftest
  12548. cd conftest
  12549. mkdir out
  12550. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12551. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12552. # Insert the option either (1) after the last *FLAGS variable, or
  12553. # (2) before a word containing "conftest.", or (3) at the end.
  12554. # Note that $ac_compile itself does not contain backslashes and begins
  12555. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12556. lt_compile=`echo "$ac_compile" | $SED \
  12557. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12558. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12559. -e 's:$: $lt_compiler_flag:'`
  12560. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12561. (eval "$lt_compile" 2>out/conftest.err)
  12562. ac_status=$?
  12563. cat out/conftest.err >&5
  12564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12565. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12566. then
  12567. # The compiler can only warn and ignore the option if not recognized
  12568. # So say no if there are warnings
  12569. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12570. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12571. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12572. lt_cv_prog_compiler_c_o_CXX=yes
  12573. fi
  12574. fi
  12575. chmod u+w . 2>&5
  12576. $RM conftest*
  12577. # SGI C++ compiler will create directory out/ii_files/ for
  12578. # template instantiation
  12579. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12580. $RM out/* && rmdir out
  12581. cd ..
  12582. $RM -r conftest
  12583. $RM conftest*
  12584. fi
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12586. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12588. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12589. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12590. $as_echo_n "(cached) " >&6
  12591. else
  12592. lt_cv_prog_compiler_c_o_CXX=no
  12593. $RM -r conftest 2>/dev/null
  12594. mkdir conftest
  12595. cd conftest
  12596. mkdir out
  12597. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12598. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12599. # Insert the option either (1) after the last *FLAGS variable, or
  12600. # (2) before a word containing "conftest.", or (3) at the end.
  12601. # Note that $ac_compile itself does not contain backslashes and begins
  12602. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12603. lt_compile=`echo "$ac_compile" | $SED \
  12604. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12605. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12606. -e 's:$: $lt_compiler_flag:'`
  12607. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12608. (eval "$lt_compile" 2>out/conftest.err)
  12609. ac_status=$?
  12610. cat out/conftest.err >&5
  12611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12612. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12613. then
  12614. # The compiler can only warn and ignore the option if not recognized
  12615. # So say no if there are warnings
  12616. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12617. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12618. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12619. lt_cv_prog_compiler_c_o_CXX=yes
  12620. fi
  12621. fi
  12622. chmod u+w . 2>&5
  12623. $RM conftest*
  12624. # SGI C++ compiler will create directory out/ii_files/ for
  12625. # template instantiation
  12626. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12627. $RM out/* && rmdir out
  12628. cd ..
  12629. $RM -r conftest
  12630. $RM conftest*
  12631. fi
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12633. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12634. hard_links="nottested"
  12635. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12636. # do not overwrite the value of need_locks provided by the user
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12638. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12639. hard_links=yes
  12640. $RM conftest*
  12641. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12642. touch conftest.a
  12643. ln conftest.a conftest.b 2>&5 || hard_links=no
  12644. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12646. $as_echo "$hard_links" >&6; }
  12647. if test "$hard_links" = no; then
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12649. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12650. need_locks=warn
  12651. fi
  12652. else
  12653. need_locks=no
  12654. fi
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12656. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12657. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12658. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12659. case $host_os in
  12660. aix[4-9]*)
  12661. # If we're using GNU nm, then we don't want the "-C" option.
  12662. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12663. # Also, AIX nm treats weak defined symbols like other global defined
  12664. # symbols, whereas GNU nm marks them as "W".
  12665. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12666. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12667. else
  12668. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12669. fi
  12670. ;;
  12671. pw32*)
  12672. export_symbols_cmds_CXX="$ltdll_cmds"
  12673. ;;
  12674. cygwin* | mingw* | cegcc*)
  12675. case $cc_basename in
  12676. cl*)
  12677. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12678. ;;
  12679. *)
  12680. 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'
  12681. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12682. ;;
  12683. esac
  12684. ;;
  12685. *)
  12686. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12687. ;;
  12688. esac
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12690. $as_echo "$ld_shlibs_CXX" >&6; }
  12691. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12692. with_gnu_ld_CXX=$with_gnu_ld
  12693. #
  12694. # Do we need to explicitly link libc?
  12695. #
  12696. case "x$archive_cmds_need_lc_CXX" in
  12697. x|xyes)
  12698. # Assume -lc should be added
  12699. archive_cmds_need_lc_CXX=yes
  12700. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12701. case $archive_cmds_CXX in
  12702. *'~'*)
  12703. # FIXME: we may have to deal with multi-command sequences.
  12704. ;;
  12705. '$CC '*)
  12706. # Test whether the compiler implicitly links with -lc since on some
  12707. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12708. # to ld, don't add -lc before -lgcc.
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12710. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12711. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12712. $as_echo_n "(cached) " >&6
  12713. else
  12714. $RM conftest*
  12715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12716. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12717. (eval $ac_compile) 2>&5
  12718. ac_status=$?
  12719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12720. test $ac_status = 0; } 2>conftest.err; then
  12721. soname=conftest
  12722. lib=conftest
  12723. libobjs=conftest.$ac_objext
  12724. deplibs=
  12725. wl=$lt_prog_compiler_wl_CXX
  12726. pic_flag=$lt_prog_compiler_pic_CXX
  12727. compiler_flags=-v
  12728. linker_flags=-v
  12729. verstring=
  12730. output_objdir=.
  12731. libname=conftest
  12732. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12733. allow_undefined_flag_CXX=
  12734. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12735. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12736. ac_status=$?
  12737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12738. test $ac_status = 0; }
  12739. then
  12740. lt_cv_archive_cmds_need_lc_CXX=no
  12741. else
  12742. lt_cv_archive_cmds_need_lc_CXX=yes
  12743. fi
  12744. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12745. else
  12746. cat conftest.err 1>&5
  12747. fi
  12748. $RM conftest*
  12749. fi
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12751. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12752. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12753. ;;
  12754. esac
  12755. fi
  12756. ;;
  12757. esac
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12759. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12760. library_names_spec=
  12761. libname_spec='lib$name'
  12762. soname_spec=
  12763. shrext_cmds=".so"
  12764. postinstall_cmds=
  12765. postuninstall_cmds=
  12766. finish_cmds=
  12767. finish_eval=
  12768. shlibpath_var=
  12769. shlibpath_overrides_runpath=unknown
  12770. version_type=none
  12771. dynamic_linker="$host_os ld.so"
  12772. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12773. need_lib_prefix=unknown
  12774. hardcode_into_libs=no
  12775. # when you set need_version to no, make sure it does not cause -set_version
  12776. # flags to be left without arguments
  12777. need_version=unknown
  12778. case $host_os in
  12779. aix3*)
  12780. version_type=linux # correct to gnu/linux during the next big refactor
  12781. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12782. shlibpath_var=LIBPATH
  12783. # AIX 3 has no versioning support, so we append a major version to the name.
  12784. soname_spec='${libname}${release}${shared_ext}$major'
  12785. ;;
  12786. aix[4-9]*)
  12787. version_type=linux # correct to gnu/linux during the next big refactor
  12788. need_lib_prefix=no
  12789. need_version=no
  12790. hardcode_into_libs=yes
  12791. if test "$host_cpu" = ia64; then
  12792. # AIX 5 supports IA64
  12793. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12794. shlibpath_var=LD_LIBRARY_PATH
  12795. else
  12796. # With GCC up to 2.95.x, collect2 would create an import file
  12797. # for dependence libraries. The import file would start with
  12798. # the line `#! .'. This would cause the generated library to
  12799. # depend on `.', always an invalid library. This was fixed in
  12800. # development snapshots of GCC prior to 3.0.
  12801. case $host_os in
  12802. aix4 | aix4.[01] | aix4.[01].*)
  12803. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12804. echo ' yes '
  12805. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12806. :
  12807. else
  12808. can_build_shared=no
  12809. fi
  12810. ;;
  12811. esac
  12812. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12813. # soname into executable. Probably we can add versioning support to
  12814. # collect2, so additional links can be useful in future.
  12815. if test "$aix_use_runtimelinking" = yes; then
  12816. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12817. # instead of lib<name>.a to let people know that these are not
  12818. # typical AIX shared libraries.
  12819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12820. else
  12821. # We preserve .a as extension for shared libraries through AIX4.2
  12822. # and later when we are not doing run time linking.
  12823. library_names_spec='${libname}${release}.a $libname.a'
  12824. soname_spec='${libname}${release}${shared_ext}$major'
  12825. fi
  12826. shlibpath_var=LIBPATH
  12827. fi
  12828. ;;
  12829. amigaos*)
  12830. case $host_cpu in
  12831. powerpc)
  12832. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12833. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12835. ;;
  12836. m68k)
  12837. library_names_spec='$libname.ixlibrary $libname.a'
  12838. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12839. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12840. ;;
  12841. esac
  12842. ;;
  12843. beos*)
  12844. library_names_spec='${libname}${shared_ext}'
  12845. dynamic_linker="$host_os ld.so"
  12846. shlibpath_var=LIBRARY_PATH
  12847. ;;
  12848. bsdi[45]*)
  12849. version_type=linux # correct to gnu/linux during the next big refactor
  12850. need_version=no
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12852. soname_spec='${libname}${release}${shared_ext}$major'
  12853. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12856. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12857. # the default ld.so.conf also contains /usr/contrib/lib and
  12858. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12859. # libtool to hard-code these into programs
  12860. ;;
  12861. cygwin* | mingw* | pw32* | cegcc*)
  12862. version_type=windows
  12863. shrext_cmds=".dll"
  12864. need_version=no
  12865. need_lib_prefix=no
  12866. case $GCC,$cc_basename in
  12867. yes,*)
  12868. # gcc
  12869. library_names_spec='$libname.dll.a'
  12870. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12871. postinstall_cmds='base_file=`basename \${file}`~
  12872. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12873. dldir=$destdir/`dirname \$dlpath`~
  12874. test -d \$dldir || mkdir -p \$dldir~
  12875. $install_prog $dir/$dlname \$dldir/$dlname~
  12876. chmod a+x \$dldir/$dlname~
  12877. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12878. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12879. fi'
  12880. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12881. dlpath=$dir/\$dldll~
  12882. $RM \$dlpath'
  12883. shlibpath_overrides_runpath=yes
  12884. case $host_os in
  12885. cygwin*)
  12886. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12887. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12888. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12889. ;;
  12890. mingw* | cegcc*)
  12891. # MinGW DLLs use traditional 'lib' prefix
  12892. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12893. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12894. ;;
  12895. pw32*)
  12896. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12897. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12898. ;;
  12899. esac
  12900. dynamic_linker='Win32 ld.exe'
  12901. ;;
  12902. *,cl*)
  12903. # Native MSVC
  12904. libname_spec='$name'
  12905. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12906. library_names_spec='${libname}.dll.lib'
  12907. case $build_os in
  12908. mingw*)
  12909. sys_lib_search_path_spec=
  12910. lt_save_ifs=$IFS
  12911. IFS=';'
  12912. for lt_path in $LIB
  12913. do
  12914. IFS=$lt_save_ifs
  12915. # Let DOS variable expansion print the short 8.3 style file name.
  12916. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12917. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12918. done
  12919. IFS=$lt_save_ifs
  12920. # Convert to MSYS style.
  12921. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12922. ;;
  12923. cygwin*)
  12924. # Convert to unix form, then to dos form, then back to unix form
  12925. # but this time dos style (no spaces!) so that the unix form looks
  12926. # like /cygdrive/c/PROGRA~1:/cygdr...
  12927. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12928. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12929. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12930. ;;
  12931. *)
  12932. sys_lib_search_path_spec="$LIB"
  12933. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12934. # It is most probably a Windows format PATH.
  12935. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12936. else
  12937. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12938. fi
  12939. # FIXME: find the short name or the path components, as spaces are
  12940. # common. (e.g. "Program Files" -> "PROGRA~1")
  12941. ;;
  12942. esac
  12943. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12944. postinstall_cmds='base_file=`basename \${file}`~
  12945. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12946. dldir=$destdir/`dirname \$dlpath`~
  12947. test -d \$dldir || mkdir -p \$dldir~
  12948. $install_prog $dir/$dlname \$dldir/$dlname'
  12949. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12950. dlpath=$dir/\$dldll~
  12951. $RM \$dlpath'
  12952. shlibpath_overrides_runpath=yes
  12953. dynamic_linker='Win32 link.exe'
  12954. ;;
  12955. *)
  12956. # Assume MSVC wrapper
  12957. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12958. dynamic_linker='Win32 ld.exe'
  12959. ;;
  12960. esac
  12961. # FIXME: first we should search . and the directory the executable is in
  12962. shlibpath_var=PATH
  12963. ;;
  12964. darwin* | rhapsody*)
  12965. dynamic_linker="$host_os dyld"
  12966. version_type=darwin
  12967. need_lib_prefix=no
  12968. need_version=no
  12969. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12970. soname_spec='${libname}${release}${major}$shared_ext'
  12971. shlibpath_overrides_runpath=yes
  12972. shlibpath_var=DYLD_LIBRARY_PATH
  12973. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12974. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12975. ;;
  12976. dgux*)
  12977. version_type=linux # correct to gnu/linux during the next big refactor
  12978. need_lib_prefix=no
  12979. need_version=no
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12981. soname_spec='${libname}${release}${shared_ext}$major'
  12982. shlibpath_var=LD_LIBRARY_PATH
  12983. ;;
  12984. freebsd* | dragonfly*)
  12985. # DragonFly does not have aout. When/if they implement a new
  12986. # versioning mechanism, adjust this.
  12987. if test -x /usr/bin/objformat; then
  12988. objformat=`/usr/bin/objformat`
  12989. else
  12990. case $host_os in
  12991. freebsd[23].*) objformat=aout ;;
  12992. *) objformat=elf ;;
  12993. esac
  12994. fi
  12995. version_type=freebsd-$objformat
  12996. case $version_type in
  12997. freebsd-elf*)
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12999. need_version=no
  13000. need_lib_prefix=no
  13001. ;;
  13002. freebsd-*)
  13003. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13004. need_version=yes
  13005. ;;
  13006. esac
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. case $host_os in
  13009. freebsd2.*)
  13010. shlibpath_overrides_runpath=yes
  13011. ;;
  13012. freebsd3.[01]* | freebsdelf3.[01]*)
  13013. shlibpath_overrides_runpath=yes
  13014. hardcode_into_libs=yes
  13015. ;;
  13016. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13017. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13018. shlibpath_overrides_runpath=no
  13019. hardcode_into_libs=yes
  13020. ;;
  13021. *) # from 4.6 on, and DragonFly
  13022. shlibpath_overrides_runpath=yes
  13023. hardcode_into_libs=yes
  13024. ;;
  13025. esac
  13026. ;;
  13027. gnu*)
  13028. version_type=linux # correct to gnu/linux during the next big refactor
  13029. need_lib_prefix=no
  13030. need_version=no
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13032. soname_spec='${libname}${release}${shared_ext}$major'
  13033. shlibpath_var=LD_LIBRARY_PATH
  13034. shlibpath_overrides_runpath=no
  13035. hardcode_into_libs=yes
  13036. ;;
  13037. haiku*)
  13038. version_type=linux # correct to gnu/linux during the next big refactor
  13039. need_lib_prefix=no
  13040. need_version=no
  13041. dynamic_linker="$host_os runtime_loader"
  13042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13043. soname_spec='${libname}${release}${shared_ext}$major'
  13044. shlibpath_var=LIBRARY_PATH
  13045. shlibpath_overrides_runpath=yes
  13046. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13047. hardcode_into_libs=yes
  13048. ;;
  13049. hpux9* | hpux10* | hpux11*)
  13050. # Give a soname corresponding to the major version so that dld.sl refuses to
  13051. # link against other versions.
  13052. version_type=sunos
  13053. need_lib_prefix=no
  13054. need_version=no
  13055. case $host_cpu in
  13056. ia64*)
  13057. shrext_cmds='.so'
  13058. hardcode_into_libs=yes
  13059. dynamic_linker="$host_os dld.so"
  13060. shlibpath_var=LD_LIBRARY_PATH
  13061. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13063. soname_spec='${libname}${release}${shared_ext}$major'
  13064. if test "X$HPUX_IA64_MODE" = X32; then
  13065. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13066. else
  13067. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13068. fi
  13069. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13070. ;;
  13071. hppa*64*)
  13072. shrext_cmds='.sl'
  13073. hardcode_into_libs=yes
  13074. dynamic_linker="$host_os dld.sl"
  13075. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13076. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13078. soname_spec='${libname}${release}${shared_ext}$major'
  13079. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13080. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13081. ;;
  13082. *)
  13083. shrext_cmds='.sl'
  13084. dynamic_linker="$host_os dld.sl"
  13085. shlibpath_var=SHLIB_PATH
  13086. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13088. soname_spec='${libname}${release}${shared_ext}$major'
  13089. ;;
  13090. esac
  13091. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13092. postinstall_cmds='chmod 555 $lib'
  13093. # or fails outright, so override atomically:
  13094. install_override_mode=555
  13095. ;;
  13096. interix[3-9]*)
  13097. version_type=linux # correct to gnu/linux during the next big refactor
  13098. need_lib_prefix=no
  13099. need_version=no
  13100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13101. soname_spec='${libname}${release}${shared_ext}$major'
  13102. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13103. shlibpath_var=LD_LIBRARY_PATH
  13104. shlibpath_overrides_runpath=no
  13105. hardcode_into_libs=yes
  13106. ;;
  13107. irix5* | irix6* | nonstopux*)
  13108. case $host_os in
  13109. nonstopux*) version_type=nonstopux ;;
  13110. *)
  13111. if test "$lt_cv_prog_gnu_ld" = yes; then
  13112. version_type=linux # correct to gnu/linux during the next big refactor
  13113. else
  13114. version_type=irix
  13115. fi ;;
  13116. esac
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. soname_spec='${libname}${release}${shared_ext}$major'
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13121. case $host_os in
  13122. irix5* | nonstopux*)
  13123. libsuff= shlibsuff=
  13124. ;;
  13125. *)
  13126. case $LD in # libtool.m4 will add one of these switches to LD
  13127. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13128. libsuff= shlibsuff= libmagic=32-bit;;
  13129. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13130. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13131. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13132. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13133. *) libsuff= shlibsuff= libmagic=never-match;;
  13134. esac
  13135. ;;
  13136. esac
  13137. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13138. shlibpath_overrides_runpath=no
  13139. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13140. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13141. hardcode_into_libs=yes
  13142. ;;
  13143. # No shared lib support for Linux oldld, aout, or coff.
  13144. linux*oldld* | linux*aout* | linux*coff*)
  13145. dynamic_linker=no
  13146. ;;
  13147. # This must be glibc/ELF.
  13148. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13149. version_type=linux # correct to gnu/linux during the next big refactor
  13150. need_lib_prefix=no
  13151. need_version=no
  13152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13153. soname_spec='${libname}${release}${shared_ext}$major'
  13154. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13155. shlibpath_var=LD_LIBRARY_PATH
  13156. shlibpath_overrides_runpath=no
  13157. # Some binutils ld are patched to set DT_RUNPATH
  13158. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13159. $as_echo_n "(cached) " >&6
  13160. else
  13161. lt_cv_shlibpath_overrides_runpath=no
  13162. save_LDFLAGS=$LDFLAGS
  13163. save_libdir=$libdir
  13164. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13165. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13167. /* end confdefs.h. */
  13168. int
  13169. main ()
  13170. {
  13171. ;
  13172. return 0;
  13173. }
  13174. _ACEOF
  13175. if ac_fn_cxx_try_link "$LINENO"; then :
  13176. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13177. lt_cv_shlibpath_overrides_runpath=yes
  13178. fi
  13179. fi
  13180. rm -f core conftest.err conftest.$ac_objext \
  13181. conftest$ac_exeext conftest.$ac_ext
  13182. LDFLAGS=$save_LDFLAGS
  13183. libdir=$save_libdir
  13184. fi
  13185. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13186. # This implies no fast_install, which is unacceptable.
  13187. # Some rework will be needed to allow for fast_install
  13188. # before this can be enabled.
  13189. hardcode_into_libs=yes
  13190. # Append ld.so.conf contents to the search path
  13191. if test -f /etc/ld.so.conf; then
  13192. 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' ' '`
  13193. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13194. fi
  13195. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13196. # powerpc, because MkLinux only supported shared libraries with the
  13197. # GNU dynamic linker. Since this was broken with cross compilers,
  13198. # most powerpc-linux boxes support dynamic linking these days and
  13199. # people can always --disable-shared, the test was removed, and we
  13200. # assume the GNU/Linux dynamic linker is in use.
  13201. dynamic_linker='GNU/Linux ld.so'
  13202. ;;
  13203. netbsd*)
  13204. version_type=sunos
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13210. dynamic_linker='NetBSD (a.out) ld.so'
  13211. else
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. dynamic_linker='NetBSD ld.elf_so'
  13215. fi
  13216. shlibpath_var=LD_LIBRARY_PATH
  13217. shlibpath_overrides_runpath=yes
  13218. hardcode_into_libs=yes
  13219. ;;
  13220. newsos6)
  13221. version_type=linux # correct to gnu/linux during the next big refactor
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. shlibpath_overrides_runpath=yes
  13225. ;;
  13226. *nto* | *qnx*)
  13227. version_type=qnx
  13228. need_lib_prefix=no
  13229. need_version=no
  13230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13231. soname_spec='${libname}${release}${shared_ext}$major'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=no
  13234. hardcode_into_libs=yes
  13235. dynamic_linker='ldqnx.so'
  13236. ;;
  13237. openbsd*)
  13238. version_type=sunos
  13239. sys_lib_dlsearch_path_spec="/usr/lib"
  13240. need_lib_prefix=no
  13241. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13242. case $host_os in
  13243. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13244. *) need_version=no ;;
  13245. esac
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13247. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13250. case $host_os in
  13251. openbsd2.[89] | openbsd2.[89].*)
  13252. shlibpath_overrides_runpath=no
  13253. ;;
  13254. *)
  13255. shlibpath_overrides_runpath=yes
  13256. ;;
  13257. esac
  13258. else
  13259. shlibpath_overrides_runpath=yes
  13260. fi
  13261. ;;
  13262. os2*)
  13263. libname_spec='$name'
  13264. shrext_cmds=".dll"
  13265. need_lib_prefix=no
  13266. library_names_spec='$libname${shared_ext} $libname.a'
  13267. dynamic_linker='OS/2 ld.exe'
  13268. shlibpath_var=LIBPATH
  13269. ;;
  13270. osf3* | osf4* | osf5*)
  13271. version_type=osf
  13272. need_lib_prefix=no
  13273. need_version=no
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13276. shlibpath_var=LD_LIBRARY_PATH
  13277. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13278. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13279. ;;
  13280. rdos*)
  13281. dynamic_linker=no
  13282. ;;
  13283. solaris*)
  13284. version_type=linux # correct to gnu/linux during the next big refactor
  13285. need_lib_prefix=no
  13286. need_version=no
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13288. soname_spec='${libname}${release}${shared_ext}$major'
  13289. shlibpath_var=LD_LIBRARY_PATH
  13290. shlibpath_overrides_runpath=yes
  13291. hardcode_into_libs=yes
  13292. # ldd complains unless libraries are executable
  13293. postinstall_cmds='chmod +x $lib'
  13294. ;;
  13295. sunos4*)
  13296. version_type=sunos
  13297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13298. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13299. shlibpath_var=LD_LIBRARY_PATH
  13300. shlibpath_overrides_runpath=yes
  13301. if test "$with_gnu_ld" = yes; then
  13302. need_lib_prefix=no
  13303. fi
  13304. need_version=yes
  13305. ;;
  13306. sysv4 | sysv4.3*)
  13307. version_type=linux # correct to gnu/linux during the next big refactor
  13308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13309. soname_spec='${libname}${release}${shared_ext}$major'
  13310. shlibpath_var=LD_LIBRARY_PATH
  13311. case $host_vendor in
  13312. sni)
  13313. shlibpath_overrides_runpath=no
  13314. need_lib_prefix=no
  13315. runpath_var=LD_RUN_PATH
  13316. ;;
  13317. siemens)
  13318. need_lib_prefix=no
  13319. ;;
  13320. motorola)
  13321. need_lib_prefix=no
  13322. need_version=no
  13323. shlibpath_overrides_runpath=no
  13324. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13325. ;;
  13326. esac
  13327. ;;
  13328. sysv4*MP*)
  13329. if test -d /usr/nec ;then
  13330. version_type=linux # correct to gnu/linux during the next big refactor
  13331. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13332. soname_spec='$libname${shared_ext}.$major'
  13333. shlibpath_var=LD_LIBRARY_PATH
  13334. fi
  13335. ;;
  13336. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13337. version_type=freebsd-elf
  13338. need_lib_prefix=no
  13339. need_version=no
  13340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13341. soname_spec='${libname}${release}${shared_ext}$major'
  13342. shlibpath_var=LD_LIBRARY_PATH
  13343. shlibpath_overrides_runpath=yes
  13344. hardcode_into_libs=yes
  13345. if test "$with_gnu_ld" = yes; then
  13346. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13347. else
  13348. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13349. case $host_os in
  13350. sco3.2v5*)
  13351. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13352. ;;
  13353. esac
  13354. fi
  13355. sys_lib_dlsearch_path_spec='/usr/lib'
  13356. ;;
  13357. tpf*)
  13358. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13359. version_type=linux # correct to gnu/linux during the next big refactor
  13360. need_lib_prefix=no
  13361. need_version=no
  13362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13363. shlibpath_var=LD_LIBRARY_PATH
  13364. shlibpath_overrides_runpath=no
  13365. hardcode_into_libs=yes
  13366. ;;
  13367. uts4*)
  13368. version_type=linux # correct to gnu/linux during the next big refactor
  13369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13370. soname_spec='${libname}${release}${shared_ext}$major'
  13371. shlibpath_var=LD_LIBRARY_PATH
  13372. ;;
  13373. *)
  13374. dynamic_linker=no
  13375. ;;
  13376. esac
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13378. $as_echo "$dynamic_linker" >&6; }
  13379. test "$dynamic_linker" = no && can_build_shared=no
  13380. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13381. if test "$GCC" = yes; then
  13382. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13383. fi
  13384. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13385. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13386. fi
  13387. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13388. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13389. fi
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13391. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13392. hardcode_action_CXX=
  13393. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13394. test -n "$runpath_var_CXX" ||
  13395. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13396. # We can hardcode non-existent directories.
  13397. if test "$hardcode_direct_CXX" != no &&
  13398. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13399. # have to relink, otherwise we might link with an installed library
  13400. # when we should be linking with a yet-to-be-installed one
  13401. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13402. test "$hardcode_minus_L_CXX" != no; then
  13403. # Linking always hardcodes the temporary library directory.
  13404. hardcode_action_CXX=relink
  13405. else
  13406. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13407. hardcode_action_CXX=immediate
  13408. fi
  13409. else
  13410. # We cannot hardcode anything, or else we can only hardcode existing
  13411. # directories.
  13412. hardcode_action_CXX=unsupported
  13413. fi
  13414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13415. $as_echo "$hardcode_action_CXX" >&6; }
  13416. if test "$hardcode_action_CXX" = relink ||
  13417. test "$inherit_rpath_CXX" = yes; then
  13418. # Fast installation is not supported
  13419. enable_fast_install=no
  13420. elif test "$shlibpath_overrides_runpath" = yes ||
  13421. test "$enable_shared" = no; then
  13422. # Fast installation is not necessary
  13423. enable_fast_install=needless
  13424. fi
  13425. fi # test -n "$compiler"
  13426. CC=$lt_save_CC
  13427. CFLAGS=$lt_save_CFLAGS
  13428. LDCXX=$LD
  13429. LD=$lt_save_LD
  13430. GCC=$lt_save_GCC
  13431. with_gnu_ld=$lt_save_with_gnu_ld
  13432. lt_cv_path_LDCXX=$lt_cv_path_LD
  13433. lt_cv_path_LD=$lt_save_path_LD
  13434. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13435. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13436. fi # test "$_lt_caught_CXX_error" != yes
  13437. ac_ext=c
  13438. ac_cpp='$CPP $CPPFLAGS'
  13439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13442. # Find a good install program. We prefer a C program (faster),
  13443. # so one script is as good as another. But avoid the broken or
  13444. # incompatible versions:
  13445. # SysV /etc/install, /usr/sbin/install
  13446. # SunOS /usr/etc/install
  13447. # IRIX /sbin/install
  13448. # AIX /bin/install
  13449. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13450. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13451. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13452. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13453. # OS/2's system install, which has a completely different semantic
  13454. # ./install, which can be erroneously created by make from ./install.sh.
  13455. # Reject install programs that cannot install multiple files.
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13457. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13458. if test -z "$INSTALL"; then
  13459. if ${ac_cv_path_install+:} false; then :
  13460. $as_echo_n "(cached) " >&6
  13461. else
  13462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13463. for as_dir in $PATH
  13464. do
  13465. IFS=$as_save_IFS
  13466. test -z "$as_dir" && as_dir=.
  13467. # Account for people who put trailing slashes in PATH elements.
  13468. case $as_dir/ in #((
  13469. ./ | .// | /[cC]/* | \
  13470. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13471. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13472. /usr/ucb/* ) ;;
  13473. *)
  13474. # OSF1 and SCO ODT 3.0 have their own names for install.
  13475. # Don't use installbsd from OSF since it installs stuff as root
  13476. # by default.
  13477. for ac_prog in ginstall scoinst install; do
  13478. for ac_exec_ext in '' $ac_executable_extensions; do
  13479. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13480. if test $ac_prog = install &&
  13481. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13482. # AIX install. It has an incompatible calling convention.
  13483. :
  13484. elif test $ac_prog = install &&
  13485. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13486. # program-specific install script used by HP pwplus--don't use.
  13487. :
  13488. else
  13489. rm -rf conftest.one conftest.two conftest.dir
  13490. echo one > conftest.one
  13491. echo two > conftest.two
  13492. mkdir conftest.dir
  13493. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13494. test -s conftest.one && test -s conftest.two &&
  13495. test -s conftest.dir/conftest.one &&
  13496. test -s conftest.dir/conftest.two
  13497. then
  13498. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13499. break 3
  13500. fi
  13501. fi
  13502. fi
  13503. done
  13504. done
  13505. ;;
  13506. esac
  13507. done
  13508. IFS=$as_save_IFS
  13509. rm -rf conftest.one conftest.two conftest.dir
  13510. fi
  13511. if test "${ac_cv_path_install+set}" = set; then
  13512. INSTALL=$ac_cv_path_install
  13513. else
  13514. # As a last resort, use the slow shell script. Don't cache a
  13515. # value for INSTALL within a source directory, because that will
  13516. # break other packages using the cache if that directory is
  13517. # removed, or if the value is a relative name.
  13518. INSTALL=$ac_install_sh
  13519. fi
  13520. fi
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13522. $as_echo "$INSTALL" >&6; }
  13523. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13524. # It thinks the first close brace ends the variable substitution.
  13525. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13526. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13527. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13529. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13530. set x ${MAKE-make}
  13531. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13532. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13533. $as_echo_n "(cached) " >&6
  13534. else
  13535. cat >conftest.make <<\_ACEOF
  13536. SHELL = /bin/sh
  13537. all:
  13538. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13539. _ACEOF
  13540. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13541. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13542. *@@@%%%=?*=@@@%%%*)
  13543. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13544. *)
  13545. eval ac_cv_prog_make_${ac_make}_set=no;;
  13546. esac
  13547. rm -f conftest.make
  13548. fi
  13549. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13551. $as_echo "yes" >&6; }
  13552. SET_MAKE=
  13553. else
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13555. $as_echo "no" >&6; }
  13556. SET_MAKE="MAKE=${MAKE-make}"
  13557. fi
  13558. if test -n "$ac_tool_prefix"; then
  13559. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13560. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13562. $as_echo_n "checking for $ac_word... " >&6; }
  13563. if ${ac_cv_prog_WINDRES+:} false; then :
  13564. $as_echo_n "(cached) " >&6
  13565. else
  13566. if test -n "$WINDRES"; then
  13567. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13568. else
  13569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13570. for as_dir in $PATH
  13571. do
  13572. IFS=$as_save_IFS
  13573. test -z "$as_dir" && as_dir=.
  13574. for ac_exec_ext in '' $ac_executable_extensions; do
  13575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13576. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13578. break 2
  13579. fi
  13580. done
  13581. done
  13582. IFS=$as_save_IFS
  13583. fi
  13584. fi
  13585. WINDRES=$ac_cv_prog_WINDRES
  13586. if test -n "$WINDRES"; then
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13588. $as_echo "$WINDRES" >&6; }
  13589. else
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13591. $as_echo "no" >&6; }
  13592. fi
  13593. fi
  13594. if test -z "$ac_cv_prog_WINDRES"; then
  13595. ac_ct_WINDRES=$WINDRES
  13596. # Extract the first word of "windres", so it can be a program name with args.
  13597. set dummy windres; ac_word=$2
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13599. $as_echo_n "checking for $ac_word... " >&6; }
  13600. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. if test -n "$ac_ct_WINDRES"; then
  13604. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13605. else
  13606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13607. for as_dir in $PATH
  13608. do
  13609. IFS=$as_save_IFS
  13610. test -z "$as_dir" && as_dir=.
  13611. for ac_exec_ext in '' $ac_executable_extensions; do
  13612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13613. ac_cv_prog_ac_ct_WINDRES="windres"
  13614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13615. break 2
  13616. fi
  13617. done
  13618. done
  13619. IFS=$as_save_IFS
  13620. fi
  13621. fi
  13622. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13623. if test -n "$ac_ct_WINDRES"; then
  13624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13625. $as_echo "$ac_ct_WINDRES" >&6; }
  13626. else
  13627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13628. $as_echo "no" >&6; }
  13629. fi
  13630. if test "x$ac_ct_WINDRES" = x; then
  13631. WINDRES=":"
  13632. else
  13633. case $cross_compiling:$ac_tool_warned in
  13634. yes:)
  13635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13637. ac_tool_warned=yes ;;
  13638. esac
  13639. WINDRES=$ac_ct_WINDRES
  13640. fi
  13641. else
  13642. WINDRES="$ac_cv_prog_WINDRES"
  13643. fi
  13644. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13645. if test -n "$ac_tool_prefix"; then
  13646. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13647. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13649. $as_echo_n "checking for $ac_word... " >&6; }
  13650. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13651. $as_echo_n "(cached) " >&6
  13652. else
  13653. case $PKG_CONFIG in
  13654. [\\/]* | ?:[\\/]*)
  13655. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13656. ;;
  13657. *)
  13658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13659. for as_dir in $PATH
  13660. do
  13661. IFS=$as_save_IFS
  13662. test -z "$as_dir" && as_dir=.
  13663. for ac_exec_ext in '' $ac_executable_extensions; do
  13664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13665. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13667. break 2
  13668. fi
  13669. done
  13670. done
  13671. IFS=$as_save_IFS
  13672. ;;
  13673. esac
  13674. fi
  13675. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13676. if test -n "$PKG_CONFIG"; then
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13678. $as_echo "$PKG_CONFIG" >&6; }
  13679. else
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13681. $as_echo "no" >&6; }
  13682. fi
  13683. fi
  13684. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13685. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13686. # Extract the first word of "pkg-config", so it can be a program name with args.
  13687. set dummy pkg-config; ac_word=$2
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13689. $as_echo_n "checking for $ac_word... " >&6; }
  13690. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. case $ac_pt_PKG_CONFIG in
  13694. [\\/]* | ?:[\\/]*)
  13695. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13696. ;;
  13697. *)
  13698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13699. for as_dir in $PATH
  13700. do
  13701. IFS=$as_save_IFS
  13702. test -z "$as_dir" && as_dir=.
  13703. for ac_exec_ext in '' $ac_executable_extensions; do
  13704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13705. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13707. break 2
  13708. fi
  13709. done
  13710. done
  13711. IFS=$as_save_IFS
  13712. ;;
  13713. esac
  13714. fi
  13715. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13716. if test -n "$ac_pt_PKG_CONFIG"; then
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13718. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13719. else
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13721. $as_echo "no" >&6; }
  13722. fi
  13723. if test "x$ac_pt_PKG_CONFIG" = x; then
  13724. PKG_CONFIG=""
  13725. else
  13726. case $cross_compiling:$ac_tool_warned in
  13727. yes:)
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13729. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13730. ac_tool_warned=yes ;;
  13731. esac
  13732. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13733. fi
  13734. else
  13735. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13736. fi
  13737. fi
  13738. if test -n "$PKG_CONFIG"; then
  13739. _pkg_min_version=0.9.0
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13741. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13742. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13744. $as_echo "yes" >&6; }
  13745. else
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13747. $as_echo "no" >&6; }
  13748. PKG_CONFIG=""
  13749. fi
  13750. fi
  13751. case "$host" in
  13752. *-*-mingw32*)
  13753. # Except on msys, where make can't handle full pathnames (bug 1972)
  13754. ;;
  13755. *)
  13756. srcdir=`cd $srcdir && pwd`
  13757. ;;
  13758. esac
  13759. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13760. if test x$srcdir != x.; then
  13761. INCLUDE="-Iinclude $INCLUDE"
  13762. elif test -d .hg; then
  13763. as_fn_error $? "
  13764. *** When building from Mercurial you should configure and build in a
  13765. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13766. " "$LINENO" 5
  13767. fi
  13768. BASE_CFLAGS=""
  13769. BASE_LDFLAGS=""
  13770. case "$host" in
  13771. *-*-cygwin*)
  13772. # We build SDL on cygwin without the UNIX emulation layer
  13773. save_CFLAGS="$CFLAGS"
  13774. have_no_cygwin=no
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13776. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13777. CFLAGS="$save_CFLAGS -mno-cygwin"
  13778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13779. /* end confdefs.h. */
  13780. int
  13781. main ()
  13782. {
  13783. ;
  13784. return 0;
  13785. }
  13786. _ACEOF
  13787. if ac_fn_c_try_compile "$LINENO"; then :
  13788. have_no_cygwin=yes
  13789. fi
  13790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13792. $as_echo "$have_no_cygwin" >&6; }
  13793. CFLAGS="$save_CFLAGS"
  13794. if test x$have_no_cygwin = xyes; then
  13795. BASE_CFLAGS="-mno-cygwin"
  13796. BASE_LDFLAGS="-mno-cygwin"
  13797. fi
  13798. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13799. ;;
  13800. esac
  13801. # Uncomment the following line if you want to force SDL and applications
  13802. # built with it to be compiled for a particular architecture.
  13803. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13804. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13805. # The default optimization for SDL is -O3 (Bug #31)
  13806. if test "x$orig_CFLAGS" = x; then
  13807. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13808. fi
  13809. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13810. BUILD_LDFLAGS="$LDFLAGS"
  13811. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13812. ## These are common directories to find software packages
  13813. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13814. # if test -d $path/include; then
  13815. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13816. # fi
  13817. # if test -d $path/lib; then
  13818. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13819. # fi
  13820. #done
  13821. SDL_CFLAGS="$BASE_CFLAGS"
  13822. SDL_LIBS="-lSDL2"
  13823. if test "x$BASE_LDFLAGS" != x; then
  13824. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13825. fi
  13826. if test "x$EXTRA_CFLAGS" != x; then
  13827. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13828. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13829. fi
  13830. if test "x$EXTRA_LDFLAGS" != x; then
  13831. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13832. fi
  13833. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13834. find_lib()
  13835. {
  13836. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13837. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13838. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13839. if test "$cross_compiling" = yes; then
  13840. host_lib_path=""
  13841. else
  13842. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13843. fi
  13844. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13845. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13846. if test x$lib != x; then
  13847. echo $lib
  13848. return
  13849. fi
  13850. done
  13851. # Try again, this time allowing more than one version digit after the .so
  13852. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13853. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13854. if test x$lib != x; then
  13855. echo $lib
  13856. return
  13857. fi
  13858. done
  13859. }
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13861. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13862. if ${ac_cv_c_const+:} false; then :
  13863. $as_echo_n "(cached) " >&6
  13864. else
  13865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13866. /* end confdefs.h. */
  13867. int
  13868. main ()
  13869. {
  13870. #ifndef __cplusplus
  13871. /* Ultrix mips cc rejects this sort of thing. */
  13872. typedef int charset[2];
  13873. const charset cs = { 0, 0 };
  13874. /* SunOS 4.1.1 cc rejects this. */
  13875. char const *const *pcpcc;
  13876. char **ppc;
  13877. /* NEC SVR4.0.2 mips cc rejects this. */
  13878. struct point {int x, y;};
  13879. static struct point const zero = {0,0};
  13880. /* AIX XL C 1.02.0.0 rejects this.
  13881. It does not let you subtract one const X* pointer from another in
  13882. an arm of an if-expression whose if-part is not a constant
  13883. expression */
  13884. const char *g = "string";
  13885. pcpcc = &g + (g ? g-g : 0);
  13886. /* HPUX 7.0 cc rejects these. */
  13887. ++pcpcc;
  13888. ppc = (char**) pcpcc;
  13889. pcpcc = (char const *const *) ppc;
  13890. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13891. char tx;
  13892. char *t = &tx;
  13893. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13894. *t++ = 0;
  13895. if (s) return 0;
  13896. }
  13897. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13898. int x[] = {25, 17};
  13899. const int *foo = &x[0];
  13900. ++foo;
  13901. }
  13902. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13903. typedef const int *iptr;
  13904. iptr p = 0;
  13905. ++p;
  13906. }
  13907. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13908. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13909. struct s { int j; const int *ap[3]; } bx;
  13910. struct s *b = &bx; b->j = 5;
  13911. }
  13912. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13913. const int foo = 10;
  13914. if (!foo) return 0;
  13915. }
  13916. return !cs[0] && !zero.x;
  13917. #endif
  13918. ;
  13919. return 0;
  13920. }
  13921. _ACEOF
  13922. if ac_fn_c_try_compile "$LINENO"; then :
  13923. ac_cv_c_const=yes
  13924. else
  13925. ac_cv_c_const=no
  13926. fi
  13927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13928. fi
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13930. $as_echo "$ac_cv_c_const" >&6; }
  13931. if test $ac_cv_c_const = no; then
  13932. $as_echo "#define const /**/" >>confdefs.h
  13933. fi
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13935. $as_echo_n "checking for inline... " >&6; }
  13936. if ${ac_cv_c_inline+:} false; then :
  13937. $as_echo_n "(cached) " >&6
  13938. else
  13939. ac_cv_c_inline=no
  13940. for ac_kw in inline __inline__ __inline; do
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. #ifndef __cplusplus
  13944. typedef int foo_t;
  13945. static $ac_kw foo_t static_foo () {return 0; }
  13946. $ac_kw foo_t foo () {return 0; }
  13947. #endif
  13948. _ACEOF
  13949. if ac_fn_c_try_compile "$LINENO"; then :
  13950. ac_cv_c_inline=$ac_kw
  13951. fi
  13952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13953. test "$ac_cv_c_inline" != no && break
  13954. done
  13955. fi
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13957. $as_echo "$ac_cv_c_inline" >&6; }
  13958. case $ac_cv_c_inline in
  13959. inline | yes) ;;
  13960. *)
  13961. case $ac_cv_c_inline in
  13962. no) ac_val=;;
  13963. *) ac_val=$ac_cv_c_inline;;
  13964. esac
  13965. cat >>confdefs.h <<_ACEOF
  13966. #ifndef __cplusplus
  13967. #define inline $ac_val
  13968. #endif
  13969. _ACEOF
  13970. ;;
  13971. esac
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13973. $as_echo_n "checking for working volatile... " >&6; }
  13974. if ${ac_cv_c_volatile+:} false; then :
  13975. $as_echo_n "(cached) " >&6
  13976. else
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. int
  13980. main ()
  13981. {
  13982. volatile int x;
  13983. int * volatile y = (int *) 0;
  13984. return !x && !y;
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_c_volatile=yes
  13991. else
  13992. ac_cv_c_volatile=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13997. $as_echo "$ac_cv_c_volatile" >&6; }
  13998. if test $ac_cv_c_volatile = no; then
  13999. $as_echo "#define volatile /**/" >>confdefs.h
  14000. fi
  14001. # Check whether --enable-assertions was given.
  14002. if test "${enable_assertions+set}" = set; then :
  14003. enableval=$enable_assertions;
  14004. else
  14005. enable_assertions=auto
  14006. fi
  14007. case "$enable_assertions" in
  14008. auto) # Use optimization settings to determine assertion level
  14009. ;;
  14010. disabled)
  14011. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14012. ;;
  14013. release)
  14014. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14015. ;;
  14016. enabled)
  14017. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14018. ;;
  14019. paranoid)
  14020. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14021. ;;
  14022. *)
  14023. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14024. ;;
  14025. esac
  14026. # Check whether --enable-dependency-tracking was given.
  14027. if test "${enable_dependency_tracking+set}" = set; then :
  14028. enableval=$enable_dependency_tracking;
  14029. else
  14030. enable_dependency_tracking=yes
  14031. fi
  14032. if test x$enable_dependency_tracking = xyes; then
  14033. have_gcc_mmd_mt=no
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14035. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #if !defined(__GNUC__) || __GNUC__ < 3
  14039. #error Dependency tracking requires GCC 3.0 or newer
  14040. #endif
  14041. int
  14042. main ()
  14043. {
  14044. ;
  14045. return 0;
  14046. }
  14047. _ACEOF
  14048. if ac_fn_c_try_compile "$LINENO"; then :
  14049. have_gcc_mmd_mt=yes
  14050. fi
  14051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14053. $as_echo "$have_gcc_mmd_mt" >&6; }
  14054. if test x$have_gcc_mmd_mt = xyes; then
  14055. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14056. fi
  14057. fi
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14059. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14060. have_no_undefined=no
  14061. case "$host" in
  14062. *-*-openbsd*)
  14063. ;;
  14064. *)
  14065. save_LDFLAGS="$LDFLAGS"
  14066. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14068. /* end confdefs.h. */
  14069. int
  14070. main ()
  14071. {
  14072. ;
  14073. return 0;
  14074. }
  14075. _ACEOF
  14076. if ac_fn_c_try_link "$LINENO"; then :
  14077. have_no_undefined=yes
  14078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14079. fi
  14080. rm -f core conftest.err conftest.$ac_objext \
  14081. conftest$ac_exeext conftest.$ac_ext
  14082. LDFLAGS="$save_LDFLAGS"
  14083. ;;
  14084. esac
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14086. $as_echo "$have_no_undefined" >&6; }
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14088. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14089. have_dynamicbase=no
  14090. case "$host" in
  14091. *)
  14092. save_LDFLAGS="$LDFLAGS"
  14093. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14095. /* end confdefs.h. */
  14096. int
  14097. main ()
  14098. {
  14099. ;
  14100. return 0;
  14101. }
  14102. _ACEOF
  14103. if ac_fn_c_try_link "$LINENO"; then :
  14104. have_dynamicbase=yes
  14105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14106. fi
  14107. rm -f core conftest.err conftest.$ac_objext \
  14108. conftest$ac_exeext conftest.$ac_ext
  14109. LDFLAGS="$save_LDFLAGS"
  14110. ;;
  14111. esac
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14113. $as_echo "$have_dynamicbase" >&6; }
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14115. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14116. have_nxcompat=no
  14117. case "$host" in
  14118. *)
  14119. save_LDFLAGS="$LDFLAGS"
  14120. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14122. /* end confdefs.h. */
  14123. int
  14124. main ()
  14125. {
  14126. ;
  14127. return 0;
  14128. }
  14129. _ACEOF
  14130. if ac_fn_c_try_link "$LINENO"; then :
  14131. have_nxcompat=yes
  14132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14133. fi
  14134. rm -f core conftest.err conftest.$ac_objext \
  14135. conftest$ac_exeext conftest.$ac_ext
  14136. LDFLAGS="$save_LDFLAGS"
  14137. ;;
  14138. esac
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14140. $as_echo "$have_nxcompat" >&6; }
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14142. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14143. have_high_entropy_va=no
  14144. case "$host" in
  14145. *)
  14146. save_LDFLAGS="$LDFLAGS"
  14147. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14149. /* end confdefs.h. */
  14150. int
  14151. main ()
  14152. {
  14153. ;
  14154. return 0;
  14155. }
  14156. _ACEOF
  14157. if ac_fn_c_try_link "$LINENO"; then :
  14158. have_high_entropy_va=yes
  14159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14160. fi
  14161. rm -f core conftest.err conftest.$ac_objext \
  14162. conftest$ac_exeext conftest.$ac_ext
  14163. LDFLAGS="$save_LDFLAGS"
  14164. ;;
  14165. esac
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14167. $as_echo "$have_high_entropy_va" >&6; }
  14168. # Check whether --enable-libc was given.
  14169. if test "${enable_libc+set}" = set; then :
  14170. enableval=$enable_libc;
  14171. else
  14172. enable_libc=yes
  14173. fi
  14174. if test x$enable_libc = xyes; then
  14175. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14177. $as_echo_n "checking for ANSI C header files... " >&6; }
  14178. if ${ac_cv_header_stdc+:} false; then :
  14179. $as_echo_n "(cached) " >&6
  14180. else
  14181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14182. /* end confdefs.h. */
  14183. #include <stdlib.h>
  14184. #include <stdarg.h>
  14185. #include <string.h>
  14186. #include <float.h>
  14187. int
  14188. main ()
  14189. {
  14190. ;
  14191. return 0;
  14192. }
  14193. _ACEOF
  14194. if ac_fn_c_try_compile "$LINENO"; then :
  14195. ac_cv_header_stdc=yes
  14196. else
  14197. ac_cv_header_stdc=no
  14198. fi
  14199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14200. if test $ac_cv_header_stdc = yes; then
  14201. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14203. /* end confdefs.h. */
  14204. #include <string.h>
  14205. _ACEOF
  14206. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14207. $EGREP "memchr" >/dev/null 2>&1; then :
  14208. else
  14209. ac_cv_header_stdc=no
  14210. fi
  14211. rm -f conftest*
  14212. fi
  14213. if test $ac_cv_header_stdc = yes; then
  14214. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. #include <stdlib.h>
  14218. _ACEOF
  14219. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14220. $EGREP "free" >/dev/null 2>&1; then :
  14221. else
  14222. ac_cv_header_stdc=no
  14223. fi
  14224. rm -f conftest*
  14225. fi
  14226. if test $ac_cv_header_stdc = yes; then
  14227. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14228. if test "$cross_compiling" = yes; then :
  14229. :
  14230. else
  14231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14232. /* end confdefs.h. */
  14233. #include <ctype.h>
  14234. #include <stdlib.h>
  14235. #if ((' ' & 0x0FF) == 0x020)
  14236. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14237. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14238. #else
  14239. # define ISLOWER(c) \
  14240. (('a' <= (c) && (c) <= 'i') \
  14241. || ('j' <= (c) && (c) <= 'r') \
  14242. || ('s' <= (c) && (c) <= 'z'))
  14243. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14244. #endif
  14245. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14246. int
  14247. main ()
  14248. {
  14249. int i;
  14250. for (i = 0; i < 256; i++)
  14251. if (XOR (islower (i), ISLOWER (i))
  14252. || toupper (i) != TOUPPER (i))
  14253. return 2;
  14254. return 0;
  14255. }
  14256. _ACEOF
  14257. if ac_fn_c_try_run "$LINENO"; then :
  14258. else
  14259. ac_cv_header_stdc=no
  14260. fi
  14261. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14262. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14263. fi
  14264. fi
  14265. fi
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14267. $as_echo "$ac_cv_header_stdc" >&6; }
  14268. if test $ac_cv_header_stdc = yes; then
  14269. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14270. fi
  14271. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14272. do :
  14273. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14274. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14275. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14276. cat >>confdefs.h <<_ACEOF
  14277. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14278. _ACEOF
  14279. fi
  14280. done
  14281. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14282. if test "x$ac_cv_type_size_t" = xyes; then :
  14283. else
  14284. cat >>confdefs.h <<_ACEOF
  14285. #define size_t unsigned int
  14286. _ACEOF
  14287. fi
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14289. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14290. if ${ac_cv_define_M_PI+:} false; then :
  14291. $as_echo_n "(cached) " >&6
  14292. else
  14293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14294. /* end confdefs.h. */
  14295. #include <math.h>
  14296. #ifdef M_PI
  14297. YES_IS_DEFINED
  14298. #endif
  14299. _ACEOF
  14300. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14301. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14302. ac_cv_define_M_PI=yes
  14303. else
  14304. ac_cv_define_M_PI=no
  14305. fi
  14306. rm -f conftest*
  14307. fi
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14309. $as_echo "$ac_cv_define_M_PI" >&6; }
  14310. if test "$ac_cv_define_M_PI" = "yes" ; then
  14311. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14312. fi
  14313. case "$host" in
  14314. *-*-cygwin* | *-*-mingw32*)
  14315. ;;
  14316. *)
  14317. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14318. # for constant arguments. Useless!
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14320. $as_echo_n "checking for working alloca.h... " >&6; }
  14321. if ${ac_cv_working_alloca_h+:} false; then :
  14322. $as_echo_n "(cached) " >&6
  14323. else
  14324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14325. /* end confdefs.h. */
  14326. #include <alloca.h>
  14327. int
  14328. main ()
  14329. {
  14330. char *p = (char *) alloca (2 * sizeof (int));
  14331. if (p) return 0;
  14332. ;
  14333. return 0;
  14334. }
  14335. _ACEOF
  14336. if ac_fn_c_try_link "$LINENO"; then :
  14337. ac_cv_working_alloca_h=yes
  14338. else
  14339. ac_cv_working_alloca_h=no
  14340. fi
  14341. rm -f core conftest.err conftest.$ac_objext \
  14342. conftest$ac_exeext conftest.$ac_ext
  14343. fi
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14345. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14346. if test $ac_cv_working_alloca_h = yes; then
  14347. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14348. fi
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14350. $as_echo_n "checking for alloca... " >&6; }
  14351. if ${ac_cv_func_alloca_works+:} false; then :
  14352. $as_echo_n "(cached) " >&6
  14353. else
  14354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14355. /* end confdefs.h. */
  14356. #ifdef __GNUC__
  14357. # define alloca __builtin_alloca
  14358. #else
  14359. # ifdef _MSC_VER
  14360. # include <malloc.h>
  14361. # define alloca _alloca
  14362. # else
  14363. # ifdef HAVE_ALLOCA_H
  14364. # include <alloca.h>
  14365. # else
  14366. # ifdef _AIX
  14367. #pragma alloca
  14368. # else
  14369. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14370. void *alloca (size_t);
  14371. # endif
  14372. # endif
  14373. # endif
  14374. # endif
  14375. #endif
  14376. int
  14377. main ()
  14378. {
  14379. char *p = (char *) alloca (1);
  14380. if (p) return 0;
  14381. ;
  14382. return 0;
  14383. }
  14384. _ACEOF
  14385. if ac_fn_c_try_link "$LINENO"; then :
  14386. ac_cv_func_alloca_works=yes
  14387. else
  14388. ac_cv_func_alloca_works=no
  14389. fi
  14390. rm -f core conftest.err conftest.$ac_objext \
  14391. conftest$ac_exeext conftest.$ac_ext
  14392. fi
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14394. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14395. if test $ac_cv_func_alloca_works = yes; then
  14396. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14397. else
  14398. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14399. # that cause trouble. Some versions do not even contain alloca or
  14400. # contain a buggy version. If you still want to use their alloca,
  14401. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14402. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14403. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14405. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14406. if ${ac_cv_os_cray+:} false; then :
  14407. $as_echo_n "(cached) " >&6
  14408. else
  14409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14410. /* end confdefs.h. */
  14411. #if defined CRAY && ! defined CRAY2
  14412. webecray
  14413. #else
  14414. wenotbecray
  14415. #endif
  14416. _ACEOF
  14417. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14418. $EGREP "webecray" >/dev/null 2>&1; then :
  14419. ac_cv_os_cray=yes
  14420. else
  14421. ac_cv_os_cray=no
  14422. fi
  14423. rm -f conftest*
  14424. fi
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14426. $as_echo "$ac_cv_os_cray" >&6; }
  14427. if test $ac_cv_os_cray = yes; then
  14428. for ac_func in _getb67 GETB67 getb67; do
  14429. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14430. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14431. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14432. cat >>confdefs.h <<_ACEOF
  14433. #define CRAY_STACKSEG_END $ac_func
  14434. _ACEOF
  14435. break
  14436. fi
  14437. done
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14440. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14441. if ${ac_cv_c_stack_direction+:} false; then :
  14442. $as_echo_n "(cached) " >&6
  14443. else
  14444. if test "$cross_compiling" = yes; then :
  14445. ac_cv_c_stack_direction=0
  14446. else
  14447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14448. /* end confdefs.h. */
  14449. $ac_includes_default
  14450. int
  14451. find_stack_direction (int *addr, int depth)
  14452. {
  14453. int dir, dummy = 0;
  14454. if (! addr)
  14455. addr = &dummy;
  14456. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14457. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14458. return dir + dummy;
  14459. }
  14460. int
  14461. main (int argc, char **argv)
  14462. {
  14463. return find_stack_direction (0, argc + !argv + 20) < 0;
  14464. }
  14465. _ACEOF
  14466. if ac_fn_c_try_run "$LINENO"; then :
  14467. ac_cv_c_stack_direction=1
  14468. else
  14469. ac_cv_c_stack_direction=-1
  14470. fi
  14471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14472. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14473. fi
  14474. fi
  14475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14476. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14477. cat >>confdefs.h <<_ACEOF
  14478. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14479. _ACEOF
  14480. fi
  14481. ;;
  14482. esac
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14484. $as_echo_n "checking for working memcmp... " >&6; }
  14485. if ${ac_cv_func_memcmp_working+:} false; then :
  14486. $as_echo_n "(cached) " >&6
  14487. else
  14488. if test "$cross_compiling" = yes; then :
  14489. ac_cv_func_memcmp_working=no
  14490. else
  14491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14492. /* end confdefs.h. */
  14493. $ac_includes_default
  14494. int
  14495. main ()
  14496. {
  14497. /* Some versions of memcmp are not 8-bit clean. */
  14498. char c0 = '\100', c1 = '\200', c2 = '\201';
  14499. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14500. return 1;
  14501. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14502. or more and with at least one buffer not starting on a 4-byte boundary.
  14503. William Lewis provided this test program. */
  14504. {
  14505. char foo[21];
  14506. char bar[21];
  14507. int i;
  14508. for (i = 0; i < 4; i++)
  14509. {
  14510. char *a = foo + i;
  14511. char *b = bar + i;
  14512. strcpy (a, "--------01111111");
  14513. strcpy (b, "--------10000000");
  14514. if (memcmp (a, b, 16) >= 0)
  14515. return 1;
  14516. }
  14517. return 0;
  14518. }
  14519. ;
  14520. return 0;
  14521. }
  14522. _ACEOF
  14523. if ac_fn_c_try_run "$LINENO"; then :
  14524. ac_cv_func_memcmp_working=yes
  14525. else
  14526. ac_cv_func_memcmp_working=no
  14527. fi
  14528. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14529. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14530. fi
  14531. fi
  14532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14533. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14534. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14535. *" memcmp.$ac_objext "* ) ;;
  14536. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14537. ;;
  14538. esac
  14539. if test x$ac_cv_func_memcmp_working = xyes; then
  14540. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14541. fi
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14543. $as_echo_n "checking for working strtod... " >&6; }
  14544. if ${ac_cv_func_strtod+:} false; then :
  14545. $as_echo_n "(cached) " >&6
  14546. else
  14547. if test "$cross_compiling" = yes; then :
  14548. ac_cv_func_strtod=no
  14549. else
  14550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14551. /* end confdefs.h. */
  14552. $ac_includes_default
  14553. #ifndef strtod
  14554. double strtod ();
  14555. #endif
  14556. int
  14557. main()
  14558. {
  14559. {
  14560. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14561. char *string = " +69";
  14562. char *term;
  14563. double value;
  14564. value = strtod (string, &term);
  14565. if (value != 69 || term != (string + 4))
  14566. return 1;
  14567. }
  14568. {
  14569. /* Under Solaris 2.4, strtod returns the wrong value for the
  14570. terminating character under some conditions. */
  14571. char *string = "NaN";
  14572. char *term;
  14573. strtod (string, &term);
  14574. if (term != string && *(term - 1) == 0)
  14575. return 1;
  14576. }
  14577. return 0;
  14578. }
  14579. _ACEOF
  14580. if ac_fn_c_try_run "$LINENO"; then :
  14581. ac_cv_func_strtod=yes
  14582. else
  14583. ac_cv_func_strtod=no
  14584. fi
  14585. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14586. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14587. fi
  14588. fi
  14589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14590. $as_echo "$ac_cv_func_strtod" >&6; }
  14591. if test $ac_cv_func_strtod = no; then
  14592. case " $LIBOBJS " in
  14593. *" strtod.$ac_objext "* ) ;;
  14594. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14595. ;;
  14596. esac
  14597. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14598. if test "x$ac_cv_func_pow" = xyes; then :
  14599. fi
  14600. if test $ac_cv_func_pow = no; then
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14602. $as_echo_n "checking for pow in -lm... " >&6; }
  14603. if ${ac_cv_lib_m_pow+:} false; then :
  14604. $as_echo_n "(cached) " >&6
  14605. else
  14606. ac_check_lib_save_LIBS=$LIBS
  14607. LIBS="-lm $LIBS"
  14608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14609. /* end confdefs.h. */
  14610. /* Override any GCC internal prototype to avoid an error.
  14611. Use char because int might match the return type of a GCC
  14612. builtin and then its argument prototype would still apply. */
  14613. #ifdef __cplusplus
  14614. extern "C"
  14615. #endif
  14616. char pow ();
  14617. int
  14618. main ()
  14619. {
  14620. return pow ();
  14621. ;
  14622. return 0;
  14623. }
  14624. _ACEOF
  14625. if ac_fn_c_try_link "$LINENO"; then :
  14626. ac_cv_lib_m_pow=yes
  14627. else
  14628. ac_cv_lib_m_pow=no
  14629. fi
  14630. rm -f core conftest.err conftest.$ac_objext \
  14631. conftest$ac_exeext conftest.$ac_ext
  14632. LIBS=$ac_check_lib_save_LIBS
  14633. fi
  14634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14635. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14636. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14637. POW_LIB=-lm
  14638. else
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14640. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14641. fi
  14642. fi
  14643. fi
  14644. if test x$ac_cv_func_strtod = xyes; then
  14645. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14646. fi
  14647. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14648. if test "x$ac_cv_func_mprotect" = xyes; then :
  14649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14650. /* end confdefs.h. */
  14651. #include <sys/types.h>
  14652. #include <sys/mman.h>
  14653. int
  14654. main ()
  14655. {
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. if ac_fn_c_try_compile "$LINENO"; then :
  14661. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14662. fi
  14663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14664. fi
  14665. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14666. do :
  14667. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14668. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14669. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14670. cat >>confdefs.h <<_ACEOF
  14671. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14672. _ACEOF
  14673. fi
  14674. done
  14675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14676. $as_echo_n "checking for pow in -lm... " >&6; }
  14677. if ${ac_cv_lib_m_pow+:} false; then :
  14678. $as_echo_n "(cached) " >&6
  14679. else
  14680. ac_check_lib_save_LIBS=$LIBS
  14681. LIBS="-lm $LIBS"
  14682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14683. /* end confdefs.h. */
  14684. /* Override any GCC internal prototype to avoid an error.
  14685. Use char because int might match the return type of a GCC
  14686. builtin and then its argument prototype would still apply. */
  14687. #ifdef __cplusplus
  14688. extern "C"
  14689. #endif
  14690. char pow ();
  14691. int
  14692. main ()
  14693. {
  14694. return pow ();
  14695. ;
  14696. return 0;
  14697. }
  14698. _ACEOF
  14699. if ac_fn_c_try_link "$LINENO"; then :
  14700. ac_cv_lib_m_pow=yes
  14701. else
  14702. ac_cv_lib_m_pow=no
  14703. fi
  14704. rm -f core conftest.err conftest.$ac_objext \
  14705. conftest$ac_exeext conftest.$ac_ext
  14706. LIBS=$ac_check_lib_save_LIBS
  14707. fi
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14709. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14710. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14711. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14712. fi
  14713. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14714. do :
  14715. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14716. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14717. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14718. cat >>confdefs.h <<_ACEOF
  14719. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14720. _ACEOF
  14721. fi
  14722. done
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14724. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14725. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14726. $as_echo_n "(cached) " >&6
  14727. else
  14728. ac_check_lib_save_LIBS=$LIBS
  14729. LIBS="-liconv $LIBS"
  14730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14731. /* end confdefs.h. */
  14732. /* Override any GCC internal prototype to avoid an error.
  14733. Use char because int might match the return type of a GCC
  14734. builtin and then its argument prototype would still apply. */
  14735. #ifdef __cplusplus
  14736. extern "C"
  14737. #endif
  14738. char iconv_open ();
  14739. int
  14740. main ()
  14741. {
  14742. return iconv_open ();
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. if ac_fn_c_try_link "$LINENO"; then :
  14748. ac_cv_lib_iconv_iconv_open=yes
  14749. else
  14750. ac_cv_lib_iconv_iconv_open=no
  14751. fi
  14752. rm -f core conftest.err conftest.$ac_objext \
  14753. conftest$ac_exeext conftest.$ac_ext
  14754. LIBS=$ac_check_lib_save_LIBS
  14755. fi
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14757. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14758. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14759. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14760. fi
  14761. for ac_func in iconv
  14762. do :
  14763. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14764. if test "x$ac_cv_func_iconv" = xyes; then :
  14765. cat >>confdefs.h <<_ACEOF
  14766. #define HAVE_ICONV 1
  14767. _ACEOF
  14768. fi
  14769. done
  14770. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14771. "
  14772. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14773. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14774. fi
  14775. for ac_header in libunwind.h
  14776. do :
  14777. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14778. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14779. cat >>confdefs.h <<_ACEOF
  14780. #define HAVE_LIBUNWIND_H 1
  14781. _ACEOF
  14782. fi
  14783. done
  14784. fi
  14785. # Check whether --enable-gcc-atomics was given.
  14786. if test "${enable_gcc_atomics+set}" = set; then :
  14787. enableval=$enable_gcc_atomics;
  14788. else
  14789. enable_gcc_atomics=yes
  14790. fi
  14791. if test x$enable_gcc_atomics = xyes; then
  14792. have_gcc_atomics=no
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14794. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14796. /* end confdefs.h. */
  14797. int
  14798. main ()
  14799. {
  14800. int a;
  14801. void *x, *y, *z;
  14802. __sync_lock_test_and_set(&a, 4);
  14803. __sync_lock_test_and_set(&x, y);
  14804. __sync_fetch_and_add(&a, 1);
  14805. __sync_bool_compare_and_swap(&a, 5, 10);
  14806. __sync_bool_compare_and_swap(&x, y, z);
  14807. ;
  14808. return 0;
  14809. }
  14810. _ACEOF
  14811. if ac_fn_c_try_link "$LINENO"; then :
  14812. have_gcc_atomics=yes
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext \
  14815. conftest$ac_exeext conftest.$ac_ext
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14817. $as_echo "$have_gcc_atomics" >&6; }
  14818. if test x$have_gcc_atomics = xyes; then
  14819. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14820. else
  14821. # See if we have the minimum operation needed for GCC atomics
  14822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14823. /* end confdefs.h. */
  14824. int
  14825. main ()
  14826. {
  14827. int a;
  14828. __sync_lock_test_and_set(&a, 1);
  14829. __sync_lock_release(&a);
  14830. ;
  14831. return 0;
  14832. }
  14833. _ACEOF
  14834. if ac_fn_c_try_link "$LINENO"; then :
  14835. have_gcc_sync_lock_test_and_set=yes
  14836. fi
  14837. rm -f core conftest.err conftest.$ac_objext \
  14838. conftest$ac_exeext conftest.$ac_ext
  14839. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14840. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14841. fi
  14842. fi
  14843. fi
  14844. # Standard C sources
  14845. SOURCES="$SOURCES $srcdir/src/*.c"
  14846. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14847. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14848. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14849. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14850. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14851. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14852. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14853. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14854. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14855. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14856. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14857. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14858. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14859. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14860. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14861. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14862. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14863. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14864. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14865. # Check whether --enable-atomic was given.
  14866. if test "${enable_atomic+set}" = set; then :
  14867. enableval=$enable_atomic;
  14868. else
  14869. enable_atomic=yes
  14870. fi
  14871. if test x$enable_atomic != xyes; then
  14872. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14873. else
  14874. SUMMARY_modules="${SUMMARY_modules} atomic"
  14875. fi
  14876. # Check whether --enable-audio was given.
  14877. if test "${enable_audio+set}" = set; then :
  14878. enableval=$enable_audio;
  14879. else
  14880. enable_audio=yes
  14881. fi
  14882. if test x$enable_audio != xyes; then
  14883. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14884. else
  14885. SUMMARY_modules="${SUMMARY_modules} audio"
  14886. fi
  14887. # Check whether --enable-video was given.
  14888. if test "${enable_video+set}" = set; then :
  14889. enableval=$enable_video;
  14890. else
  14891. enable_video=yes
  14892. fi
  14893. if test x$enable_video != xyes; then
  14894. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14895. else
  14896. SUMMARY_modules="${SUMMARY_modules} video"
  14897. fi
  14898. # Check whether --enable-render was given.
  14899. if test "${enable_render+set}" = set; then :
  14900. enableval=$enable_render;
  14901. else
  14902. enable_render=yes
  14903. fi
  14904. if test x$enable_render != xyes; then
  14905. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14906. else
  14907. SUMMARY_modules="${SUMMARY_modules} render"
  14908. fi
  14909. # Check whether --enable-events was given.
  14910. if test "${enable_events+set}" = set; then :
  14911. enableval=$enable_events;
  14912. else
  14913. enable_events=yes
  14914. fi
  14915. if test x$enable_events != xyes; then
  14916. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14917. else
  14918. SUMMARY_modules="${SUMMARY_modules} events"
  14919. fi
  14920. # Check whether --enable-joystick was given.
  14921. if test "${enable_joystick+set}" = set; then :
  14922. enableval=$enable_joystick;
  14923. else
  14924. enable_joystick=yes
  14925. fi
  14926. if test x$enable_joystick != xyes; then
  14927. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14928. else
  14929. SUMMARY_modules="${SUMMARY_modules} joystick"
  14930. fi
  14931. # Check whether --enable-haptic was given.
  14932. if test "${enable_haptic+set}" = set; then :
  14933. enableval=$enable_haptic;
  14934. else
  14935. enable_haptic=yes
  14936. fi
  14937. if test x$enable_haptic != xyes; then
  14938. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14939. else
  14940. SUMMARY_modules="${SUMMARY_modules} haptic"
  14941. fi
  14942. # Check whether --enable-sensor was given.
  14943. if test "${enable_sensor+set}" = set; then :
  14944. enableval=$enable_sensor;
  14945. else
  14946. enable_sensor=yes
  14947. fi
  14948. if test x$enable_sensor != xyes; then
  14949. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14950. else
  14951. SUMMARY_modules="${SUMMARY_modules} sensor"
  14952. fi
  14953. # Check whether --enable-power was given.
  14954. if test "${enable_power+set}" = set; then :
  14955. enableval=$enable_power;
  14956. else
  14957. enable_power=yes
  14958. fi
  14959. if test x$enable_power != xyes; then
  14960. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14961. else
  14962. SUMMARY_modules="${SUMMARY_modules} power"
  14963. fi
  14964. # Check whether --enable-filesystem was given.
  14965. if test "${enable_filesystem+set}" = set; then :
  14966. enableval=$enable_filesystem;
  14967. else
  14968. enable_filesystem=yes
  14969. fi
  14970. if test x$enable_filesystem != xyes; then
  14971. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14972. else
  14973. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14974. fi
  14975. # Check whether --enable-threads was given.
  14976. if test "${enable_threads+set}" = set; then :
  14977. enableval=$enable_threads;
  14978. else
  14979. enable_threads=yes
  14980. fi
  14981. if test x$enable_threads != xyes; then
  14982. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14983. else
  14984. SUMMARY_modules="${SUMMARY_modules} threads"
  14985. fi
  14986. # Check whether --enable-timers was given.
  14987. if test "${enable_timers+set}" = set; then :
  14988. enableval=$enable_timers;
  14989. else
  14990. enable_timers=yes
  14991. fi
  14992. if test x$enable_timers != xyes; then
  14993. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14994. else
  14995. SUMMARY_modules="${SUMMARY_modules} timers"
  14996. fi
  14997. # Check whether --enable-file was given.
  14998. if test "${enable_file+set}" = set; then :
  14999. enableval=$enable_file;
  15000. else
  15001. enable_file=yes
  15002. fi
  15003. if test x$enable_file != xyes; then
  15004. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15005. else
  15006. SUMMARY_modules="${SUMMARY_modules} file"
  15007. fi
  15008. # Check whether --enable-loadso was given.
  15009. if test "${enable_loadso+set}" = set; then :
  15010. enableval=$enable_loadso;
  15011. else
  15012. enable_loadso=yes
  15013. fi
  15014. if test x$enable_loadso != xyes; then
  15015. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15016. else
  15017. SUMMARY_modules="${SUMMARY_modules} loadso"
  15018. fi
  15019. # Check whether --enable-cpuinfo was given.
  15020. if test "${enable_cpuinfo+set}" = set; then :
  15021. enableval=$enable_cpuinfo;
  15022. else
  15023. enable_cpuinfo=yes
  15024. fi
  15025. if test x$enable_cpuinfo != xyes; then
  15026. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15027. else
  15028. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15029. fi
  15030. # Check whether --enable-assembly was given.
  15031. if test "${enable_assembly+set}" = set; then :
  15032. enableval=$enable_assembly;
  15033. else
  15034. enable_assembly=yes
  15035. fi
  15036. if test x$enable_assembly = xyes; then
  15037. SUMMARY_modules="${SUMMARY_modules} assembly"
  15038. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15039. # Make sure that we don't generate floating point code that would
  15040. # cause illegal instruction exceptions on older processors
  15041. case "$host" in
  15042. *-*-darwin*)
  15043. # Don't need to worry about Apple hardware, it's all SSE capable
  15044. default_ssemath=yes
  15045. ;;
  15046. *64-*-*)
  15047. # x86 64-bit architectures all have SSE instructions
  15048. default_ssemath=yes
  15049. ;;
  15050. *)
  15051. default_ssemath=no
  15052. ;;
  15053. esac
  15054. # Check whether --enable-ssemath was given.
  15055. if test "${enable_ssemath+set}" = set; then :
  15056. enableval=$enable_ssemath;
  15057. else
  15058. enable_ssemath=$default_ssemath
  15059. fi
  15060. if test x$enable_ssemath = xno; then
  15061. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15062. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15063. fi
  15064. fi
  15065. # Check whether --enable-mmx was given.
  15066. if test "${enable_mmx+set}" = set; then :
  15067. enableval=$enable_mmx;
  15068. else
  15069. enable_mmx=yes
  15070. fi
  15071. if test x$enable_mmx = xyes; then
  15072. save_CFLAGS="$CFLAGS"
  15073. have_gcc_mmx=no
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15075. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15076. mmx_CFLAGS="-mmmx"
  15077. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15079. /* end confdefs.h. */
  15080. #ifdef __MINGW32__
  15081. #include <_mingw.h>
  15082. #ifdef __MINGW64_VERSION_MAJOR
  15083. #include <intrin.h>
  15084. #else
  15085. #include <mmintrin.h>
  15086. #endif
  15087. #else
  15088. #include <mmintrin.h>
  15089. #endif
  15090. #ifndef __MMX__
  15091. #error Assembler CPP flag not enabled
  15092. #endif
  15093. int
  15094. main ()
  15095. {
  15096. ;
  15097. return 0;
  15098. }
  15099. _ACEOF
  15100. if ac_fn_c_try_compile "$LINENO"; then :
  15101. have_gcc_mmx=yes
  15102. fi
  15103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15105. $as_echo "$have_gcc_mmx" >&6; }
  15106. CFLAGS="$save_CFLAGS"
  15107. if test x$have_gcc_mmx = xyes; then
  15108. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15109. SUMMARY_math="${SUMMARY_math} mmx"
  15110. fi
  15111. fi
  15112. # Check whether --enable-3dnow was given.
  15113. if test "${enable_3dnow+set}" = set; then :
  15114. enableval=$enable_3dnow;
  15115. else
  15116. enable_3dnow=yes
  15117. fi
  15118. if test x$enable_3dnow = xyes; then
  15119. save_CFLAGS="$CFLAGS"
  15120. have_gcc_3dnow=no
  15121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15122. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15123. amd3dnow_CFLAGS="-m3dnow"
  15124. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15126. /* end confdefs.h. */
  15127. #include <mm3dnow.h>
  15128. #ifndef __3dNOW__
  15129. #error Assembler CPP flag not enabled
  15130. #endif
  15131. int
  15132. main ()
  15133. {
  15134. void *p = 0;
  15135. _m_prefetch(p);
  15136. ;
  15137. return 0;
  15138. }
  15139. _ACEOF
  15140. if ac_fn_c_try_link "$LINENO"; then :
  15141. have_gcc_3dnow=yes
  15142. fi
  15143. rm -f core conftest.err conftest.$ac_objext \
  15144. conftest$ac_exeext conftest.$ac_ext
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15146. $as_echo "$have_gcc_3dnow" >&6; }
  15147. CFLAGS="$save_CFLAGS"
  15148. if test x$have_gcc_3dnow = xyes; then
  15149. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15150. SUMMARY_math="${SUMMARY_math} 3dnow"
  15151. fi
  15152. fi
  15153. # Check whether --enable-sse was given.
  15154. if test "${enable_sse+set}" = set; then :
  15155. enableval=$enable_sse;
  15156. else
  15157. enable_sse=yes
  15158. fi
  15159. if test x$enable_sse = xyes; then
  15160. save_CFLAGS="$CFLAGS"
  15161. have_gcc_sse=no
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15163. $as_echo_n "checking for GCC -msse option... " >&6; }
  15164. sse_CFLAGS="-msse"
  15165. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15167. /* end confdefs.h. */
  15168. #ifdef __MINGW32__
  15169. #include <_mingw.h>
  15170. #ifdef __MINGW64_VERSION_MAJOR
  15171. #include <intrin.h>
  15172. #else
  15173. #include <xmmintrin.h>
  15174. #endif
  15175. #else
  15176. #include <xmmintrin.h>
  15177. #endif
  15178. #ifndef __SSE__
  15179. #error Assembler CPP flag not enabled
  15180. #endif
  15181. int
  15182. main ()
  15183. {
  15184. ;
  15185. return 0;
  15186. }
  15187. _ACEOF
  15188. if ac_fn_c_try_compile "$LINENO"; then :
  15189. have_gcc_sse=yes
  15190. fi
  15191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15193. $as_echo "$have_gcc_sse" >&6; }
  15194. CFLAGS="$save_CFLAGS"
  15195. if test x$have_gcc_sse = xyes; then
  15196. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15197. SUMMARY_math="${SUMMARY_math} sse"
  15198. fi
  15199. fi
  15200. # Check whether --enable-sse2 was given.
  15201. if test "${enable_sse2+set}" = set; then :
  15202. enableval=$enable_sse2;
  15203. else
  15204. enable_sse2=$default_ssemath
  15205. fi
  15206. if test x$enable_sse2 = xyes; then
  15207. save_CFLAGS="$CFLAGS"
  15208. have_gcc_sse2=no
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15210. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15211. sse2_CFLAGS="-msse2"
  15212. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15214. /* end confdefs.h. */
  15215. #ifdef __MINGW32__
  15216. #include <_mingw.h>
  15217. #ifdef __MINGW64_VERSION_MAJOR
  15218. #include <intrin.h>
  15219. #else
  15220. #include <emmintrin.h>
  15221. #endif
  15222. #else
  15223. #include <emmintrin.h>
  15224. #endif
  15225. #ifndef __SSE2__
  15226. #error Assembler CPP flag not enabled
  15227. #endif
  15228. int
  15229. main ()
  15230. {
  15231. ;
  15232. return 0;
  15233. }
  15234. _ACEOF
  15235. if ac_fn_c_try_compile "$LINENO"; then :
  15236. have_gcc_sse2=yes
  15237. fi
  15238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15240. $as_echo "$have_gcc_sse2" >&6; }
  15241. CFLAGS="$save_CFLAGS"
  15242. if test x$have_gcc_sse2 = xyes; then
  15243. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15244. SUMMARY_math="${SUMMARY_math} sse2"
  15245. fi
  15246. fi
  15247. # Check whether --enable-sse3 was given.
  15248. if test "${enable_sse3+set}" = set; then :
  15249. enableval=$enable_sse3;
  15250. else
  15251. enable_sse3=$default_ssemath
  15252. fi
  15253. if test x$enable_sse3 = xyes; then
  15254. save_CFLAGS="$CFLAGS"
  15255. have_gcc_sse3=no
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15257. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15258. sse3_CFLAGS="-msse3"
  15259. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15261. /* end confdefs.h. */
  15262. #ifdef __MINGW32__
  15263. #include <_mingw.h>
  15264. #ifdef __MINGW64_VERSION_MAJOR
  15265. #include <intrin.h>
  15266. #else
  15267. #include <pmmintrin.h>
  15268. #endif
  15269. #else
  15270. #include <pmmintrin.h>
  15271. #endif
  15272. #ifndef __SSE2__
  15273. #error Assembler CPP flag not enabled
  15274. #endif
  15275. int
  15276. main ()
  15277. {
  15278. ;
  15279. return 0;
  15280. }
  15281. _ACEOF
  15282. if ac_fn_c_try_compile "$LINENO"; then :
  15283. have_gcc_sse3=yes
  15284. fi
  15285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15287. $as_echo "$have_gcc_sse3" >&6; }
  15288. CFLAGS="$save_CFLAGS"
  15289. if test x$have_gcc_sse3 = xyes; then
  15290. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15291. SUMMARY_math="${SUMMARY_math} sse3"
  15292. fi
  15293. fi
  15294. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15295. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15296. have_immintrin_h_hdr=yes
  15297. else
  15298. have_immintrin_h_hdr=no
  15299. fi
  15300. if test x$have_immintrin_h_hdr = xyes; then
  15301. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15302. fi
  15303. # Check whether --enable-altivec was given.
  15304. if test "${enable_altivec+set}" = set; then :
  15305. enableval=$enable_altivec;
  15306. else
  15307. enable_altivec=yes
  15308. fi
  15309. if test x$enable_altivec = xyes; then
  15310. save_CFLAGS="$CFLAGS"
  15311. have_gcc_altivec=no
  15312. have_altivec_h_hdr=no
  15313. altivec_CFLAGS="-maltivec"
  15314. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15316. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15318. /* end confdefs.h. */
  15319. #include <altivec.h>
  15320. vector unsigned int vzero() {
  15321. return vec_splat_u32(0);
  15322. }
  15323. int
  15324. main ()
  15325. {
  15326. ;
  15327. return 0;
  15328. }
  15329. _ACEOF
  15330. if ac_fn_c_try_compile "$LINENO"; then :
  15331. have_gcc_altivec=yes
  15332. have_altivec_h_hdr=yes
  15333. fi
  15334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15336. $as_echo "$have_gcc_altivec" >&6; }
  15337. if test x$have_gcc_altivec = xno; then
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15339. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15341. /* end confdefs.h. */
  15342. vector unsigned int vzero() {
  15343. return vec_splat_u32(0);
  15344. }
  15345. int
  15346. main ()
  15347. {
  15348. ;
  15349. return 0;
  15350. }
  15351. _ACEOF
  15352. if ac_fn_c_try_compile "$LINENO"; then :
  15353. have_gcc_altivec=yes
  15354. fi
  15355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15357. $as_echo "$have_gcc_altivec" >&6; }
  15358. fi
  15359. if test x$have_gcc_altivec = xno; then
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15361. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15362. altivec_CFLAGS="-faltivec"
  15363. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15365. /* end confdefs.h. */
  15366. #include <altivec.h>
  15367. vector unsigned int vzero() {
  15368. return vec_splat_u32(0);
  15369. }
  15370. int
  15371. main ()
  15372. {
  15373. ;
  15374. return 0;
  15375. }
  15376. _ACEOF
  15377. if ac_fn_c_try_compile "$LINENO"; then :
  15378. have_gcc_altivec=yes
  15379. have_altivec_h_hdr=yes
  15380. fi
  15381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15383. $as_echo "$have_gcc_altivec" >&6; }
  15384. fi
  15385. if test x$have_gcc_altivec = xno; then
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15387. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15389. /* end confdefs.h. */
  15390. vector unsigned int vzero() {
  15391. return vec_splat_u32(0);
  15392. }
  15393. int
  15394. main ()
  15395. {
  15396. ;
  15397. return 0;
  15398. }
  15399. _ACEOF
  15400. if ac_fn_c_try_compile "$LINENO"; then :
  15401. have_gcc_altivec=yes
  15402. fi
  15403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15405. $as_echo "$have_gcc_altivec" >&6; }
  15406. fi
  15407. CFLAGS="$save_CFLAGS"
  15408. if test x$have_gcc_altivec = xyes; then
  15409. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15410. if test x$have_altivec_h_hdr = xyes; then
  15411. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15412. fi
  15413. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15414. SUMMARY_math="${SUMMARY_math} altivec"
  15415. fi
  15416. fi
  15417. fi
  15418. CheckOSS()
  15419. {
  15420. # Check whether --enable-oss was given.
  15421. if test "${enable_oss+set}" = set; then :
  15422. enableval=$enable_oss;
  15423. else
  15424. enable_oss=maybe
  15425. fi
  15426. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15427. # use sndio instead. So on there, we default to disabled. You can force
  15428. # it on if you really want, though.
  15429. if test x$enable_oss = xmaybe; then
  15430. enable_oss=yes
  15431. case "$host" in
  15432. *-*-openbsd*)
  15433. enable_oss=no;;
  15434. esac
  15435. fi
  15436. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15438. $as_echo_n "checking for OSS audio support... " >&6; }
  15439. have_oss=no
  15440. if test x$have_oss != xyes; then
  15441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15442. /* end confdefs.h. */
  15443. #include <sys/soundcard.h>
  15444. int
  15445. main ()
  15446. {
  15447. int arg = SNDCTL_DSP_SETFRAGMENT;
  15448. ;
  15449. return 0;
  15450. }
  15451. _ACEOF
  15452. if ac_fn_c_try_compile "$LINENO"; then :
  15453. have_oss=yes
  15454. fi
  15455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15456. fi
  15457. if test x$have_oss != xyes; then
  15458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15459. /* end confdefs.h. */
  15460. #include <soundcard.h>
  15461. int
  15462. main ()
  15463. {
  15464. int arg = SNDCTL_DSP_SETFRAGMENT;
  15465. ;
  15466. return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_compile "$LINENO"; then :
  15470. have_oss=yes
  15471. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15472. fi
  15473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15474. fi
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15476. $as_echo "$have_oss" >&6; }
  15477. if test x$have_oss = xyes; then
  15478. SUMMARY_audio="${SUMMARY_audio} oss"
  15479. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15480. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15481. have_audio=yes
  15482. # We may need to link with ossaudio emulation library
  15483. case "$host" in
  15484. *-*-openbsd*|*-*-netbsd*)
  15485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15486. esac
  15487. fi
  15488. fi
  15489. }
  15490. CheckALSA()
  15491. {
  15492. # Check whether --enable-alsa was given.
  15493. if test "${enable_alsa+set}" = set; then :
  15494. enableval=$enable_alsa;
  15495. else
  15496. enable_alsa=yes
  15497. fi
  15498. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15499. alsa_save_CFLAGS="$CFLAGS"
  15500. alsa_save_LDFLAGS="$LDFLAGS"
  15501. alsa_save_LIBS="$LIBS"
  15502. alsa_found=yes
  15503. # Check whether --with-alsa-prefix was given.
  15504. if test "${with_alsa_prefix+set}" = set; then :
  15505. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15506. else
  15507. alsa_prefix=""
  15508. fi
  15509. # Check whether --with-alsa-inc-prefix was given.
  15510. if test "${with_alsa_inc_prefix+set}" = set; then :
  15511. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15512. else
  15513. alsa_inc_prefix=""
  15514. fi
  15515. # Check whether --enable-alsatest was given.
  15516. if test "${enable_alsatest+set}" = set; then :
  15517. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15518. else
  15519. enable_alsatest=yes
  15520. fi
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15522. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15523. if test "$alsa_inc_prefix" != "" ; then
  15524. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15525. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15526. fi
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15528. $as_echo "$ALSA_CFLAGS" >&6; }
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15530. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15531. if test "$alsa_prefix" != "" ; then
  15532. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15533. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15534. fi
  15535. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15536. LIBS=`echo $LIBS | sed 's/-lm//'`
  15537. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15538. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15539. LIBS=`echo $LIBS | sed 's/ //'`
  15540. LIBS="$ALSA_LIBS $LIBS"
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15542. $as_echo "$ALSA_LIBS" >&6; }
  15543. min_alsa_version=1.0.11
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15545. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15546. no_alsa=""
  15547. alsa_min_major_version=`echo $min_alsa_version | \
  15548. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15549. alsa_min_minor_version=`echo $min_alsa_version | \
  15550. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15551. alsa_min_micro_version=`echo $min_alsa_version | \
  15552. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15553. ac_ext=c
  15554. ac_cpp='$CPP $CPPFLAGS'
  15555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15559. /* end confdefs.h. */
  15560. #include <alsa/asoundlib.h>
  15561. int
  15562. main ()
  15563. {
  15564. /* ensure backward compatibility */
  15565. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15566. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15567. #endif
  15568. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15569. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15570. #endif
  15571. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15572. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15573. #endif
  15574. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15575. exit(0);
  15576. # else
  15577. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15578. # error not present
  15579. # endif
  15580. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15581. exit(0);
  15582. # else
  15583. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15584. # error not present
  15585. # endif
  15586. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15587. # error not present
  15588. # endif
  15589. # endif
  15590. # endif
  15591. exit(0);
  15592. ;
  15593. return 0;
  15594. }
  15595. _ACEOF
  15596. if ac_fn_c_try_compile "$LINENO"; then :
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15598. $as_echo "found." >&6; }
  15599. else
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15601. $as_echo "not present." >&6; }
  15602. alsa_found=no
  15603. fi
  15604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15605. ac_ext=c
  15606. ac_cpp='$CPP $CPPFLAGS'
  15607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15610. if test "x$enable_alsatest" = "xyes"; then
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15612. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15613. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15614. $as_echo_n "(cached) " >&6
  15615. else
  15616. ac_check_lib_save_LIBS=$LIBS
  15617. LIBS="-lasound $LIBS"
  15618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15619. /* end confdefs.h. */
  15620. /* Override any GCC internal prototype to avoid an error.
  15621. Use char because int might match the return type of a GCC
  15622. builtin and then its argument prototype would still apply. */
  15623. #ifdef __cplusplus
  15624. extern "C"
  15625. #endif
  15626. char snd_ctl_open ();
  15627. int
  15628. main ()
  15629. {
  15630. return snd_ctl_open ();
  15631. ;
  15632. return 0;
  15633. }
  15634. _ACEOF
  15635. if ac_fn_c_try_link "$LINENO"; then :
  15636. ac_cv_lib_asound_snd_ctl_open=yes
  15637. else
  15638. ac_cv_lib_asound_snd_ctl_open=no
  15639. fi
  15640. rm -f core conftest.err conftest.$ac_objext \
  15641. conftest$ac_exeext conftest.$ac_ext
  15642. LIBS=$ac_check_lib_save_LIBS
  15643. fi
  15644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15645. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15646. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15647. cat >>confdefs.h <<_ACEOF
  15648. #define HAVE_LIBASOUND 1
  15649. _ACEOF
  15650. LIBS="-lasound $LIBS"
  15651. else
  15652. alsa_found=no
  15653. fi
  15654. fi
  15655. if test "x$alsa_found" = "xyes" ; then
  15656. have_alsa=yes
  15657. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15658. LIBS=`echo $LIBS | sed 's/ //'`
  15659. LIBS="-lasound $LIBS"
  15660. fi
  15661. if test "x$alsa_found" = "xno" ; then
  15662. have_alsa=no
  15663. CFLAGS="$alsa_save_CFLAGS"
  15664. LDFLAGS="$alsa_save_LDFLAGS"
  15665. LIBS="$alsa_save_LIBS"
  15666. ALSA_CFLAGS=""
  15667. ALSA_LIBS=""
  15668. fi
  15669. # Restore all flags from before the ALSA detection runs
  15670. CFLAGS="$alsa_save_CFLAGS"
  15671. LDFLAGS="$alsa_save_LDFLAGS"
  15672. LIBS="$alsa_save_LIBS"
  15673. if test x$have_alsa = xyes; then
  15674. # Check whether --enable-alsa-shared was given.
  15675. if test "${enable_alsa_shared+set}" = set; then :
  15676. enableval=$enable_alsa_shared;
  15677. else
  15678. enable_alsa_shared=yes
  15679. fi
  15680. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15681. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15682. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15683. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15684. if test x$have_loadso != xyes && \
  15685. test x$enable_alsa_shared = xyes; then
  15686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15687. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15688. fi
  15689. if test x$have_loadso = xyes && \
  15690. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15691. echo "-- dynamic libasound -> $alsa_lib"
  15692. cat >>confdefs.h <<_ACEOF
  15693. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15694. _ACEOF
  15695. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15696. else
  15697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15698. SUMMARY_audio="${SUMMARY_audio} alsa"
  15699. fi
  15700. have_audio=yes
  15701. fi
  15702. fi
  15703. }
  15704. CheckJACK()
  15705. {
  15706. # Check whether --enable-jack was given.
  15707. if test "${enable_jack+set}" = set; then :
  15708. enableval=$enable_jack;
  15709. else
  15710. enable_jack=yes
  15711. fi
  15712. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15713. pkg_failed=no
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15715. $as_echo_n "checking for JACK... " >&6; }
  15716. if test -n "$JACK_CFLAGS"; then
  15717. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15718. elif test -n "$PKG_CONFIG"; then
  15719. if test -n "$PKG_CONFIG" && \
  15720. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15721. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15722. ac_status=$?
  15723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15724. test $ac_status = 0; }; then
  15725. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15726. else
  15727. pkg_failed=yes
  15728. fi
  15729. else
  15730. pkg_failed=untried
  15731. fi
  15732. if test -n "$JACK_LIBS"; then
  15733. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15734. elif test -n "$PKG_CONFIG"; then
  15735. if test -n "$PKG_CONFIG" && \
  15736. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15737. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15738. ac_status=$?
  15739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15740. test $ac_status = 0; }; then
  15741. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15742. else
  15743. pkg_failed=yes
  15744. fi
  15745. else
  15746. pkg_failed=untried
  15747. fi
  15748. if test $pkg_failed = yes; then
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15750. $as_echo "no" >&6; }
  15751. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15752. _pkg_short_errors_supported=yes
  15753. else
  15754. _pkg_short_errors_supported=no
  15755. fi
  15756. if test $_pkg_short_errors_supported = yes; then
  15757. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15758. else
  15759. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15760. fi
  15761. # Put the nasty error message in config.log where it belongs
  15762. echo "$JACK_PKG_ERRORS" >&5
  15763. audio_jack=no
  15764. elif test $pkg_failed = untried; then
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15766. $as_echo "no" >&6; }
  15767. audio_jack=no
  15768. else
  15769. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15770. JACK_LIBS=$pkg_cv_JACK_LIBS
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15772. $as_echo "yes" >&6; }
  15773. audio_jack=yes
  15774. fi
  15775. if test x$audio_jack = xyes; then
  15776. # Check whether --enable-jack-shared was given.
  15777. if test "${enable_jack_shared+set}" = set; then :
  15778. enableval=$enable_jack_shared;
  15779. else
  15780. enable_jack_shared=yes
  15781. fi
  15782. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15783. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15784. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15785. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15786. if test x$have_loadso != xyes && \
  15787. test x$enable_jack_shared = xyes; then
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15789. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15790. fi
  15791. if test x$have_loadso = xyes && \
  15792. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15793. echo "-- dynamic libjack -> $jack_lib"
  15794. cat >>confdefs.h <<_ACEOF
  15795. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15796. _ACEOF
  15797. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15798. case "$host" in
  15799. # On Solaris, jack must be linked deferred explicitly
  15800. # to prevent undefined symbol failures.
  15801. *-*-solaris*)
  15802. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15804. esac
  15805. else
  15806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15807. SUMMARY_audio="${SUMMARY_audio} jack"
  15808. fi
  15809. have_audio=yes
  15810. fi
  15811. fi
  15812. }
  15813. CheckESD()
  15814. {
  15815. # Check whether --enable-esd was given.
  15816. if test "${enable_esd+set}" = set; then :
  15817. enableval=$enable_esd;
  15818. else
  15819. enable_esd=yes
  15820. fi
  15821. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15822. # Check whether --with-esd-prefix was given.
  15823. if test "${with_esd_prefix+set}" = set; then :
  15824. withval=$with_esd_prefix; esd_prefix="$withval"
  15825. else
  15826. esd_prefix=""
  15827. fi
  15828. # Check whether --with-esd-exec-prefix was given.
  15829. if test "${with_esd_exec_prefix+set}" = set; then :
  15830. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15831. else
  15832. esd_exec_prefix=""
  15833. fi
  15834. # Check whether --enable-esdtest was given.
  15835. if test "${enable_esdtest+set}" = set; then :
  15836. enableval=$enable_esdtest;
  15837. else
  15838. enable_esdtest=yes
  15839. fi
  15840. if test x$esd_exec_prefix != x ; then
  15841. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15842. if test x${ESD_CONFIG+set} != xset ; then
  15843. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15844. fi
  15845. fi
  15846. if test x$esd_prefix != x ; then
  15847. esd_args="$esd_args --prefix=$esd_prefix"
  15848. if test x${ESD_CONFIG+set} != xset ; then
  15849. ESD_CONFIG=$esd_prefix/bin/esd-config
  15850. fi
  15851. fi
  15852. # Extract the first word of "esd-config", so it can be a program name with args.
  15853. set dummy esd-config; ac_word=$2
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15855. $as_echo_n "checking for $ac_word... " >&6; }
  15856. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15857. $as_echo_n "(cached) " >&6
  15858. else
  15859. case $ESD_CONFIG in
  15860. [\\/]* | ?:[\\/]*)
  15861. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15862. ;;
  15863. *)
  15864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15865. for as_dir in $PATH
  15866. do
  15867. IFS=$as_save_IFS
  15868. test -z "$as_dir" && as_dir=.
  15869. for ac_exec_ext in '' $ac_executable_extensions; do
  15870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15871. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15873. break 2
  15874. fi
  15875. done
  15876. done
  15877. IFS=$as_save_IFS
  15878. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15879. ;;
  15880. esac
  15881. fi
  15882. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15883. if test -n "$ESD_CONFIG"; then
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15885. $as_echo "$ESD_CONFIG" >&6; }
  15886. else
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15888. $as_echo "no" >&6; }
  15889. fi
  15890. min_esd_version=0.2.8
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15892. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15893. no_esd=""
  15894. if test "$ESD_CONFIG" = "no" ; then
  15895. no_esd=yes
  15896. else
  15897. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15898. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15899. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15900. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15901. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15902. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15903. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15904. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15905. if test "x$enable_esdtest" = "xyes" ; then
  15906. ac_save_CFLAGS="$CFLAGS"
  15907. ac_save_LIBS="$LIBS"
  15908. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15909. LIBS="$LIBS $ESD_LIBS"
  15910. rm -f conf.esdtest
  15911. if test "$cross_compiling" = yes; then :
  15912. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15913. else
  15914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15915. /* end confdefs.h. */
  15916. #include <stdio.h>
  15917. #include <stdlib.h>
  15918. #include <string.h>
  15919. #include <esd.h>
  15920. char*
  15921. my_strdup (char *str)
  15922. {
  15923. char *new_str;
  15924. if (str)
  15925. {
  15926. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15927. strcpy (new_str, str);
  15928. }
  15929. else
  15930. new_str = NULL;
  15931. return new_str;
  15932. }
  15933. int main ()
  15934. {
  15935. int major, minor, micro;
  15936. char *tmp_version;
  15937. system ("touch conf.esdtest");
  15938. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15939. tmp_version = my_strdup("$min_esd_version");
  15940. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15941. printf("%s, bad version string\n", "$min_esd_version");
  15942. exit(1);
  15943. }
  15944. if (($esd_major_version > major) ||
  15945. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15946. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15947. {
  15948. return 0;
  15949. }
  15950. else
  15951. {
  15952. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15953. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15954. printf("*** best to upgrade to the required version.\n");
  15955. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15956. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15957. printf("*** config.cache before re-running configure\n");
  15958. return 1;
  15959. }
  15960. }
  15961. _ACEOF
  15962. if ac_fn_c_try_run "$LINENO"; then :
  15963. else
  15964. no_esd=yes
  15965. fi
  15966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15968. fi
  15969. CFLAGS="$ac_save_CFLAGS"
  15970. LIBS="$ac_save_LIBS"
  15971. fi
  15972. fi
  15973. if test "x$no_esd" = x ; then
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15975. $as_echo "yes" >&6; }
  15976. have_esd=yes
  15977. else
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15979. $as_echo "no" >&6; }
  15980. if test "$ESD_CONFIG" = "no" ; then
  15981. echo "*** The esd-config script installed by ESD could not be found"
  15982. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15983. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15984. echo "*** full path to esd-config."
  15985. else
  15986. if test -f conf.esdtest ; then
  15987. :
  15988. else
  15989. echo "*** Could not run ESD test program, checking why..."
  15990. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15991. LIBS="$LIBS $ESD_LIBS"
  15992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15993. /* end confdefs.h. */
  15994. #include <stdio.h>
  15995. #include <esd.h>
  15996. int
  15997. main ()
  15998. {
  15999. return 0;
  16000. ;
  16001. return 0;
  16002. }
  16003. _ACEOF
  16004. if ac_fn_c_try_link "$LINENO"; then :
  16005. echo "*** The test program compiled, but did not run. This usually means"
  16006. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16007. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16008. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16009. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16010. echo "*** is required on your system"
  16011. echo "***"
  16012. echo "*** If you have an old version installed, it is best to remove it, although"
  16013. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16014. else
  16015. echo "*** The test program failed to compile or link. See the file config.log for the"
  16016. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16017. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16018. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16019. fi
  16020. rm -f core conftest.err conftest.$ac_objext \
  16021. conftest$ac_exeext conftest.$ac_ext
  16022. CFLAGS="$ac_save_CFLAGS"
  16023. LIBS="$ac_save_LIBS"
  16024. fi
  16025. fi
  16026. ESD_CFLAGS=""
  16027. ESD_LIBS=""
  16028. have_esd=no
  16029. fi
  16030. rm -f conf.esdtest
  16031. if test x$have_esd = xyes; then
  16032. # Check whether --enable-esd-shared was given.
  16033. if test "${enable_esd_shared+set}" = set; then :
  16034. enableval=$enable_esd_shared;
  16035. else
  16036. enable_esd_shared=yes
  16037. fi
  16038. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16039. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16040. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16041. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16042. if test x$have_loadso != xyes && \
  16043. test x$enable_esd_shared = xyes; then
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16045. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16046. fi
  16047. if test x$have_loadso = xyes && \
  16048. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16049. echo "-- dynamic libesd -> $esd_lib"
  16050. cat >>confdefs.h <<_ACEOF
  16051. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16052. _ACEOF
  16053. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16054. else
  16055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16056. SUMMARY_audio="${SUMMARY_audio} esd"
  16057. fi
  16058. have_audio=yes
  16059. fi
  16060. fi
  16061. }
  16062. CheckPulseAudio()
  16063. {
  16064. # Check whether --enable-pulseaudio was given.
  16065. if test "${enable_pulseaudio+set}" = set; then :
  16066. enableval=$enable_pulseaudio;
  16067. else
  16068. enable_pulseaudio=yes
  16069. fi
  16070. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16071. pkg_failed=no
  16072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16073. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16074. if test -n "$PULSEAUDIO_CFLAGS"; then
  16075. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16076. elif test -n "$PKG_CONFIG"; then
  16077. if test -n "$PKG_CONFIG" && \
  16078. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16079. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16080. ac_status=$?
  16081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16082. test $ac_status = 0; }; then
  16083. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16084. else
  16085. pkg_failed=yes
  16086. fi
  16087. else
  16088. pkg_failed=untried
  16089. fi
  16090. if test -n "$PULSEAUDIO_LIBS"; then
  16091. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16092. elif test -n "$PKG_CONFIG"; then
  16093. if test -n "$PKG_CONFIG" && \
  16094. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16095. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16096. ac_status=$?
  16097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16098. test $ac_status = 0; }; then
  16099. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16100. else
  16101. pkg_failed=yes
  16102. fi
  16103. else
  16104. pkg_failed=untried
  16105. fi
  16106. if test $pkg_failed = yes; then
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16108. $as_echo "no" >&6; }
  16109. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16110. _pkg_short_errors_supported=yes
  16111. else
  16112. _pkg_short_errors_supported=no
  16113. fi
  16114. if test $_pkg_short_errors_supported = yes; then
  16115. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16116. else
  16117. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16118. fi
  16119. # Put the nasty error message in config.log where it belongs
  16120. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16121. audio_pulseaudio=no
  16122. elif test $pkg_failed = untried; then
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16124. $as_echo "no" >&6; }
  16125. audio_pulseaudio=no
  16126. else
  16127. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16128. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16130. $as_echo "yes" >&6; }
  16131. audio_pulseaudio=yes
  16132. fi
  16133. if test x$audio_pulseaudio = xyes; then
  16134. # Check whether --enable-pulseaudio-shared was given.
  16135. if test "${enable_pulseaudio_shared+set}" = set; then :
  16136. enableval=$enable_pulseaudio_shared;
  16137. else
  16138. enable_pulseaudio_shared=yes
  16139. fi
  16140. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16141. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16142. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16143. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16144. if test x$have_loadso != xyes && \
  16145. test x$enable_pulseaudio_shared = xyes; then
  16146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16147. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16148. fi
  16149. if test x$have_loadso = xyes && \
  16150. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16151. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16152. cat >>confdefs.h <<_ACEOF
  16153. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16154. _ACEOF
  16155. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16156. case "$host" in
  16157. # On Solaris, pulseaudio must be linked deferred explicitly
  16158. # to prevent undefined symbol failures.
  16159. *-*-solaris*)
  16160. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16162. esac
  16163. else
  16164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16165. SUMMARY_audio="${SUMMARY_audio} pulse"
  16166. fi
  16167. have_audio=yes
  16168. fi
  16169. fi
  16170. }
  16171. CheckARTSC()
  16172. {
  16173. # Check whether --enable-arts was given.
  16174. if test "${enable_arts+set}" = set; then :
  16175. enableval=$enable_arts;
  16176. else
  16177. enable_arts=yes
  16178. fi
  16179. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16180. # Extract the first word of "artsc-config", so it can be a program name with args.
  16181. set dummy artsc-config; ac_word=$2
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16183. $as_echo_n "checking for $ac_word... " >&6; }
  16184. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16185. $as_echo_n "(cached) " >&6
  16186. else
  16187. case $ARTSCONFIG in
  16188. [\\/]* | ?:[\\/]*)
  16189. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16190. ;;
  16191. *)
  16192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16193. for as_dir in $PATH
  16194. do
  16195. IFS=$as_save_IFS
  16196. test -z "$as_dir" && as_dir=.
  16197. for ac_exec_ext in '' $ac_executable_extensions; do
  16198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16199. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16201. break 2
  16202. fi
  16203. done
  16204. done
  16205. IFS=$as_save_IFS
  16206. ;;
  16207. esac
  16208. fi
  16209. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16210. if test -n "$ARTSCONFIG"; then
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16212. $as_echo "$ARTSCONFIG" >&6; }
  16213. else
  16214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16215. $as_echo "no" >&6; }
  16216. fi
  16217. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16218. : # arts isn't installed
  16219. else
  16220. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16221. ARTS_LIBS=`$ARTSCONFIG --libs`
  16222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16223. $as_echo_n "checking for aRts development environment... " >&6; }
  16224. audio_arts=no
  16225. save_CFLAGS="$CFLAGS"
  16226. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16228. /* end confdefs.h. */
  16229. #include <artsc.h>
  16230. int
  16231. main ()
  16232. {
  16233. arts_stream_t stream;
  16234. ;
  16235. return 0;
  16236. }
  16237. _ACEOF
  16238. if ac_fn_c_try_compile "$LINENO"; then :
  16239. audio_arts=yes
  16240. fi
  16241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16242. CFLAGS="$save_CFLAGS"
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16244. $as_echo "$audio_arts" >&6; }
  16245. if test x$audio_arts = xyes; then
  16246. # Check whether --enable-arts-shared was given.
  16247. if test "${enable_arts_shared+set}" = set; then :
  16248. enableval=$enable_arts_shared;
  16249. else
  16250. enable_arts_shared=yes
  16251. fi
  16252. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16253. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16254. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16255. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16256. if test x$have_loadso != xyes && \
  16257. test x$enable_arts_shared = xyes; then
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16259. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16260. fi
  16261. if test x$have_loadso = xyes && \
  16262. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16263. echo "-- dynamic libartsc -> $arts_lib"
  16264. cat >>confdefs.h <<_ACEOF
  16265. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16266. _ACEOF
  16267. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16268. else
  16269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16270. SUMMARY_audio="${SUMMARY_audio} arts"
  16271. fi
  16272. have_audio=yes
  16273. fi
  16274. fi
  16275. fi
  16276. }
  16277. CheckNAS()
  16278. {
  16279. # Check whether --enable-nas was given.
  16280. if test "${enable_nas+set}" = set; then :
  16281. enableval=$enable_nas;
  16282. else
  16283. enable_nas=yes
  16284. fi
  16285. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16286. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16287. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16288. have_nas_hdr=yes
  16289. fi
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16291. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16292. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16293. $as_echo_n "(cached) " >&6
  16294. else
  16295. ac_check_lib_save_LIBS=$LIBS
  16296. LIBS="-laudio $LIBS"
  16297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16298. /* end confdefs.h. */
  16299. /* Override any GCC internal prototype to avoid an error.
  16300. Use char because int might match the return type of a GCC
  16301. builtin and then its argument prototype would still apply. */
  16302. #ifdef __cplusplus
  16303. extern "C"
  16304. #endif
  16305. char AuOpenServer ();
  16306. int
  16307. main ()
  16308. {
  16309. return AuOpenServer ();
  16310. ;
  16311. return 0;
  16312. }
  16313. _ACEOF
  16314. if ac_fn_c_try_link "$LINENO"; then :
  16315. ac_cv_lib_audio_AuOpenServer=yes
  16316. else
  16317. ac_cv_lib_audio_AuOpenServer=no
  16318. fi
  16319. rm -f core conftest.err conftest.$ac_objext \
  16320. conftest$ac_exeext conftest.$ac_ext
  16321. LIBS=$ac_check_lib_save_LIBS
  16322. fi
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16324. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16325. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16326. have_nas_lib=yes
  16327. fi
  16328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16329. $as_echo_n "checking for NAS audio support... " >&6; }
  16330. have_nas=no
  16331. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16332. have_nas=yes
  16333. NAS_LIBS="-laudio"
  16334. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16335. have_nas=yes
  16336. NAS_CFLAGS="-I/usr/X11R6/include/"
  16337. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16338. fi
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16340. $as_echo "$have_nas" >&6; }
  16341. if test x$have_nas = xyes; then
  16342. # Check whether --enable-nas-shared was given.
  16343. if test "${enable_nas_shared+set}" = set; then :
  16344. enableval=$enable_nas_shared;
  16345. else
  16346. enable_nas_shared=yes
  16347. fi
  16348. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16349. if test x$have_loadso != xyes && \
  16350. test x$enable_nas_shared = xyes; then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16352. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16353. fi
  16354. if test x$have_loadso = xyes && \
  16355. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16356. echo "-- dynamic libaudio -> $nas_lib"
  16357. cat >>confdefs.h <<_ACEOF
  16358. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16359. _ACEOF
  16360. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16361. else
  16362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16363. SUMMARY_audio="${SUMMARY_audio} nas"
  16364. fi
  16365. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16366. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16367. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16368. have_audio=yes
  16369. fi
  16370. fi
  16371. }
  16372. CheckSNDIO()
  16373. {
  16374. # Check whether --enable-sndio was given.
  16375. if test "${enable_sndio+set}" = set; then :
  16376. enableval=$enable_sndio;
  16377. else
  16378. enable_sndio=yes
  16379. fi
  16380. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16381. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16382. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16383. have_sndio_hdr=yes
  16384. fi
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16386. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16387. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16388. $as_echo_n "(cached) " >&6
  16389. else
  16390. ac_check_lib_save_LIBS=$LIBS
  16391. LIBS="-lsndio $LIBS"
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. /* Override any GCC internal prototype to avoid an error.
  16395. Use char because int might match the return type of a GCC
  16396. builtin and then its argument prototype would still apply. */
  16397. #ifdef __cplusplus
  16398. extern "C"
  16399. #endif
  16400. char sio_open ();
  16401. int
  16402. main ()
  16403. {
  16404. return sio_open ();
  16405. ;
  16406. return 0;
  16407. }
  16408. _ACEOF
  16409. if ac_fn_c_try_link "$LINENO"; then :
  16410. ac_cv_lib_sndio_sio_open=yes
  16411. else
  16412. ac_cv_lib_sndio_sio_open=no
  16413. fi
  16414. rm -f core conftest.err conftest.$ac_objext \
  16415. conftest$ac_exeext conftest.$ac_ext
  16416. LIBS=$ac_check_lib_save_LIBS
  16417. fi
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16419. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16420. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16421. have_sndio_lib=yes
  16422. fi
  16423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16424. $as_echo_n "checking for sndio audio support... " >&6; }
  16425. have_sndio=no
  16426. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16427. have_sndio=yes
  16428. SNDIO_LIBS="-lsndio"
  16429. fi
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16431. $as_echo "$have_sndio" >&6; }
  16432. if test x$have_sndio = xyes; then
  16433. # Check whether --enable-sndio-shared was given.
  16434. if test "${enable_sndio_shared+set}" = set; then :
  16435. enableval=$enable_sndio_shared;
  16436. else
  16437. enable_sndio_shared=yes
  16438. fi
  16439. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16440. if test x$have_loadso != xyes && \
  16441. test x$enable_sndio_shared = xyes; then
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16443. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16444. fi
  16445. if test x$have_loadso = xyes && \
  16446. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16447. echo "-- dynamic libsndio -> $sndio_lib"
  16448. cat >>confdefs.h <<_ACEOF
  16449. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16450. _ACEOF
  16451. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16452. else
  16453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16454. SUMMARY_audio="${SUMMARY_audio} sndio"
  16455. fi
  16456. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16457. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16458. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16459. have_audio=yes
  16460. fi
  16461. fi
  16462. }
  16463. CheckFusionSound()
  16464. {
  16465. # Check whether --enable-fusionsound was given.
  16466. if test "${enable_fusionsound+set}" = set; then :
  16467. enableval=$enable_fusionsound;
  16468. else
  16469. enable_fusionsound=no
  16470. fi
  16471. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16472. pkg_failed=no
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16474. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16475. if test -n "$FUSIONSOUND_CFLAGS"; then
  16476. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16477. elif test -n "$PKG_CONFIG"; then
  16478. if test -n "$PKG_CONFIG" && \
  16479. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16480. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16481. ac_status=$?
  16482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16483. test $ac_status = 0; }; then
  16484. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16485. else
  16486. pkg_failed=yes
  16487. fi
  16488. else
  16489. pkg_failed=untried
  16490. fi
  16491. if test -n "$FUSIONSOUND_LIBS"; then
  16492. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16493. elif test -n "$PKG_CONFIG"; then
  16494. if test -n "$PKG_CONFIG" && \
  16495. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16496. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16497. ac_status=$?
  16498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16499. test $ac_status = 0; }; then
  16500. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16501. else
  16502. pkg_failed=yes
  16503. fi
  16504. else
  16505. pkg_failed=untried
  16506. fi
  16507. if test $pkg_failed = yes; then
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16509. $as_echo "no" >&6; }
  16510. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16511. _pkg_short_errors_supported=yes
  16512. else
  16513. _pkg_short_errors_supported=no
  16514. fi
  16515. if test $_pkg_short_errors_supported = yes; then
  16516. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16517. else
  16518. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16519. fi
  16520. # Put the nasty error message in config.log where it belongs
  16521. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16522. fusionsound=no
  16523. elif test $pkg_failed = untried; then
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16525. $as_echo "no" >&6; }
  16526. fusionsound=no
  16527. else
  16528. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16529. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16531. $as_echo "yes" >&6; }
  16532. fusionsound=yes
  16533. fi
  16534. if test x$fusionsound = xyes; then
  16535. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16536. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16537. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16538. # Check whether --enable-fusionsound-shared was given.
  16539. if test "${enable_fusionsound_shared+set}" = set; then :
  16540. enableval=$enable_fusionsound_shared;
  16541. else
  16542. enable_fusionsound_shared=yes
  16543. fi
  16544. fusionsound_shared=no
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16546. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16547. if test x$have_loadso != xyes && \
  16548. test x$enable_fusionsound_shared = xyes; then
  16549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16550. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16551. fi
  16552. if test x$have_loadso = xyes && \
  16553. test x$enable_fusionsound_shared = xyes; then
  16554. cat >>confdefs.h <<_ACEOF
  16555. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16556. _ACEOF
  16557. fusionsound_shared=yes
  16558. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16559. else
  16560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16561. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16562. fi
  16563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16564. $as_echo "$fusionsound_shared" >&6; }
  16565. have_audio=yes
  16566. fi
  16567. fi
  16568. }
  16569. CheckDiskAudio()
  16570. {
  16571. # Check whether --enable-diskaudio was given.
  16572. if test "${enable_diskaudio+set}" = set; then :
  16573. enableval=$enable_diskaudio;
  16574. else
  16575. enable_diskaudio=yes
  16576. fi
  16577. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16578. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16579. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16580. SUMMARY_audio="${SUMMARY_audio} disk"
  16581. fi
  16582. }
  16583. CheckDummyAudio()
  16584. {
  16585. # Check whether --enable-dummyaudio was given.
  16586. if test "${enable_dummyaudio+set}" = set; then :
  16587. enableval=$enable_dummyaudio;
  16588. else
  16589. enable_dummyaudio=yes
  16590. fi
  16591. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16592. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16593. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16594. SUMMARY_audio="${SUMMARY_audio} dummy"
  16595. fi
  16596. }
  16597. CheckLibSampleRate()
  16598. {
  16599. # Check whether --enable-libsamplerate was given.
  16600. if test "${enable_libsamplerate+set}" = set; then :
  16601. enableval=$enable_libsamplerate;
  16602. else
  16603. enable_libsamplerate=yes
  16604. fi
  16605. if test x$enable_libsamplerate = xyes; then
  16606. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16607. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16608. have_samplerate_h_hdr=yes
  16609. else
  16610. have_samplerate_h_hdr=no
  16611. fi
  16612. if test x$have_samplerate_h_hdr = xyes; then
  16613. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16614. # Check whether --enable-libsamplerate-shared was given.
  16615. if test "${enable_libsamplerate_shared+set}" = set; then :
  16616. enableval=$enable_libsamplerate_shared;
  16617. else
  16618. enable_libsamplerate_shared=yes
  16619. fi
  16620. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16621. if test x$have_loadso != xyes && \
  16622. test x$enable_libsamplerate_shared = xyes; then
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16624. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16625. fi
  16626. if test x$have_loadso = xyes && \
  16627. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16628. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16629. cat >>confdefs.h <<_ACEOF
  16630. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16631. _ACEOF
  16632. else
  16633. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16634. fi
  16635. fi
  16636. fi
  16637. }
  16638. CheckVisibilityHidden()
  16639. {
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16641. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16642. have_gcc_fvisibility=no
  16643. visibility_CFLAGS="-fvisibility=hidden"
  16644. save_CFLAGS="$CFLAGS"
  16645. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16647. /* end confdefs.h. */
  16648. #if !defined(__GNUC__) || __GNUC__ < 4
  16649. #error SDL only uses visibility attributes in GCC 4 or newer
  16650. #endif
  16651. int
  16652. main ()
  16653. {
  16654. ;
  16655. return 0;
  16656. }
  16657. _ACEOF
  16658. if ac_fn_c_try_compile "$LINENO"; then :
  16659. have_gcc_fvisibility=yes
  16660. fi
  16661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16663. $as_echo "$have_gcc_fvisibility" >&6; }
  16664. CFLAGS="$save_CFLAGS"
  16665. if test x$have_gcc_fvisibility = xyes; then
  16666. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16667. fi
  16668. }
  16669. CheckNoStrictAliasing()
  16670. {
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16672. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16673. have_gcc_no_strict_aliasing=no
  16674. save_CFLAGS="$CFLAGS"
  16675. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16677. /* end confdefs.h. */
  16678. int x = 0;
  16679. int
  16680. main ()
  16681. {
  16682. ;
  16683. return 0;
  16684. }
  16685. _ACEOF
  16686. if ac_fn_c_try_compile "$LINENO"; then :
  16687. have_gcc_no_strict_aliasing=yes
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16691. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16692. CFLAGS="$save_CFLAGS"
  16693. if test x$have_gcc_no_strict_aliasing = xyes; then
  16694. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16695. fi
  16696. }
  16697. CheckStackBoundary()
  16698. {
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16700. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16701. have_gcc_preferred_stack_boundary=no
  16702. save_CFLAGS="$CFLAGS"
  16703. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16705. /* end confdefs.h. */
  16706. int x = 0;
  16707. int
  16708. main ()
  16709. {
  16710. ;
  16711. return 0;
  16712. }
  16713. _ACEOF
  16714. if ac_fn_c_try_compile "$LINENO"; then :
  16715. have_gcc_preferred_stack_boundary=yes
  16716. fi
  16717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16719. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16720. CFLAGS="$save_CFLAGS"
  16721. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16722. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16723. fi
  16724. }
  16725. CheckDeclarationAfterStatement()
  16726. {
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16728. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16729. have_gcc_declaration_after_statement=no
  16730. save_CFLAGS="$CFLAGS"
  16731. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16733. /* end confdefs.h. */
  16734. int x = 0;
  16735. int
  16736. main ()
  16737. {
  16738. ;
  16739. return 0;
  16740. }
  16741. _ACEOF
  16742. if ac_fn_c_try_compile "$LINENO"; then :
  16743. have_gcc_declaration_after_statement=yes
  16744. fi
  16745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16747. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16748. CFLAGS="$save_CFLAGS"
  16749. if test x$have_gcc_declaration_after_statement = xyes; then
  16750. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16751. fi
  16752. }
  16753. CheckWarnAll()
  16754. {
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16756. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16757. have_gcc_Wall=no
  16758. save_CFLAGS="$CFLAGS"
  16759. CFLAGS="$save_CFLAGS -Wall"
  16760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16761. /* end confdefs.h. */
  16762. int x = 0;
  16763. int
  16764. main ()
  16765. {
  16766. ;
  16767. return 0;
  16768. }
  16769. _ACEOF
  16770. if ac_fn_c_try_compile "$LINENO"; then :
  16771. have_gcc_Wall=yes
  16772. fi
  16773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16775. $as_echo "$have_gcc_Wall" >&6; }
  16776. CFLAGS="$save_CFLAGS"
  16777. if test x$have_gcc_Wall = xyes; then
  16778. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16780. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16781. need_gcc_Wno_multichar=no
  16782. case "$host" in
  16783. *-*-haiku*)
  16784. need_gcc_Wno_multichar=yes
  16785. ;;
  16786. esac
  16787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16788. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16789. if test x$need_gcc_Wno_multichar = xyes; then
  16790. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16791. fi
  16792. fi
  16793. }
  16794. CheckWayland()
  16795. {
  16796. # Check whether --enable-video-wayland was given.
  16797. if test "${enable_video_wayland+set}" = set; then :
  16798. enableval=$enable_video_wayland;
  16799. else
  16800. enable_video_wayland=yes
  16801. fi
  16802. # Check whether --enable-video-wayland-qt-touch was given.
  16803. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16804. enableval=$enable_video_wayland_qt_touch;
  16805. else
  16806. enable_video_wayland_qt_touch=yes
  16807. fi
  16808. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16810. $as_echo_n "checking for Wayland support... " >&6; }
  16811. video_wayland=no
  16812. if test x$video_opengl_egl = xyes && \
  16813. test x$video_opengles_v2 = xyes; then
  16814. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16815. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16816. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16817. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16818. video_wayland=yes
  16819. fi
  16820. fi
  16821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16822. $as_echo "$video_wayland" >&6; }
  16823. if test x$video_wayland = xyes; then
  16824. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16825. if test x$enable_video_wayland_qt_touch = xyes; then
  16826. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16827. fi
  16828. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16829. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16830. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16831. # Check whether --enable-wayland-shared was given.
  16832. if test "${enable_wayland_shared+set}" = set; then :
  16833. enableval=$enable_wayland_shared;
  16834. else
  16835. enable_wayland_shared=maybe
  16836. fi
  16837. case "$host" in
  16838. *)
  16839. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16840. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16841. if test x$wayland_egl_lib = x; then
  16842. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16843. fi
  16844. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16845. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16846. ;;
  16847. esac
  16848. if test x$enable_wayland_shared = xmaybe; then
  16849. enable_wayland_shared=yes
  16850. fi
  16851. if test x$have_loadso != xyes && \
  16852. test x$enable_wayland_shared = xyes; then
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16854. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16855. enable_wayland_shared=no
  16856. fi
  16857. if test x$have_loadso = xyes && \
  16858. test x$enable_wayland_shared = xyes && \
  16859. test x$wayland_client_lib != x && \
  16860. test x$wayland_egl_lib != x && \
  16861. test x$wayland_cursor_lib != x && \
  16862. test x$xkbcommon_lib != x; then
  16863. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16864. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16865. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16866. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16867. cat >>confdefs.h <<_ACEOF
  16868. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16869. _ACEOF
  16870. cat >>confdefs.h <<_ACEOF
  16871. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16872. _ACEOF
  16873. cat >>confdefs.h <<_ACEOF
  16874. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16875. _ACEOF
  16876. cat >>confdefs.h <<_ACEOF
  16877. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16878. _ACEOF
  16879. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16880. else
  16881. enable_wayland_shared=no
  16882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16883. SUMMARY_video="${SUMMARY_video} wayland"
  16884. fi
  16885. have_video=yes
  16886. fi
  16887. fi
  16888. }
  16889. CheckNativeClient()
  16890. {
  16891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16892. /* end confdefs.h. */
  16893. #if !defined(__native_client__)
  16894. #error "NO NACL"
  16895. #endif
  16896. int
  16897. main ()
  16898. {
  16899. ;
  16900. return 0;
  16901. }
  16902. _ACEOF
  16903. if ac_fn_c_try_compile "$LINENO"; then :
  16904. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16905. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16906. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16907. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16908. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16909. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16910. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16911. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16912. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16913. SUMMARY_audio="${SUMMARY_audio} nacl"
  16914. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16915. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16916. fi
  16917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16918. }
  16919. CheckRPI()
  16920. {
  16921. # Check whether --enable-video-rpi was given.
  16922. if test "${enable_video_rpi+set}" = set; then :
  16923. enableval=$enable_video_rpi;
  16924. else
  16925. enable_video_rpi=yes
  16926. fi
  16927. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16928. pkg_failed=no
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  16930. $as_echo_n "checking for RPI... " >&6; }
  16931. if test -n "$RPI_CFLAGS"; then
  16932. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  16933. elif test -n "$PKG_CONFIG"; then
  16934. if test -n "$PKG_CONFIG" && \
  16935. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16936. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16937. ac_status=$?
  16938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16939. test $ac_status = 0; }; then
  16940. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  16941. else
  16942. pkg_failed=yes
  16943. fi
  16944. else
  16945. pkg_failed=untried
  16946. fi
  16947. if test -n "$RPI_LIBS"; then
  16948. pkg_cv_RPI_LIBS="$RPI_LIBS"
  16949. elif test -n "$PKG_CONFIG"; then
  16950. if test -n "$PKG_CONFIG" && \
  16951. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16952. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16953. ac_status=$?
  16954. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16955. test $ac_status = 0; }; then
  16956. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  16957. else
  16958. pkg_failed=yes
  16959. fi
  16960. else
  16961. pkg_failed=untried
  16962. fi
  16963. if test $pkg_failed = yes; then
  16964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16965. $as_echo "no" >&6; }
  16966. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16967. _pkg_short_errors_supported=yes
  16968. else
  16969. _pkg_short_errors_supported=no
  16970. fi
  16971. if test $_pkg_short_errors_supported = yes; then
  16972. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  16973. else
  16974. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  16975. fi
  16976. # Put the nasty error message in config.log where it belongs
  16977. echo "$RPI_PKG_ERRORS" >&5
  16978. video_rpi=no
  16979. elif test $pkg_failed = untried; then
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16981. $as_echo "no" >&6; }
  16982. video_rpi=no
  16983. else
  16984. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  16985. RPI_LIBS=$pkg_cv_RPI_LIBS
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16987. $as_echo "yes" >&6; }
  16988. video_rpi=yes
  16989. fi
  16990. if test x$video_rpi = xno; then
  16991. if test x$ARCH = xnetbsd; then
  16992. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16993. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16994. else
  16995. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16996. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16997. fi
  16998. fi
  16999. # Save the original compiler flags and libraries
  17000. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17001. # Add the Raspberry Pi compiler flags and libraries
  17002. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17004. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17005. have_video_rpi=no
  17006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17007. /* end confdefs.h. */
  17008. #include <bcm_host.h>
  17009. int
  17010. main ()
  17011. {
  17012. bcm_host_init();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_c_try_link "$LINENO"; then :
  17018. have_video_rpi=yes
  17019. fi
  17020. rm -f core conftest.err conftest.$ac_objext \
  17021. conftest$ac_exeext conftest.$ac_ext
  17022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17023. $as_echo "$have_video_rpi" >&6; }
  17024. # Restore the compiler flags and libraries
  17025. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17026. if test x$have_video_rpi = xyes; then
  17027. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17028. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17029. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17031. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17032. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17033. SUMMARY_video="${SUMMARY_video} rpi"
  17034. fi
  17035. fi
  17036. }
  17037. CheckX11()
  17038. {
  17039. # Check whether --enable-video-x11 was given.
  17040. if test "${enable_video_x11+set}" = set; then :
  17041. enableval=$enable_video_x11;
  17042. else
  17043. enable_video_x11=yes
  17044. fi
  17045. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17046. case "$host" in
  17047. *-*-darwin*)
  17048. # This isn't necessary for X11, but fixes GLX detection
  17049. if test "x$x_includes" = xNONE && \
  17050. test "x$x_libraries" = xNONE && \
  17051. test -d /usr/X11R6/include && \
  17052. test -d /usr/X11R6/lib; then
  17053. x_includes="/usr/X11R6/include"
  17054. x_libraries="/usr/X11R6/lib"
  17055. fi
  17056. ;;
  17057. esac
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17059. $as_echo_n "checking for X... " >&6; }
  17060. # Check whether --with-x was given.
  17061. if test "${with_x+set}" = set; then :
  17062. withval=$with_x;
  17063. fi
  17064. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17065. if test "x$with_x" = xno; then
  17066. # The user explicitly disabled X.
  17067. have_x=disabled
  17068. else
  17069. case $x_includes,$x_libraries in #(
  17070. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17071. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17072. $as_echo_n "(cached) " >&6
  17073. else
  17074. # One or both of the vars are not set, and there is no cached value.
  17075. ac_x_includes=no ac_x_libraries=no
  17076. rm -f -r conftest.dir
  17077. if mkdir conftest.dir; then
  17078. cd conftest.dir
  17079. cat >Imakefile <<'_ACEOF'
  17080. incroot:
  17081. @echo incroot='${INCROOT}'
  17082. usrlibdir:
  17083. @echo usrlibdir='${USRLIBDIR}'
  17084. libdir:
  17085. @echo libdir='${LIBDIR}'
  17086. _ACEOF
  17087. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17088. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17089. for ac_var in incroot usrlibdir libdir; do
  17090. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17091. done
  17092. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17093. for ac_extension in a so sl dylib la dll; do
  17094. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17095. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17096. ac_im_usrlibdir=$ac_im_libdir; break
  17097. fi
  17098. done
  17099. # Screen out bogus values from the imake configuration. They are
  17100. # bogus both because they are the default anyway, and because
  17101. # using them would break gcc on systems where it needs fixed includes.
  17102. case $ac_im_incroot in
  17103. /usr/include) ac_x_includes= ;;
  17104. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17105. esac
  17106. case $ac_im_usrlibdir in
  17107. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17108. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17109. esac
  17110. fi
  17111. cd ..
  17112. rm -f -r conftest.dir
  17113. fi
  17114. # Standard set of common directories for X headers.
  17115. # Check X11 before X11Rn because it is often a symlink to the current release.
  17116. ac_x_header_dirs='
  17117. /usr/X11/include
  17118. /usr/X11R7/include
  17119. /usr/X11R6/include
  17120. /usr/X11R5/include
  17121. /usr/X11R4/include
  17122. /usr/include/X11
  17123. /usr/include/X11R7
  17124. /usr/include/X11R6
  17125. /usr/include/X11R5
  17126. /usr/include/X11R4
  17127. /usr/local/X11/include
  17128. /usr/local/X11R7/include
  17129. /usr/local/X11R6/include
  17130. /usr/local/X11R5/include
  17131. /usr/local/X11R4/include
  17132. /usr/local/include/X11
  17133. /usr/local/include/X11R7
  17134. /usr/local/include/X11R6
  17135. /usr/local/include/X11R5
  17136. /usr/local/include/X11R4
  17137. /usr/X386/include
  17138. /usr/x386/include
  17139. /usr/XFree86/include/X11
  17140. /usr/include
  17141. /usr/local/include
  17142. /usr/unsupported/include
  17143. /usr/athena/include
  17144. /usr/local/x11r5/include
  17145. /usr/lpp/Xamples/include
  17146. /usr/openwin/include
  17147. /usr/openwin/share/include'
  17148. if test "$ac_x_includes" = no; then
  17149. # Guess where to find include files, by looking for Xlib.h.
  17150. # First, try using that file with no special directory specified.
  17151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17152. /* end confdefs.h. */
  17153. #include <X11/Xlib.h>
  17154. _ACEOF
  17155. if ac_fn_c_try_cpp "$LINENO"; then :
  17156. # We can compile using X headers with no special include directory.
  17157. ac_x_includes=
  17158. else
  17159. for ac_dir in $ac_x_header_dirs; do
  17160. if test -r "$ac_dir/X11/Xlib.h"; then
  17161. ac_x_includes=$ac_dir
  17162. break
  17163. fi
  17164. done
  17165. fi
  17166. rm -f conftest.err conftest.i conftest.$ac_ext
  17167. fi # $ac_x_includes = no
  17168. if test "$ac_x_libraries" = no; then
  17169. # Check for the libraries.
  17170. # See if we find them without any special options.
  17171. # Don't add to $LIBS permanently.
  17172. ac_save_LIBS=$LIBS
  17173. LIBS="-lX11 $LIBS"
  17174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17175. /* end confdefs.h. */
  17176. #include <X11/Xlib.h>
  17177. int
  17178. main ()
  17179. {
  17180. XrmInitialize ()
  17181. ;
  17182. return 0;
  17183. }
  17184. _ACEOF
  17185. if ac_fn_c_try_link "$LINENO"; then :
  17186. LIBS=$ac_save_LIBS
  17187. # We can link X programs with no special library path.
  17188. ac_x_libraries=
  17189. else
  17190. LIBS=$ac_save_LIBS
  17191. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17192. do
  17193. # Don't even attempt the hair of trying to link an X program!
  17194. for ac_extension in a so sl dylib la dll; do
  17195. if test -r "$ac_dir/libX11.$ac_extension"; then
  17196. ac_x_libraries=$ac_dir
  17197. break 2
  17198. fi
  17199. done
  17200. done
  17201. fi
  17202. rm -f core conftest.err conftest.$ac_objext \
  17203. conftest$ac_exeext conftest.$ac_ext
  17204. fi # $ac_x_libraries = no
  17205. case $ac_x_includes,$ac_x_libraries in #(
  17206. no,* | *,no | *\'*)
  17207. # Didn't find X, or a directory has "'" in its name.
  17208. ac_cv_have_x="have_x=no";; #(
  17209. *)
  17210. # Record where we found X for the cache.
  17211. ac_cv_have_x="have_x=yes\
  17212. ac_x_includes='$ac_x_includes'\
  17213. ac_x_libraries='$ac_x_libraries'"
  17214. esac
  17215. fi
  17216. ;; #(
  17217. *) have_x=yes;;
  17218. esac
  17219. eval "$ac_cv_have_x"
  17220. fi # $with_x != no
  17221. if test "$have_x" != yes; then
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17223. $as_echo "$have_x" >&6; }
  17224. no_x=yes
  17225. else
  17226. # If each of the values was on the command line, it overrides each guess.
  17227. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17228. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17229. # Update the cache value to reflect the command line values.
  17230. ac_cv_have_x="have_x=yes\
  17231. ac_x_includes='$x_includes'\
  17232. ac_x_libraries='$x_libraries'"
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17234. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17235. fi
  17236. if test "$no_x" = yes; then
  17237. # Not all programs may use this symbol, but it does not hurt to define it.
  17238. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17239. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17240. else
  17241. if test -n "$x_includes"; then
  17242. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17243. fi
  17244. # It would also be nice to do this for all -L options, not just this one.
  17245. if test -n "$x_libraries"; then
  17246. X_LIBS="$X_LIBS -L$x_libraries"
  17247. # For Solaris; some versions of Sun CC require a space after -R and
  17248. # others require no space. Words are not sufficient . . . .
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17250. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17251. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17252. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17253. ac_c_werror_flag=yes
  17254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17255. /* end confdefs.h. */
  17256. int
  17257. main ()
  17258. {
  17259. ;
  17260. return 0;
  17261. }
  17262. _ACEOF
  17263. if ac_fn_c_try_link "$LINENO"; then :
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17265. $as_echo "no" >&6; }
  17266. X_LIBS="$X_LIBS -R$x_libraries"
  17267. else
  17268. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17270. /* end confdefs.h. */
  17271. int
  17272. main ()
  17273. {
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_link "$LINENO"; then :
  17279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17280. $as_echo "yes" >&6; }
  17281. X_LIBS="$X_LIBS -R $x_libraries"
  17282. else
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17284. $as_echo "neither works" >&6; }
  17285. fi
  17286. rm -f core conftest.err conftest.$ac_objext \
  17287. conftest$ac_exeext conftest.$ac_ext
  17288. fi
  17289. rm -f core conftest.err conftest.$ac_objext \
  17290. conftest$ac_exeext conftest.$ac_ext
  17291. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17292. LIBS=$ac_xsave_LIBS
  17293. fi
  17294. # Check for system-dependent libraries X programs must link with.
  17295. # Do this before checking for the system-independent R6 libraries
  17296. # (-lICE), since we may need -lsocket or whatever for X linking.
  17297. if test "$ISC" = yes; then
  17298. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17299. else
  17300. # Martyn Johnson says this is needed for Ultrix, if the X
  17301. # libraries were built with DECnet support. And Karl Berry says
  17302. # the Alpha needs dnet_stub (dnet does not exist).
  17303. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. /* Override any GCC internal prototype to avoid an error.
  17307. Use char because int might match the return type of a GCC
  17308. builtin and then its argument prototype would still apply. */
  17309. #ifdef __cplusplus
  17310. extern "C"
  17311. #endif
  17312. char XOpenDisplay ();
  17313. int
  17314. main ()
  17315. {
  17316. return XOpenDisplay ();
  17317. ;
  17318. return 0;
  17319. }
  17320. _ACEOF
  17321. if ac_fn_c_try_link "$LINENO"; then :
  17322. else
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17324. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17325. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17326. $as_echo_n "(cached) " >&6
  17327. else
  17328. ac_check_lib_save_LIBS=$LIBS
  17329. LIBS="-ldnet $LIBS"
  17330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17331. /* end confdefs.h. */
  17332. /* Override any GCC internal prototype to avoid an error.
  17333. Use char because int might match the return type of a GCC
  17334. builtin and then its argument prototype would still apply. */
  17335. #ifdef __cplusplus
  17336. extern "C"
  17337. #endif
  17338. char dnet_ntoa ();
  17339. int
  17340. main ()
  17341. {
  17342. return dnet_ntoa ();
  17343. ;
  17344. return 0;
  17345. }
  17346. _ACEOF
  17347. if ac_fn_c_try_link "$LINENO"; then :
  17348. ac_cv_lib_dnet_dnet_ntoa=yes
  17349. else
  17350. ac_cv_lib_dnet_dnet_ntoa=no
  17351. fi
  17352. rm -f core conftest.err conftest.$ac_objext \
  17353. conftest$ac_exeext conftest.$ac_ext
  17354. LIBS=$ac_check_lib_save_LIBS
  17355. fi
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17357. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17358. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17359. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17360. fi
  17361. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17363. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17364. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17365. $as_echo_n "(cached) " >&6
  17366. else
  17367. ac_check_lib_save_LIBS=$LIBS
  17368. LIBS="-ldnet_stub $LIBS"
  17369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17370. /* end confdefs.h. */
  17371. /* Override any GCC internal prototype to avoid an error.
  17372. Use char because int might match the return type of a GCC
  17373. builtin and then its argument prototype would still apply. */
  17374. #ifdef __cplusplus
  17375. extern "C"
  17376. #endif
  17377. char dnet_ntoa ();
  17378. int
  17379. main ()
  17380. {
  17381. return dnet_ntoa ();
  17382. ;
  17383. return 0;
  17384. }
  17385. _ACEOF
  17386. if ac_fn_c_try_link "$LINENO"; then :
  17387. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17388. else
  17389. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17390. fi
  17391. rm -f core conftest.err conftest.$ac_objext \
  17392. conftest$ac_exeext conftest.$ac_ext
  17393. LIBS=$ac_check_lib_save_LIBS
  17394. fi
  17395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17396. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17397. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17398. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17399. fi
  17400. fi
  17401. fi
  17402. rm -f core conftest.err conftest.$ac_objext \
  17403. conftest$ac_exeext conftest.$ac_ext
  17404. LIBS="$ac_xsave_LIBS"
  17405. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17406. # to get the SysV transport functions.
  17407. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17408. # needs -lnsl.
  17409. # The nsl library prevents programs from opening the X display
  17410. # on Irix 5.2, according to T.E. Dickey.
  17411. # The functions gethostbyname, getservbyname, and inet_addr are
  17412. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17413. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17414. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17415. fi
  17416. if test $ac_cv_func_gethostbyname = no; then
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17418. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17419. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17420. $as_echo_n "(cached) " >&6
  17421. else
  17422. ac_check_lib_save_LIBS=$LIBS
  17423. LIBS="-lnsl $LIBS"
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. /* Override any GCC internal prototype to avoid an error.
  17427. Use char because int might match the return type of a GCC
  17428. builtin and then its argument prototype would still apply. */
  17429. #ifdef __cplusplus
  17430. extern "C"
  17431. #endif
  17432. char gethostbyname ();
  17433. int
  17434. main ()
  17435. {
  17436. return gethostbyname ();
  17437. ;
  17438. return 0;
  17439. }
  17440. _ACEOF
  17441. if ac_fn_c_try_link "$LINENO"; then :
  17442. ac_cv_lib_nsl_gethostbyname=yes
  17443. else
  17444. ac_cv_lib_nsl_gethostbyname=no
  17445. fi
  17446. rm -f core conftest.err conftest.$ac_objext \
  17447. conftest$ac_exeext conftest.$ac_ext
  17448. LIBS=$ac_check_lib_save_LIBS
  17449. fi
  17450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17451. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17452. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17453. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17454. fi
  17455. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17457. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17458. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17459. $as_echo_n "(cached) " >&6
  17460. else
  17461. ac_check_lib_save_LIBS=$LIBS
  17462. LIBS="-lbsd $LIBS"
  17463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17464. /* end confdefs.h. */
  17465. /* Override any GCC internal prototype to avoid an error.
  17466. Use char because int might match the return type of a GCC
  17467. builtin and then its argument prototype would still apply. */
  17468. #ifdef __cplusplus
  17469. extern "C"
  17470. #endif
  17471. char gethostbyname ();
  17472. int
  17473. main ()
  17474. {
  17475. return gethostbyname ();
  17476. ;
  17477. return 0;
  17478. }
  17479. _ACEOF
  17480. if ac_fn_c_try_link "$LINENO"; then :
  17481. ac_cv_lib_bsd_gethostbyname=yes
  17482. else
  17483. ac_cv_lib_bsd_gethostbyname=no
  17484. fi
  17485. rm -f core conftest.err conftest.$ac_objext \
  17486. conftest$ac_exeext conftest.$ac_ext
  17487. LIBS=$ac_check_lib_save_LIBS
  17488. fi
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17490. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17491. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17492. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17493. fi
  17494. fi
  17495. fi
  17496. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17497. # socket/setsockopt and other routines are undefined under SCO ODT
  17498. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17499. # on later versions), says Simon Leinen: it contains gethostby*
  17500. # variants that don't use the name server (or something). -lsocket
  17501. # must be given before -lnsl if both are needed. We assume that
  17502. # if connect needs -lnsl, so does gethostbyname.
  17503. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17504. if test "x$ac_cv_func_connect" = xyes; then :
  17505. fi
  17506. if test $ac_cv_func_connect = no; then
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17508. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17509. if ${ac_cv_lib_socket_connect+:} false; then :
  17510. $as_echo_n "(cached) " >&6
  17511. else
  17512. ac_check_lib_save_LIBS=$LIBS
  17513. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17515. /* end confdefs.h. */
  17516. /* Override any GCC internal prototype to avoid an error.
  17517. Use char because int might match the return type of a GCC
  17518. builtin and then its argument prototype would still apply. */
  17519. #ifdef __cplusplus
  17520. extern "C"
  17521. #endif
  17522. char connect ();
  17523. int
  17524. main ()
  17525. {
  17526. return connect ();
  17527. ;
  17528. return 0;
  17529. }
  17530. _ACEOF
  17531. if ac_fn_c_try_link "$LINENO"; then :
  17532. ac_cv_lib_socket_connect=yes
  17533. else
  17534. ac_cv_lib_socket_connect=no
  17535. fi
  17536. rm -f core conftest.err conftest.$ac_objext \
  17537. conftest$ac_exeext conftest.$ac_ext
  17538. LIBS=$ac_check_lib_save_LIBS
  17539. fi
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17541. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17542. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17543. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17544. fi
  17545. fi
  17546. # Guillermo Gomez says -lposix is necessary on A/UX.
  17547. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17548. if test "x$ac_cv_func_remove" = xyes; then :
  17549. fi
  17550. if test $ac_cv_func_remove = no; then
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17552. $as_echo_n "checking for remove in -lposix... " >&6; }
  17553. if ${ac_cv_lib_posix_remove+:} false; then :
  17554. $as_echo_n "(cached) " >&6
  17555. else
  17556. ac_check_lib_save_LIBS=$LIBS
  17557. LIBS="-lposix $LIBS"
  17558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17559. /* end confdefs.h. */
  17560. /* Override any GCC internal prototype to avoid an error.
  17561. Use char because int might match the return type of a GCC
  17562. builtin and then its argument prototype would still apply. */
  17563. #ifdef __cplusplus
  17564. extern "C"
  17565. #endif
  17566. char remove ();
  17567. int
  17568. main ()
  17569. {
  17570. return remove ();
  17571. ;
  17572. return 0;
  17573. }
  17574. _ACEOF
  17575. if ac_fn_c_try_link "$LINENO"; then :
  17576. ac_cv_lib_posix_remove=yes
  17577. else
  17578. ac_cv_lib_posix_remove=no
  17579. fi
  17580. rm -f core conftest.err conftest.$ac_objext \
  17581. conftest$ac_exeext conftest.$ac_ext
  17582. LIBS=$ac_check_lib_save_LIBS
  17583. fi
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17585. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17586. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17587. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17588. fi
  17589. fi
  17590. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17591. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17592. if test "x$ac_cv_func_shmat" = xyes; then :
  17593. fi
  17594. if test $ac_cv_func_shmat = no; then
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17596. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17597. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17598. $as_echo_n "(cached) " >&6
  17599. else
  17600. ac_check_lib_save_LIBS=$LIBS
  17601. LIBS="-lipc $LIBS"
  17602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17603. /* end confdefs.h. */
  17604. /* Override any GCC internal prototype to avoid an error.
  17605. Use char because int might match the return type of a GCC
  17606. builtin and then its argument prototype would still apply. */
  17607. #ifdef __cplusplus
  17608. extern "C"
  17609. #endif
  17610. char shmat ();
  17611. int
  17612. main ()
  17613. {
  17614. return shmat ();
  17615. ;
  17616. return 0;
  17617. }
  17618. _ACEOF
  17619. if ac_fn_c_try_link "$LINENO"; then :
  17620. ac_cv_lib_ipc_shmat=yes
  17621. else
  17622. ac_cv_lib_ipc_shmat=no
  17623. fi
  17624. rm -f core conftest.err conftest.$ac_objext \
  17625. conftest$ac_exeext conftest.$ac_ext
  17626. LIBS=$ac_check_lib_save_LIBS
  17627. fi
  17628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17629. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17630. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17631. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17632. fi
  17633. fi
  17634. fi
  17635. # Check for libraries that X11R6 Xt/Xaw programs need.
  17636. ac_save_LDFLAGS=$LDFLAGS
  17637. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17638. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17639. # check for ICE first), but we must link in the order -lSM -lICE or
  17640. # we get undefined symbols. So assume we have SM if we have ICE.
  17641. # These have to be linked with before -lX11, unlike the other
  17642. # libraries we check for below, so use a different variable.
  17643. # John Interrante, Karl Berry
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17645. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17646. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17647. $as_echo_n "(cached) " >&6
  17648. else
  17649. ac_check_lib_save_LIBS=$LIBS
  17650. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17652. /* end confdefs.h. */
  17653. /* Override any GCC internal prototype to avoid an error.
  17654. Use char because int might match the return type of a GCC
  17655. builtin and then its argument prototype would still apply. */
  17656. #ifdef __cplusplus
  17657. extern "C"
  17658. #endif
  17659. char IceConnectionNumber ();
  17660. int
  17661. main ()
  17662. {
  17663. return IceConnectionNumber ();
  17664. ;
  17665. return 0;
  17666. }
  17667. _ACEOF
  17668. if ac_fn_c_try_link "$LINENO"; then :
  17669. ac_cv_lib_ICE_IceConnectionNumber=yes
  17670. else
  17671. ac_cv_lib_ICE_IceConnectionNumber=no
  17672. fi
  17673. rm -f core conftest.err conftest.$ac_objext \
  17674. conftest$ac_exeext conftest.$ac_ext
  17675. LIBS=$ac_check_lib_save_LIBS
  17676. fi
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17678. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17679. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17680. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17681. fi
  17682. LDFLAGS=$ac_save_LDFLAGS
  17683. fi
  17684. if test x$have_x = xyes; then
  17685. # Check whether --enable-x11-shared was given.
  17686. if test "${enable_x11_shared+set}" = set; then :
  17687. enableval=$enable_x11_shared;
  17688. else
  17689. enable_x11_shared=maybe
  17690. fi
  17691. case "$host" in
  17692. *-*-darwin*)
  17693. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17694. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17695. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17696. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17697. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17698. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17699. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17700. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17701. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17702. ;;
  17703. *-*-openbsd*)
  17704. x11_lib='libX11.so'
  17705. x11ext_lib='libXext.so'
  17706. xcursor_lib='libXcursor.so'
  17707. xinerama_lib='libXinerama.so'
  17708. xinput_lib='libXi.so'
  17709. xrandr_lib='libXrandr.so'
  17710. xrender_lib='libXrender.so'
  17711. xss_lib='libXss.so'
  17712. xvidmode_lib='libXxf86vm.so'
  17713. ;;
  17714. *)
  17715. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17716. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17717. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17718. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17719. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17720. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17721. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17722. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17723. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17724. ;;
  17725. esac
  17726. if test x$ac_cv_func_shmat != xyes; then
  17727. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17728. fi
  17729. CFLAGS="$CFLAGS $X_CFLAGS"
  17730. LDFLAGS="$LDFLAGS $X_LIBS"
  17731. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17732. #include <X11/Xproto.h>
  17733. "
  17734. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17735. have_xext_h_hdr=yes
  17736. else
  17737. have_xext_h_hdr=no
  17738. fi
  17739. if test x$have_xext_h_hdr != xyes; then
  17740. as_fn_error $? "
  17741. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17742. " "$LINENO" 5
  17743. fi
  17744. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17745. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17746. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17747. # Needed so SDL applications can include SDL_syswm.h
  17748. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17749. if test x$enable_x11_shared = xmaybe; then
  17750. enable_x11_shared=yes
  17751. fi
  17752. if test x$have_loadso != xyes && \
  17753. test x$enable_x11_shared = xyes; then
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17755. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17756. enable_x11_shared=no
  17757. fi
  17758. if test x$have_loadso = xyes && \
  17759. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17760. echo "-- dynamic libX11 -> $x11_lib"
  17761. echo "-- dynamic libX11ext -> $x11ext_lib"
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17764. _ACEOF
  17765. cat >>confdefs.h <<_ACEOF
  17766. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17767. _ACEOF
  17768. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17769. else
  17770. enable_x11_shared=no
  17771. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17772. SUMMARY_video="${SUMMARY_video} x11"
  17773. fi
  17774. have_video=yes
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17776. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17777. have_const_param_XextAddDisplay=no
  17778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. /* end confdefs.h. */
  17780. #include <X11/Xlib.h>
  17781. #include <X11/Xproto.h>
  17782. #include <X11/extensions/Xext.h>
  17783. #include <X11/extensions/extutil.h>
  17784. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17785. int
  17786. main ()
  17787. {
  17788. ;
  17789. return 0;
  17790. }
  17791. _ACEOF
  17792. if ac_fn_c_try_compile "$LINENO"; then :
  17793. have_const_param_XextAddDisplay=yes
  17794. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17795. fi
  17796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17798. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17800. $as_echo_n "checking for XGenericEvent... " >&6; }
  17801. have_XGenericEvent=no
  17802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17803. /* end confdefs.h. */
  17804. #include <X11/Xlib.h>
  17805. int
  17806. main ()
  17807. {
  17808. Display *display;
  17809. XEvent event;
  17810. XGenericEventCookie *cookie = &event.xcookie;
  17811. XNextEvent(display, &event);
  17812. XGetEventData(display, cookie);
  17813. XFreeEventData(display, cookie);
  17814. ;
  17815. return 0;
  17816. }
  17817. _ACEOF
  17818. if ac_fn_c_try_compile "$LINENO"; then :
  17819. have_XGenericEvent=yes
  17820. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17821. fi
  17822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17824. $as_echo "$have_XGenericEvent" >&6; }
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17826. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17827. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17828. $as_echo_n "(cached) " >&6
  17829. else
  17830. ac_check_lib_save_LIBS=$LIBS
  17831. LIBS="-lX11 $LIBS"
  17832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17833. /* end confdefs.h. */
  17834. /* Override any GCC internal prototype to avoid an error.
  17835. Use char because int might match the return type of a GCC
  17836. builtin and then its argument prototype would still apply. */
  17837. #ifdef __cplusplus
  17838. extern "C"
  17839. #endif
  17840. char XkbKeycodeToKeysym ();
  17841. int
  17842. main ()
  17843. {
  17844. return XkbKeycodeToKeysym ();
  17845. ;
  17846. return 0;
  17847. }
  17848. _ACEOF
  17849. if ac_fn_c_try_link "$LINENO"; then :
  17850. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17851. else
  17852. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17853. fi
  17854. rm -f core conftest.err conftest.$ac_objext \
  17855. conftest$ac_exeext conftest.$ac_ext
  17856. LIBS=$ac_check_lib_save_LIBS
  17857. fi
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17859. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17860. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17861. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17862. fi
  17863. # Check whether --enable-video-x11-xcursor was given.
  17864. if test "${enable_video_x11_xcursor+set}" = set; then :
  17865. enableval=$enable_video_x11_xcursor;
  17866. else
  17867. enable_video_x11_xcursor=yes
  17868. fi
  17869. if test x$enable_video_x11_xcursor = xyes; then
  17870. definitely_enable_video_x11_xcursor=no
  17871. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17872. "
  17873. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17874. have_xcursor_h_hdr=yes
  17875. else
  17876. have_xcursor_h_hdr=no
  17877. fi
  17878. if test x$have_xcursor_h_hdr = xyes; then
  17879. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17880. echo "-- dynamic libXcursor -> $xcursor_lib"
  17881. cat >>confdefs.h <<_ACEOF
  17882. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17883. _ACEOF
  17884. definitely_enable_video_x11_xcursor=yes
  17885. else
  17886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17887. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17888. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17889. $as_echo_n "(cached) " >&6
  17890. else
  17891. ac_check_lib_save_LIBS=$LIBS
  17892. LIBS="-lXcursor $LIBS"
  17893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17894. /* end confdefs.h. */
  17895. /* Override any GCC internal prototype to avoid an error.
  17896. Use char because int might match the return type of a GCC
  17897. builtin and then its argument prototype would still apply. */
  17898. #ifdef __cplusplus
  17899. extern "C"
  17900. #endif
  17901. char XcursorImageCreate ();
  17902. int
  17903. main ()
  17904. {
  17905. return XcursorImageCreate ();
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_link "$LINENO"; then :
  17911. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17912. else
  17913. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext \
  17916. conftest$ac_exeext conftest.$ac_ext
  17917. LIBS=$ac_check_lib_save_LIBS
  17918. fi
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17920. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17921. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17922. have_xcursor_lib=yes
  17923. fi
  17924. if test x$have_xcursor_lib = xyes ; then
  17925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17926. definitely_enable_video_x11_xcursor=yes
  17927. fi
  17928. fi
  17929. fi
  17930. fi
  17931. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17932. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17933. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17934. fi
  17935. # Check whether --enable-video-x11-xdbe was given.
  17936. if test "${enable_video_x11_xdbe+set}" = set; then :
  17937. enableval=$enable_video_x11_xdbe;
  17938. else
  17939. enable_video_x11_xdbe=yes
  17940. fi
  17941. if test x$enable_video_x11_xdbe = xyes; then
  17942. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17943. "
  17944. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17945. have_dbe_h_hdr=yes
  17946. else
  17947. have_dbe_h_hdr=no
  17948. fi
  17949. if test x$have_dbe_h_hdr = xyes; then
  17950. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17951. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17952. fi
  17953. fi
  17954. # Check whether --enable-video-x11-xinerama was given.
  17955. if test "${enable_video_x11_xinerama+set}" = set; then :
  17956. enableval=$enable_video_x11_xinerama;
  17957. else
  17958. enable_video_x11_xinerama=yes
  17959. fi
  17960. if test x$enable_video_x11_xinerama = xyes; then
  17961. definitely_enable_video_x11_xinerama=no
  17962. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17963. "
  17964. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17965. have_xinerama_h_hdr=yes
  17966. else
  17967. have_xinerama_h_hdr=no
  17968. fi
  17969. if test x$have_xinerama_h_hdr = xyes; then
  17970. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17971. echo "-- dynamic libXinerama -> $xinerama_lib"
  17972. cat >>confdefs.h <<_ACEOF
  17973. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17974. _ACEOF
  17975. definitely_enable_video_x11_xinerama=yes
  17976. else
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17978. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17979. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17980. $as_echo_n "(cached) " >&6
  17981. else
  17982. ac_check_lib_save_LIBS=$LIBS
  17983. LIBS="-lXinerama $LIBS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. /* Override any GCC internal prototype to avoid an error.
  17987. Use char because int might match the return type of a GCC
  17988. builtin and then its argument prototype would still apply. */
  17989. #ifdef __cplusplus
  17990. extern "C"
  17991. #endif
  17992. char XineramaQueryExtension ();
  17993. int
  17994. main ()
  17995. {
  17996. return XineramaQueryExtension ();
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_link "$LINENO"; then :
  18002. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18003. else
  18004. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. LIBS=$ac_check_lib_save_LIBS
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18011. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18012. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18013. have_xinerama_lib=yes
  18014. fi
  18015. if test x$have_xinerama_lib = xyes ; then
  18016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18017. definitely_enable_video_x11_xinerama=yes
  18018. fi
  18019. fi
  18020. fi
  18021. fi
  18022. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18023. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18024. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18025. fi
  18026. # Check whether --enable-video-x11-xinput was given.
  18027. if test "${enable_video_x11_xinput+set}" = set; then :
  18028. enableval=$enable_video_x11_xinput;
  18029. else
  18030. enable_video_x11_xinput=yes
  18031. fi
  18032. if test x$enable_video_x11_xinput = xyes; then
  18033. definitely_enable_video_x11_xinput=no
  18034. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18035. "
  18036. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18037. have_xinput_h_hdr=yes
  18038. else
  18039. have_xinput_h_hdr=no
  18040. fi
  18041. if test x$have_xinput_h_hdr = xyes; then
  18042. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18043. echo "-- dynamic libXi -> $xinput_lib"
  18044. cat >>confdefs.h <<_ACEOF
  18045. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18046. _ACEOF
  18047. definitely_enable_video_x11_xinput=yes
  18048. else
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18050. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18051. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18052. $as_echo_n "(cached) " >&6
  18053. else
  18054. ac_check_lib_save_LIBS=$LIBS
  18055. LIBS="-lXi $LIBS"
  18056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18057. /* end confdefs.h. */
  18058. /* Override any GCC internal prototype to avoid an error.
  18059. Use char because int might match the return type of a GCC
  18060. builtin and then its argument prototype would still apply. */
  18061. #ifdef __cplusplus
  18062. extern "C"
  18063. #endif
  18064. char XOpenDevice ();
  18065. int
  18066. main ()
  18067. {
  18068. return XOpenDevice ();
  18069. ;
  18070. return 0;
  18071. }
  18072. _ACEOF
  18073. if ac_fn_c_try_link "$LINENO"; then :
  18074. ac_cv_lib_Xi_XOpenDevice=yes
  18075. else
  18076. ac_cv_lib_Xi_XOpenDevice=no
  18077. fi
  18078. rm -f core conftest.err conftest.$ac_objext \
  18079. conftest$ac_exeext conftest.$ac_ext
  18080. LIBS=$ac_check_lib_save_LIBS
  18081. fi
  18082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18083. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18084. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18085. have_xinput_lib=yes
  18086. fi
  18087. if test x$have_xinput_lib = xyes ; then
  18088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18089. definitely_enable_video_x11_xinput=yes
  18090. fi
  18091. fi
  18092. fi
  18093. fi
  18094. if test x$definitely_enable_video_x11_xinput = xyes; then
  18095. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18096. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18098. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18099. have_xinput2_multitouch=no
  18100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18101. /* end confdefs.h. */
  18102. #include <X11/Xlib.h>
  18103. #include <X11/Xproto.h>
  18104. #include <X11/extensions/XInput2.h>
  18105. int
  18106. main ()
  18107. {
  18108. int event_type = XI_TouchBegin;
  18109. XITouchClassInfo *t;
  18110. ;
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. if ac_fn_c_try_compile "$LINENO"; then :
  18115. have_xinput2_multitouch=yes
  18116. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18117. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18118. fi
  18119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18121. $as_echo "$have_xinput2_multitouch" >&6; }
  18122. fi
  18123. # Check whether --enable-video-x11-xrandr was given.
  18124. if test "${enable_video_x11_xrandr+set}" = set; then :
  18125. enableval=$enable_video_x11_xrandr;
  18126. else
  18127. enable_video_x11_xrandr=yes
  18128. fi
  18129. if test x$enable_video_x11_xrandr = xyes; then
  18130. definitely_enable_video_x11_xrandr=no
  18131. have_xrandr_h_hdr=no
  18132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18133. /* end confdefs.h. */
  18134. #include <X11/Xlib.h>
  18135. #include <X11/extensions/Xrandr.h>
  18136. int
  18137. main ()
  18138. {
  18139. XRRScreenResources *res = NULL;
  18140. ;
  18141. return 0;
  18142. }
  18143. _ACEOF
  18144. if ac_fn_c_try_compile "$LINENO"; then :
  18145. have_xrandr_h_hdr=yes
  18146. fi
  18147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18148. if test x$have_xrandr_h_hdr = xyes; then
  18149. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18150. echo "-- dynamic libXrandr -> $xrandr_lib"
  18151. cat >>confdefs.h <<_ACEOF
  18152. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18153. _ACEOF
  18154. definitely_enable_video_x11_xrandr=yes
  18155. else
  18156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18157. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18158. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18159. $as_echo_n "(cached) " >&6
  18160. else
  18161. ac_check_lib_save_LIBS=$LIBS
  18162. LIBS="-lXrandr $LIBS"
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. /* Override any GCC internal prototype to avoid an error.
  18166. Use char because int might match the return type of a GCC
  18167. builtin and then its argument prototype would still apply. */
  18168. #ifdef __cplusplus
  18169. extern "C"
  18170. #endif
  18171. char XRRQueryExtension ();
  18172. int
  18173. main ()
  18174. {
  18175. return XRRQueryExtension ();
  18176. ;
  18177. return 0;
  18178. }
  18179. _ACEOF
  18180. if ac_fn_c_try_link "$LINENO"; then :
  18181. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18182. else
  18183. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18184. fi
  18185. rm -f core conftest.err conftest.$ac_objext \
  18186. conftest$ac_exeext conftest.$ac_ext
  18187. LIBS=$ac_check_lib_save_LIBS
  18188. fi
  18189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18190. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18191. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18192. have_xrandr_lib=yes
  18193. fi
  18194. if test x$have_xrandr_lib = xyes ; then
  18195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18196. definitely_enable_video_x11_xrandr=yes
  18197. fi
  18198. fi
  18199. fi
  18200. fi
  18201. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18202. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18203. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18204. fi
  18205. # Check whether --enable-video-x11-scrnsaver was given.
  18206. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18207. enableval=$enable_video_x11_scrnsaver;
  18208. else
  18209. enable_video_x11_scrnsaver=yes
  18210. fi
  18211. if test x$enable_video_x11_scrnsaver = xyes; then
  18212. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18213. "
  18214. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18215. have_scrnsaver_h_hdr=yes
  18216. else
  18217. have_scrnsaver_h_hdr=no
  18218. fi
  18219. if test x$have_scrnsaver_h_hdr = xyes; then
  18220. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18221. echo "-- dynamic libXss -> $xss_lib"
  18222. cat >>confdefs.h <<_ACEOF
  18223. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18224. _ACEOF
  18225. definitely_enable_video_x11_scrnsaver=yes
  18226. else
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18228. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18229. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18230. $as_echo_n "(cached) " >&6
  18231. else
  18232. ac_check_lib_save_LIBS=$LIBS
  18233. LIBS="-lXss $LIBS"
  18234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18235. /* end confdefs.h. */
  18236. /* Override any GCC internal prototype to avoid an error.
  18237. Use char because int might match the return type of a GCC
  18238. builtin and then its argument prototype would still apply. */
  18239. #ifdef __cplusplus
  18240. extern "C"
  18241. #endif
  18242. char XScreenSaverSuspend ();
  18243. int
  18244. main ()
  18245. {
  18246. return XScreenSaverSuspend ();
  18247. ;
  18248. return 0;
  18249. }
  18250. _ACEOF
  18251. if ac_fn_c_try_link "$LINENO"; then :
  18252. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18253. else
  18254. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18255. fi
  18256. rm -f core conftest.err conftest.$ac_objext \
  18257. conftest$ac_exeext conftest.$ac_ext
  18258. LIBS=$ac_check_lib_save_LIBS
  18259. fi
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18261. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18262. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18263. have_xss_lib=yes
  18264. fi
  18265. if test x$have_xss_lib = xyes ; then
  18266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18267. definitely_enable_video_x11_scrnsaver=yes
  18268. fi
  18269. fi
  18270. fi
  18271. fi
  18272. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18273. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18274. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18275. fi
  18276. # Check whether --enable-video-x11-xshape was given.
  18277. if test "${enable_video_x11_xshape+set}" = set; then :
  18278. enableval=$enable_video_x11_xshape;
  18279. else
  18280. enable_video_x11_xshape=yes
  18281. fi
  18282. if test x$enable_video_x11_xshape = xyes; then
  18283. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18284. "
  18285. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18286. have_shape_h_hdr=yes
  18287. else
  18288. have_shape_h_hdr=no
  18289. fi
  18290. if test x$have_shape_h_hdr = xyes; then
  18291. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18292. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18293. fi
  18294. fi
  18295. # Check whether --enable-video-x11-vm was given.
  18296. if test "${enable_video_x11_vm+set}" = set; then :
  18297. enableval=$enable_video_x11_vm;
  18298. else
  18299. enable_video_x11_vm=yes
  18300. fi
  18301. if test x$enable_video_x11_vm = xyes; then
  18302. definitely_enable_video_x11_vm=no
  18303. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18304. "
  18305. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18306. have_vm_h_hdr=yes
  18307. else
  18308. have_vm_h_hdr=no
  18309. fi
  18310. if test x$have_vm_h_hdr = xyes; then
  18311. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18312. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18313. cat >>confdefs.h <<_ACEOF
  18314. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18315. _ACEOF
  18316. definitely_enable_video_x11_vm=yes
  18317. else
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18319. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18320. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18321. $as_echo_n "(cached) " >&6
  18322. else
  18323. ac_check_lib_save_LIBS=$LIBS
  18324. LIBS="-lXxf86vm $LIBS"
  18325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18326. /* end confdefs.h. */
  18327. /* Override any GCC internal prototype to avoid an error.
  18328. Use char because int might match the return type of a GCC
  18329. builtin and then its argument prototype would still apply. */
  18330. #ifdef __cplusplus
  18331. extern "C"
  18332. #endif
  18333. char XF86VidModeQueryVersion ();
  18334. int
  18335. main ()
  18336. {
  18337. return XF86VidModeQueryVersion ();
  18338. ;
  18339. return 0;
  18340. }
  18341. _ACEOF
  18342. if ac_fn_c_try_link "$LINENO"; then :
  18343. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18344. else
  18345. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext \
  18348. conftest$ac_exeext conftest.$ac_ext
  18349. LIBS=$ac_check_lib_save_LIBS
  18350. fi
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18352. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18353. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18354. have_vm_lib=yes
  18355. fi
  18356. if test x$have_vm_lib = xyes ; then
  18357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18358. definitely_enable_video_x11_vm=yes
  18359. fi
  18360. fi
  18361. fi
  18362. fi
  18363. if test x$definitely_enable_video_x11_vm = xyes; then
  18364. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18365. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18366. fi
  18367. fi
  18368. fi
  18369. }
  18370. CheckVivanteVideo()
  18371. {
  18372. # Check whether --enable-video-vivante was given.
  18373. if test "${enable_video_vivante+set}" = set; then :
  18374. enableval=$enable_video_vivante;
  18375. else
  18376. enable_video_vivante=yes
  18377. fi
  18378. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18380. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18381. have_vivante_vdk=no
  18382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18383. /* end confdefs.h. */
  18384. #define LINUX
  18385. #define EGL_API_FB
  18386. #include <gc_vdk.h>
  18387. int
  18388. main ()
  18389. {
  18390. ;
  18391. return 0;
  18392. }
  18393. _ACEOF
  18394. if ac_fn_c_try_compile "$LINENO"; then :
  18395. have_vivante_vdk=yes
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18399. $as_echo "$have_vivante_vdk" >&6; }
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18401. $as_echo_n "checking for Vivante FB API... " >&6; }
  18402. have_vivante_egl=no
  18403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18404. /* end confdefs.h. */
  18405. #define LINUX
  18406. #define EGL_API_FB
  18407. #include <EGL/eglvivante.h>
  18408. int
  18409. main ()
  18410. {
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_compile "$LINENO"; then :
  18416. have_vivante_egl=yes
  18417. fi
  18418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18420. $as_echo "$have_vivante_egl" >&6; }
  18421. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18422. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18423. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18424. if test x$have_vivante_vdk = xyes; then
  18425. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18426. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18427. fi
  18428. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18429. SUMMARY_video="${SUMMARY_video} vivante"
  18430. have_video=yes
  18431. fi
  18432. fi
  18433. }
  18434. CheckHaikuVideo()
  18435. {
  18436. if test x$enable_video = xyes; then
  18437. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18438. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18439. have_video=yes
  18440. SUMMARY_video="${SUMMARY_video} haiku"
  18441. fi
  18442. }
  18443. CheckCOCOA()
  18444. {
  18445. # Check whether --enable-video-cocoa was given.
  18446. if test "${enable_video_cocoa+set}" = set; then :
  18447. enableval=$enable_video_cocoa;
  18448. else
  18449. enable_video_cocoa=yes
  18450. fi
  18451. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18452. save_CFLAGS="$CFLAGS"
  18453. CFLAGS="$CFLAGS -x objective-c"
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18455. $as_echo_n "checking for Cocoa framework... " >&6; }
  18456. have_cocoa=no
  18457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18458. /* end confdefs.h. */
  18459. #import <Cocoa/Cocoa.h>
  18460. int
  18461. main ()
  18462. {
  18463. ;
  18464. return 0;
  18465. }
  18466. _ACEOF
  18467. if ac_fn_c_try_compile "$LINENO"; then :
  18468. have_cocoa=yes
  18469. fi
  18470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18472. $as_echo "$have_cocoa" >&6; }
  18473. CFLAGS="$save_CFLAGS"
  18474. if test x$have_cocoa = xyes; then
  18475. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18476. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18477. SUMMARY_video="${SUMMARY_video} cocoa"
  18478. have_video=yes
  18479. fi
  18480. fi
  18481. }
  18482. CheckMETAL()
  18483. {
  18484. # Check whether --enable-render-metal was given.
  18485. if test "${enable_render_metal+set}" = set; then :
  18486. enableval=$enable_render_metal;
  18487. else
  18488. enable_render_metal=yes
  18489. fi
  18490. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18491. save_CFLAGS="$CFLAGS"
  18492. CFLAGS="$CFLAGS -x objective-c"
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18494. $as_echo_n "checking for Metal framework... " >&6; }
  18495. have_metal=no
  18496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18497. /* end confdefs.h. */
  18498. #import <Cocoa/Cocoa.h>
  18499. #import <Metal/Metal.h>
  18500. #import <QuartzCore/CAMetalLayer.h>
  18501. #if !TARGET_CPU_X86_64
  18502. #error Metal doesn't work on this configuration
  18503. #endif
  18504. int
  18505. main ()
  18506. {
  18507. ;
  18508. return 0;
  18509. }
  18510. _ACEOF
  18511. if ac_fn_c_try_compile "$LINENO"; then :
  18512. have_metal=yes
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18515. CFLAGS="$save_CFLAGS"
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18517. $as_echo "$have_metal" >&6; }
  18518. if test x$have_metal = xyes; then
  18519. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18520. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18521. SUMMARY_video="${SUMMARY_video} metal"
  18522. else
  18523. enable_render_metal=no
  18524. fi
  18525. fi
  18526. }
  18527. CheckDirectFB()
  18528. {
  18529. # Check whether --enable-video-directfb was given.
  18530. if test "${enable_video_directfb+set}" = set; then :
  18531. enableval=$enable_video_directfb;
  18532. else
  18533. enable_video_directfb=no
  18534. fi
  18535. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18536. pkg_failed=no
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18538. $as_echo_n "checking for DIRECTFB... " >&6; }
  18539. if test -n "$DIRECTFB_CFLAGS"; then
  18540. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18541. elif test -n "$PKG_CONFIG"; then
  18542. if test -n "$PKG_CONFIG" && \
  18543. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18544. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18545. ac_status=$?
  18546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18547. test $ac_status = 0; }; then
  18548. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18549. else
  18550. pkg_failed=yes
  18551. fi
  18552. else
  18553. pkg_failed=untried
  18554. fi
  18555. if test -n "$DIRECTFB_LIBS"; then
  18556. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18557. elif test -n "$PKG_CONFIG"; then
  18558. if test -n "$PKG_CONFIG" && \
  18559. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18560. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18561. ac_status=$?
  18562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18563. test $ac_status = 0; }; then
  18564. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18565. else
  18566. pkg_failed=yes
  18567. fi
  18568. else
  18569. pkg_failed=untried
  18570. fi
  18571. if test $pkg_failed = yes; then
  18572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18573. $as_echo "no" >&6; }
  18574. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18575. _pkg_short_errors_supported=yes
  18576. else
  18577. _pkg_short_errors_supported=no
  18578. fi
  18579. if test $_pkg_short_errors_supported = yes; then
  18580. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18581. else
  18582. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18583. fi
  18584. # Put the nasty error message in config.log where it belongs
  18585. echo "$DIRECTFB_PKG_ERRORS" >&5
  18586. video_directfb=no
  18587. elif test $pkg_failed = untried; then
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18589. $as_echo "no" >&6; }
  18590. video_directfb=no
  18591. else
  18592. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18593. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18595. $as_echo "yes" >&6; }
  18596. video_directfb=yes
  18597. fi
  18598. if test x$video_directfb = xyes; then
  18599. # SuSE 11.1 installs directfb-config without directfb-devel
  18600. save_CPPFLAGS="$CPPFLAGS"
  18601. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18602. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18603. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18604. have_directfb_hdr=yes
  18605. else
  18606. have_directfb_hdr=no
  18607. fi
  18608. CPPFLAGS="$save_CPPFLAGS"
  18609. video_directfb=$have_directfb_hdr
  18610. fi
  18611. if test x$video_directfb = xyes; then
  18612. # Check whether --enable-directfb-shared was given.
  18613. if test "${enable_directfb_shared+set}" = set; then :
  18614. enableval=$enable_directfb_shared;
  18615. else
  18616. enable_directfb_shared=yes
  18617. fi
  18618. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18619. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18620. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18621. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18623. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18624. directfb_shared=no
  18625. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18626. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18628. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18629. if test x$have_loadso != xyes && \
  18630. test x$enable_directfb_shared = xyes; then
  18631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18632. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18633. fi
  18634. if test x$have_loadso = xyes && \
  18635. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18636. directfb_shared=yes
  18637. echo "-- $directfb_lib_spec -> $directfb_lib"
  18638. cat >>confdefs.h <<_ACEOF
  18639. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18640. _ACEOF
  18641. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18642. else
  18643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18644. SUMMARY_video="${SUMMARY_video} directfb"
  18645. fi
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18647. $as_echo "$directfb_shared" >&6; }
  18648. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18649. have_video=yes
  18650. fi
  18651. fi
  18652. }
  18653. CheckKMSDRM()
  18654. {
  18655. # Check whether --enable-video-kmsdrm was given.
  18656. if test "${enable_video_kmsdrm+set}" = set; then :
  18657. enableval=$enable_video_kmsdrm;
  18658. else
  18659. enable_video_kmsdrm=no
  18660. fi
  18661. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18662. video_kmsdrm=no
  18663. pkg_failed=no
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18665. $as_echo_n "checking for LIBDRM... " >&6; }
  18666. if test -n "$LIBDRM_CFLAGS"; then
  18667. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18668. elif test -n "$PKG_CONFIG"; then
  18669. if test -n "$PKG_CONFIG" && \
  18670. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18671. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18672. ac_status=$?
  18673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18674. test $ac_status = 0; }; then
  18675. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18676. else
  18677. pkg_failed=yes
  18678. fi
  18679. else
  18680. pkg_failed=untried
  18681. fi
  18682. if test -n "$LIBDRM_LIBS"; then
  18683. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18684. elif test -n "$PKG_CONFIG"; then
  18685. if test -n "$PKG_CONFIG" && \
  18686. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18687. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18688. ac_status=$?
  18689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18690. test $ac_status = 0; }; then
  18691. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18692. else
  18693. pkg_failed=yes
  18694. fi
  18695. else
  18696. pkg_failed=untried
  18697. fi
  18698. if test $pkg_failed = yes; then
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18700. $as_echo "no" >&6; }
  18701. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18702. _pkg_short_errors_supported=yes
  18703. else
  18704. _pkg_short_errors_supported=no
  18705. fi
  18706. if test $_pkg_short_errors_supported = yes; then
  18707. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18708. else
  18709. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18710. fi
  18711. # Put the nasty error message in config.log where it belongs
  18712. echo "$LIBDRM_PKG_ERRORS" >&5
  18713. libdrm_avail=no
  18714. elif test $pkg_failed = untried; then
  18715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18716. $as_echo "no" >&6; }
  18717. libdrm_avail=no
  18718. else
  18719. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18720. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18722. $as_echo "yes" >&6; }
  18723. libdrm_avail=yes
  18724. fi
  18725. pkg_failed=no
  18726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18727. $as_echo_n "checking for LIBGBM... " >&6; }
  18728. if test -n "$LIBGBM_CFLAGS"; then
  18729. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18730. elif test -n "$PKG_CONFIG"; then
  18731. if test -n "$PKG_CONFIG" && \
  18732. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18733. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18734. ac_status=$?
  18735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18736. test $ac_status = 0; }; then
  18737. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18738. else
  18739. pkg_failed=yes
  18740. fi
  18741. else
  18742. pkg_failed=untried
  18743. fi
  18744. if test -n "$LIBGBM_LIBS"; then
  18745. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18746. elif test -n "$PKG_CONFIG"; then
  18747. if test -n "$PKG_CONFIG" && \
  18748. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18749. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18750. ac_status=$?
  18751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18752. test $ac_status = 0; }; then
  18753. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18754. else
  18755. pkg_failed=yes
  18756. fi
  18757. else
  18758. pkg_failed=untried
  18759. fi
  18760. if test $pkg_failed = yes; then
  18761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18762. $as_echo "no" >&6; }
  18763. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18764. _pkg_short_errors_supported=yes
  18765. else
  18766. _pkg_short_errors_supported=no
  18767. fi
  18768. if test $_pkg_short_errors_supported = yes; then
  18769. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18770. else
  18771. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18772. fi
  18773. # Put the nasty error message in config.log where it belongs
  18774. echo "$LIBGBM_PKG_ERRORS" >&5
  18775. libgbm_avail=no
  18776. elif test $pkg_failed = untried; then
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18778. $as_echo "no" >&6; }
  18779. libgbm_avail=no
  18780. else
  18781. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18782. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18784. $as_echo "yes" >&6; }
  18785. libgbm_avail=yes
  18786. fi
  18787. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18788. video_kmsdrm=yes
  18789. fi
  18790. if test x$video_kmsdrm = xyes; then
  18791. # Check whether --enable-kmsdrm-shared was given.
  18792. if test "${enable_kmsdrm_shared+set}" = set; then :
  18793. enableval=$enable_kmsdrm_shared;
  18794. else
  18795. enable_kmsdrm_shared=yes
  18796. fi
  18797. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18798. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18799. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18801. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18802. kmsdrm_shared=no
  18803. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18804. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18805. if test x$have_loadso != xyes && \
  18806. test x$enable_kmsdrm_shared = xyes; then
  18807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18808. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18809. fi
  18810. if test x$have_loadso = xyes && \
  18811. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18812. kmsdrm_shared=yes
  18813. cat >>confdefs.h <<_ACEOF
  18814. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18815. _ACEOF
  18816. cat >>confdefs.h <<_ACEOF
  18817. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18818. _ACEOF
  18819. cat >>confdefs.h <<_ACEOF
  18820. #define HAVE_KMSDRM_SHARED "TRUE"
  18821. _ACEOF
  18822. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18823. else
  18824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18825. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18826. fi
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18828. $as_echo "$kmsdrm_shared" >&6; }
  18829. have_video=yes
  18830. fi
  18831. fi
  18832. }
  18833. CheckDummyVideo()
  18834. {
  18835. # Check whether --enable-video-dummy was given.
  18836. if test "${enable_video_dummy+set}" = set; then :
  18837. enableval=$enable_video_dummy;
  18838. else
  18839. enable_video_dummy=yes
  18840. fi
  18841. if test x$enable_video_dummy = xyes; then
  18842. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18843. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18844. have_video=yes
  18845. SUMMARY_video="${SUMMARY_video} dummy"
  18846. fi
  18847. }
  18848. CheckQNXVideo()
  18849. {
  18850. if test x$enable_video = xyes; then
  18851. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18852. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18853. have_video=yes
  18854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18855. SUMMARY_video="${SUMMARY_video} qnx"
  18856. fi
  18857. }
  18858. CheckQNXAudio()
  18859. {
  18860. if test x$enable_audio = xyes; then
  18861. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18862. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18863. have_audio=yes
  18864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18865. SUMMARY_audio="${SUMMARY_audio} qsa"
  18866. fi
  18867. }
  18868. # Check whether --enable-video-opengl was given.
  18869. if test "${enable_video_opengl+set}" = set; then :
  18870. enableval=$enable_video_opengl;
  18871. else
  18872. enable_video_opengl=yes
  18873. fi
  18874. CheckOpenGLX11()
  18875. {
  18876. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18878. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18879. video_opengl=no
  18880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18881. /* end confdefs.h. */
  18882. #include <GL/gl.h>
  18883. #include <GL/glx.h>
  18884. int
  18885. main ()
  18886. {
  18887. ;
  18888. return 0;
  18889. }
  18890. _ACEOF
  18891. if ac_fn_c_try_compile "$LINENO"; then :
  18892. video_opengl=yes
  18893. fi
  18894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18896. $as_echo "$video_opengl" >&6; }
  18897. if test x$video_opengl = xyes; then
  18898. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18899. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18900. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18901. SUMMARY_video="${SUMMARY_video} opengl"
  18902. fi
  18903. fi
  18904. }
  18905. # Check whether --enable-video-opengles was given.
  18906. if test "${enable_video_opengles+set}" = set; then :
  18907. enableval=$enable_video_opengles;
  18908. else
  18909. enable_video_opengles=yes
  18910. fi
  18911. # Check whether --enable-video-opengles1 was given.
  18912. if test "${enable_video_opengles1+set}" = set; then :
  18913. enableval=$enable_video_opengles1;
  18914. else
  18915. enable_video_opengles1=yes
  18916. fi
  18917. # Check whether --enable-video-opengles2 was given.
  18918. if test "${enable_video_opengles2+set}" = set; then :
  18919. enableval=$enable_video_opengles2;
  18920. else
  18921. enable_video_opengles2=yes
  18922. fi
  18923. CheckOpenGLESX11()
  18924. {
  18925. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18927. $as_echo_n "checking for EGL support... " >&6; }
  18928. video_opengl_egl=no
  18929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18930. /* end confdefs.h. */
  18931. #define LINUX
  18932. #define EGL_API_FB
  18933. #define MESA_EGL_NO_X11_HEADERS
  18934. #include <EGL/egl.h>
  18935. #include <EGL/eglext.h>
  18936. int
  18937. main ()
  18938. {
  18939. ;
  18940. return 0;
  18941. }
  18942. _ACEOF
  18943. if ac_fn_c_try_compile "$LINENO"; then :
  18944. video_opengl_egl=yes
  18945. fi
  18946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18948. $as_echo "$video_opengl_egl" >&6; }
  18949. if test x$video_opengl_egl = xyes; then
  18950. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18951. fi
  18952. if test x$enable_video_opengles1 = xyes; then
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18954. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18955. video_opengles_v1=no
  18956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18957. /* end confdefs.h. */
  18958. #include <GLES/gl.h>
  18959. #include <GLES/glext.h>
  18960. int
  18961. main ()
  18962. {
  18963. ;
  18964. return 0;
  18965. }
  18966. _ACEOF
  18967. if ac_fn_c_try_compile "$LINENO"; then :
  18968. video_opengles_v1=yes
  18969. fi
  18970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18972. $as_echo "$video_opengles_v1" >&6; }
  18973. if test x$video_opengles_v1 = xyes; then
  18974. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18975. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18976. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18977. fi
  18978. fi
  18979. if test x$enable_video_opengles2 = xyes; then
  18980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18981. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18982. video_opengles_v2=no
  18983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18984. /* end confdefs.h. */
  18985. #include <GLES2/gl2.h>
  18986. #include <GLES2/gl2ext.h>
  18987. int
  18988. main ()
  18989. {
  18990. ;
  18991. return 0;
  18992. }
  18993. _ACEOF
  18994. if ac_fn_c_try_compile "$LINENO"; then :
  18995. video_opengles_v2=yes
  18996. fi
  18997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18999. $as_echo "$video_opengles_v2" >&6; }
  19000. if test x$video_opengles_v2 = xyes; then
  19001. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19002. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19003. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19004. fi
  19005. fi
  19006. fi
  19007. }
  19008. CheckWINDOWSGL()
  19009. {
  19010. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19011. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19012. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19013. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19014. SUMMARY_video="${SUMMARY_video} opengl"
  19015. fi
  19016. }
  19017. CheckWINDOWSGLES()
  19018. {
  19019. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19021. $as_echo_n "checking for EGL support... " >&6; }
  19022. video_opengl_egl=no
  19023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19024. /* end confdefs.h. */
  19025. #include <EGL/egl.h>
  19026. int
  19027. main ()
  19028. {
  19029. ;
  19030. return 0;
  19031. }
  19032. _ACEOF
  19033. if ac_fn_c_try_compile "$LINENO"; then :
  19034. video_opengl_egl=yes
  19035. fi
  19036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19038. $as_echo "$video_opengl_egl" >&6; }
  19039. if test x$video_opengl_egl = xyes; then
  19040. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19041. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19042. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19043. fi
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19045. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19046. video_opengles_v2=no
  19047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. /* end confdefs.h. */
  19049. #include <GLES2/gl2.h>
  19050. #include <GLES2/gl2ext.h>
  19051. int
  19052. main ()
  19053. {
  19054. ;
  19055. return 0;
  19056. }
  19057. _ACEOF
  19058. if ac_fn_c_try_compile "$LINENO"; then :
  19059. video_opengles_v2=yes
  19060. fi
  19061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19063. $as_echo "$video_opengles_v2" >&6; }
  19064. if test x$video_opengles_v2 = xyes; then
  19065. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19066. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19067. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19068. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19069. fi
  19070. fi
  19071. }
  19072. CheckHaikuGL()
  19073. {
  19074. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19075. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19076. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19077. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19079. SUMMARY_video="${SUMMARY_video} opengl"
  19080. fi
  19081. }
  19082. CheckMacGL()
  19083. {
  19084. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19085. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19086. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19087. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19088. SUMMARY_video="${SUMMARY_video} opengl"
  19089. fi
  19090. }
  19091. CheckMacGLES()
  19092. {
  19093. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19094. video_opengl_egl=yes
  19095. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19096. video_opengles_v2=yes
  19097. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19098. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19099. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19100. fi
  19101. }
  19102. CheckEmscriptenGLES()
  19103. {
  19104. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19106. $as_echo_n "checking for EGL support... " >&6; }
  19107. video_opengl_egl=no
  19108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19109. /* end confdefs.h. */
  19110. #include <EGL/egl.h>
  19111. int
  19112. main ()
  19113. {
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. if ac_fn_c_try_compile "$LINENO"; then :
  19119. video_opengl_egl=yes
  19120. fi
  19121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19123. $as_echo "$video_opengl_egl" >&6; }
  19124. if test x$video_opengl_egl = xyes; then
  19125. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19126. fi
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19128. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19129. video_opengles_v2=no
  19130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19131. /* end confdefs.h. */
  19132. #include <GLES2/gl2.h>
  19133. #include <GLES2/gl2ext.h>
  19134. int
  19135. main ()
  19136. {
  19137. ;
  19138. return 0;
  19139. }
  19140. _ACEOF
  19141. if ac_fn_c_try_compile "$LINENO"; then :
  19142. video_opengles_v2=yes
  19143. fi
  19144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19146. $as_echo "$video_opengles_v2" >&6; }
  19147. if test x$video_opengles_v2 = xyes; then
  19148. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19149. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19150. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19151. fi
  19152. fi
  19153. }
  19154. # Check whether --enable-video-vulkan was given.
  19155. if test "${enable_video_vulkan+set}" = set; then :
  19156. enableval=$enable_video_vulkan;
  19157. else
  19158. enable_video_vulkan=yes
  19159. fi
  19160. CheckVulkan()
  19161. {
  19162. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19163. case "$host" in
  19164. *-*-android*)
  19165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19166. /* end confdefs.h. */
  19167. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19168. #error Vulkan doesn't work on this configuration
  19169. #endif
  19170. int
  19171. main ()
  19172. {
  19173. ;
  19174. return 0;
  19175. }
  19176. _ACEOF
  19177. if ac_fn_c_try_compile "$LINENO"; then :
  19178. else
  19179. enable_video_vulkan=no
  19180. fi
  19181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19182. ;;
  19183. *-*-darwin*)
  19184. save_CFLAGS="$CFLAGS"
  19185. CFLAGS="$CFLAGS -x objective-c"
  19186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19187. /* end confdefs.h. */
  19188. #include <Cocoa/Cocoa.h>
  19189. #include <Metal/Metal.h>
  19190. #include <QuartzCore/CAMetalLayer.h>
  19191. #if !TARGET_CPU_X86_64
  19192. #error Vulkan doesn't work on this configuration
  19193. #endif
  19194. int
  19195. main ()
  19196. {
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_compile "$LINENO"; then :
  19202. else
  19203. enable_video_vulkan=no
  19204. fi
  19205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19206. CFLAGS="$save_CFLAGS"
  19207. ;;
  19208. *)
  19209. ;;
  19210. esac
  19211. if test x$enable_video_vulkan = xno; then
  19212. # For reasons I am totally unable to see, I get an undefined macro error if
  19213. # I put this in the AC_TRY_COMPILE.
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19215. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19216. fi
  19217. fi
  19218. if test x$enable_video_vulkan = xyes; then
  19219. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19220. SUMMARY_video="${SUMMARY_video} vulkan"
  19221. fi
  19222. }
  19223. CheckInputEvents()
  19224. {
  19225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19226. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19227. use_input_events=no
  19228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19229. /* end confdefs.h. */
  19230. #include <linux/input.h>
  19231. int
  19232. main ()
  19233. {
  19234. #ifndef EVIOCGNAME
  19235. #error EVIOCGNAME() ioctl not available
  19236. #endif
  19237. ;
  19238. return 0;
  19239. }
  19240. _ACEOF
  19241. if ac_fn_c_try_compile "$LINENO"; then :
  19242. use_input_events=yes
  19243. fi
  19244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19246. $as_echo "$use_input_events" >&6; }
  19247. if test x$use_input_events = xyes; then
  19248. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19249. SUMMARY_input="${SUMMARY_input} linuxev"
  19250. fi
  19251. }
  19252. CheckInputKD()
  19253. {
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19255. $as_echo_n "checking for Linux kd.h... " >&6; }
  19256. use_input_kd=no
  19257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19258. /* end confdefs.h. */
  19259. #include <linux/kd.h>
  19260. #include <linux/keyboard.h>
  19261. int
  19262. main ()
  19263. {
  19264. struct kbentry kbe;
  19265. kbe.kb_table = KG_CTRL;
  19266. ioctl(0, KDGKBENT, &kbe);
  19267. ;
  19268. return 0;
  19269. }
  19270. _ACEOF
  19271. if ac_fn_c_try_compile "$LINENO"; then :
  19272. use_input_kd=yes
  19273. fi
  19274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19276. $as_echo "$use_input_kd" >&6; }
  19277. if test x$use_input_kd = xyes; then
  19278. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19279. SUMMARY_input="${SUMMARY_input} linuxkd"
  19280. fi
  19281. }
  19282. CheckLibUDev()
  19283. {
  19284. # Check whether --enable-libudev was given.
  19285. if test "${enable_libudev+set}" = set; then :
  19286. enableval=$enable_libudev;
  19287. else
  19288. enable_libudev=yes
  19289. fi
  19290. if test x$enable_libudev = xyes; then
  19291. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19292. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19293. have_libudev_h_hdr=yes
  19294. else
  19295. have_libudev_h_hdr=no
  19296. fi
  19297. if test x$have_libudev_h_hdr = xyes; then
  19298. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19299. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19300. if test x$udev_lib != x; then
  19301. echo "-- dynamic udev -> $udev_lib"
  19302. cat >>confdefs.h <<_ACEOF
  19303. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19304. _ACEOF
  19305. fi
  19306. fi
  19307. fi
  19308. }
  19309. CheckDBus()
  19310. {
  19311. # Check whether --enable-dbus was given.
  19312. if test "${enable_dbus+set}" = set; then :
  19313. enableval=$enable_dbus;
  19314. else
  19315. enable_dbus=yes
  19316. fi
  19317. if test x$enable_dbus = xyes; then
  19318. pkg_failed=no
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19320. $as_echo_n "checking for DBUS... " >&6; }
  19321. if test -n "$DBUS_CFLAGS"; then
  19322. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19323. elif test -n "$PKG_CONFIG"; then
  19324. if test -n "$PKG_CONFIG" && \
  19325. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19326. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19327. ac_status=$?
  19328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19329. test $ac_status = 0; }; then
  19330. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19331. else
  19332. pkg_failed=yes
  19333. fi
  19334. else
  19335. pkg_failed=untried
  19336. fi
  19337. if test -n "$DBUS_LIBS"; then
  19338. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19339. elif test -n "$PKG_CONFIG"; then
  19340. if test -n "$PKG_CONFIG" && \
  19341. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19342. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19343. ac_status=$?
  19344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19345. test $ac_status = 0; }; then
  19346. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19347. else
  19348. pkg_failed=yes
  19349. fi
  19350. else
  19351. pkg_failed=untried
  19352. fi
  19353. if test $pkg_failed = yes; then
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19355. $as_echo "no" >&6; }
  19356. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19357. _pkg_short_errors_supported=yes
  19358. else
  19359. _pkg_short_errors_supported=no
  19360. fi
  19361. if test $_pkg_short_errors_supported = yes; then
  19362. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19363. else
  19364. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19365. fi
  19366. # Put the nasty error message in config.log where it belongs
  19367. echo "$DBUS_PKG_ERRORS" >&5
  19368. have_dbus=no
  19369. elif test $pkg_failed = untried; then
  19370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19371. $as_echo "no" >&6; }
  19372. have_dbus=no
  19373. else
  19374. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19375. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19377. $as_echo "yes" >&6; }
  19378. have_dbus=yes
  19379. fi
  19380. save_CFLAGS="$CFLAGS"
  19381. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19382. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19383. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19384. have_dbus_dbus_h_hdr=yes
  19385. else
  19386. have_dbus_dbus_h_hdr=no
  19387. fi
  19388. CFLAGS="$save_CFLAGS"
  19389. if test x$have_dbus_dbus_h_hdr = xyes; then
  19390. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19391. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19392. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19393. fi
  19394. fi
  19395. }
  19396. CheckIME()
  19397. {
  19398. # Check whether --enable-ime was given.
  19399. if test "${enable_ime+set}" = set; then :
  19400. enableval=$enable_ime;
  19401. else
  19402. enable_ime=yes
  19403. fi
  19404. if test x$enable_ime = xyes; then
  19405. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19406. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19407. fi
  19408. }
  19409. CheckIBus()
  19410. {
  19411. # Check whether --enable-ibus was given.
  19412. if test "${enable_ibus+set}" = set; then :
  19413. enableval=$enable_ibus;
  19414. else
  19415. enable_ibus=yes
  19416. fi
  19417. if test x$enable_ibus = xyes; then
  19418. pkg_failed=no
  19419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19420. $as_echo_n "checking for IBUS... " >&6; }
  19421. if test -n "$IBUS_CFLAGS"; then
  19422. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19423. elif test -n "$PKG_CONFIG"; then
  19424. if test -n "$PKG_CONFIG" && \
  19425. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19426. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19427. ac_status=$?
  19428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19429. test $ac_status = 0; }; then
  19430. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19431. else
  19432. pkg_failed=yes
  19433. fi
  19434. else
  19435. pkg_failed=untried
  19436. fi
  19437. if test -n "$IBUS_LIBS"; then
  19438. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19439. elif test -n "$PKG_CONFIG"; then
  19440. if test -n "$PKG_CONFIG" && \
  19441. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19442. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19443. ac_status=$?
  19444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19445. test $ac_status = 0; }; then
  19446. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19447. else
  19448. pkg_failed=yes
  19449. fi
  19450. else
  19451. pkg_failed=untried
  19452. fi
  19453. if test $pkg_failed = yes; then
  19454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19455. $as_echo "no" >&6; }
  19456. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19457. _pkg_short_errors_supported=yes
  19458. else
  19459. _pkg_short_errors_supported=no
  19460. fi
  19461. if test $_pkg_short_errors_supported = yes; then
  19462. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19463. else
  19464. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19465. fi
  19466. # Put the nasty error message in config.log where it belongs
  19467. echo "$IBUS_PKG_ERRORS" >&5
  19468. have_ibus=no
  19469. elif test $pkg_failed = untried; then
  19470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19471. $as_echo "no" >&6; }
  19472. have_ibus=no
  19473. else
  19474. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19475. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19477. $as_echo "yes" >&6; }
  19478. have_ibus=yes
  19479. fi
  19480. save_CFLAGS="$CFLAGS"
  19481. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19482. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19483. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19484. have_ibus_ibus_h_hdr=yes
  19485. else
  19486. have_ibus_ibus_h_hdr=no
  19487. fi
  19488. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19489. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19490. have_inotify_inotify_h_hdr=yes
  19491. else
  19492. have_inotify_inotify_h_hdr=no
  19493. fi
  19494. CFLAGS="$save_CFLAGS"
  19495. if test x$have_ibus_ibus_h_hdr = xyes; then
  19496. if test x$enable_ime != xyes; then
  19497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19498. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19499. have_ibus_ibus_h_hdr=no
  19500. elif test x$enable_dbus != xyes; then
  19501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19502. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19503. have_ibus_ibus_h_hdr=no
  19504. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19506. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19507. have_ibus_ibus_h_hdr=no
  19508. else
  19509. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19510. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19511. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19512. fi
  19513. fi
  19514. fi
  19515. }
  19516. CheckFcitx()
  19517. {
  19518. # Check whether --enable-fcitx was given.
  19519. if test "${enable_fcitx+set}" = set; then :
  19520. enableval=$enable_fcitx;
  19521. else
  19522. enable_fcitx=yes
  19523. fi
  19524. if test x$enable_fcitx = xyes; then
  19525. pkg_failed=no
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19527. $as_echo_n "checking for FCITX... " >&6; }
  19528. if test -n "$FCITX_CFLAGS"; then
  19529. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19530. elif test -n "$PKG_CONFIG"; then
  19531. if test -n "$PKG_CONFIG" && \
  19532. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19533. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19534. ac_status=$?
  19535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19536. test $ac_status = 0; }; then
  19537. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19538. else
  19539. pkg_failed=yes
  19540. fi
  19541. else
  19542. pkg_failed=untried
  19543. fi
  19544. if test -n "$FCITX_LIBS"; then
  19545. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19546. elif test -n "$PKG_CONFIG"; then
  19547. if test -n "$PKG_CONFIG" && \
  19548. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19549. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19550. ac_status=$?
  19551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19552. test $ac_status = 0; }; then
  19553. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19554. else
  19555. pkg_failed=yes
  19556. fi
  19557. else
  19558. pkg_failed=untried
  19559. fi
  19560. if test $pkg_failed = yes; then
  19561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19562. $as_echo "no" >&6; }
  19563. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19564. _pkg_short_errors_supported=yes
  19565. else
  19566. _pkg_short_errors_supported=no
  19567. fi
  19568. if test $_pkg_short_errors_supported = yes; then
  19569. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19570. else
  19571. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19572. fi
  19573. # Put the nasty error message in config.log where it belongs
  19574. echo "$FCITX_PKG_ERRORS" >&5
  19575. have_fcitx=no
  19576. elif test $pkg_failed = untried; then
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19578. $as_echo "no" >&6; }
  19579. have_fcitx=no
  19580. else
  19581. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19582. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19584. $as_echo "yes" >&6; }
  19585. have_fcitx=yes
  19586. fi
  19587. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19588. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19589. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19590. have_fcitx_frontend_h_hdr=yes
  19591. else
  19592. have_fcitx_frontend_h_hdr=no
  19593. fi
  19594. CFLAGS="$save_CFLAGS"
  19595. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19596. if test x$enable_ime != xyes; then
  19597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19598. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19599. have_fcitx_frontend_h_hdr=no
  19600. elif test x$enable_dbus != xyes; then
  19601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19602. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19603. have_fcitx_frontend_h_hdr=no
  19604. else
  19605. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19606. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19607. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19608. fi
  19609. fi
  19610. fi
  19611. }
  19612. CheckTslib()
  19613. {
  19614. # Check whether --enable-input-tslib was given.
  19615. if test "${enable_input_tslib+set}" = set; then :
  19616. enableval=$enable_input_tslib;
  19617. else
  19618. enable_input_tslib=yes
  19619. fi
  19620. if test x$enable_input_tslib = xyes; then
  19621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19622. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19623. enable_input_tslib=no
  19624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19625. /* end confdefs.h. */
  19626. #include "tslib.h"
  19627. int
  19628. main ()
  19629. {
  19630. ;
  19631. return 0;
  19632. }
  19633. _ACEOF
  19634. if ac_fn_c_try_compile "$LINENO"; then :
  19635. enable_input_tslib=yes
  19636. fi
  19637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19639. $as_echo "$enable_input_tslib" >&6; }
  19640. if test x$enable_input_tslib = xyes; then
  19641. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19643. SUMMARY_input="${SUMMARY_input} ts"
  19644. fi
  19645. fi
  19646. }
  19647. CheckPTHREAD()
  19648. {
  19649. # Check whether --enable-pthreads was given.
  19650. if test "${enable_pthreads+set}" = set; then :
  19651. enableval=$enable_pthreads;
  19652. else
  19653. enable_pthreads=yes
  19654. fi
  19655. # Check whether --enable-pthread-sem was given.
  19656. if test "${enable_pthread_sem+set}" = set; then :
  19657. enableval=$enable_pthread_sem;
  19658. else
  19659. enable_pthread_sem=yes
  19660. fi
  19661. case "$host" in
  19662. *-*-android*)
  19663. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19664. pthread_lib=""
  19665. ;;
  19666. *-*-linux*|*-*-uclinux*)
  19667. pthread_cflags="-D_REENTRANT"
  19668. pthread_lib="-lpthread"
  19669. ;;
  19670. *-*-bsdi*)
  19671. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19672. pthread_lib=""
  19673. ;;
  19674. *-*-darwin*)
  19675. pthread_cflags="-D_THREAD_SAFE"
  19676. # causes Carbon.p complaints?
  19677. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19678. ;;
  19679. *-*-freebsd*|*-*-dragonfly*)
  19680. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19681. pthread_lib="-pthread"
  19682. ;;
  19683. *-*-netbsd*)
  19684. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19685. pthread_lib="-lpthread"
  19686. ;;
  19687. *-*-openbsd*)
  19688. pthread_cflags="-D_REENTRANT"
  19689. pthread_lib="-pthread"
  19690. ;;
  19691. *-*-solaris2.9)
  19692. # From Solaris 9+, posix4's preferred name is rt.
  19693. pthread_cflags="-D_REENTRANT"
  19694. pthread_lib="-lpthread -lrt"
  19695. ;;
  19696. *-*-solaris2.10)
  19697. # Solaris 10+ merged pthread into libc.
  19698. pthread_cflags="-D_REENTRANT"
  19699. pthread_lib="-lrt"
  19700. ;;
  19701. *-*-solaris*)
  19702. # Solaris 11+ merged rt into libc.
  19703. pthread_cflags="-D_REENTRANT"
  19704. pthread_lib=""
  19705. ;;
  19706. *-*-sysv5*)
  19707. pthread_cflags="-D_REENTRANT -Kthread"
  19708. pthread_lib=""
  19709. ;;
  19710. *-*-aix*)
  19711. pthread_cflags="-D_REENTRANT -mthreads"
  19712. pthread_lib="-lpthread"
  19713. ;;
  19714. *-*-hpux11*)
  19715. pthread_cflags="-D_REENTRANT"
  19716. pthread_lib="-L/usr/lib -lpthread"
  19717. ;;
  19718. *-*-haiku*)
  19719. pthread_cflags="-D_REENTRANT"
  19720. pthread_lib=""
  19721. ;;
  19722. *-*-nto*)
  19723. pthread_cflags="-D_REENTRANT"
  19724. pthread_lib=""
  19725. ;;
  19726. *)
  19727. pthread_cflags="-D_REENTRANT"
  19728. pthread_lib="-lpthread"
  19729. ;;
  19730. esac
  19731. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19732. # Save the original compiler flags and libraries
  19733. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19734. # Add the pthread compiler flags and libraries
  19735. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19736. # Check to see if we have pthread support on this system
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19738. $as_echo_n "checking for pthreads... " >&6; }
  19739. use_pthreads=no
  19740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19741. /* end confdefs.h. */
  19742. #include <pthread.h>
  19743. int
  19744. main ()
  19745. {
  19746. pthread_attr_t type;
  19747. pthread_attr_init(&type);
  19748. ;
  19749. return 0;
  19750. }
  19751. _ACEOF
  19752. if ac_fn_c_try_link "$LINENO"; then :
  19753. use_pthreads=yes
  19754. fi
  19755. rm -f core conftest.err conftest.$ac_objext \
  19756. conftest$ac_exeext conftest.$ac_ext
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19758. $as_echo "$use_pthreads" >&6; }
  19759. # Restore the compiler flags and libraries
  19760. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19761. # Do futher testing if we have pthread support...
  19762. if test x$use_pthreads = xyes; then
  19763. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19764. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19765. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19766. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19767. # Save the original compiler flags and libraries
  19768. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19769. # Add the pthread compiler flags and libraries
  19770. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19771. # Check to see if recursive mutexes are available
  19772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19773. $as_echo_n "checking for recursive mutexes... " >&6; }
  19774. has_recursive_mutexes=no
  19775. if test x$has_recursive_mutexes = xno; then
  19776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19777. /* end confdefs.h. */
  19778. #define _GNU_SOURCE 1
  19779. #include <pthread.h>
  19780. int
  19781. main ()
  19782. {
  19783. pthread_mutexattr_t attr;
  19784. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19785. ;
  19786. return 0;
  19787. }
  19788. _ACEOF
  19789. if ac_fn_c_try_link "$LINENO"; then :
  19790. has_recursive_mutexes=yes
  19791. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19792. fi
  19793. rm -f core conftest.err conftest.$ac_objext \
  19794. conftest$ac_exeext conftest.$ac_ext
  19795. fi
  19796. if test x$has_recursive_mutexes = xno; then
  19797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19798. /* end confdefs.h. */
  19799. #define _GNU_SOURCE 1
  19800. #include <pthread.h>
  19801. int
  19802. main ()
  19803. {
  19804. pthread_mutexattr_t attr;
  19805. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19806. ;
  19807. return 0;
  19808. }
  19809. _ACEOF
  19810. if ac_fn_c_try_link "$LINENO"; then :
  19811. has_recursive_mutexes=yes
  19812. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19813. fi
  19814. rm -f core conftest.err conftest.$ac_objext \
  19815. conftest$ac_exeext conftest.$ac_ext
  19816. fi
  19817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19818. $as_echo "$has_recursive_mutexes" >&6; }
  19819. # Check to see if pthread semaphore support is missing
  19820. if test x$enable_pthread_sem = xyes; then
  19821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19822. $as_echo_n "checking for pthread semaphores... " >&6; }
  19823. have_pthread_sem=no
  19824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19825. /* end confdefs.h. */
  19826. #include <pthread.h>
  19827. #include <semaphore.h>
  19828. int
  19829. main ()
  19830. {
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_compile "$LINENO"; then :
  19836. have_pthread_sem=yes
  19837. fi
  19838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19840. $as_echo "$have_pthread_sem" >&6; }
  19841. fi
  19842. if test x$have_pthread_sem = xyes; then
  19843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19844. $as_echo_n "checking for sem_timedwait... " >&6; }
  19845. have_sem_timedwait=no
  19846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19847. /* end confdefs.h. */
  19848. #include <pthread.h>
  19849. #include <semaphore.h>
  19850. int
  19851. main ()
  19852. {
  19853. sem_timedwait(NULL, NULL);
  19854. ;
  19855. return 0;
  19856. }
  19857. _ACEOF
  19858. if ac_fn_c_try_link "$LINENO"; then :
  19859. have_sem_timedwait=yes
  19860. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19861. fi
  19862. rm -f core conftest.err conftest.$ac_objext \
  19863. conftest$ac_exeext conftest.$ac_ext
  19864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19865. $as_echo "$have_sem_timedwait" >&6; }
  19866. fi
  19867. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19868. "
  19869. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19870. have_pthread_np_h=yes
  19871. else
  19872. have_pthread_np_h=no
  19873. fi
  19874. if test x$have_pthread_np_h = xyes; then
  19875. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19876. fi
  19877. # Check to see if pthread naming is available
  19878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19879. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19881. /* end confdefs.h. */
  19882. /* Override any GCC internal prototype to avoid an error.
  19883. Use char because int might match the return type of a GCC
  19884. builtin and then its argument prototype would still apply. */
  19885. #ifdef __cplusplus
  19886. extern "C"
  19887. #endif
  19888. char pthread_setname_np ();
  19889. int
  19890. main ()
  19891. {
  19892. return pthread_setname_np ();
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"; then :
  19898. has_pthread_setname_np=yes
  19899. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19900. else
  19901. has_pthread_setname_np=no
  19902. fi
  19903. rm -f core conftest.err conftest.$ac_objext \
  19904. conftest$ac_exeext conftest.$ac_ext
  19905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19906. $as_echo "$has_pthread_setname_np" >&6; }
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19908. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19910. /* end confdefs.h. */
  19911. /* Override any GCC internal prototype to avoid an error.
  19912. Use char because int might match the return type of a GCC
  19913. builtin and then its argument prototype would still apply. */
  19914. #ifdef __cplusplus
  19915. extern "C"
  19916. #endif
  19917. char pthread_set_name_np ();
  19918. int
  19919. main ()
  19920. {
  19921. return pthread_set_name_np ();
  19922. ;
  19923. return 0;
  19924. }
  19925. _ACEOF
  19926. if ac_fn_c_try_link "$LINENO"; then :
  19927. has_pthread_set_name_np=yes
  19928. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19929. else
  19930. has_pthread_set_name_np=no
  19931. fi
  19932. rm -f core conftest.err conftest.$ac_objext \
  19933. conftest$ac_exeext conftest.$ac_ext
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19935. $as_echo "$has_pthread_set_name_np" >&6; }
  19936. # Restore the compiler flags and libraries
  19937. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19938. # Basic thread creation functions
  19939. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19940. # Semaphores
  19941. # We can fake these with mutexes and condition variables if necessary
  19942. if test x$have_pthread_sem = xyes; then
  19943. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19944. else
  19945. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19946. fi
  19947. # Mutexes
  19948. # We can fake these with semaphores if necessary
  19949. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19950. # Condition variables
  19951. # We can fake these with semaphores and mutexes if necessary
  19952. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19953. # Thread local storage
  19954. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19955. have_threads=yes
  19956. fi
  19957. fi
  19958. }
  19959. CheckWINDOWS()
  19960. {
  19961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19962. $as_echo_n "checking Windows compiler... " >&6; }
  19963. have_win32_gcc=no
  19964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19965. /* end confdefs.h. */
  19966. #include <windows.h>
  19967. int
  19968. main ()
  19969. {
  19970. ;
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. if ac_fn_c_try_compile "$LINENO"; then :
  19975. have_win32_gcc=yes
  19976. fi
  19977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19979. $as_echo "$have_win32_gcc" >&6; }
  19980. if test x$have_win32_gcc != xyes; then
  19981. as_fn_error $? "
  19982. *** Your compiler ($CC) does not produce Windows executables!
  19983. " "$LINENO" 5
  19984. fi
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19986. $as_echo_n "checking Windows CE... " >&6; }
  19987. have_wince=no
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19991. #error This is not Windows CE
  19992. #endif
  19993. int
  19994. main ()
  19995. {
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_compile "$LINENO"; then :
  20001. have_wince=yes
  20002. as_fn_error $? "
  20003. *** Sorry, Windows CE is no longer supported.
  20004. " "$LINENO" 5
  20005. fi
  20006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20008. $as_echo "$have_wince" >&6; }
  20009. # This fixes Windows stack alignment with newer GCC
  20010. CheckStackBoundary
  20011. }
  20012. CheckDIRECTX()
  20013. {
  20014. # Check whether --enable-directx was given.
  20015. if test "${enable_directx+set}" = set; then :
  20016. enableval=$enable_directx;
  20017. else
  20018. enable_directx=yes
  20019. fi
  20020. if test x$enable_directx = xyes; then
  20021. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20022. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20023. have_d3d=yes
  20024. fi
  20025. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20026. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20027. have_d3d11=yes
  20028. fi
  20029. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20030. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20031. have_ddraw=yes
  20032. fi
  20033. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20034. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20035. have_dsound=yes
  20036. fi
  20037. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20038. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20039. have_dinput=yes
  20040. fi
  20041. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20042. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20043. have_dxgi=yes
  20044. fi
  20045. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20046. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20047. have_xinput=yes
  20048. fi
  20049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20050. /* end confdefs.h. */
  20051. #include <windows.h>
  20052. #include <xinput.h>
  20053. XINPUT_GAMEPAD_EX x1;
  20054. int
  20055. main ()
  20056. {
  20057. ;
  20058. return 0;
  20059. }
  20060. _ACEOF
  20061. if ac_fn_c_try_compile "$LINENO"; then :
  20062. have_xinput_gamepadex=yes
  20063. fi
  20064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20066. /* end confdefs.h. */
  20067. #include <windows.h>
  20068. #include <xinput.h>
  20069. XINPUT_STATE_EX s1;
  20070. int
  20071. main ()
  20072. {
  20073. ;
  20074. return 0;
  20075. }
  20076. _ACEOF
  20077. if ac_fn_c_try_compile "$LINENO"; then :
  20078. have_xinput_stateex=yes
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20081. if test x$have_ddraw = xyes; then
  20082. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20083. fi
  20084. if test x$have_dinput = xyes; then
  20085. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20086. fi
  20087. if test x$have_dsound = xyes; then
  20088. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20089. fi
  20090. if test x$have_dxgi = xyes; then
  20091. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20092. fi
  20093. if test x$have_xinput = xyes; then
  20094. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20095. fi
  20096. if test x$have_xinput_gamepadex = xyes; then
  20097. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20098. fi
  20099. if test x$have_xinput_stateex = xyes; then
  20100. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20101. fi
  20102. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20103. # FIXME: ...so force it off for now.
  20104. case "$host" in
  20105. *-*-cygwin*)
  20106. have_dinput=false
  20107. ;;
  20108. esac
  20109. fi
  20110. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20111. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20112. have_wasapi=yes
  20113. fi
  20114. if test x$have_wasapi = xyes; then
  20115. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20116. fi
  20117. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20118. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20119. else
  20120. have_wasapi=no
  20121. fi
  20122. if test x$have_wasapi = xyes; then
  20123. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20124. fi
  20125. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  20126. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  20127. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  20128. fi
  20129. # Check whether --enable-wasapi was given.
  20130. if test "${enable_wasapi+set}" = set; then :
  20131. enableval=$enable_wasapi;
  20132. else
  20133. enable_wasapi=yes
  20134. fi
  20135. }
  20136. CheckDLOPEN()
  20137. {
  20138. # Check whether --enable-sdl-dlopen was given.
  20139. if test "${enable_sdl_dlopen+set}" = set; then :
  20140. enableval=$enable_sdl_dlopen;
  20141. else
  20142. enable_sdl_dlopen=yes
  20143. fi
  20144. if test x$enable_sdl_dlopen = xyes; then
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20146. $as_echo_n "checking for dlopen... " >&6; }
  20147. have_dlopen=no
  20148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20149. /* end confdefs.h. */
  20150. #include <dlfcn.h>
  20151. int
  20152. main ()
  20153. {
  20154. void *handle = dlopen("", RTLD_NOW);
  20155. const char *loaderror = (char *) dlerror();
  20156. ;
  20157. return 0;
  20158. }
  20159. _ACEOF
  20160. if ac_fn_c_try_compile "$LINENO"; then :
  20161. have_dlopen=yes
  20162. fi
  20163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20165. $as_echo "$have_dlopen" >&6; }
  20166. if test x$have_dlopen = xyes; then
  20167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20168. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20169. if ${ac_cv_lib_c_dlopen+:} false; then :
  20170. $as_echo_n "(cached) " >&6
  20171. else
  20172. ac_check_lib_save_LIBS=$LIBS
  20173. LIBS="-lc $LIBS"
  20174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20175. /* end confdefs.h. */
  20176. /* Override any GCC internal prototype to avoid an error.
  20177. Use char because int might match the return type of a GCC
  20178. builtin and then its argument prototype would still apply. */
  20179. #ifdef __cplusplus
  20180. extern "C"
  20181. #endif
  20182. char dlopen ();
  20183. int
  20184. main ()
  20185. {
  20186. return dlopen ();
  20187. ;
  20188. return 0;
  20189. }
  20190. _ACEOF
  20191. if ac_fn_c_try_link "$LINENO"; then :
  20192. ac_cv_lib_c_dlopen=yes
  20193. else
  20194. ac_cv_lib_c_dlopen=no
  20195. fi
  20196. rm -f core conftest.err conftest.$ac_objext \
  20197. conftest$ac_exeext conftest.$ac_ext
  20198. LIBS=$ac_check_lib_save_LIBS
  20199. fi
  20200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20201. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20202. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20204. else
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20206. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20207. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20208. $as_echo_n "(cached) " >&6
  20209. else
  20210. ac_check_lib_save_LIBS=$LIBS
  20211. LIBS="-ldl $LIBS"
  20212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20213. /* end confdefs.h. */
  20214. /* Override any GCC internal prototype to avoid an error.
  20215. Use char because int might match the return type of a GCC
  20216. builtin and then its argument prototype would still apply. */
  20217. #ifdef __cplusplus
  20218. extern "C"
  20219. #endif
  20220. char dlopen ();
  20221. int
  20222. main ()
  20223. {
  20224. return dlopen ();
  20225. ;
  20226. return 0;
  20227. }
  20228. _ACEOF
  20229. if ac_fn_c_try_link "$LINENO"; then :
  20230. ac_cv_lib_dl_dlopen=yes
  20231. else
  20232. ac_cv_lib_dl_dlopen=no
  20233. fi
  20234. rm -f core conftest.err conftest.$ac_objext \
  20235. conftest$ac_exeext conftest.$ac_ext
  20236. LIBS=$ac_check_lib_save_LIBS
  20237. fi
  20238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20239. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20240. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20242. else
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20244. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20245. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20246. $as_echo_n "(cached) " >&6
  20247. else
  20248. ac_check_lib_save_LIBS=$LIBS
  20249. LIBS="-lltdl $LIBS"
  20250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20251. /* end confdefs.h. */
  20252. /* Override any GCC internal prototype to avoid an error.
  20253. Use char because int might match the return type of a GCC
  20254. builtin and then its argument prototype would still apply. */
  20255. #ifdef __cplusplus
  20256. extern "C"
  20257. #endif
  20258. char dlopen ();
  20259. int
  20260. main ()
  20261. {
  20262. return dlopen ();
  20263. ;
  20264. return 0;
  20265. }
  20266. _ACEOF
  20267. if ac_fn_c_try_link "$LINENO"; then :
  20268. ac_cv_lib_ltdl_dlopen=yes
  20269. else
  20270. ac_cv_lib_ltdl_dlopen=no
  20271. fi
  20272. rm -f core conftest.err conftest.$ac_objext \
  20273. conftest$ac_exeext conftest.$ac_ext
  20274. LIBS=$ac_check_lib_save_LIBS
  20275. fi
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20277. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20278. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20280. fi
  20281. fi
  20282. fi
  20283. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20284. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20285. have_loadso=yes
  20286. fi
  20287. fi
  20288. }
  20289. CheckUSBHID()
  20290. {
  20291. case "$host" in
  20292. *-*-*bsd*)
  20293. if test x$enable_joystick = xyes; then
  20294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20295. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20296. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20297. $as_echo_n "(cached) " >&6
  20298. else
  20299. ac_check_lib_save_LIBS=$LIBS
  20300. LIBS="-lusbhid $LIBS"
  20301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20302. /* end confdefs.h. */
  20303. /* Override any GCC internal prototype to avoid an error.
  20304. Use char because int might match the return type of a GCC
  20305. builtin and then its argument prototype would still apply. */
  20306. #ifdef __cplusplus
  20307. extern "C"
  20308. #endif
  20309. char hid_init ();
  20310. int
  20311. main ()
  20312. {
  20313. return hid_init ();
  20314. ;
  20315. return 0;
  20316. }
  20317. _ACEOF
  20318. if ac_fn_c_try_link "$LINENO"; then :
  20319. ac_cv_lib_usbhid_hid_init=yes
  20320. else
  20321. ac_cv_lib_usbhid_hid_init=no
  20322. fi
  20323. rm -f core conftest.err conftest.$ac_objext \
  20324. conftest$ac_exeext conftest.$ac_ext
  20325. LIBS=$ac_check_lib_save_LIBS
  20326. fi
  20327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20328. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20329. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20330. have_libusbhid=yes
  20331. fi
  20332. if test x$have_libusbhid = xyes; then
  20333. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20334. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20335. USB_CFLAGS="-DHAVE_USBHID_H"
  20336. fi
  20337. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20338. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20339. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20340. fi
  20341. USB_LIBS="$USB_LIBS -lusbhid"
  20342. else
  20343. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20344. if test "x$ac_cv_header_usb_h" = xyes; then :
  20345. USB_CFLAGS="-DHAVE_USB_H"
  20346. fi
  20347. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20348. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20349. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20350. fi
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20352. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20353. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20354. $as_echo_n "(cached) " >&6
  20355. else
  20356. ac_check_lib_save_LIBS=$LIBS
  20357. LIBS="-lusb $LIBS"
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. /* Override any GCC internal prototype to avoid an error.
  20361. Use char because int might match the return type of a GCC
  20362. builtin and then its argument prototype would still apply. */
  20363. #ifdef __cplusplus
  20364. extern "C"
  20365. #endif
  20366. char hid_init ();
  20367. int
  20368. main ()
  20369. {
  20370. return hid_init ();
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_link "$LINENO"; then :
  20376. ac_cv_lib_usb_hid_init=yes
  20377. else
  20378. ac_cv_lib_usb_hid_init=no
  20379. fi
  20380. rm -f core conftest.err conftest.$ac_objext \
  20381. conftest$ac_exeext conftest.$ac_ext
  20382. LIBS=$ac_check_lib_save_LIBS
  20383. fi
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20385. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20386. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20387. USB_LIBS="$USB_LIBS -lusb"
  20388. fi
  20389. fi
  20390. save_CFLAGS="$CFLAGS"
  20391. CFLAGS="$CFLAGS $USB_CFLAGS"
  20392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20393. $as_echo_n "checking for usbhid... " >&6; }
  20394. have_usbhid=no
  20395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20396. /* end confdefs.h. */
  20397. #include <sys/types.h>
  20398. #if defined(HAVE_USB_H)
  20399. #include <usb.h>
  20400. #endif
  20401. #ifdef __DragonFly__
  20402. # include <bus/usb/usb.h>
  20403. # include <bus/usb/usbhid.h>
  20404. #else
  20405. # include <dev/usb/usb.h>
  20406. # include <dev/usb/usbhid.h>
  20407. #endif
  20408. #if defined(HAVE_USBHID_H)
  20409. #include <usbhid.h>
  20410. #elif defined(HAVE_LIBUSB_H)
  20411. #include <libusb.h>
  20412. #elif defined(HAVE_LIBUSBHID_H)
  20413. #include <libusbhid.h>
  20414. #endif
  20415. int
  20416. main ()
  20417. {
  20418. struct report_desc *repdesc;
  20419. struct usb_ctl_report *repbuf;
  20420. hid_kind_t hidkind;
  20421. ;
  20422. return 0;
  20423. }
  20424. _ACEOF
  20425. if ac_fn_c_try_compile "$LINENO"; then :
  20426. have_usbhid=yes
  20427. fi
  20428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20430. $as_echo "$have_usbhid" >&6; }
  20431. if test x$have_usbhid = xyes; then
  20432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20433. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20434. have_usbhid_ucr_data=no
  20435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20436. /* end confdefs.h. */
  20437. #include <sys/types.h>
  20438. #if defined(HAVE_USB_H)
  20439. #include <usb.h>
  20440. #endif
  20441. #ifdef __DragonFly__
  20442. # include <bus/usb/usb.h>
  20443. # include <bus/usb/usbhid.h>
  20444. #else
  20445. # include <dev/usb/usb.h>
  20446. # include <dev/usb/usbhid.h>
  20447. #endif
  20448. #if defined(HAVE_USBHID_H)
  20449. #include <usbhid.h>
  20450. #elif defined(HAVE_LIBUSB_H)
  20451. #include <libusb.h>
  20452. #elif defined(HAVE_LIBUSBHID_H)
  20453. #include <libusbhid.h>
  20454. #endif
  20455. int
  20456. main ()
  20457. {
  20458. struct usb_ctl_report buf;
  20459. if (buf.ucr_data) { }
  20460. ;
  20461. return 0;
  20462. }
  20463. _ACEOF
  20464. if ac_fn_c_try_compile "$LINENO"; then :
  20465. have_usbhid_ucr_data=yes
  20466. fi
  20467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20468. if test x$have_usbhid_ucr_data = xyes; then
  20469. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20470. fi
  20471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20472. $as_echo "$have_usbhid_ucr_data" >&6; }
  20473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20474. $as_echo_n "checking for new usbhid API... " >&6; }
  20475. have_usbhid_new=no
  20476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20477. /* end confdefs.h. */
  20478. #include <sys/types.h>
  20479. #if defined(HAVE_USB_H)
  20480. #include <usb.h>
  20481. #endif
  20482. #ifdef __DragonFly__
  20483. #include <bus/usb/usb.h>
  20484. #include <bus/usb/usbhid.h>
  20485. #else
  20486. #include <dev/usb/usb.h>
  20487. #include <dev/usb/usbhid.h>
  20488. #endif
  20489. #if defined(HAVE_USBHID_H)
  20490. #include <usbhid.h>
  20491. #elif defined(HAVE_LIBUSB_H)
  20492. #include <libusb.h>
  20493. #elif defined(HAVE_LIBUSBHID_H)
  20494. #include <libusbhid.h>
  20495. #endif
  20496. int
  20497. main ()
  20498. {
  20499. report_desc_t d;
  20500. hid_start_parse(d, 1, 1);
  20501. ;
  20502. return 0;
  20503. }
  20504. _ACEOF
  20505. if ac_fn_c_try_compile "$LINENO"; then :
  20506. have_usbhid_new=yes
  20507. fi
  20508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20509. if test x$have_usbhid_new = xyes; then
  20510. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20511. fi
  20512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20513. $as_echo "$have_usbhid_new" >&6; }
  20514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20515. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20516. have_machine_joystick=no
  20517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20518. /* end confdefs.h. */
  20519. #include <machine/joystick.h>
  20520. int
  20521. main ()
  20522. {
  20523. struct joystick t;
  20524. ;
  20525. return 0;
  20526. }
  20527. _ACEOF
  20528. if ac_fn_c_try_compile "$LINENO"; then :
  20529. have_machine_joystick=yes
  20530. fi
  20531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20532. if test x$have_machine_joystick = xyes; then
  20533. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20534. fi
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20536. $as_echo "$have_machine_joystick" >&6; }
  20537. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20538. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20539. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20541. have_joystick=yes
  20542. fi
  20543. CFLAGS="$save_CFLAGS"
  20544. fi
  20545. ;;
  20546. esac
  20547. }
  20548. CheckHIDAPI()
  20549. {
  20550. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20551. # so we'll just use libusb when it's available.
  20552. #
  20553. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20554. #
  20555. # On macOS and Windows, where you don't need libusb or root, we default to yes.
  20556. skiplibusb=no
  20557. case "$host" in
  20558. *-*-cygwin* | *-*-mingw32* | *-*-darwin* )
  20559. skiplibusb=yes
  20560. ;;
  20561. esac
  20562. # Check whether --enable-hidapi was given.
  20563. if test "${enable_hidapi+set}" = set; then :
  20564. enableval=$enable_hidapi;
  20565. else
  20566. enable_hidapi=maybe
  20567. fi
  20568. hidapi_support=no
  20569. if test x$enable_hidapi = xmaybe; then
  20570. enable_hidapi=$skiplibusb
  20571. fi
  20572. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20573. if test x$skiplibusb = xyes; then
  20574. hidapi_support=yes
  20575. else
  20576. pkg_failed=no
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20578. $as_echo_n "checking for LIBUSB... " >&6; }
  20579. if test -n "$LIBUSB_CFLAGS"; then
  20580. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20581. elif test -n "$PKG_CONFIG"; then
  20582. if test -n "$PKG_CONFIG" && \
  20583. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20584. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20585. ac_status=$?
  20586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20587. test $ac_status = 0; }; then
  20588. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20589. else
  20590. pkg_failed=yes
  20591. fi
  20592. else
  20593. pkg_failed=untried
  20594. fi
  20595. if test -n "$LIBUSB_LIBS"; then
  20596. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20597. elif test -n "$PKG_CONFIG"; then
  20598. if test -n "$PKG_CONFIG" && \
  20599. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20600. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20601. ac_status=$?
  20602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20603. test $ac_status = 0; }; then
  20604. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20605. else
  20606. pkg_failed=yes
  20607. fi
  20608. else
  20609. pkg_failed=untried
  20610. fi
  20611. if test $pkg_failed = yes; then
  20612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20613. $as_echo "no" >&6; }
  20614. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20615. _pkg_short_errors_supported=yes
  20616. else
  20617. _pkg_short_errors_supported=no
  20618. fi
  20619. if test $_pkg_short_errors_supported = yes; then
  20620. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20621. else
  20622. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20623. fi
  20624. # Put the nasty error message in config.log where it belongs
  20625. echo "$LIBUSB_PKG_ERRORS" >&5
  20626. have_libusb=no
  20627. elif test $pkg_failed = untried; then
  20628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20629. $as_echo "no" >&6; }
  20630. have_libusb=no
  20631. else
  20632. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20633. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20635. $as_echo "yes" >&6; }
  20636. have_libusb=yes
  20637. fi
  20638. save_CFLAGS="$CFLAGS"
  20639. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20640. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20641. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20642. have_libusb_h=yes
  20643. fi
  20644. CFLAGS="$save_CFLAGS"
  20645. if test x$have_libusb_h = xyes; then
  20646. hidapi_support=yes
  20647. fi
  20648. fi
  20649. if test x$hidapi_support = xyes; then
  20650. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20651. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20652. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20653. if test x$skiplibusb = xno; then
  20654. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20655. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20656. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20657. fi
  20658. fi
  20659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20660. $as_echo_n "checking for hidapi support... " >&6; }
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20662. $as_echo "$hidapi_support" >&6; }
  20663. fi
  20664. }
  20665. CheckClockGettime()
  20666. {
  20667. # Check whether --enable-clock_gettime was given.
  20668. if test "${enable_clock_gettime+set}" = set; then :
  20669. enableval=$enable_clock_gettime;
  20670. else
  20671. enable_clock_gettime=yes
  20672. fi
  20673. if test x$enable_clock_gettime = xyes; then
  20674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20675. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20676. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20677. $as_echo_n "(cached) " >&6
  20678. else
  20679. ac_check_lib_save_LIBS=$LIBS
  20680. LIBS="-lrt $LIBS"
  20681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20682. /* end confdefs.h. */
  20683. /* Override any GCC internal prototype to avoid an error.
  20684. Use char because int might match the return type of a GCC
  20685. builtin and then its argument prototype would still apply. */
  20686. #ifdef __cplusplus
  20687. extern "C"
  20688. #endif
  20689. char clock_gettime ();
  20690. int
  20691. main ()
  20692. {
  20693. return clock_gettime ();
  20694. ;
  20695. return 0;
  20696. }
  20697. _ACEOF
  20698. if ac_fn_c_try_link "$LINENO"; then :
  20699. ac_cv_lib_rt_clock_gettime=yes
  20700. else
  20701. ac_cv_lib_rt_clock_gettime=no
  20702. fi
  20703. rm -f core conftest.err conftest.$ac_objext \
  20704. conftest$ac_exeext conftest.$ac_ext
  20705. LIBS=$ac_check_lib_save_LIBS
  20706. fi
  20707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20708. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20709. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20710. have_clock_gettime=yes
  20711. fi
  20712. if test x$have_clock_gettime = xyes; then
  20713. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20714. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20715. else
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20717. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20718. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20719. $as_echo_n "(cached) " >&6
  20720. else
  20721. ac_check_lib_save_LIBS=$LIBS
  20722. LIBS="-lc $LIBS"
  20723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20724. /* end confdefs.h. */
  20725. /* Override any GCC internal prototype to avoid an error.
  20726. Use char because int might match the return type of a GCC
  20727. builtin and then its argument prototype would still apply. */
  20728. #ifdef __cplusplus
  20729. extern "C"
  20730. #endif
  20731. char clock_gettime ();
  20732. int
  20733. main ()
  20734. {
  20735. return clock_gettime ();
  20736. ;
  20737. return 0;
  20738. }
  20739. _ACEOF
  20740. if ac_fn_c_try_link "$LINENO"; then :
  20741. ac_cv_lib_c_clock_gettime=yes
  20742. else
  20743. ac_cv_lib_c_clock_gettime=no
  20744. fi
  20745. rm -f core conftest.err conftest.$ac_objext \
  20746. conftest$ac_exeext conftest.$ac_ext
  20747. LIBS=$ac_check_lib_save_LIBS
  20748. fi
  20749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20750. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20751. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20752. have_clock_gettime=yes
  20753. fi
  20754. if test x$have_clock_gettime = xyes; then
  20755. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20757. fi
  20758. fi
  20759. fi
  20760. }
  20761. CheckLinuxVersion()
  20762. {
  20763. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20764. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20765. have_linux_version_h=yes
  20766. fi
  20767. if test x$have_linux_version_h = xyes; then
  20768. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20769. fi
  20770. }
  20771. CheckRPATH()
  20772. {
  20773. # Check whether --enable-rpath was given.
  20774. if test "${enable_rpath+set}" = set; then :
  20775. enableval=$enable_rpath;
  20776. else
  20777. enable_rpath=yes
  20778. fi
  20779. }
  20780. CheckEventSignals()
  20781. {
  20782. # Check whether --enable-backgrounding-signal was given.
  20783. if test "${enable_backgrounding_signal+set}" = set; then :
  20784. enableval=$enable_backgrounding_signal;
  20785. else
  20786. enable_backgrounding_signal=no
  20787. fi
  20788. if test x$enable_backgrounding_signal != xno; then
  20789. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20790. fi
  20791. # Check whether --enable-foregrounding-signal was given.
  20792. if test "${enable_foregrounding_signal+set}" = set; then :
  20793. enableval=$enable_foregrounding_signal;
  20794. else
  20795. enable_foregrounding_signal=no
  20796. fi
  20797. if test x$enable_foregrounding_signal != xno; then
  20798. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20799. fi
  20800. }
  20801. CheckWarnAll
  20802. CheckNoStrictAliasing
  20803. CheckEventSignals
  20804. case "$host" in
  20805. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20806. case "$host" in
  20807. *-*-android*)
  20808. # Android
  20809. ARCH=android
  20810. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20811. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20812. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20813. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20814. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20815. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20816. if test x$enable_video = xyes; then
  20817. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20818. # FIXME: confdefs? Not AC_DEFINE?
  20819. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20820. SUMMARY_video="${SUMMARY_video} android"
  20821. fi
  20822. ;;
  20823. *-*-linux*) ARCH=linux ;;
  20824. *-*-uclinux*) ARCH=linux ;;
  20825. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20826. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20827. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20828. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20829. *-*-bsdi*) ARCH=bsdi ;;
  20830. *-*-freebsd*) ARCH=freebsd ;;
  20831. *-*-dragonfly*) ARCH=freebsd ;;
  20832. *-*-netbsd*) ARCH=netbsd ;;
  20833. *-*-openbsd*) ARCH=openbsd ;;
  20834. *-*-sysv5*) ARCH=sysv5 ;;
  20835. *-*-solaris*) ARCH=solaris ;;
  20836. *-*-hpux*) ARCH=hpux ;;
  20837. *-*-aix*) ARCH=aix ;;
  20838. *-*-minix*) ARCH=minix ;;
  20839. *-*-nto*) ARCH=nto
  20840. CheckQNXVideo
  20841. ;;
  20842. esac
  20843. CheckVisibilityHidden
  20844. CheckDeclarationAfterStatement
  20845. CheckDummyVideo
  20846. CheckDiskAudio
  20847. CheckDummyAudio
  20848. CheckDLOPEN
  20849. CheckOSS
  20850. CheckALSA
  20851. CheckPulseAudio
  20852. CheckJACK
  20853. CheckARTSC
  20854. CheckESD
  20855. CheckNAS
  20856. CheckSNDIO
  20857. CheckFusionSound
  20858. CheckLibSampleRate
  20859. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20860. CheckRPI
  20861. CheckX11
  20862. CheckDirectFB
  20863. CheckKMSDRM
  20864. CheckOpenGLX11
  20865. CheckOpenGLESX11
  20866. CheckVulkan
  20867. CheckWayland
  20868. CheckInputEvents
  20869. CheckLibUDev
  20870. CheckDBus
  20871. CheckIME
  20872. CheckIBus
  20873. CheckFcitx
  20874. case $ARCH in
  20875. linux)
  20876. CheckInputKD
  20877. ;;
  20878. esac
  20879. CheckTslib
  20880. CheckUSBHID
  20881. CheckHIDAPI
  20882. CheckPTHREAD
  20883. CheckClockGettime
  20884. CheckLinuxVersion
  20885. CheckRPATH
  20886. CheckVivanteVideo
  20887. # Set up files for the audio library
  20888. if test x$enable_audio = xyes; then
  20889. case $ARCH in
  20890. sysv5|solaris|hpux)
  20891. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20892. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20893. SUMMARY_audio="${SUMMARY_audio} sun"
  20894. have_audio=yes
  20895. ;;
  20896. netbsd) # Don't use this on OpenBSD, it's busted.
  20897. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20898. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20899. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20900. have_audio=yes
  20901. ;;
  20902. aix)
  20903. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20904. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20905. SUMMARY_audio="${SUMMARY_audio} paudio"
  20906. have_audio=yes
  20907. ;;
  20908. android)
  20909. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20910. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20911. SUMMARY_audio="${SUMMARY_audio} android"
  20912. have_audio=yes
  20913. ;;
  20914. nto)
  20915. CheckQNXAudio
  20916. ;;
  20917. esac
  20918. fi
  20919. # Set up files for the joystick library
  20920. if test x$enable_joystick = xyes; then
  20921. case $ARCH in
  20922. linux)
  20923. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20924. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20925. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20926. have_joystick=yes
  20927. ;;
  20928. android)
  20929. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20930. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20931. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20932. have_joystick=yes
  20933. ;;
  20934. esac
  20935. fi
  20936. # Set up files for the haptic library
  20937. if test x$enable_haptic = xyes; then
  20938. case $ARCH in
  20939. linux)
  20940. if test x$use_input_events = xyes; then
  20941. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20942. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20943. have_haptic=yes
  20944. fi
  20945. ;;
  20946. android)
  20947. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20948. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20949. have_haptic=yes
  20950. ;;
  20951. esac
  20952. fi
  20953. # Set up files for the sensor library
  20954. if test x$enable_sensor = xyes; then
  20955. case $ARCH in
  20956. android)
  20957. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20958. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20959. have_sensor=yes
  20960. ;;
  20961. esac
  20962. fi
  20963. # Set up files for the power library
  20964. if test x$enable_power = xyes; then
  20965. case $ARCH in
  20966. linux)
  20967. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20968. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20969. have_power=yes
  20970. ;;
  20971. android)
  20972. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20973. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20974. have_power=yes
  20975. ;;
  20976. esac
  20977. fi
  20978. # Set up files for the filesystem library
  20979. if test x$enable_filesystem = xyes; then
  20980. case $ARCH in
  20981. android)
  20982. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20983. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20984. have_filesystem=yes
  20985. ;;
  20986. *)
  20987. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20988. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20989. have_filesystem=yes
  20990. ;;
  20991. esac
  20992. fi
  20993. # Set up files for the timer library
  20994. if test x$enable_timers = xyes; then
  20995. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20996. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20997. have_timers=yes
  20998. fi
  20999. # Set up files for udev hotplugging support
  21000. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21001. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21002. fi
  21003. # Set up files for evdev input
  21004. if test x$use_input_events = xyes; then
  21005. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21006. fi
  21007. # Set up other core UNIX files
  21008. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21009. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21010. ;;
  21011. *-*-cygwin* | *-*-mingw32*)
  21012. ARCH=win32
  21013. if test "$build" != "$host"; then # cross-compiling
  21014. # Default cross-compile location
  21015. ac_default_prefix=/usr/local/cross-tools/$host
  21016. else
  21017. # Look for the location of the tools and install there
  21018. if test "$BUILD_PREFIX" != ""; then
  21019. ac_default_prefix=$BUILD_PREFIX
  21020. fi
  21021. fi
  21022. CheckDeclarationAfterStatement
  21023. CheckDummyVideo
  21024. CheckDiskAudio
  21025. CheckDummyAudio
  21026. CheckWINDOWS
  21027. CheckWINDOWSGL
  21028. CheckWINDOWSGLES
  21029. CheckVulkan
  21030. CheckDIRECTX
  21031. CheckHIDAPI
  21032. # Set up the core platform files
  21033. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21034. # Set up files for the video library
  21035. if test x$enable_video = xyes; then
  21036. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21037. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21038. have_video=yes
  21039. # Check whether --enable-render-d3d was given.
  21040. if test "${enable_render_d3d+set}" = set; then :
  21041. enableval=$enable_render_d3d;
  21042. else
  21043. enable_render_d3d=yes
  21044. fi
  21045. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21046. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21047. SUMMARY_video="${SUMMARY_video} d3d9"
  21048. fi
  21049. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21050. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21051. SUMMARY_video="${SUMMARY_video} d3d11"
  21052. fi
  21053. fi
  21054. # Set up files for the audio library
  21055. if test x$enable_audio = xyes; then
  21056. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21057. SUMMARY_audio="${SUMMARY_audio} winmm"
  21058. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21059. if test x$have_dsound = xyes; then
  21060. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21061. SUMMARY_audio="${SUMMARY_audio} directsound"
  21062. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21063. fi
  21064. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21065. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21066. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21067. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21068. fi
  21069. have_audio=yes
  21070. fi
  21071. # Set up files for the joystick library
  21072. if test x$enable_joystick = xyes; then
  21073. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21074. if test x$have_xinput = xyes; then
  21075. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21076. fi
  21077. if test x$have_dinput = xyes; then
  21078. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21080. fi
  21081. else
  21082. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21083. fi
  21084. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21085. have_joystick=yes
  21086. if test x$hidapi_support = xyes; then
  21087. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  21088. fi
  21089. fi
  21090. if test x$enable_haptic = xyes; then
  21091. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21092. if test x$have_xinput = xyes; then
  21093. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21094. fi
  21095. if test x$have_dinput = xyes; then
  21096. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21097. fi
  21098. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21099. have_haptic=yes
  21100. fi
  21101. fi
  21102. if test x$enable_power = xyes; then
  21103. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21104. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21105. have_power=yes
  21106. fi
  21107. if test x$enable_filesystem = xyes; then
  21108. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21109. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21110. have_filesystem=yes
  21111. fi
  21112. # Set up files for the thread library
  21113. if test x$enable_threads = xyes; then
  21114. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21115. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21116. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21117. have_threads=yes
  21118. fi
  21119. # Set up files for the timer library
  21120. if test x$enable_timers = xyes; then
  21121. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21123. have_timers=yes
  21124. fi
  21125. # Set up files for the shared object loading library
  21126. if test x$enable_loadso = xyes; then
  21127. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21128. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21129. have_loadso=yes
  21130. fi
  21131. # Set up the system libraries we need
  21132. if test -f /lib/w32api/libuuid.a; then
  21133. LIBUUID=/lib/w32api/libuuid.a
  21134. else
  21135. LIBUUID=-luuid
  21136. fi
  21137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21138. # The Windows platform requires special setup
  21139. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21140. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21141. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21142. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21143. # Check to see if this is a mingw or cygwin build
  21144. have_mingw32=
  21145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21146. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21147. if ${ac_cv_lib_mingw32_main+:} false; then :
  21148. $as_echo_n "(cached) " >&6
  21149. else
  21150. ac_check_lib_save_LIBS=$LIBS
  21151. LIBS="-lmingw32 $LIBS"
  21152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21153. /* end confdefs.h. */
  21154. int
  21155. main ()
  21156. {
  21157. return main ();
  21158. ;
  21159. return 0;
  21160. }
  21161. _ACEOF
  21162. if ac_fn_c_try_link "$LINENO"; then :
  21163. ac_cv_lib_mingw32_main=yes
  21164. else
  21165. ac_cv_lib_mingw32_main=no
  21166. fi
  21167. rm -f core conftest.err conftest.$ac_objext \
  21168. conftest$ac_exeext conftest.$ac_ext
  21169. LIBS=$ac_check_lib_save_LIBS
  21170. fi
  21171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21172. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21173. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21174. have_mingw32=yes
  21175. fi
  21176. if test x$have_mingw32 = xyes; then
  21177. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21178. else
  21179. SDL_LIBS="-lcygwin $SDL_LIBS"
  21180. fi
  21181. ;;
  21182. *-*-beos*)
  21183. as_fn_error $? "
  21184. *** BeOS support has been removed as of SDL 2.0.2.
  21185. " "$LINENO" 5
  21186. ;;
  21187. *-*-haiku*)
  21188. ARCH=haiku
  21189. ac_default_prefix=/boot/system
  21190. CheckDummyVideo
  21191. CheckDiskAudio
  21192. CheckDummyAudio
  21193. CheckDLOPEN
  21194. CheckHaikuVideo
  21195. CheckHaikuGL
  21196. CheckPTHREAD
  21197. # Set up files for the audio library
  21198. if test x$enable_audio = xyes; then
  21199. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21200. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21201. SUMMARY_audio="${SUMMARY_audio} haiku"
  21202. have_audio=yes
  21203. fi
  21204. # Set up files for the joystick library
  21205. if test x$enable_joystick = xyes; then
  21206. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21207. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21208. have_joystick=yes
  21209. fi
  21210. # Set up files for the timer library
  21211. if test x$enable_timers = xyes; then
  21212. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21213. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21214. have_timers=yes
  21215. fi
  21216. # Set up files for the system power library
  21217. if test x$enable_power = xyes; then
  21218. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21219. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21220. have_power=yes
  21221. fi
  21222. # Set up files for the system filesystem library
  21223. if test x$enable_filesystem = xyes; then
  21224. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21225. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21226. have_filesystem=yes
  21227. fi
  21228. # The Haiku platform requires special setup.
  21229. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21231. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21232. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21233. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21235. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21236. if eval \${$as_ac_File+:} false; then :
  21237. $as_echo_n "(cached) " >&6
  21238. else
  21239. test "$cross_compiling" = yes &&
  21240. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21241. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21242. eval "$as_ac_File=yes"
  21243. else
  21244. eval "$as_ac_File=no"
  21245. fi
  21246. fi
  21247. eval ac_res=\$$as_ac_File
  21248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21249. $as_echo "$ac_res" >&6; }
  21250. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21252. else
  21253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21254. fi
  21255. ;;
  21256. arm*-apple-darwin*|*-ios-*)
  21257. ARCH=ios
  21258. CheckVisibilityHidden
  21259. CheckDeclarationAfterStatement
  21260. CheckDummyVideo
  21261. CheckDiskAudio
  21262. CheckDummyAudio
  21263. CheckDLOPEN
  21264. CheckMETAL
  21265. CheckVulkan
  21266. CheckPTHREAD
  21267. # Set up files for the audio library
  21268. if test x$enable_audio = xyes; then
  21269. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21270. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21271. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21272. have_audio=yes
  21273. fi
  21274. # Set up files for the joystick library
  21275. if test x$enable_joystick = xyes; then
  21276. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21277. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21278. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21279. have_joystick=yes
  21280. fi
  21281. # Set up files for the haptic library
  21282. #if test x$enable_haptic = xyes; then
  21283. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21284. # have_haptic=yes
  21285. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21286. #fi
  21287. # Set up files for the power library
  21288. if test x$enable_power = xyes; then
  21289. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21290. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21291. have_power=yes
  21292. fi
  21293. # Set up files for the filesystem library
  21294. if test x$enable_filesystem = xyes; then
  21295. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21296. have_filesystem=yes
  21297. fi
  21298. # Set up additional files for the file library
  21299. if test x$enable_file = xyes; then
  21300. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21301. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21302. fi
  21303. # Set up files for the timer library
  21304. if test x$enable_timers = xyes; then
  21305. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21306. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21307. have_timers=yes
  21308. fi
  21309. # Set up other core UNIX files
  21310. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21311. # The iOS platform requires special setup.
  21312. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21313. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21314. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21315. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21316. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21317. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21323. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21324. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21325. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21328. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21329. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21330. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21331. fi
  21332. ;;
  21333. *-*-darwin* )
  21334. # This could be either full "Mac OS X", or plain "Darwin" which is
  21335. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21336. # Next line is broken, and a few files below require Mac OS X (full)
  21337. ARCH=macosx
  21338. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21339. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21340. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21341. CheckVisibilityHidden
  21342. CheckDeclarationAfterStatement
  21343. CheckDummyVideo
  21344. CheckDiskAudio
  21345. CheckDummyAudio
  21346. CheckDLOPEN
  21347. CheckCOCOA
  21348. CheckMETAL
  21349. CheckX11
  21350. CheckMacGL
  21351. CheckMacGLES
  21352. CheckOpenGLX11
  21353. CheckVulkan
  21354. CheckPTHREAD
  21355. CheckHIDAPI
  21356. # Set up files for the audio library
  21357. if test x$enable_audio = xyes; then
  21358. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21359. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21361. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21362. have_audio=yes
  21363. fi
  21364. # Set up files for the joystick library
  21365. if test x$enable_joystick = xyes; then
  21366. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21367. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21368. have_joystick=yes
  21369. if test x$hidapi_support = xyes; then
  21370. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  21371. fi
  21372. fi
  21373. # Set up files for the haptic library
  21374. if test x$enable_haptic = xyes; then
  21375. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21376. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21378. have_haptic=yes
  21379. fi
  21380. # Set up files for the power library
  21381. if test x$enable_power = xyes; then
  21382. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21383. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21384. have_power=yes
  21385. fi
  21386. # Set up files for the filesystem library
  21387. if test x$enable_filesystem = xyes; then
  21388. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21389. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21390. have_filesystem=yes
  21391. fi
  21392. # Set up files for the timer library
  21393. if test x$enable_timers = xyes; then
  21394. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21395. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21396. have_timers=yes
  21397. fi
  21398. # Set up additional files for the file library
  21399. if test x$enable_file = xyes; then
  21400. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21401. fi
  21402. # Set up other core UNIX files
  21403. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21404. # The Mac OS X platform requires special setup.
  21405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21410. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21411. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21412. fi
  21413. ;;
  21414. *-nacl|*-pnacl)
  21415. ARCH=nacl
  21416. CheckNativeClient
  21417. CheckDummyAudio
  21418. CheckDummyVideo
  21419. CheckInputEvents
  21420. CheckPTHREAD
  21421. # Set up files for the timer library
  21422. if test x$enable_timers = xyes; then
  21423. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21424. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21425. have_timers=yes
  21426. fi
  21427. if test x$enable_filesystem = xyes; then
  21428. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21429. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21430. have_filesystem=yes
  21431. fi
  21432. ;;
  21433. *-*-emscripten* )
  21434. if test x$enable_video = xyes; then
  21435. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21436. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21437. have_video=yes
  21438. SUMMARY_video="${SUMMARY_video} emscripten"
  21439. fi
  21440. if test x$enable_audio = xyes; then
  21441. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21443. have_audio=yes
  21444. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21445. fi
  21446. CheckVisibilityHidden
  21447. CheckDeclarationAfterStatement
  21448. CheckDummyVideo
  21449. CheckDiskAudio
  21450. CheckDummyAudio
  21451. CheckDLOPEN
  21452. CheckClockGettime
  21453. CheckEmscriptenGLES
  21454. # Set up files for the power library
  21455. if test x$enable_power = xyes; then
  21456. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21457. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21458. have_power=yes
  21459. fi
  21460. # Set up files for the power library
  21461. if test x$enable_joystick = xyes; then
  21462. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21463. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21464. have_joystick=yes
  21465. fi
  21466. # Set up files for the filesystem library
  21467. if test x$enable_filesystem = xyes; then
  21468. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21469. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21470. have_filesystem=yes
  21471. fi
  21472. # Set up files for the timer library
  21473. if test x$enable_timers = xyes; then
  21474. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21475. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21476. have_timers=yes
  21477. fi
  21478. ;;
  21479. *)
  21480. as_fn_error $? "
  21481. *** Unsupported host: Please add to configure.ac
  21482. " "$LINENO" 5
  21483. ;;
  21484. esac
  21485. # Check whether to install sdl2-config
  21486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21487. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21488. # Check whether --enable-sdl2-config was given.
  21489. if test "${enable_sdl2_config+set}" = set; then :
  21490. enableval=$enable_sdl2_config; case "${enableval}" in
  21491. yes) enable_sdl2_config="TRUE" ;;
  21492. no) enable_sdl2_config="FALSE" ;;
  21493. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21494. esac
  21495. else
  21496. enable_sdl2_config="TRUE"
  21497. fi
  21498. if test "$enable_sdl2_config" = "TRUE"; then
  21499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21500. $as_echo "yes" >&6; }
  21501. else
  21502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21503. $as_echo "no" >&6; }
  21504. fi
  21505. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21506. # Verify that we have all the platform specific files we need
  21507. if test x$have_joystick != xyes; then
  21508. if test x$enable_joystick = xyes; then
  21509. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21510. fi
  21511. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21512. fi
  21513. if test x$have_haptic != xyes; then
  21514. if test x$enable_haptic = xyes; then
  21515. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21516. fi
  21517. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21518. fi
  21519. if test x$have_sensor != xyes; then
  21520. if test x$enable_sensor = xyes; then
  21521. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21522. fi
  21523. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21524. fi
  21525. if test x$have_threads != xyes; then
  21526. if test x$enable_threads = xyes; then
  21527. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21528. fi
  21529. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21530. fi
  21531. if test x$have_timers != xyes; then
  21532. if test x$enable_timers = xyes; then
  21533. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21534. fi
  21535. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21536. fi
  21537. if test x$have_filesystem != xyes; then
  21538. if test x$enable_filesystem = xyes; then
  21539. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21540. fi
  21541. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21542. fi
  21543. if test x$have_loadso != xyes; then
  21544. if test x$enable_loadso = xyes; then
  21545. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21546. fi
  21547. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21548. fi
  21549. if test x$SDLMAIN_SOURCES = x; then
  21550. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21551. fi
  21552. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21553. if test x$video_wayland = xyes; then
  21554. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21555. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21556. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21557. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21558. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21559. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21560. echo ;\
  21561. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21562. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21563. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21564. echo ;\
  21565. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21566. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21567. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21568. echo ;\
  21569. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21570. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21571. done ;\
  21572. echo ;\
  21573. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21574. fi
  21575. OBJECTS=`echo $SOURCES`
  21576. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21577. for EXT in asm cc m c S; do
  21578. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21579. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21580. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21581. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21582. done
  21583. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21584. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21585. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21586. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21587. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21588. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21589. \\$(WINDRES) \\$< \\$@,g"`
  21590. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21591. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21592. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21593. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21594. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21595. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21596. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21597. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21598. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21599. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21600. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21601. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21602. # Set runtime shared library paths as needed
  21603. if test "x$enable_rpath" = "xyes"; then
  21604. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21605. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21607. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21608. have_enable_new_dtags=no
  21609. save_LDFLAGS="$LDFLAGS"
  21610. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21612. /* end confdefs.h. */
  21613. int
  21614. main ()
  21615. {
  21616. ;
  21617. return 0;
  21618. }
  21619. _ACEOF
  21620. if ac_fn_c_try_link "$LINENO"; then :
  21621. have_enable_new_dtags=yes
  21622. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21623. fi
  21624. rm -f core conftest.err conftest.$ac_objext \
  21625. conftest$ac_exeext conftest.$ac_ext
  21626. LDFLAGS="$save_LDFLAGS"
  21627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21628. $as_echo "$have_enable_new_dtags" >&6; }
  21629. fi
  21630. if test $ARCH = solaris; then
  21631. SDL_RLD_FLAGS="-R\${libdir}"
  21632. fi
  21633. else
  21634. SDL_RLD_FLAGS=""
  21635. fi
  21636. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21637. if test x$enable_shared = xyes; then
  21638. ENABLE_SHARED_TRUE=
  21639. ENABLE_SHARED_FALSE="#"
  21640. else
  21641. ENABLE_SHARED_TRUE="#"
  21642. ENABLE_SHARED_FALSE=
  21643. fi
  21644. if test x$enable_static = xyes; then
  21645. ENABLE_STATIC_TRUE=
  21646. ENABLE_STATIC_FALSE="#"
  21647. else
  21648. ENABLE_STATIC_TRUE="#"
  21649. ENABLE_STATIC_FALSE=
  21650. fi
  21651. cat >Makefile.rules <<__EOF__
  21652. # Build rules for objects
  21653. -include \$(OBJECTS:.lo=.d)
  21654. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21655. $srcdir/src/SDL.c: update-revision
  21656. $DEPENDS
  21657. $VERSION_DEPENDS
  21658. $SDLMAIN_DEPENDS
  21659. $SDLTEST_DEPENDS
  21660. $WAYLAND_PROTOCOLS_DEPENDS
  21661. __EOF__
  21662. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21663. ac_config_commands="$ac_config_commands sdl2_config"
  21664. SUMMARY="SDL2 Configure Summary:\n"
  21665. if test x$enable_shared = xyes; then
  21666. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21667. fi
  21668. if test x$enable_static = xyes; then
  21669. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21670. fi
  21671. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21672. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21673. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21674. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21675. if test x$have_x = xyes; then
  21676. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21677. fi
  21678. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21679. if test x$have_samplerate_h_hdr = xyes; then
  21680. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21681. else
  21682. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21683. fi
  21684. if test x$have_libudev_h_hdr = xyes; then
  21685. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21686. else
  21687. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21688. fi
  21689. if test x$have_dbus_dbus_h_hdr = xyes; then
  21690. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21691. else
  21692. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21693. fi
  21694. if test x$enable_ime = xyes; then
  21695. SUMMARY="${SUMMARY}Using ime : YES\n"
  21696. else
  21697. SUMMARY="${SUMMARY}Using ime : NO\n"
  21698. fi
  21699. if test x$have_ibus_ibus_h_hdr = xyes; then
  21700. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21701. else
  21702. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21703. fi
  21704. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21705. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21706. else
  21707. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21708. fi
  21709. ac_config_commands="$ac_config_commands summary"
  21710. cat >confcache <<\_ACEOF
  21711. # This file is a shell script that caches the results of configure
  21712. # tests run on this system so they can be shared between configure
  21713. # scripts and configure runs, see configure's option --config-cache.
  21714. # It is not useful on other systems. If it contains results you don't
  21715. # want to keep, you may remove or edit it.
  21716. #
  21717. # config.status only pays attention to the cache file if you give it
  21718. # the --recheck option to rerun configure.
  21719. #
  21720. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21721. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21722. # following values.
  21723. _ACEOF
  21724. # The following way of writing the cache mishandles newlines in values,
  21725. # but we know of no workaround that is simple, portable, and efficient.
  21726. # So, we kill variables containing newlines.
  21727. # Ultrix sh set writes to stderr and can't be redirected directly,
  21728. # and sets the high bit in the cache file unless we assign to the vars.
  21729. (
  21730. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21731. eval ac_val=\$$ac_var
  21732. case $ac_val in #(
  21733. *${as_nl}*)
  21734. case $ac_var in #(
  21735. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21736. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21737. esac
  21738. case $ac_var in #(
  21739. _ | IFS | as_nl) ;; #(
  21740. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21741. *) { eval $ac_var=; unset $ac_var;} ;;
  21742. esac ;;
  21743. esac
  21744. done
  21745. (set) 2>&1 |
  21746. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21747. *${as_nl}ac_space=\ *)
  21748. # `set' does not quote correctly, so add quotes: double-quote
  21749. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21750. sed -n \
  21751. "s/'/'\\\\''/g;
  21752. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21753. ;; #(
  21754. *)
  21755. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21756. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21757. ;;
  21758. esac |
  21759. sort
  21760. ) |
  21761. sed '
  21762. /^ac_cv_env_/b end
  21763. t clear
  21764. :clear
  21765. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21766. t end
  21767. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21768. :end' >>confcache
  21769. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21770. if test -w "$cache_file"; then
  21771. if test "x$cache_file" != "x/dev/null"; then
  21772. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21773. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21774. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21775. cat confcache >"$cache_file"
  21776. else
  21777. case $cache_file in #(
  21778. */* | ?:*)
  21779. mv -f confcache "$cache_file"$$ &&
  21780. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21781. *)
  21782. mv -f confcache "$cache_file" ;;
  21783. esac
  21784. fi
  21785. fi
  21786. else
  21787. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21788. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21789. fi
  21790. fi
  21791. rm -f confcache
  21792. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21793. # Let make expand exec_prefix.
  21794. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21795. DEFS=-DHAVE_CONFIG_H
  21796. ac_libobjs=
  21797. ac_ltlibobjs=
  21798. U=
  21799. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21800. # 1. Remove the extension, and $U if already installed.
  21801. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21802. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21803. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21804. # will be set to the directory where LIBOBJS objects are built.
  21805. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21806. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21807. done
  21808. LIBOBJS=$ac_libobjs
  21809. LTLIBOBJS=$ac_ltlibobjs
  21810. : "${CONFIG_STATUS=./config.status}"
  21811. ac_write_fail=0
  21812. ac_clean_files_save=$ac_clean_files
  21813. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21814. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21815. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21816. as_write_fail=0
  21817. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21818. #! $SHELL
  21819. # Generated by $as_me.
  21820. # Run this file to recreate the current configuration.
  21821. # Compiler output produced by configure, useful for debugging
  21822. # configure, is in config.log if it exists.
  21823. debug=false
  21824. ac_cs_recheck=false
  21825. ac_cs_silent=false
  21826. SHELL=\${CONFIG_SHELL-$SHELL}
  21827. export SHELL
  21828. _ASEOF
  21829. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21830. ## -------------------- ##
  21831. ## M4sh Initialization. ##
  21832. ## -------------------- ##
  21833. # Be more Bourne compatible
  21834. DUALCASE=1; export DUALCASE # for MKS sh
  21835. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21836. emulate sh
  21837. NULLCMD=:
  21838. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21839. # is contrary to our usage. Disable this feature.
  21840. alias -g '${1+"$@"}'='"$@"'
  21841. setopt NO_GLOB_SUBST
  21842. else
  21843. case `(set -o) 2>/dev/null` in #(
  21844. *posix*) :
  21845. set -o posix ;; #(
  21846. *) :
  21847. ;;
  21848. esac
  21849. fi
  21850. as_nl='
  21851. '
  21852. export as_nl
  21853. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21854. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21855. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21856. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21857. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21858. # but without wasting forks for bash or zsh.
  21859. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21860. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21861. as_echo='print -r --'
  21862. as_echo_n='print -rn --'
  21863. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21864. as_echo='printf %s\n'
  21865. as_echo_n='printf %s'
  21866. else
  21867. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21868. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21869. as_echo_n='/usr/ucb/echo -n'
  21870. else
  21871. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21872. as_echo_n_body='eval
  21873. arg=$1;
  21874. case $arg in #(
  21875. *"$as_nl"*)
  21876. expr "X$arg" : "X\\(.*\\)$as_nl";
  21877. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21878. esac;
  21879. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21880. '
  21881. export as_echo_n_body
  21882. as_echo_n='sh -c $as_echo_n_body as_echo'
  21883. fi
  21884. export as_echo_body
  21885. as_echo='sh -c $as_echo_body as_echo'
  21886. fi
  21887. # The user is always right.
  21888. if test "${PATH_SEPARATOR+set}" != set; then
  21889. PATH_SEPARATOR=:
  21890. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21891. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21892. PATH_SEPARATOR=';'
  21893. }
  21894. fi
  21895. # IFS
  21896. # We need space, tab and new line, in precisely that order. Quoting is
  21897. # there to prevent editors from complaining about space-tab.
  21898. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21899. # splitting by setting IFS to empty value.)
  21900. IFS=" "" $as_nl"
  21901. # Find who we are. Look in the path if we contain no directory separator.
  21902. as_myself=
  21903. case $0 in #((
  21904. *[\\/]* ) as_myself=$0 ;;
  21905. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21906. for as_dir in $PATH
  21907. do
  21908. IFS=$as_save_IFS
  21909. test -z "$as_dir" && as_dir=.
  21910. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21911. done
  21912. IFS=$as_save_IFS
  21913. ;;
  21914. esac
  21915. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21916. # in which case we are not to be found in the path.
  21917. if test "x$as_myself" = x; then
  21918. as_myself=$0
  21919. fi
  21920. if test ! -f "$as_myself"; then
  21921. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21922. exit 1
  21923. fi
  21924. # Unset variables that we do not need and which cause bugs (e.g. in
  21925. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21926. # suppresses any "Segmentation fault" message there. '((' could
  21927. # trigger a bug in pdksh 5.2.14.
  21928. for as_var in BASH_ENV ENV MAIL MAILPATH
  21929. do eval test x\${$as_var+set} = xset \
  21930. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21931. done
  21932. PS1='$ '
  21933. PS2='> '
  21934. PS4='+ '
  21935. # NLS nuisances.
  21936. LC_ALL=C
  21937. export LC_ALL
  21938. LANGUAGE=C
  21939. export LANGUAGE
  21940. # CDPATH.
  21941. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21942. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21943. # ----------------------------------------
  21944. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21945. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21946. # script with STATUS, using 1 if that was 0.
  21947. as_fn_error ()
  21948. {
  21949. as_status=$1; test $as_status -eq 0 && as_status=1
  21950. if test "$4"; then
  21951. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21952. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21953. fi
  21954. $as_echo "$as_me: error: $2" >&2
  21955. as_fn_exit $as_status
  21956. } # as_fn_error
  21957. # as_fn_set_status STATUS
  21958. # -----------------------
  21959. # Set $? to STATUS, without forking.
  21960. as_fn_set_status ()
  21961. {
  21962. return $1
  21963. } # as_fn_set_status
  21964. # as_fn_exit STATUS
  21965. # -----------------
  21966. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21967. as_fn_exit ()
  21968. {
  21969. set +e
  21970. as_fn_set_status $1
  21971. exit $1
  21972. } # as_fn_exit
  21973. # as_fn_unset VAR
  21974. # ---------------
  21975. # Portably unset VAR.
  21976. as_fn_unset ()
  21977. {
  21978. { eval $1=; unset $1;}
  21979. }
  21980. as_unset=as_fn_unset
  21981. # as_fn_append VAR VALUE
  21982. # ----------------------
  21983. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21984. # advantage of any shell optimizations that allow amortized linear growth over
  21985. # repeated appends, instead of the typical quadratic growth present in naive
  21986. # implementations.
  21987. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21988. eval 'as_fn_append ()
  21989. {
  21990. eval $1+=\$2
  21991. }'
  21992. else
  21993. as_fn_append ()
  21994. {
  21995. eval $1=\$$1\$2
  21996. }
  21997. fi # as_fn_append
  21998. # as_fn_arith ARG...
  21999. # ------------------
  22000. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22001. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22002. # must be portable across $(()) and expr.
  22003. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22004. eval 'as_fn_arith ()
  22005. {
  22006. as_val=$(( $* ))
  22007. }'
  22008. else
  22009. as_fn_arith ()
  22010. {
  22011. as_val=`expr "$@" || test $? -eq 1`
  22012. }
  22013. fi # as_fn_arith
  22014. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22015. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22016. as_expr=expr
  22017. else
  22018. as_expr=false
  22019. fi
  22020. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22021. as_basename=basename
  22022. else
  22023. as_basename=false
  22024. fi
  22025. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22026. as_dirname=dirname
  22027. else
  22028. as_dirname=false
  22029. fi
  22030. as_me=`$as_basename -- "$0" ||
  22031. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22032. X"$0" : 'X\(//\)$' \| \
  22033. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22034. $as_echo X/"$0" |
  22035. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22036. s//\1/
  22037. q
  22038. }
  22039. /^X\/\(\/\/\)$/{
  22040. s//\1/
  22041. q
  22042. }
  22043. /^X\/\(\/\).*/{
  22044. s//\1/
  22045. q
  22046. }
  22047. s/.*/./; q'`
  22048. # Avoid depending upon Character Ranges.
  22049. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22050. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22051. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22052. as_cr_digits='0123456789'
  22053. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22054. ECHO_C= ECHO_N= ECHO_T=
  22055. case `echo -n x` in #(((((
  22056. -n*)
  22057. case `echo 'xy\c'` in
  22058. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22059. xy) ECHO_C='\c';;
  22060. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22061. ECHO_T=' ';;
  22062. esac;;
  22063. *)
  22064. ECHO_N='-n';;
  22065. esac
  22066. rm -f conf$$ conf$$.exe conf$$.file
  22067. if test -d conf$$.dir; then
  22068. rm -f conf$$.dir/conf$$.file
  22069. else
  22070. rm -f conf$$.dir
  22071. mkdir conf$$.dir 2>/dev/null
  22072. fi
  22073. if (echo >conf$$.file) 2>/dev/null; then
  22074. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22075. as_ln_s='ln -s'
  22076. # ... but there are two gotchas:
  22077. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22078. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22079. # In both cases, we have to default to `cp -pR'.
  22080. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22081. as_ln_s='cp -pR'
  22082. elif ln conf$$.file conf$$ 2>/dev/null; then
  22083. as_ln_s=ln
  22084. else
  22085. as_ln_s='cp -pR'
  22086. fi
  22087. else
  22088. as_ln_s='cp -pR'
  22089. fi
  22090. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22091. rmdir conf$$.dir 2>/dev/null
  22092. # as_fn_mkdir_p
  22093. # -------------
  22094. # Create "$as_dir" as a directory, including parents if necessary.
  22095. as_fn_mkdir_p ()
  22096. {
  22097. case $as_dir in #(
  22098. -*) as_dir=./$as_dir;;
  22099. esac
  22100. test -d "$as_dir" || eval $as_mkdir_p || {
  22101. as_dirs=
  22102. while :; do
  22103. case $as_dir in #(
  22104. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22105. *) as_qdir=$as_dir;;
  22106. esac
  22107. as_dirs="'$as_qdir' $as_dirs"
  22108. as_dir=`$as_dirname -- "$as_dir" ||
  22109. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22110. X"$as_dir" : 'X\(//\)[^/]' \| \
  22111. X"$as_dir" : 'X\(//\)$' \| \
  22112. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22113. $as_echo X"$as_dir" |
  22114. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22115. s//\1/
  22116. q
  22117. }
  22118. /^X\(\/\/\)[^/].*/{
  22119. s//\1/
  22120. q
  22121. }
  22122. /^X\(\/\/\)$/{
  22123. s//\1/
  22124. q
  22125. }
  22126. /^X\(\/\).*/{
  22127. s//\1/
  22128. q
  22129. }
  22130. s/.*/./; q'`
  22131. test -d "$as_dir" && break
  22132. done
  22133. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22134. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22135. } # as_fn_mkdir_p
  22136. if mkdir -p . 2>/dev/null; then
  22137. as_mkdir_p='mkdir -p "$as_dir"'
  22138. else
  22139. test -d ./-p && rmdir ./-p
  22140. as_mkdir_p=false
  22141. fi
  22142. # as_fn_executable_p FILE
  22143. # -----------------------
  22144. # Test if FILE is an executable regular file.
  22145. as_fn_executable_p ()
  22146. {
  22147. test -f "$1" && test -x "$1"
  22148. } # as_fn_executable_p
  22149. as_test_x='test -x'
  22150. as_executable_p=as_fn_executable_p
  22151. # Sed expression to map a string onto a valid CPP name.
  22152. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22153. # Sed expression to map a string onto a valid variable name.
  22154. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22155. exec 6>&1
  22156. ## ----------------------------------- ##
  22157. ## Main body of $CONFIG_STATUS script. ##
  22158. ## ----------------------------------- ##
  22159. _ASEOF
  22160. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22161. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22162. # Save the log message, to keep $0 and so on meaningful, and to
  22163. # report actual input values of CONFIG_FILES etc. instead of their
  22164. # values after options handling.
  22165. ac_log="
  22166. This file was extended by $as_me, which was
  22167. generated by GNU Autoconf 2.69. Invocation command line was
  22168. CONFIG_FILES = $CONFIG_FILES
  22169. CONFIG_HEADERS = $CONFIG_HEADERS
  22170. CONFIG_LINKS = $CONFIG_LINKS
  22171. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22172. $ $0 $@
  22173. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22174. "
  22175. _ACEOF
  22176. case $ac_config_files in *"
  22177. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22178. esac
  22179. case $ac_config_headers in *"
  22180. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22181. esac
  22182. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22183. # Files that config.status was made for.
  22184. config_files="$ac_config_files"
  22185. config_headers="$ac_config_headers"
  22186. config_commands="$ac_config_commands"
  22187. _ACEOF
  22188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22189. ac_cs_usage="\
  22190. \`$as_me' instantiates files and other configuration actions
  22191. from templates according to the current configuration. Unless the files
  22192. and actions are specified as TAGs, all are instantiated by default.
  22193. Usage: $0 [OPTION]... [TAG]...
  22194. -h, --help print this help, then exit
  22195. -V, --version print version number and configuration settings, then exit
  22196. --config print configuration, then exit
  22197. -q, --quiet, --silent
  22198. do not print progress messages
  22199. -d, --debug don't remove temporary files
  22200. --recheck update $as_me by reconfiguring in the same conditions
  22201. --file=FILE[:TEMPLATE]
  22202. instantiate the configuration file FILE
  22203. --header=FILE[:TEMPLATE]
  22204. instantiate the configuration header FILE
  22205. Configuration files:
  22206. $config_files
  22207. Configuration headers:
  22208. $config_headers
  22209. Configuration commands:
  22210. $config_commands
  22211. Report bugs to the package provider."
  22212. _ACEOF
  22213. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22214. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22215. ac_cs_version="\\
  22216. config.status
  22217. configured by $0, generated by GNU Autoconf 2.69,
  22218. with options \\"\$ac_cs_config\\"
  22219. Copyright (C) 2012 Free Software Foundation, Inc.
  22220. This config.status script is free software; the Free Software Foundation
  22221. gives unlimited permission to copy, distribute and modify it."
  22222. ac_pwd='$ac_pwd'
  22223. srcdir='$srcdir'
  22224. INSTALL='$INSTALL'
  22225. AWK='$AWK'
  22226. test -n "\$AWK" || AWK=awk
  22227. _ACEOF
  22228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22229. # The default lists apply if the user does not specify any file.
  22230. ac_need_defaults=:
  22231. while test $# != 0
  22232. do
  22233. case $1 in
  22234. --*=?*)
  22235. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22236. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22237. ac_shift=:
  22238. ;;
  22239. --*=)
  22240. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22241. ac_optarg=
  22242. ac_shift=:
  22243. ;;
  22244. *)
  22245. ac_option=$1
  22246. ac_optarg=$2
  22247. ac_shift=shift
  22248. ;;
  22249. esac
  22250. case $ac_option in
  22251. # Handling of the options.
  22252. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22253. ac_cs_recheck=: ;;
  22254. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22255. $as_echo "$ac_cs_version"; exit ;;
  22256. --config | --confi | --conf | --con | --co | --c )
  22257. $as_echo "$ac_cs_config"; exit ;;
  22258. --debug | --debu | --deb | --de | --d | -d )
  22259. debug=: ;;
  22260. --file | --fil | --fi | --f )
  22261. $ac_shift
  22262. case $ac_optarg in
  22263. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22264. '') as_fn_error $? "missing file argument" ;;
  22265. esac
  22266. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22267. ac_need_defaults=false;;
  22268. --header | --heade | --head | --hea )
  22269. $ac_shift
  22270. case $ac_optarg in
  22271. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22272. esac
  22273. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22274. ac_need_defaults=false;;
  22275. --he | --h)
  22276. # Conflict between --help and --header
  22277. as_fn_error $? "ambiguous option: \`$1'
  22278. Try \`$0 --help' for more information.";;
  22279. --help | --hel | -h )
  22280. $as_echo "$ac_cs_usage"; exit ;;
  22281. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22282. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22283. ac_cs_silent=: ;;
  22284. # This is an error.
  22285. -*) as_fn_error $? "unrecognized option: \`$1'
  22286. Try \`$0 --help' for more information." ;;
  22287. *) as_fn_append ac_config_targets " $1"
  22288. ac_need_defaults=false ;;
  22289. esac
  22290. shift
  22291. done
  22292. ac_configure_extra_args=
  22293. if $ac_cs_silent; then
  22294. exec 6>/dev/null
  22295. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22296. fi
  22297. _ACEOF
  22298. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22299. if \$ac_cs_recheck; then
  22300. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22301. shift
  22302. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22303. CONFIG_SHELL='$SHELL'
  22304. export CONFIG_SHELL
  22305. exec "\$@"
  22306. fi
  22307. _ACEOF
  22308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22309. exec 5>>config.log
  22310. {
  22311. echo
  22312. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22313. ## Running $as_me. ##
  22314. _ASBOX
  22315. $as_echo "$ac_log"
  22316. } >&5
  22317. _ACEOF
  22318. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22319. #
  22320. # INIT-COMMANDS
  22321. #
  22322. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22323. # if CDPATH is set.
  22324. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22325. sed_quote_subst='$sed_quote_subst'
  22326. double_quote_subst='$double_quote_subst'
  22327. delay_variable_subst='$delay_variable_subst'
  22328. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22329. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22330. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22331. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22332. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22333. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22334. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22335. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22336. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22337. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22338. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22339. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22340. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22341. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22342. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22343. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22344. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22345. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22346. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22347. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22348. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22349. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22350. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22351. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22352. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22353. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22354. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22355. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22356. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22357. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22358. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22359. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22360. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22361. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22362. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22363. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22364. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22365. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22366. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22367. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22368. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22369. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22370. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22371. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22372. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22373. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22374. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22375. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22376. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22377. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22378. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22379. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22380. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22381. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22382. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22383. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22384. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22385. 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"`'
  22386. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22387. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22388. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22389. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22390. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22391. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22392. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22393. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22394. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22395. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22396. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22397. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22398. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22399. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22400. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22401. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22402. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22403. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22404. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22405. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22406. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22407. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22408. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22409. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22410. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22411. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22412. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22413. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22414. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22415. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22416. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22417. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22418. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22419. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22420. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22421. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22422. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22423. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22424. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22425. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22426. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22427. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22428. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22429. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22430. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22431. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22432. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22433. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22434. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22435. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22436. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22437. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22438. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22439. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22440. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22441. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22442. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22443. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22444. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22445. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22446. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22447. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22448. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22449. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22450. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22451. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22452. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22453. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22454. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22455. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22456. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22457. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22458. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22459. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22460. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22461. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22462. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22463. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22464. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22465. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22466. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22467. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22468. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22469. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22470. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22471. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22472. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22473. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22474. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22475. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22476. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22477. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22478. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22479. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22480. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22481. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22482. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22483. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22484. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22485. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22486. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22487. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22488. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22489. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22490. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22491. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22492. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22493. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22494. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22495. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22496. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22497. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22498. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22499. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22500. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22501. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22502. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22503. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22504. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22505. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22506. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22507. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22508. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22509. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22510. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22511. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22512. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22513. LTCC='$LTCC'
  22514. LTCFLAGS='$LTCFLAGS'
  22515. compiler='$compiler_DEFAULT'
  22516. # A function that is used when there is no print builtin or printf.
  22517. func_fallback_echo ()
  22518. {
  22519. eval 'cat <<_LTECHO_EOF
  22520. \$1
  22521. _LTECHO_EOF'
  22522. }
  22523. # Quote evaled strings.
  22524. for var in AS \
  22525. DLLTOOL \
  22526. OBJDUMP \
  22527. SHELL \
  22528. ECHO \
  22529. PATH_SEPARATOR \
  22530. SED \
  22531. GREP \
  22532. EGREP \
  22533. FGREP \
  22534. LD \
  22535. NM \
  22536. LN_S \
  22537. lt_SP2NL \
  22538. lt_NL2SP \
  22539. reload_flag \
  22540. deplibs_check_method \
  22541. file_magic_cmd \
  22542. file_magic_glob \
  22543. want_nocaseglob \
  22544. sharedlib_from_linklib_cmd \
  22545. AR \
  22546. AR_FLAGS \
  22547. archiver_list_spec \
  22548. STRIP \
  22549. RANLIB \
  22550. CC \
  22551. CFLAGS \
  22552. compiler \
  22553. lt_cv_sys_global_symbol_pipe \
  22554. lt_cv_sys_global_symbol_to_cdecl \
  22555. lt_cv_sys_global_symbol_to_c_name_address \
  22556. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22557. nm_file_list_spec \
  22558. lt_prog_compiler_no_builtin_flag \
  22559. lt_prog_compiler_pic \
  22560. lt_prog_compiler_wl \
  22561. lt_prog_compiler_static \
  22562. lt_cv_prog_compiler_c_o \
  22563. need_locks \
  22564. MANIFEST_TOOL \
  22565. DSYMUTIL \
  22566. NMEDIT \
  22567. LIPO \
  22568. OTOOL \
  22569. OTOOL64 \
  22570. shrext_cmds \
  22571. export_dynamic_flag_spec \
  22572. whole_archive_flag_spec \
  22573. compiler_needs_object \
  22574. with_gnu_ld \
  22575. allow_undefined_flag \
  22576. no_undefined_flag \
  22577. hardcode_libdir_flag_spec \
  22578. hardcode_libdir_separator \
  22579. exclude_expsyms \
  22580. include_expsyms \
  22581. file_list_spec \
  22582. variables_saved_for_relink \
  22583. libname_spec \
  22584. library_names_spec \
  22585. soname_spec \
  22586. install_override_mode \
  22587. finish_eval \
  22588. old_striplib \
  22589. striplib \
  22590. compiler_lib_search_dirs \
  22591. predep_objects \
  22592. postdep_objects \
  22593. predeps \
  22594. postdeps \
  22595. compiler_lib_search_path \
  22596. LD_CXX \
  22597. reload_flag_CXX \
  22598. compiler_CXX \
  22599. lt_prog_compiler_no_builtin_flag_CXX \
  22600. lt_prog_compiler_pic_CXX \
  22601. lt_prog_compiler_wl_CXX \
  22602. lt_prog_compiler_static_CXX \
  22603. lt_cv_prog_compiler_c_o_CXX \
  22604. export_dynamic_flag_spec_CXX \
  22605. whole_archive_flag_spec_CXX \
  22606. compiler_needs_object_CXX \
  22607. with_gnu_ld_CXX \
  22608. allow_undefined_flag_CXX \
  22609. no_undefined_flag_CXX \
  22610. hardcode_libdir_flag_spec_CXX \
  22611. hardcode_libdir_separator_CXX \
  22612. exclude_expsyms_CXX \
  22613. include_expsyms_CXX \
  22614. file_list_spec_CXX \
  22615. compiler_lib_search_dirs_CXX \
  22616. predep_objects_CXX \
  22617. postdep_objects_CXX \
  22618. predeps_CXX \
  22619. postdeps_CXX \
  22620. compiler_lib_search_path_CXX; do
  22621. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22622. *[\\\\\\\`\\"\\\$]*)
  22623. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22624. ;;
  22625. *)
  22626. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22627. ;;
  22628. esac
  22629. done
  22630. # Double-quote double-evaled strings.
  22631. for var in reload_cmds \
  22632. old_postinstall_cmds \
  22633. old_postuninstall_cmds \
  22634. old_archive_cmds \
  22635. extract_expsyms_cmds \
  22636. old_archive_from_new_cmds \
  22637. old_archive_from_expsyms_cmds \
  22638. archive_cmds \
  22639. archive_expsym_cmds \
  22640. module_cmds \
  22641. module_expsym_cmds \
  22642. export_symbols_cmds \
  22643. prelink_cmds \
  22644. postlink_cmds \
  22645. postinstall_cmds \
  22646. postuninstall_cmds \
  22647. finish_cmds \
  22648. sys_lib_search_path_spec \
  22649. sys_lib_dlsearch_path_spec \
  22650. reload_cmds_CXX \
  22651. old_archive_cmds_CXX \
  22652. old_archive_from_new_cmds_CXX \
  22653. old_archive_from_expsyms_cmds_CXX \
  22654. archive_cmds_CXX \
  22655. archive_expsym_cmds_CXX \
  22656. module_cmds_CXX \
  22657. module_expsym_cmds_CXX \
  22658. export_symbols_cmds_CXX \
  22659. prelink_cmds_CXX \
  22660. postlink_cmds_CXX; do
  22661. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22662. *[\\\\\\\`\\"\\\$]*)
  22663. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22664. ;;
  22665. *)
  22666. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22667. ;;
  22668. esac
  22669. done
  22670. ac_aux_dir='$ac_aux_dir'
  22671. xsi_shell='$xsi_shell'
  22672. lt_shell_append='$lt_shell_append'
  22673. # See if we are running on zsh, and set the options which allow our
  22674. # commands through without removal of \ escapes INIT.
  22675. if test -n "\${ZSH_VERSION+set}" ; then
  22676. setopt NO_GLOB_SUBST
  22677. fi
  22678. PACKAGE='$PACKAGE'
  22679. VERSION='$VERSION'
  22680. TIMESTAMP='$TIMESTAMP'
  22681. RM='$RM'
  22682. ofile='$ofile'
  22683. SUMMARY="$SUMMARY"
  22684. _ACEOF
  22685. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22686. # Handling of arguments.
  22687. for ac_config_target in $ac_config_targets
  22688. do
  22689. case $ac_config_target in
  22690. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22691. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22692. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22693. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22694. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22695. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22696. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22697. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22698. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22699. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22700. esac
  22701. done
  22702. # If the user did not use the arguments to specify the items to instantiate,
  22703. # then the envvar interface is used. Set only those that are not.
  22704. # We use the long form for the default assignment because of an extremely
  22705. # bizarre bug on SunOS 4.1.3.
  22706. if $ac_need_defaults; then
  22707. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22708. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22709. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22710. fi
  22711. # Have a temporary directory for convenience. Make it in the build tree
  22712. # simply because there is no reason against having it here, and in addition,
  22713. # creating and moving files from /tmp can sometimes cause problems.
  22714. # Hook for its removal unless debugging.
  22715. # Note that there is a small window in which the directory will not be cleaned:
  22716. # after its creation but before its name has been assigned to `$tmp'.
  22717. $debug ||
  22718. {
  22719. tmp= ac_tmp=
  22720. trap 'exit_status=$?
  22721. : "${ac_tmp:=$tmp}"
  22722. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22723. ' 0
  22724. trap 'as_fn_exit 1' 1 2 13 15
  22725. }
  22726. # Create a (secure) tmp directory for tmp files.
  22727. {
  22728. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22729. test -d "$tmp"
  22730. } ||
  22731. {
  22732. tmp=./conf$$-$RANDOM
  22733. (umask 077 && mkdir "$tmp")
  22734. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22735. ac_tmp=$tmp
  22736. # Set up the scripts for CONFIG_FILES section.
  22737. # No need to generate them if there are no CONFIG_FILES.
  22738. # This happens for instance with `./config.status config.h'.
  22739. if test -n "$CONFIG_FILES"; then
  22740. ac_cr=`echo X | tr X '\015'`
  22741. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22742. # But we know of no other shell where ac_cr would be empty at this
  22743. # point, so we can use a bashism as a fallback.
  22744. if test "x$ac_cr" = x; then
  22745. eval ac_cr=\$\'\\r\'
  22746. fi
  22747. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22748. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22749. ac_cs_awk_cr='\\r'
  22750. else
  22751. ac_cs_awk_cr=$ac_cr
  22752. fi
  22753. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22754. _ACEOF
  22755. {
  22756. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22757. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22758. echo "_ACEOF"
  22759. } >conf$$subs.sh ||
  22760. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22761. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22762. ac_delim='%!_!# '
  22763. for ac_last_try in false false false false false :; do
  22764. . ./conf$$subs.sh ||
  22765. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22766. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22767. if test $ac_delim_n = $ac_delim_num; then
  22768. break
  22769. elif $ac_last_try; then
  22770. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22771. else
  22772. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22773. fi
  22774. done
  22775. rm -f conf$$subs.sh
  22776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22777. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22778. _ACEOF
  22779. sed -n '
  22780. h
  22781. s/^/S["/; s/!.*/"]=/
  22782. p
  22783. g
  22784. s/^[^!]*!//
  22785. :repl
  22786. t repl
  22787. s/'"$ac_delim"'$//
  22788. t delim
  22789. :nl
  22790. h
  22791. s/\(.\{148\}\)..*/\1/
  22792. t more1
  22793. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22794. p
  22795. n
  22796. b repl
  22797. :more1
  22798. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22799. p
  22800. g
  22801. s/.\{148\}//
  22802. t nl
  22803. :delim
  22804. h
  22805. s/\(.\{148\}\)..*/\1/
  22806. t more2
  22807. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22808. p
  22809. b
  22810. :more2
  22811. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22812. p
  22813. g
  22814. s/.\{148\}//
  22815. t delim
  22816. ' <conf$$subs.awk | sed '
  22817. /^[^""]/{
  22818. N
  22819. s/\n//
  22820. }
  22821. ' >>$CONFIG_STATUS || ac_write_fail=1
  22822. rm -f conf$$subs.awk
  22823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22824. _ACAWK
  22825. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22826. for (key in S) S_is_set[key] = 1
  22827. FS = ""
  22828. }
  22829. {
  22830. line = $ 0
  22831. nfields = split(line, field, "@")
  22832. substed = 0
  22833. len = length(field[1])
  22834. for (i = 2; i < nfields; i++) {
  22835. key = field[i]
  22836. keylen = length(key)
  22837. if (S_is_set[key]) {
  22838. value = S[key]
  22839. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22840. len += length(value) + length(field[++i])
  22841. substed = 1
  22842. } else
  22843. len += 1 + keylen
  22844. }
  22845. print line
  22846. }
  22847. _ACAWK
  22848. _ACEOF
  22849. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22850. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22851. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22852. else
  22853. cat
  22854. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22855. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22856. _ACEOF
  22857. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22858. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22859. # trailing colons and then remove the whole line if VPATH becomes empty
  22860. # (actually we leave an empty line to preserve line numbers).
  22861. if test "x$srcdir" = x.; then
  22862. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22863. h
  22864. s///
  22865. s/^/:/
  22866. s/[ ]*$/:/
  22867. s/:\$(srcdir):/:/g
  22868. s/:\${srcdir}:/:/g
  22869. s/:@srcdir@:/:/g
  22870. s/^:*//
  22871. s/:*$//
  22872. x
  22873. s/\(=[ ]*\).*/\1/
  22874. G
  22875. s/\n//
  22876. s/^[^=]*=[ ]*$//
  22877. }'
  22878. fi
  22879. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22880. fi # test -n "$CONFIG_FILES"
  22881. # Set up the scripts for CONFIG_HEADERS section.
  22882. # No need to generate them if there are no CONFIG_HEADERS.
  22883. # This happens for instance with `./config.status Makefile'.
  22884. if test -n "$CONFIG_HEADERS"; then
  22885. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22886. BEGIN {
  22887. _ACEOF
  22888. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22889. # here-document in config.status, that substitutes the proper values into
  22890. # config.h.in to produce config.h.
  22891. # Create a delimiter string that does not exist in confdefs.h, to ease
  22892. # handling of long lines.
  22893. ac_delim='%!_!# '
  22894. for ac_last_try in false false :; do
  22895. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22896. if test -z "$ac_tt"; then
  22897. break
  22898. elif $ac_last_try; then
  22899. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22900. else
  22901. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22902. fi
  22903. done
  22904. # For the awk script, D is an array of macro values keyed by name,
  22905. # likewise P contains macro parameters if any. Preserve backslash
  22906. # newline sequences.
  22907. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22908. sed -n '
  22909. s/.\{148\}/&'"$ac_delim"'/g
  22910. t rset
  22911. :rset
  22912. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22913. t def
  22914. d
  22915. :def
  22916. s/\\$//
  22917. t bsnl
  22918. s/["\\]/\\&/g
  22919. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22920. D["\1"]=" \3"/p
  22921. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22922. d
  22923. :bsnl
  22924. s/["\\]/\\&/g
  22925. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22926. D["\1"]=" \3\\\\\\n"\\/p
  22927. t cont
  22928. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22929. t cont
  22930. d
  22931. :cont
  22932. n
  22933. s/.\{148\}/&'"$ac_delim"'/g
  22934. t clear
  22935. :clear
  22936. s/\\$//
  22937. t bsnlc
  22938. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22939. d
  22940. :bsnlc
  22941. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22942. b cont
  22943. ' <confdefs.h | sed '
  22944. s/'"$ac_delim"'/"\\\
  22945. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22947. for (key in D) D_is_set[key] = 1
  22948. FS = ""
  22949. }
  22950. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22951. line = \$ 0
  22952. split(line, arg, " ")
  22953. if (arg[1] == "#") {
  22954. defundef = arg[2]
  22955. mac1 = arg[3]
  22956. } else {
  22957. defundef = substr(arg[1], 2)
  22958. mac1 = arg[2]
  22959. }
  22960. split(mac1, mac2, "(") #)
  22961. macro = mac2[1]
  22962. prefix = substr(line, 1, index(line, defundef) - 1)
  22963. if (D_is_set[macro]) {
  22964. # Preserve the white space surrounding the "#".
  22965. print prefix "define", macro P[macro] D[macro]
  22966. next
  22967. } else {
  22968. # Replace #undef with comments. This is necessary, for example,
  22969. # in the case of _POSIX_SOURCE, which is predefined and required
  22970. # on some systems where configure will not decide to define it.
  22971. if (defundef == "undef") {
  22972. print "/*", prefix defundef, macro, "*/"
  22973. next
  22974. }
  22975. }
  22976. }
  22977. { print }
  22978. _ACAWK
  22979. _ACEOF
  22980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22981. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22982. fi # test -n "$CONFIG_HEADERS"
  22983. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22984. shift
  22985. for ac_tag
  22986. do
  22987. case $ac_tag in
  22988. :[FHLC]) ac_mode=$ac_tag; continue;;
  22989. esac
  22990. case $ac_mode$ac_tag in
  22991. :[FHL]*:*);;
  22992. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22993. :[FH]-) ac_tag=-:-;;
  22994. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22995. esac
  22996. ac_save_IFS=$IFS
  22997. IFS=:
  22998. set x $ac_tag
  22999. IFS=$ac_save_IFS
  23000. shift
  23001. ac_file=$1
  23002. shift
  23003. case $ac_mode in
  23004. :L) ac_source=$1;;
  23005. :[FH])
  23006. ac_file_inputs=
  23007. for ac_f
  23008. do
  23009. case $ac_f in
  23010. -) ac_f="$ac_tmp/stdin";;
  23011. *) # Look for the file first in the build tree, then in the source tree
  23012. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23013. # because $ac_f cannot contain `:'.
  23014. test -f "$ac_f" ||
  23015. case $ac_f in
  23016. [\\/$]*) false;;
  23017. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23018. esac ||
  23019. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23020. esac
  23021. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23022. as_fn_append ac_file_inputs " '$ac_f'"
  23023. done
  23024. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23025. # use $as_me), people would be surprised to read:
  23026. # /* config.h. Generated by config.status. */
  23027. configure_input='Generated from '`
  23028. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23029. `' by configure.'
  23030. if test x"$ac_file" != x-; then
  23031. configure_input="$ac_file. $configure_input"
  23032. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23033. $as_echo "$as_me: creating $ac_file" >&6;}
  23034. fi
  23035. # Neutralize special characters interpreted by sed in replacement strings.
  23036. case $configure_input in #(
  23037. *\&* | *\|* | *\\* )
  23038. ac_sed_conf_input=`$as_echo "$configure_input" |
  23039. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23040. *) ac_sed_conf_input=$configure_input;;
  23041. esac
  23042. case $ac_tag in
  23043. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23044. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23045. esac
  23046. ;;
  23047. esac
  23048. ac_dir=`$as_dirname -- "$ac_file" ||
  23049. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23050. X"$ac_file" : 'X\(//\)[^/]' \| \
  23051. X"$ac_file" : 'X\(//\)$' \| \
  23052. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23053. $as_echo X"$ac_file" |
  23054. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23055. s//\1/
  23056. q
  23057. }
  23058. /^X\(\/\/\)[^/].*/{
  23059. s//\1/
  23060. q
  23061. }
  23062. /^X\(\/\/\)$/{
  23063. s//\1/
  23064. q
  23065. }
  23066. /^X\(\/\).*/{
  23067. s//\1/
  23068. q
  23069. }
  23070. s/.*/./; q'`
  23071. as_dir="$ac_dir"; as_fn_mkdir_p
  23072. ac_builddir=.
  23073. case "$ac_dir" in
  23074. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23075. *)
  23076. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23077. # A ".." for each directory in $ac_dir_suffix.
  23078. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23079. case $ac_top_builddir_sub in
  23080. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23081. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23082. esac ;;
  23083. esac
  23084. ac_abs_top_builddir=$ac_pwd
  23085. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23086. # for backward compatibility:
  23087. ac_top_builddir=$ac_top_build_prefix
  23088. case $srcdir in
  23089. .) # We are building in place.
  23090. ac_srcdir=.
  23091. ac_top_srcdir=$ac_top_builddir_sub
  23092. ac_abs_top_srcdir=$ac_pwd ;;
  23093. [\\/]* | ?:[\\/]* ) # Absolute name.
  23094. ac_srcdir=$srcdir$ac_dir_suffix;
  23095. ac_top_srcdir=$srcdir
  23096. ac_abs_top_srcdir=$srcdir ;;
  23097. *) # Relative name.
  23098. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23099. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23100. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23101. esac
  23102. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23103. case $ac_mode in
  23104. :F)
  23105. #
  23106. # CONFIG_FILE
  23107. #
  23108. case $INSTALL in
  23109. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23110. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23111. esac
  23112. _ACEOF
  23113. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23114. # If the template does not know about datarootdir, expand it.
  23115. # FIXME: This hack should be removed a few years after 2.60.
  23116. ac_datarootdir_hack=; ac_datarootdir_seen=
  23117. ac_sed_dataroot='
  23118. /datarootdir/ {
  23119. p
  23120. q
  23121. }
  23122. /@datadir@/p
  23123. /@docdir@/p
  23124. /@infodir@/p
  23125. /@localedir@/p
  23126. /@mandir@/p'
  23127. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23128. *datarootdir*) ac_datarootdir_seen=yes;;
  23129. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23131. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23132. _ACEOF
  23133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23134. ac_datarootdir_hack='
  23135. s&@datadir@&$datadir&g
  23136. s&@docdir@&$docdir&g
  23137. s&@infodir@&$infodir&g
  23138. s&@localedir@&$localedir&g
  23139. s&@mandir@&$mandir&g
  23140. s&\\\${datarootdir}&$datarootdir&g' ;;
  23141. esac
  23142. _ACEOF
  23143. # Neutralize VPATH when `$srcdir' = `.'.
  23144. # Shell code in configure.ac might set extrasub.
  23145. # FIXME: do we really want to maintain this feature?
  23146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23147. ac_sed_extra="$ac_vpsub
  23148. $extrasub
  23149. _ACEOF
  23150. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23151. :t
  23152. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23153. s|@configure_input@|$ac_sed_conf_input|;t t
  23154. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23155. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23156. s&@srcdir@&$ac_srcdir&;t t
  23157. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23158. s&@top_srcdir@&$ac_top_srcdir&;t t
  23159. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23160. s&@builddir@&$ac_builddir&;t t
  23161. s&@abs_builddir@&$ac_abs_builddir&;t t
  23162. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23163. s&@INSTALL@&$ac_INSTALL&;t t
  23164. $ac_datarootdir_hack
  23165. "
  23166. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23167. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23168. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23169. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23170. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23171. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23173. which seems to be undefined. Please make sure it is defined" >&5
  23174. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23175. which seems to be undefined. Please make sure it is defined" >&2;}
  23176. rm -f "$ac_tmp/stdin"
  23177. case $ac_file in
  23178. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23179. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23180. esac \
  23181. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23182. ;;
  23183. :H)
  23184. #
  23185. # CONFIG_HEADER
  23186. #
  23187. if test x"$ac_file" != x-; then
  23188. {
  23189. $as_echo "/* $configure_input */" \
  23190. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23191. } >"$ac_tmp/config.h" \
  23192. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23193. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23194. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23195. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23196. else
  23197. rm -f "$ac_file"
  23198. mv "$ac_tmp/config.h" "$ac_file" \
  23199. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23200. fi
  23201. else
  23202. $as_echo "/* $configure_input */" \
  23203. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23204. || as_fn_error $? "could not create -" "$LINENO" 5
  23205. fi
  23206. ;;
  23207. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23208. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23209. ;;
  23210. esac
  23211. case $ac_file$ac_mode in
  23212. "libtool":C)
  23213. # See if we are running on zsh, and set the options which allow our
  23214. # commands through without removal of \ escapes.
  23215. if test -n "${ZSH_VERSION+set}" ; then
  23216. setopt NO_GLOB_SUBST
  23217. fi
  23218. cfgfile="${ofile}T"
  23219. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23220. $RM "$cfgfile"
  23221. cat <<_LT_EOF >> "$cfgfile"
  23222. #! $SHELL
  23223. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23224. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23225. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23226. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23227. #
  23228. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23229. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23230. # Foundation, Inc.
  23231. # Written by Gordon Matzigkeit, 1996
  23232. #
  23233. # This file is part of GNU Libtool.
  23234. #
  23235. # GNU Libtool is free software; you can redistribute it and/or
  23236. # modify it under the terms of the GNU General Public License as
  23237. # published by the Free Software Foundation; either version 2 of
  23238. # the License, or (at your option) any later version.
  23239. #
  23240. # As a special exception to the GNU General Public License,
  23241. # if you distribute this file as part of a program or library that
  23242. # is built using GNU Libtool, you may include this file under the
  23243. # same distribution terms that you use for the rest of that program.
  23244. #
  23245. # GNU Libtool is distributed in the hope that it will be useful,
  23246. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23247. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23248. # GNU General Public License for more details.
  23249. #
  23250. # You should have received a copy of the GNU General Public License
  23251. # along with GNU Libtool; see the file COPYING. If not, a copy
  23252. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23253. # obtained by writing to the Free Software Foundation, Inc.,
  23254. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23255. # The names of the tagged configurations supported by this script.
  23256. available_tags="CXX "
  23257. # ### BEGIN LIBTOOL CONFIG
  23258. # Which release of libtool.m4 was used?
  23259. macro_version=$macro_version
  23260. macro_revision=$macro_revision
  23261. # Assembler program.
  23262. AS=$lt_AS
  23263. # DLL creation program.
  23264. DLLTOOL=$lt_DLLTOOL
  23265. # Object dumper program.
  23266. OBJDUMP=$lt_OBJDUMP
  23267. # Whether or not to build shared libraries.
  23268. build_libtool_libs=$enable_shared
  23269. # Whether or not to build static libraries.
  23270. build_old_libs=$enable_static
  23271. # What type of objects to build.
  23272. pic_mode=$pic_mode
  23273. # Whether or not to optimize for fast installation.
  23274. fast_install=$enable_fast_install
  23275. # Shell to use when invoking shell scripts.
  23276. SHELL=$lt_SHELL
  23277. # An echo program that protects backslashes.
  23278. ECHO=$lt_ECHO
  23279. # The PATH separator for the build system.
  23280. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23281. # The host system.
  23282. host_alias=$host_alias
  23283. host=$host
  23284. host_os=$host_os
  23285. # The build system.
  23286. build_alias=$build_alias
  23287. build=$build
  23288. build_os=$build_os
  23289. # A sed program that does not truncate output.
  23290. SED=$lt_SED
  23291. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23292. Xsed="\$SED -e 1s/^X//"
  23293. # A grep program that handles long lines.
  23294. GREP=$lt_GREP
  23295. # An ERE matcher.
  23296. EGREP=$lt_EGREP
  23297. # A literal string matcher.
  23298. FGREP=$lt_FGREP
  23299. # A BSD- or MS-compatible name lister.
  23300. NM=$lt_NM
  23301. # Whether we need soft or hard links.
  23302. LN_S=$lt_LN_S
  23303. # What is the maximum length of a command?
  23304. max_cmd_len=$max_cmd_len
  23305. # Object file suffix (normally "o").
  23306. objext=$ac_objext
  23307. # Executable file suffix (normally "").
  23308. exeext=$exeext
  23309. # whether the shell understands "unset".
  23310. lt_unset=$lt_unset
  23311. # turn spaces into newlines.
  23312. SP2NL=$lt_lt_SP2NL
  23313. # turn newlines into spaces.
  23314. NL2SP=$lt_lt_NL2SP
  23315. # convert \$build file names to \$host format.
  23316. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23317. # convert \$build files to toolchain format.
  23318. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23319. # Method to check whether dependent libraries are shared objects.
  23320. deplibs_check_method=$lt_deplibs_check_method
  23321. # Command to use when deplibs_check_method = "file_magic".
  23322. file_magic_cmd=$lt_file_magic_cmd
  23323. # How to find potential files when deplibs_check_method = "file_magic".
  23324. file_magic_glob=$lt_file_magic_glob
  23325. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23326. want_nocaseglob=$lt_want_nocaseglob
  23327. # Command to associate shared and link libraries.
  23328. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23329. # The archiver.
  23330. AR=$lt_AR
  23331. # Flags to create an archive.
  23332. AR_FLAGS=$lt_AR_FLAGS
  23333. # How to feed a file listing to the archiver.
  23334. archiver_list_spec=$lt_archiver_list_spec
  23335. # A symbol stripping program.
  23336. STRIP=$lt_STRIP
  23337. # Commands used to install an old-style archive.
  23338. RANLIB=$lt_RANLIB
  23339. old_postinstall_cmds=$lt_old_postinstall_cmds
  23340. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23341. # Whether to use a lock for old archive extraction.
  23342. lock_old_archive_extraction=$lock_old_archive_extraction
  23343. # A C compiler.
  23344. LTCC=$lt_CC
  23345. # LTCC compiler flags.
  23346. LTCFLAGS=$lt_CFLAGS
  23347. # Take the output of nm and produce a listing of raw symbols and C names.
  23348. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23349. # Transform the output of nm in a proper C declaration.
  23350. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23351. # Transform the output of nm in a C name address pair.
  23352. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23353. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23354. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23355. # Specify filename containing input files for \$NM.
  23356. nm_file_list_spec=$lt_nm_file_list_spec
  23357. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23358. lt_sysroot=$lt_sysroot
  23359. # The name of the directory that contains temporary libtool files.
  23360. objdir=$objdir
  23361. # Used to examine libraries when file_magic_cmd begins with "file".
  23362. MAGIC_CMD=$MAGIC_CMD
  23363. # Must we lock files when doing compilation?
  23364. need_locks=$lt_need_locks
  23365. # Manifest tool.
  23366. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23367. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23368. DSYMUTIL=$lt_DSYMUTIL
  23369. # Tool to change global to local symbols on Mac OS X.
  23370. NMEDIT=$lt_NMEDIT
  23371. # Tool to manipulate fat objects and archives on Mac OS X.
  23372. LIPO=$lt_LIPO
  23373. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23374. OTOOL=$lt_OTOOL
  23375. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23376. OTOOL64=$lt_OTOOL64
  23377. # Old archive suffix (normally "a").
  23378. libext=$libext
  23379. # Shared library suffix (normally ".so").
  23380. shrext_cmds=$lt_shrext_cmds
  23381. # The commands to extract the exported symbol list from a shared archive.
  23382. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23383. # Variables whose values should be saved in libtool wrapper scripts and
  23384. # restored at link time.
  23385. variables_saved_for_relink=$lt_variables_saved_for_relink
  23386. # Do we need the "lib" prefix for modules?
  23387. need_lib_prefix=$need_lib_prefix
  23388. # Do we need a version for libraries?
  23389. need_version=$need_version
  23390. # Library versioning type.
  23391. version_type=$version_type
  23392. # Shared library runtime path variable.
  23393. runpath_var=$runpath_var
  23394. # Shared library path variable.
  23395. shlibpath_var=$shlibpath_var
  23396. # Is shlibpath searched before the hard-coded library search path?
  23397. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23398. # Format of library name prefix.
  23399. libname_spec=$lt_libname_spec
  23400. # List of archive names. First name is the real one, the rest are links.
  23401. # The last name is the one that the linker finds with -lNAME
  23402. library_names_spec=$lt_library_names_spec
  23403. # The coded name of the library, if different from the real name.
  23404. soname_spec=$lt_soname_spec
  23405. # Permission mode override for installation of shared libraries.
  23406. install_override_mode=$lt_install_override_mode
  23407. # Command to use after installation of a shared archive.
  23408. postinstall_cmds=$lt_postinstall_cmds
  23409. # Command to use after uninstallation of a shared archive.
  23410. postuninstall_cmds=$lt_postuninstall_cmds
  23411. # Commands used to finish a libtool library installation in a directory.
  23412. finish_cmds=$lt_finish_cmds
  23413. # As "finish_cmds", except a single script fragment to be evaled but
  23414. # not shown.
  23415. finish_eval=$lt_finish_eval
  23416. # Whether we should hardcode library paths into libraries.
  23417. hardcode_into_libs=$hardcode_into_libs
  23418. # Compile-time system search path for libraries.
  23419. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23420. # Run-time system search path for libraries.
  23421. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23422. # Whether dlopen is supported.
  23423. dlopen_support=$enable_dlopen
  23424. # Whether dlopen of programs is supported.
  23425. dlopen_self=$enable_dlopen_self
  23426. # Whether dlopen of statically linked programs is supported.
  23427. dlopen_self_static=$enable_dlopen_self_static
  23428. # Commands to strip libraries.
  23429. old_striplib=$lt_old_striplib
  23430. striplib=$lt_striplib
  23431. # The linker used to build libraries.
  23432. LD=$lt_LD
  23433. # How to create reloadable object files.
  23434. reload_flag=$lt_reload_flag
  23435. reload_cmds=$lt_reload_cmds
  23436. # Commands used to build an old-style archive.
  23437. old_archive_cmds=$lt_old_archive_cmds
  23438. # A language specific compiler.
  23439. CC=$lt_compiler
  23440. # Is the compiler the GNU compiler?
  23441. with_gcc=$GCC
  23442. # Compiler flag to turn off builtin functions.
  23443. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23444. # Additional compiler flags for building library objects.
  23445. pic_flag=$lt_lt_prog_compiler_pic
  23446. # How to pass a linker flag through the compiler.
  23447. wl=$lt_lt_prog_compiler_wl
  23448. # Compiler flag to prevent dynamic linking.
  23449. link_static_flag=$lt_lt_prog_compiler_static
  23450. # Does compiler simultaneously support -c and -o options?
  23451. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23452. # Whether or not to add -lc for building shared libraries.
  23453. build_libtool_need_lc=$archive_cmds_need_lc
  23454. # Whether or not to disallow shared libs when runtime libs are static.
  23455. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23456. # Compiler flag to allow reflexive dlopens.
  23457. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23458. # Compiler flag to generate shared objects directly from archives.
  23459. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23460. # Whether the compiler copes with passing no objects directly.
  23461. compiler_needs_object=$lt_compiler_needs_object
  23462. # Create an old-style archive from a shared archive.
  23463. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23464. # Create a temporary old-style archive to link instead of a shared archive.
  23465. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23466. # Commands used to build a shared archive.
  23467. archive_cmds=$lt_archive_cmds
  23468. archive_expsym_cmds=$lt_archive_expsym_cmds
  23469. # Commands used to build a loadable module if different from building
  23470. # a shared archive.
  23471. module_cmds=$lt_module_cmds
  23472. module_expsym_cmds=$lt_module_expsym_cmds
  23473. # Whether we are building with GNU ld or not.
  23474. with_gnu_ld=$lt_with_gnu_ld
  23475. # Flag that allows shared libraries with undefined symbols to be built.
  23476. allow_undefined_flag=$lt_allow_undefined_flag
  23477. # Flag that enforces no undefined symbols.
  23478. no_undefined_flag=$lt_no_undefined_flag
  23479. # Flag to hardcode \$libdir into a binary during linking.
  23480. # This must work even if \$libdir does not exist
  23481. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23482. # Whether we need a single "-rpath" flag with a separated argument.
  23483. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23484. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23485. # DIR into the resulting binary.
  23486. hardcode_direct=$hardcode_direct
  23487. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23488. # DIR into the resulting binary and the resulting library dependency is
  23489. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23490. # library is relocated.
  23491. hardcode_direct_absolute=$hardcode_direct_absolute
  23492. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23493. # into the resulting binary.
  23494. hardcode_minus_L=$hardcode_minus_L
  23495. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23496. # into the resulting binary.
  23497. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23498. # Set to "yes" if building a shared library automatically hardcodes DIR
  23499. # into the library and all subsequent libraries and executables linked
  23500. # against it.
  23501. hardcode_automatic=$hardcode_automatic
  23502. # Set to yes if linker adds runtime paths of dependent libraries
  23503. # to runtime path list.
  23504. inherit_rpath=$inherit_rpath
  23505. # Whether libtool must link a program against all its dependency libraries.
  23506. link_all_deplibs=$link_all_deplibs
  23507. # Set to "yes" if exported symbols are required.
  23508. always_export_symbols=$always_export_symbols
  23509. # The commands to list exported symbols.
  23510. export_symbols_cmds=$lt_export_symbols_cmds
  23511. # Symbols that should not be listed in the preloaded symbols.
  23512. exclude_expsyms=$lt_exclude_expsyms
  23513. # Symbols that must always be exported.
  23514. include_expsyms=$lt_include_expsyms
  23515. # Commands necessary for linking programs (against libraries) with templates.
  23516. prelink_cmds=$lt_prelink_cmds
  23517. # Commands necessary for finishing linking programs.
  23518. postlink_cmds=$lt_postlink_cmds
  23519. # Specify filename containing input files.
  23520. file_list_spec=$lt_file_list_spec
  23521. # How to hardcode a shared library path into an executable.
  23522. hardcode_action=$hardcode_action
  23523. # The directories searched by this compiler when creating a shared library.
  23524. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23525. # Dependencies to place before and after the objects being linked to
  23526. # create a shared library.
  23527. predep_objects=$lt_predep_objects
  23528. postdep_objects=$lt_postdep_objects
  23529. predeps=$lt_predeps
  23530. postdeps=$lt_postdeps
  23531. # The library search path used internally by the compiler when linking
  23532. # a shared library.
  23533. compiler_lib_search_path=$lt_compiler_lib_search_path
  23534. # ### END LIBTOOL CONFIG
  23535. _LT_EOF
  23536. case $host_os in
  23537. aix3*)
  23538. cat <<\_LT_EOF >> "$cfgfile"
  23539. # AIX sometimes has problems with the GCC collect2 program. For some
  23540. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23541. # vanish in a puff of smoke.
  23542. if test "X${COLLECT_NAMES+set}" != Xset; then
  23543. COLLECT_NAMES=
  23544. export COLLECT_NAMES
  23545. fi
  23546. _LT_EOF
  23547. ;;
  23548. esac
  23549. ltmain="$ac_aux_dir/ltmain.sh"
  23550. # We use sed instead of cat because bash on DJGPP gets confused if
  23551. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23552. # text mode, it properly converts lines to CR/LF. This bash problem
  23553. # is reportedly fixed, but why not run on old versions too?
  23554. sed '$q' "$ltmain" >> "$cfgfile" \
  23555. || (rm -f "$cfgfile"; exit 1)
  23556. if test x"$xsi_shell" = xyes; then
  23557. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23558. func_dirname ()\
  23559. {\
  23560. \ case ${1} in\
  23561. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23562. \ * ) func_dirname_result="${3}" ;;\
  23563. \ esac\
  23564. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23565. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23566. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23567. test 0 -eq $? || _lt_function_replace_fail=:
  23568. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23569. func_basename ()\
  23570. {\
  23571. \ func_basename_result="${1##*/}"\
  23572. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23573. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23574. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23575. test 0 -eq $? || _lt_function_replace_fail=:
  23576. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23577. func_dirname_and_basename ()\
  23578. {\
  23579. \ case ${1} in\
  23580. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23581. \ * ) func_dirname_result="${3}" ;;\
  23582. \ esac\
  23583. \ func_basename_result="${1##*/}"\
  23584. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23585. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23586. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23587. test 0 -eq $? || _lt_function_replace_fail=:
  23588. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23589. func_stripname ()\
  23590. {\
  23591. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23592. \ # positional parameters, so assign one to ordinary parameter first.\
  23593. \ func_stripname_result=${3}\
  23594. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23595. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23596. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23597. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23598. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23599. test 0 -eq $? || _lt_function_replace_fail=:
  23600. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23601. func_split_long_opt ()\
  23602. {\
  23603. \ func_split_long_opt_name=${1%%=*}\
  23604. \ func_split_long_opt_arg=${1#*=}\
  23605. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23606. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23607. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23608. test 0 -eq $? || _lt_function_replace_fail=:
  23609. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23610. func_split_short_opt ()\
  23611. {\
  23612. \ func_split_short_opt_arg=${1#??}\
  23613. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23614. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23615. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23616. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23617. test 0 -eq $? || _lt_function_replace_fail=:
  23618. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23619. func_lo2o ()\
  23620. {\
  23621. \ case ${1} in\
  23622. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23623. \ *) func_lo2o_result=${1} ;;\
  23624. \ esac\
  23625. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23626. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23627. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23628. test 0 -eq $? || _lt_function_replace_fail=:
  23629. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23630. func_xform ()\
  23631. {\
  23632. func_xform_result=${1%.*}.lo\
  23633. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23634. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23635. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23636. test 0 -eq $? || _lt_function_replace_fail=:
  23637. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23638. func_arith ()\
  23639. {\
  23640. func_arith_result=$(( $* ))\
  23641. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23642. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23643. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23644. test 0 -eq $? || _lt_function_replace_fail=:
  23645. sed -e '/^func_len ()$/,/^} # func_len /c\
  23646. func_len ()\
  23647. {\
  23648. func_len_result=${#1}\
  23649. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23650. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23651. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23652. test 0 -eq $? || _lt_function_replace_fail=:
  23653. fi
  23654. if test x"$lt_shell_append" = xyes; then
  23655. sed -e '/^func_append ()$/,/^} # func_append /c\
  23656. func_append ()\
  23657. {\
  23658. eval "${1}+=\\${2}"\
  23659. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23660. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23661. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23662. test 0 -eq $? || _lt_function_replace_fail=:
  23663. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23664. func_append_quoted ()\
  23665. {\
  23666. \ func_quote_for_eval "${2}"\
  23667. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23668. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23669. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23670. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23671. test 0 -eq $? || _lt_function_replace_fail=:
  23672. # Save a `func_append' function call where possible by direct use of '+='
  23673. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23674. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23675. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23676. test 0 -eq $? || _lt_function_replace_fail=:
  23677. else
  23678. # Save a `func_append' function call even when '+=' is not available
  23679. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23680. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23681. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23682. test 0 -eq $? || _lt_function_replace_fail=:
  23683. fi
  23684. if test x"$_lt_function_replace_fail" = x":"; then
  23685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23686. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23687. fi
  23688. mv -f "$cfgfile" "$ofile" ||
  23689. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23690. chmod +x "$ofile"
  23691. cat <<_LT_EOF >> "$ofile"
  23692. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23693. # The linker used to build libraries.
  23694. LD=$lt_LD_CXX
  23695. # How to create reloadable object files.
  23696. reload_flag=$lt_reload_flag_CXX
  23697. reload_cmds=$lt_reload_cmds_CXX
  23698. # Commands used to build an old-style archive.
  23699. old_archive_cmds=$lt_old_archive_cmds_CXX
  23700. # A language specific compiler.
  23701. CC=$lt_compiler_CXX
  23702. # Is the compiler the GNU compiler?
  23703. with_gcc=$GCC_CXX
  23704. # Compiler flag to turn off builtin functions.
  23705. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23706. # Additional compiler flags for building library objects.
  23707. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23708. # How to pass a linker flag through the compiler.
  23709. wl=$lt_lt_prog_compiler_wl_CXX
  23710. # Compiler flag to prevent dynamic linking.
  23711. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23712. # Does compiler simultaneously support -c and -o options?
  23713. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23714. # Whether or not to add -lc for building shared libraries.
  23715. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23716. # Whether or not to disallow shared libs when runtime libs are static.
  23717. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23718. # Compiler flag to allow reflexive dlopens.
  23719. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23720. # Compiler flag to generate shared objects directly from archives.
  23721. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23722. # Whether the compiler copes with passing no objects directly.
  23723. compiler_needs_object=$lt_compiler_needs_object_CXX
  23724. # Create an old-style archive from a shared archive.
  23725. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23726. # Create a temporary old-style archive to link instead of a shared archive.
  23727. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23728. # Commands used to build a shared archive.
  23729. archive_cmds=$lt_archive_cmds_CXX
  23730. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23731. # Commands used to build a loadable module if different from building
  23732. # a shared archive.
  23733. module_cmds=$lt_module_cmds_CXX
  23734. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23735. # Whether we are building with GNU ld or not.
  23736. with_gnu_ld=$lt_with_gnu_ld_CXX
  23737. # Flag that allows shared libraries with undefined symbols to be built.
  23738. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23739. # Flag that enforces no undefined symbols.
  23740. no_undefined_flag=$lt_no_undefined_flag_CXX
  23741. # Flag to hardcode \$libdir into a binary during linking.
  23742. # This must work even if \$libdir does not exist
  23743. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23744. # Whether we need a single "-rpath" flag with a separated argument.
  23745. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23746. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23747. # DIR into the resulting binary.
  23748. hardcode_direct=$hardcode_direct_CXX
  23749. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23750. # DIR into the resulting binary and the resulting library dependency is
  23751. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23752. # library is relocated.
  23753. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23754. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23755. # into the resulting binary.
  23756. hardcode_minus_L=$hardcode_minus_L_CXX
  23757. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23758. # into the resulting binary.
  23759. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23760. # Set to "yes" if building a shared library automatically hardcodes DIR
  23761. # into the library and all subsequent libraries and executables linked
  23762. # against it.
  23763. hardcode_automatic=$hardcode_automatic_CXX
  23764. # Set to yes if linker adds runtime paths of dependent libraries
  23765. # to runtime path list.
  23766. inherit_rpath=$inherit_rpath_CXX
  23767. # Whether libtool must link a program against all its dependency libraries.
  23768. link_all_deplibs=$link_all_deplibs_CXX
  23769. # Set to "yes" if exported symbols are required.
  23770. always_export_symbols=$always_export_symbols_CXX
  23771. # The commands to list exported symbols.
  23772. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23773. # Symbols that should not be listed in the preloaded symbols.
  23774. exclude_expsyms=$lt_exclude_expsyms_CXX
  23775. # Symbols that must always be exported.
  23776. include_expsyms=$lt_include_expsyms_CXX
  23777. # Commands necessary for linking programs (against libraries) with templates.
  23778. prelink_cmds=$lt_prelink_cmds_CXX
  23779. # Commands necessary for finishing linking programs.
  23780. postlink_cmds=$lt_postlink_cmds_CXX
  23781. # Specify filename containing input files.
  23782. file_list_spec=$lt_file_list_spec_CXX
  23783. # How to hardcode a shared library path into an executable.
  23784. hardcode_action=$hardcode_action_CXX
  23785. # The directories searched by this compiler when creating a shared library.
  23786. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23787. # Dependencies to place before and after the objects being linked to
  23788. # create a shared library.
  23789. predep_objects=$lt_predep_objects_CXX
  23790. postdep_objects=$lt_postdep_objects_CXX
  23791. predeps=$lt_predeps_CXX
  23792. postdeps=$lt_postdeps_CXX
  23793. # The library search path used internally by the compiler when linking
  23794. # a shared library.
  23795. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23796. # ### END LIBTOOL TAG CONFIG: CXX
  23797. _LT_EOF
  23798. ;;
  23799. "sdl2_config":C) chmod a+x sdl2-config ;;
  23800. "summary":C) echo -en "$SUMMARY" ;;
  23801. esac
  23802. done # for ac_tag
  23803. as_fn_exit 0
  23804. _ACEOF
  23805. ac_clean_files=$ac_clean_files_save
  23806. test $ac_write_fail = 0 ||
  23807. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23808. # configure is writing to config.log, and then calls config.status.
  23809. # config.status does its own redirection, appending to config.log.
  23810. # Unfortunately, on DOS this fails, as config.log is still kept open
  23811. # by configure, so config.status won't be able to write to it; its
  23812. # output is simply discarded. So we exec the FD to /dev/null,
  23813. # effectively closing config.log, so it can be properly (re)opened and
  23814. # appended to by config.status. When coming back to configure, we
  23815. # need to make the FD available again.
  23816. if test "$no_create" != yes; then
  23817. ac_cs_success=:
  23818. ac_config_status_args=
  23819. test "$silent" = yes &&
  23820. ac_config_status_args="$ac_config_status_args --quiet"
  23821. exec 5>/dev/null
  23822. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23823. exec 5>>config.log
  23824. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23825. # would make configure fail if this is the last instruction.
  23826. $ac_cs_success || as_fn_exit 1
  23827. fi
  23828. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23830. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23831. fi