2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="README.txt"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='LTLIBOBJS
753 program_transform_name
766 enable_option_checking
775 enable_dependency_tracking
811 enable_pulseaudio_shared
821 enable_video_wayland_qt_touch
822 enable_wayland_shared
828 enable_video_x11_xcursor
829 enable_video_x11_xdbe
830 enable_video_x11_xinerama
831 enable_video_x11_xinput
832 enable_video_x11_xrandr
833 enable_video_x11_scrnsaver
834 enable_video_x11_xshape
838 enable_video_directfb
839 enable_directfb_shared
841 enable_fusionsound_shared
844 enable_video_opengles
845 enable_video_opengles1
846 enable_video_opengles2
859 ac_precious_vars='build_alias
875 # Initialize some variables set by options.
877 ac_init_version=false
878 ac_unrecognized_opts=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
889 program_transform_name=s,x,x,
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE}'
914 infodir='${datarootdir}/info'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=no ;;
994 -docdir | --docdir | --docdi | --doc | --do)
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=no ;;
1241 # Obsolete; use --with-x.
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --x-includes=DIR X include files are in DIR
1472 --x-libraries=DIR X library files are in DIR
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-assertions Enable internal sanity checks
1494 (auto/disabled/release/enabled/paranoid)
1496 --enable-dependency-tracking
1497 Use gcc -MMD -MT dependency tracking [[default=yes]]
1498 --enable-libc Use the system C library [[default=yes]]
1499 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
1500 --enable-atomic Enable the atomic operations subsystem
1502 --enable-audio Enable the audio subsystem [[default=yes]]
1503 --enable-video Enable the video subsystem [[default=yes]]
1504 --enable-render Enable the render subsystem [[default=yes]]
1505 --enable-events Enable the events subsystem [[default=yes]]
1506 --enable-joystick Enable the joystick subsystem [[default=yes]]
1507 --enable-haptic Enable the haptic (force feedback) subsystem
1509 --enable-power Enable the power subsystem [[default=yes]]
1510 --enable-filesystem Enable the filesystem subsystem [[default=yes]]
1511 --enable-threads Enable the threading subsystem [[default=yes]]
1512 --enable-timers Enable the timer subsystem [[default=yes]]
1513 --enable-file Enable the file subsystem [[default=yes]]
1514 --enable-loadso Enable the shared object loading subsystem
1516 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
1517 --enable-assembly Enable assembly routines [[default=yes]]
1518 --enable-ssemath Allow GCC to use SSE floating point math
1520 --enable-mmx use MMX assembly routines [[default=yes]]
1521 --enable-3dnow use 3DNow! assembly routines [[default=yes]]
1522 --enable-sse use SSE assembly routines [[default=yes]]
1523 --enable-sse2 use SSE2 assembly routines [[default=no]]
1524 --enable-altivec use Altivec assembly routines [[default=yes]]
1525 --enable-oss support the OSS audio API [[default=maybe]]
1526 --enable-alsa support the ALSA audio API [[default=yes]]
1527 --disable-alsatest Do not try to compile and run a test Alsa program
1528 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
1529 --enable-esd support the Enlightened Sound Daemon [[default=yes]]
1530 --disable-esdtest Do not try to compile and run a test ESD program
1531 --enable-esd-shared dynamically load ESD audio support [[default=yes]]
1532 --enable-pulseaudio use PulseAudio [[default=yes]]
1533 --enable-pulseaudio-shared
1534 dynamically load PulseAudio support [[default=yes]]
1535 --enable-arts support the Analog Real Time Synthesizer
1537 --enable-arts-shared dynamically load aRts audio support [[default=yes]]
1538 --enable-nas support the NAS audio API [[default=yes]]
1539 --enable-nas-shared dynamically load NAS audio support [[default=yes]]
1540 --enable-sndio support the sndio audio API [[default=yes]]
1541 --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
1542 --enable-diskaudio support the disk writer audio driver [[default=yes]]
1543 --enable-dummyaudio support the dummy audio driver [[default=yes]]
1544 --enable-video-wayland use Wayland video driver [[default=yes]]
1545 --enable-video-wayland-qt-touch
1546 QtWayland server support for Wayland video driver
1548 --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1549 --enable-video-mir use Mir video driver [[default=yes]]
1550 --enable-mir-shared dynamically load Mir support [[default=maybe]]
1551 --enable-video-x11 use X11 video driver [[default=yes]]
1552 --enable-x11-shared dynamically load X11 support [[default=maybe]]
1553 --enable-video-x11-xcursor
1554 enable X11 Xcursor support [[default=yes]]
1555 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1556 --enable-video-x11-xinerama
1557 enable X11 Xinerama support [[default=yes]]
1558 --enable-video-x11-xinput
1559 enable X11 XInput extension for manymouse, tablets,
1561 --enable-video-x11-xrandr
1562 enable X11 Xrandr extension for fullscreen
1564 --enable-video-x11-scrnsaver
1565 enable X11 screensaver extension [[default=yes]]
1566 --enable-video-x11-xshape
1567 enable X11 XShape support [[default=yes]]
1568 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
1569 --enable-video-vivante use Vivante EGL video driver [[default=yes]]
1570 --enable-video-cocoa use Cocoa video driver [[default=yes]]
1571 --enable-video-directfb use DirectFB video driver [[default=no]]
1572 --enable-directfb-shared
1573 dynamically load directfb support [[default=yes]]
1574 --enable-fusionsound use FusionSound audio driver [[default=no]]
1575 --enable-fusionsound-shared
1576 dynamically load fusionsound audio support
1578 --enable-video-dummy use dummy video driver [[default=yes]]
1579 --enable-video-opengl include OpenGL support [[default=yes]]
1580 --enable-video-opengles include OpenGL ES support [[default=yes]]
1581 --enable-video-opengles1
1582 include OpenGL ES 1.1 support [[default=yes]]
1583 --enable-video-opengles2
1584 include OpenGL ES 2.0 support [[default=yes]]
1585 --enable-libudev enable libudev support [[default=yes]]
1586 --enable-dbus enable D-Bus support [[default=yes]]
1587 --enable-ibus enable IBus support [[default=yes]]
1588 --enable-input-tslib use the Touchscreen library for input
1590 --enable-pthreads use POSIX threads for multi-threading
1592 --enable-pthread-sem use pthread semaphores [[default=yes]]
1593 --enable-directx use DirectX for Windows audio/video [[default=yes]]
1594 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
1595 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1596 UNIX [[default=yes]]
1597 --enable-rpath use an rpath when linking SDL [[default=yes]]
1598 --enable-render-d3d enable the Direct3D render driver [[default=yes]]
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-sysroot=DIR Search for dependent libraries within DIR
1607 (or the compiler's sysroot if not specified).
1608 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1609 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1610 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1611 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1612 --with-x use the X Window System
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CXXCPP C++ preprocessor
1626 XMKMF Path to xmkmf, Makefile generator for X Window System
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to the package provider.
1636 if test "$ac_init_help" = "recursive"; then
1637 # If there are subdirs, report their specific --help.
1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639 test -d "$ac_dir" ||
1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648 # A ".." for each directory in $ac_dir_suffix.
1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650 case $ac_top_builddir_sub in
1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1661 .) # We are building in place.
1663 ac_top_srcdir=$ac_top_builddir_sub
1664 ac_abs_top_srcdir=$ac_pwd ;;
1665 [\\/]* | ?:[\\/]* ) # Absolute name.
1666 ac_srcdir=$srcdir$ac_dir_suffix;
1667 ac_top_srcdir=$srcdir
1668 ac_abs_top_srcdir=$srcdir ;;
1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671 ac_top_srcdir=$ac_top_build_prefix$srcdir
1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676 cd "$ac_dir" || { ac_status=$?; continue; }
1677 # Check for guested configure.
1678 if test -f "$ac_srcdir/configure.gnu"; then
1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681 elif test -f "$ac_srcdir/configure"; then
1683 $SHELL "$ac_srcdir/configure" --help=recursive
1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 cd "$ac_pwd" || { ac_status=$?; break; }
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1695 generated by GNU Autoconf 2.69
1697 Copyright (C) 2012 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1704 ## ------------------------ ##
1705 ## Autoconf initialization. ##
1706 ## ------------------------ ##
1708 # ac_fn_c_try_compile LINENO
1709 # --------------------------
1710 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext
1715 if { { ac_try="$ac_compile"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_compile") 2>conftest.err
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest.$ac_objext; then :
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_compile
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest$ac_exeext
1753 if { { ac_try="$ac_link"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest$ac_exeext && {
1772 test "$cross_compiling" = yes ||
1773 test -x conftest$ac_exeext
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_link
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_header_compile
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1902 # ac_fn_c_check_func LINENO FUNC VAR
1903 # ----------------------------------
1904 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1905 ac_fn_c_check_func ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1917 #define $2 innocuous_$2
1919 /* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char $2 (); below.
1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1922 <limits.h> exists even on freestanding compilers. */
1925 # include <limits.h>
1927 # include <assert.h>
1932 /* Override any GCC internal prototype to avoid an error.
1933 Use char because int might match the return type of a GCC
1934 builtin and then its argument prototype would still apply. */
1939 /* The GNU C library defines this for functions which it implements
1940 to always fail with ENOSYS. Some functions are actually named
1941 something starting with __ and the normal name is an alias. */
1942 #if defined __stub_$2 || defined __stub___$2
1954 if ac_fn_c_try_link "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext \
1960 conftest$ac_exeext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_func
1969 # ac_fn_cxx_try_compile LINENO
1970 # ----------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_cxx_try_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_cxx_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.$ac_objext; then :
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_cxx_try_compile
2007 # ac_fn_cxx_try_cpp LINENO
2008 # ------------------------
2009 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_cxx_try_cpp ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_cpp conftest.$ac_ext"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } > conftest.i && {
2029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2030 test ! -s conftest.err
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status $ac_retval
2042 } # ac_fn_cxx_try_cpp
2044 # ac_fn_cxx_try_link LINENO
2045 # -------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_cxx_try_link ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
2071 test -x conftest$ac_exeext
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_cxx_try_link
2090 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2091 # -------------------------------------------------------
2092 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093 # the include files in INCLUDES and setting the cache variable VAR
2095 ac_fn_c_check_header_mongrel ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if eval \${$3+:} false; then :
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2108 # Is the header compilable?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110 $as_echo_n "checking $2 usability... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_header_compiler=yes
2119 ac_header_compiler=no
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123 $as_echo "$ac_header_compiler" >&6; }
2125 # Is the header present?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127 $as_echo_n "checking $2 presence... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 if ac_fn_c_try_cpp "$LINENO"; then :
2133 ac_header_preproc=yes
2135 ac_header_preproc=no
2137 rm -f conftest.err conftest.i conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139 $as_echo "$ac_header_preproc" >&6; }
2141 # So? What about this header?
2142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if eval \${$3+:} false; then :
2165 $as_echo_n "(cached) " >&6
2167 eval "$3=\$ac_header_compiler"
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_c_check_header_mongrel
2177 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2178 # -------------------------------------------
2179 # Tests whether TYPE exists after having included INCLUDES, setting cache
2180 # variable VAR accordingly.
2181 ac_fn_c_check_type ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2215 if ac_fn_c_try_compile "$LINENO"; then :
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_type
2231 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2232 # ----------------------------------------------------
2233 # Tries to find if the field MEMBER exists in type AGGR, after including
2234 # INCLUDES, setting cache variable VAR accordingly.
2235 ac_fn_c_check_member ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2239 $as_echo_n "checking for $2.$3... " >&6; }
2240 if eval \${$4+:} false; then :
2241 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2256 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2266 if (sizeof ac_aggr.$3)
2272 if ac_fn_c_try_compile "$LINENO"; then :
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286 } # ac_fn_c_check_member
2287 cat >config.log <<_ACEOF
2288 This file contains any messages produced by compilers while
2289 running configure, to aid debugging if configure makes a mistake.
2291 It was created by $as_me, which was
2292 generated by GNU Autoconf 2.69. Invocation command line was
2304 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2310 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2313 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2314 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2315 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2317 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2318 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2319 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 $as_echo "PATH: $as_dir"
2344 # Keep a trace of the command line.
2345 # Strip out --no-create and --no-recursion so they do not pile up.
2346 # Strip out --silent because we don't want to record it for future runs.
2347 # Also quote any args containing shell meta-characters.
2348 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_must_keep_next=false
2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360 | -silent | --silent | --silen | --sile | --sil)
2363 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2368 as_fn_append ac_configure_args1 " '$ac_arg'"
2369 if test $ac_must_keep_next = true; then
2370 ac_must_keep_next=false # Got value, back to normal.
2373 *=* | --config-cache | -C | -disable-* | --disable-* \
2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376 | -with-* | --with-* | -without-* | --without-* | --x)
2377 case "$ac_configure_args0 " in
2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381 -* ) ac_must_keep_next=true ;;
2384 as_fn_append ac_configure_args " '$ac_arg'"
2389 { ac_configure_args0=; unset ac_configure_args0;}
2390 { ac_configure_args1=; unset ac_configure_args1;}
2392 # When interrupted or exit'd, cleanup temporary files, and complete
2393 # config.log. We remove comments because anyway the quotes in there
2394 # would cause problems or look ugly.
2395 # WARNING: Use '\'' to represent an apostrophe within the trap.
2396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397 trap 'exit_status=$?
2398 # Save into config.log some information that might help in debugging.
2402 $as_echo "## ---------------- ##
2403 ## Cache variables. ##
2404 ## ---------------- ##"
2406 # The following way of writing the cache mishandles newlines in values,
2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409 eval ac_val=\$$ac_var
2413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 _ | IFS | as_nl) ;; #(
2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419 *) { eval $ac_var=; unset $ac_var;} ;;
2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425 *${as_nl}ac_space=\ *)
2427 "s/'\''/'\''\\\\'\'''\''/g;
2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438 $as_echo "## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##"
2442 for ac_var in $ac_subst_vars
2444 eval ac_val=\$$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2452 if test -n "$ac_subst_files"; then
2453 $as_echo "## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##"
2457 for ac_var in $ac_subst_files
2459 eval ac_val=\$$ac_var
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 $as_echo "$ac_var='\''$ac_val'\''"
2468 if test -s confdefs.h; then
2469 $as_echo "## ----------- ##
2476 test "$ac_signal" != 0 &&
2477 $as_echo "$as_me: caught signal $ac_signal"
2478 $as_echo "$as_me: exit $exit_status"
2480 rm -f core *.core core.conftest.* &&
2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 for ac_signal in 1 2 13 15; do
2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2492 $as_echo "/* confdefs.h */" > confdefs.h
2494 # Predefined preprocessor variables.
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2525 if test -n "$CONFIG_SITE"; then
2526 # We do not want a PATH search for config.site.
2527 case $CONFIG_SITE in #((
2528 -*) ac_site_file1=./$CONFIG_SITE;;
2529 */*) ac_site_file1=$CONFIG_SITE;;
2530 *) ac_site_file1=./$CONFIG_SITE;;
2532 elif test "x$prefix" != xNONE; then
2533 ac_site_file1=$prefix/share/config.site
2534 ac_site_file2=$prefix/etc/config.site
2536 ac_site_file1=$ac_default_prefix/share/config.site
2537 ac_site_file2=$ac_default_prefix/etc/config.site
2539 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541 test "x$ac_site_file" = xNONE && continue
2542 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545 sed 's/^/| /' "$ac_site_file" >&5
2547 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $? "failed to load site script $ac_site_file
2550 See \`config.log' for more details" "$LINENO" 5; }
2554 if test -r "$cache_file"; then
2555 # Some versions of bash will fail to source /dev/null (special files
2556 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2557 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2559 $as_echo "$as_me: loading cache $cache_file" >&6;}
2561 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562 *) . "./$cache_file";;
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2567 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 # Check that the precious variables saved in the cache have kept the same
2573 ac_cache_corrupted=false
2574 for ac_var in $ac_precious_vars; do
2575 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576 eval ac_new_set=\$ac_env_${ac_var}_set
2577 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578 eval ac_new_val=\$ac_env_${ac_var}_value
2579 case $ac_old_set,$ac_new_set in
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587 ac_cache_corrupted=: ;;
2590 if test "x$ac_old_val" != "x$ac_new_val"; then
2591 # differences in whitespace do not lead to failure.
2592 ac_old_val_w=`echo x $ac_old_val`
2593 ac_new_val_w=`echo x $ac_new_val`
2594 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597 ac_cache_corrupted=:
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601 eval $ac_var=\$ac_old_val
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2604 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2606 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2609 # Pass precious variables to config.status.
2610 if test "$ac_new_set" = set; then
2612 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613 *) ac_arg=$ac_var=$ac_new_val ;;
2615 case " $ac_configure_args " in
2616 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2617 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 if $ac_cache_corrupted; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2628 ## -------------------- ##
2629 ## Main body of script. ##
2630 ## -------------------- ##
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 ac_config_headers="$ac_config_headers include/SDL_config.h"
2642 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2643 if test -f "$ac_dir/install-sh"; then
2645 ac_install_sh="$ac_aux_dir/install-sh -c"
2647 elif test -f "$ac_dir/install.sh"; then
2649 ac_install_sh="$ac_aux_dir/install.sh -c"
2651 elif test -f "$ac_dir/shtool"; then
2653 ac_install_sh="$ac_aux_dir/shtool install -c"
2657 if test -z "$ac_aux_dir"; then
2658 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2661 # These three variables are undocumented and unsupported,
2662 # and are intended to be withdrawn in a future Autoconf release.
2663 # They can cause serious problems if a builder's source tree is in a directory
2664 # whose full name contains unusual characters.
2665 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2666 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2667 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2672 orig_CFLAGS="$CFLAGS"
2676 # Edit include/SDL_version.h and change the version, then:
2677 # SDL_MICRO_VERSION += 1;
2678 # SDL_INTERFACE_AGE += 1;
2679 # SDL_BINARY_AGE += 1;
2680 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2681 # if backwards compatibility has been broken,
2682 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2689 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2698 # libtool versioning
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2702 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2707 macro_version='2.4.2'
2708 macro_revision='1.3337'
2722 ltmain="$ac_aux_dir/ltmain.sh"
2724 # Make sure we can run config.sub.
2725 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2726 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2729 $as_echo_n "checking build system type... " >&6; }
2730 if ${ac_cv_build+:} false; then :
2731 $as_echo_n "(cached) " >&6
2733 ac_build_alias=$build_alias
2734 test "x$ac_build_alias" = x &&
2735 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2736 test "x$ac_build_alias" = x &&
2737 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2738 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2739 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2743 $as_echo "$ac_cv_build" >&6; }
2744 case $ac_cv_build in
2746 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2749 ac_save_IFS=$IFS; IFS='-'
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2759 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2763 $as_echo_n "checking host system type... " >&6; }
2764 if ${ac_cv_host+:} false; then :
2765 $as_echo_n "(cached) " >&6
2767 if test "x$host_alias" = x; then
2768 ac_cv_host=$ac_cv_build
2770 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2776 $as_echo "$ac_cv_host" >&6; }
2779 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2782 ac_save_IFS=$IFS; IFS='-'
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2792 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2795 # Backslashify metacharacters that are still active within
2796 # double-quoted strings.
2797 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2799 # Same as above, but do not quote variable references.
2800 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2802 # Sed substitution to delay expansion of an escaped shell variable in a
2803 # double_quote_subst'ed string.
2804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2806 # Sed substitution to delay expansion of an escaped single quote.
2807 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2809 # Sed substitution to avoid accidental globbing in evaled expressions
2810 no_glob_subst='s/\*/\\\*/g'
2812 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2813 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2817 $as_echo_n "checking how to print strings... " >&6; }
2818 # Test print first, because it will be a builtin if present.
2819 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2820 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2822 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2825 # Use this function as a fallback that always works.
2826 func_fallback_echo ()
2828 eval 'cat <<_LTECHO_EOF
2832 ECHO='func_fallback_echo'
2835 # func_echo_all arg...
2836 # Invoke $ECHO with all args, space-separated.
2843 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2844 $as_echo "printf" >&6; } ;;
2845 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2846 $as_echo "print -r" >&6; } ;;
2847 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2848 $as_echo "cat" >&6; } ;;
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2908 if test -z "$ac_cv_prog_CC"; then
2910 # Extract the first word of "gcc", so it can be a program name with args.
2911 set dummy gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CC="gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940 $as_echo "$ac_ct_CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2946 if test "x$ac_ct_CC" = x; then
2949 case $cross_compiling:$ac_tool_warned in
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}cc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected=yes
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy $ac_cv_prog_CC
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl.exe
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3099 test -n "$CC" && break
3102 if test -z "$CC"; then
3104 for ac_prog in cl.exe
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_CC="$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3143 test -n "$ac_ct_CC" && break
3146 if test "x$ac_ct_CC" = x; then
3149 case $cross_compiling:$ac_tool_warned in
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details" "$LINENO" 5; }
3167 # Provide some information about the compiler.
3168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3171 for ac_option in --version -v -V -qversion; do
3172 { { ac_try="$ac_compiler $ac_option >&5"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3181 if test -s conftest.err; then
3183 ... rest of stderr output deleted ...
3184 10q' conftest.err >conftest.er1
3185 cat conftest.er1 >&5
3187 rm -f conftest.er1 conftest.err
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3203 ac_clean_files_save=$ac_clean_files
3204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3205 # Try to create an executable without -o first, disregard a.out.
3206 # It will help us diagnose broken compilers, and finding out an intuition
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209 $as_echo_n "checking whether the C compiler works... " >&6; }
3210 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3212 # The possible output files:
3213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3216 for ac_file in $ac_files
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225 if { { ac_try="$ac_link_default"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link_default") 2>&5
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3239 # so that the user can short-circuit this test for compilers unknown to
3241 for ac_file in $ac_files ''
3243 test -f "$ac_file" || continue
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3248 # We found the default executable, but exeext='' is most
3252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 # We set ac_cv_exeext here because the later test for it is not
3257 # safe: cross compilers may not add the suffix if given an `-o'
3258 # argument, so we may need to know it at that point already.
3259 # Even if this section looks crufty: it has the advantage of
3266 test "$ac_cv_exeext" = no && ac_cv_exeext=
3271 if test -z "$ac_file"; then :
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "C compiler cannot create executables
3280 See \`config.log' for more details" "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details" "$LINENO" 5; }
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3338 FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351 { { ac_try="$ac_link"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 if { ac_try='./conftest$ac_cv_exeext'
3363 { { case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_try") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; }; then
3375 if test "$cross_compiling" = maybe; then
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details" "$LINENO" 5; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if ${ac_cv_objext+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details" "$LINENO" 5; }
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if ${ac_cv_c_compiler_gnu+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3461 if ac_fn_c_try_compile "$LINENO"; then :
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if ${ac_cv_prog_cc_g+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3514 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_c_try_compile "$LINENO"; then :
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3551 if test "$GCC" = yes; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if ${ac_cv_prog_cc_c89+:} false; then :
3560 $as_echo_n "(cached) " >&6
3562 ac_cv_prog_cc_c89=no
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3583 s = g (p, va_arg (v,int));
3588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
3591 as 'x'. The following induces an error, until -std is added to get
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
3594 that's true only with -std. */
3595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3602 int test (int i, double x);
3603 struct s1 {int (*f) (int a);};
3604 struct s2 {int (*f) (double a);};
3605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3619 CC="$ac_save_CC $ac_arg"
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_c89=$ac_arg
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 rm -f conftest.$ac_ext
3631 case "x$ac_cv_prog_cc_c89" in
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3634 $as_echo "none needed" >&6; } ;;
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 $as_echo "unsupported" >&6; } ;;
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3643 if test "x$ac_cv_prog_cc_c89" != xno; then :
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3654 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3655 if ${ac_cv_path_SED+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3659 for ac_i in 1 2 3 4 5 6 7; do
3660 ac_script="$ac_script$as_nl$ac_script"
3662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3663 { ac_script=; unset ac_script;}
3664 if test -z "$SED"; then
3665 ac_path_SED_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_prog in sed gsed; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3675 as_fn_executable_p "$ac_path_SED" || continue
3676 # Check for GNU ac_path_SED and select it if it is found.
3677 # Check for GNU $ac_path_SED
3678 case `"$ac_path_SED" --version 2>&1` in
3680 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3683 $as_echo_n 0123456789 >"conftest.in"
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 $as_echo '' >> "conftest.nl"
3690 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692 as_fn_arith $ac_count + 1 && ac_count=$as_val
3693 if test $ac_count -gt ${ac_path_SED_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_SED="$ac_path_SED"
3696 ac_path_SED_max=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 $ac_path_SED_found && break 3
3709 if test -z "$ac_cv_path_SED"; then
3710 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3718 $as_echo "$ac_cv_path_SED" >&6; }
3719 SED="$ac_cv_path_SED"
3722 test -z "$SED" && SED=sed
3723 Xsed="$SED -e 1s/^X//"
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3736 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3737 if ${ac_cv_path_GREP+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -z "$GREP"; then
3741 ac_path_GREP_found=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in grep ggrep; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3751 as_fn_executable_p "$ac_path_GREP" || continue
3752 # Check for GNU ac_path_GREP and select it if it is found.
3753 # Check for GNU $ac_path_GREP
3754 case `"$ac_path_GREP" --version 2>&1` in
3756 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3759 $as_echo_n 0123456789 >"conftest.in"
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 $as_echo 'GREP' >> "conftest.nl"
3766 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768 as_fn_arith $ac_count + 1 && ac_count=$as_val
3769 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_GREP="$ac_path_GREP"
3772 ac_path_GREP_max=$ac_count
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 $ac_path_GREP_found && break 3
3785 if test -z "$ac_cv_path_GREP"; then
3786 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3789 ac_cv_path_GREP=$GREP
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3794 $as_echo "$ac_cv_path_GREP" >&6; }
3795 GREP="$ac_cv_path_GREP"
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3799 $as_echo_n "checking for egrep... " >&6; }
3800 if ${ac_cv_path_EGREP+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3804 then ac_cv_path_EGREP="$GREP -E"
3806 if test -z "$EGREP"; then
3807 ac_path_EGREP_found=false
3808 # Loop through the user's path and test for each of PROGNAME-LIST
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813 test -z "$as_dir" && as_dir=.
3814 for ac_prog in egrep; do
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3817 as_fn_executable_p "$ac_path_EGREP" || continue
3818 # Check for GNU ac_path_EGREP and select it if it is found.
3819 # Check for GNU $ac_path_EGREP
3820 case `"$ac_path_EGREP" --version 2>&1` in
3822 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3825 $as_echo_n 0123456789 >"conftest.in"
3828 cat "conftest.in" "conftest.in" >"conftest.tmp"
3829 mv "conftest.tmp" "conftest.in"
3830 cp "conftest.in" "conftest.nl"
3831 $as_echo 'EGREP' >> "conftest.nl"
3832 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834 as_fn_arith $ac_count + 1 && ac_count=$as_val
3835 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3836 # Best one so far, save it but keep looking for a better one
3837 ac_cv_path_EGREP="$ac_path_EGREP"
3838 ac_path_EGREP_max=$ac_count
3840 # 10*(2^10) chars as input seems more than enough
3841 test $ac_count -gt 10 && break
3843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846 $ac_path_EGREP_found && break 3
3851 if test -z "$ac_cv_path_EGREP"; then
3852 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855 ac_cv_path_EGREP=$EGREP
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3861 $as_echo "$ac_cv_path_EGREP" >&6; }
3862 EGREP="$ac_cv_path_EGREP"
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3866 $as_echo_n "checking for fgrep... " >&6; }
3867 if ${ac_cv_path_FGREP+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3871 then ac_cv_path_FGREP="$GREP -F"
3873 if test -z "$FGREP"; then
3874 ac_path_FGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in fgrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3884 as_fn_executable_p "$ac_path_FGREP" || continue
3885 # Check for GNU ac_path_FGREP and select it if it is found.
3886 # Check for GNU $ac_path_FGREP
3887 case `"$ac_path_FGREP" --version 2>&1` in
3889 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3892 $as_echo_n 0123456789 >"conftest.in"
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 $as_echo 'FGREP' >> "conftest.nl"
3899 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 as_fn_arith $ac_count + 1 && ac_count=$as_val
3902 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_FGREP="$ac_path_FGREP"
3905 ac_path_FGREP_max=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 $ac_path_FGREP_found && break 3
3918 if test -z "$ac_cv_path_FGREP"; then
3919 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3922 ac_cv_path_FGREP=$FGREP
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3928 $as_echo "$ac_cv_path_FGREP" >&6; }
3929 FGREP="$ac_cv_path_FGREP"
3932 test -z "$GREP" && GREP=grep
3952 # Check whether --with-gnu-ld was given.
3953 if test "${with_gnu_ld+set}" = set; then :
3954 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3960 if test "$GCC" = yes; then
3961 # Check if gcc -print-prog-name=ld gives a path.
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3963 $as_echo_n "checking for ld used by $CC... " >&6; }
3966 # gcc leaves a trailing carriage return which upsets mingw
3967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3972 # Accept absolute paths.
3974 re_direlt='/[^/][^/]*/\.\./'
3975 # Canonicalize the pathname of ld
3976 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3977 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3978 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3980 test -z "$LD" && LD="$ac_prog"
3983 # If it fails, then pretend we aren't using GCC.
3987 # If it is relative, then search for the first ld in PATH.
3991 elif test "$with_gnu_ld" = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3993 $as_echo_n "checking for GNU ld... " >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3996 $as_echo_n "checking for non-GNU ld... " >&6; }
3998 if ${lt_cv_path_LD+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -z "$LD"; then
4002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4003 for ac_dir in $PATH; do
4005 test -z "$ac_dir" && ac_dir=.
4006 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4007 lt_cv_path_LD="$ac_dir/$ac_prog"
4008 # Check to see if the program is GNU ld. I'd rather use --version,
4009 # but apparently some variants of GNU ld only accept -v.
4010 # Break only if it was the GNU/non-GNU ld that we prefer.
4011 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4012 *GNU* | *'with BFD'*)
4013 test "$with_gnu_ld" != no && break
4016 test "$with_gnu_ld" != yes && break
4023 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 if test -n "$LD"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4030 $as_echo "$LD" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4038 if ${lt_cv_prog_gnu_ld+:} false; then :
4039 $as_echo_n "(cached) " >&6
4041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4042 case `$LD -v 2>&1 </dev/null` in
4043 *GNU* | *'with BFD'*)
4044 lt_cv_prog_gnu_ld=yes
4047 lt_cv_prog_gnu_ld=no
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4053 with_gnu_ld=$lt_cv_prog_gnu_ld
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4064 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4065 if ${lt_cv_path_NM+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 if test -n "$NM"; then
4069 # Let the user override the test.
4072 lt_nm_to_check="${ac_tool_prefix}nm"
4073 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4074 lt_nm_to_check="$lt_nm_to_check nm"
4076 for lt_tmp_nm in $lt_nm_to_check; do
4077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4078 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4080 test -z "$ac_dir" && ac_dir=.
4081 tmp_nm="$ac_dir/$lt_tmp_nm"
4082 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4083 # Check to see if the nm accepts a BSD-compat flag.
4084 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4085 # nm: unknown option "B" ignored
4086 # Tru64's nm complains that /dev/null is an invalid object file
4087 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4088 */dev/null* | *'Invalid file or object type'*)
4089 lt_cv_path_NM="$tmp_nm -B"
4093 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4095 lt_cv_path_NM="$tmp_nm -p"
4099 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4100 continue # so that we can try to find one that supports BSD flags
4109 : ${lt_cv_path_NM=no}
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4113 $as_echo "$lt_cv_path_NM" >&6; }
4114 if test "$lt_cv_path_NM" != "no"; then
4117 # Didn't find any BSD compatible name lister, look for dumpbin.
4118 if test -n "$DUMPBIN"; then :
4119 # Let the user override the test.
4121 if test -n "$ac_tool_prefix"; then
4122 for ac_prog in dumpbin "link -dump"
4124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_DUMPBIN+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$DUMPBIN"; then
4132 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 DUMPBIN=$ac_cv_prog_DUMPBIN
4152 if test -n "$DUMPBIN"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4154 $as_echo "$DUMPBIN" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4161 test -n "$DUMPBIN" && break
4164 if test -z "$DUMPBIN"; then
4165 ac_ct_DUMPBIN=$DUMPBIN
4166 for ac_prog in dumpbin "link -dump"
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4173 $as_echo_n "(cached) " >&6
4175 if test -n "$ac_ct_DUMPBIN"; then
4176 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4196 if test -n "$ac_ct_DUMPBIN"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4198 $as_echo "$ac_ct_DUMPBIN" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$ac_ct_DUMPBIN" && break
4208 if test "x$ac_ct_DUMPBIN" = x; then
4211 case $cross_compiling:$ac_tool_warned in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4217 DUMPBIN=$ac_ct_DUMPBIN
4221 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4223 DUMPBIN="$DUMPBIN -symbols"
4231 if test "$DUMPBIN" != ":"; then
4235 test -z "$NM" && NM=nm
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4243 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4244 if ${lt_cv_nm_interface+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 lt_cv_nm_interface="BSD nm"
4248 echo "int some_variable = 0;" > conftest.$ac_ext
4249 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4250 (eval "$ac_compile" 2>conftest.err)
4251 cat conftest.err >&5
4252 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4253 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4254 cat conftest.err >&5
4255 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4256 cat conftest.out >&5
4257 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4258 lt_cv_nm_interface="MS dumpbin"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4263 $as_echo "$lt_cv_nm_interface" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4266 $as_echo_n "checking whether ln -s works... " >&6; }
4268 if test "$LN_S" = "ln -s"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4270 $as_echo "yes" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4273 $as_echo "no, using $LN_S" >&6; }
4276 # find the maximum length of command line arguments
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4278 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4279 if ${lt_cv_sys_max_cmd_len+:} false; then :
4280 $as_echo_n "(cached) " >&6
4287 # On DJGPP, this test can blow up pretty badly due to problems in libc
4288 # (any single argument exceeding 2000 bytes causes a buffer overrun
4289 # during glob expansion). Even if it were fixed, the result of this
4290 # check would be larger than it should be.
4291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4295 # Under GNU Hurd, this test is not required because there is
4296 # no limit to the length of command line arguments.
4297 # Libtool will interpret -1 as no limit whatsoever
4298 lt_cv_sys_max_cmd_len=-1;
4301 cygwin* | mingw* | cegcc*)
4302 # On Win9x/ME, this test blows up -- it succeeds, but takes
4303 # about 5 minutes as the teststring grows exponentially.
4304 # Worse, since 9x/ME are not pre-emptively multitasking,
4305 # you end up with a "frozen" computer, even though with patience
4306 # the test eventually succeeds (with a max line length of 256k).
4307 # Instead, let's just punt: use the minimum linelength reported by
4308 # all of the supported platforms: 8192 (on NT/2K/XP).
4309 lt_cv_sys_max_cmd_len=8192;
4313 # On MiNT this can take a long time and run out of memory.
4314 lt_cv_sys_max_cmd_len=8192;
4318 # On AmigaOS with pdksh, this test takes hours, literally.
4319 # So we just punt and use a minimum line length of 8192.
4320 lt_cv_sys_max_cmd_len=8192;
4323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4324 # This has been around since 386BSD, at least. Likely further.
4325 if test -x /sbin/sysctl; then
4326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4327 elif test -x /usr/sbin/sysctl; then
4328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4332 # And add a safety zone
4333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4339 lt_cv_sys_max_cmd_len=196608
4343 # The test takes a long time on OS/2.
4344 lt_cv_sys_max_cmd_len=8192
4348 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4349 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4350 # nice to cause kernel panics so lets avoid the loop below.
4351 # First set a reasonable default.
4352 lt_cv_sys_max_cmd_len=16384
4354 if test -x /sbin/sysconfig; then
4355 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4356 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4361 lt_cv_sys_max_cmd_len=102400
4363 sysv5* | sco5v6* | sysv4.2uw2*)
4364 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4365 if test -n "$kargmax"; then
4366 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4368 lt_cv_sys_max_cmd_len=32768
4372 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4373 if test -n "$lt_cv_sys_max_cmd_len"; then
4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4377 # Make teststring a little bigger before we do anything with it.
4378 # a 1K string should be a reasonable start.
4379 for i in 1 2 3 4 5 6 7 8 ; do
4380 teststring=$teststring$teststring
4382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4383 # If test is not a shell built-in, we'll probably end up computing a
4384 # maximum length that is only half of the actual maximum length, but
4386 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4387 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4388 test $i != 17 # 1/2 MB should be enough
4391 teststring=$teststring$teststring
4393 # Only check the string length outside the loop.
4394 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4396 # Add a significant safety factor because C++ compilers can tack on
4397 # massive amounts of additional arguments before passing them to the
4398 # linker. It appears as though 1/2 is a usable value.
4399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4406 if test -n $lt_cv_sys_max_cmd_len ; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4408 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4411 $as_echo "none" >&6; }
4413 max_cmd_len=$lt_cv_sys_max_cmd_len
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4425 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4426 # Try some XSI features
4429 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4431 && eval 'test $(( 1 + 1 )) -eq 2 \
4432 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4435 $as_echo "$xsi_shell" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4439 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4441 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4443 && lt_shell_append=yes
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4445 $as_echo "$lt_shell_append" >&6; }
4448 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4458 # test EBCDIC or ASCII
4459 case `echo X|tr X '\101'` in
4460 A) # ASCII based system
4461 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4462 lt_SP2NL='tr \040 \012'
4463 lt_NL2SP='tr \015\012 \040\040'
4465 *) # EBCDIC based system
4466 lt_SP2NL='tr \100 \n'
4467 lt_NL2SP='tr \r\n \100\100'
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4480 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4481 if ${lt_cv_to_host_file_cmd+:} false; then :
4482 $as_echo_n "(cached) " >&6
4487 *-*-mingw* ) # actually msys
4488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4493 * ) # otherwise, assume *nix
4494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4500 *-*-mingw* ) # actually msys
4501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4504 lt_cv_to_host_file_cmd=func_convert_file_noop
4506 * ) # otherwise, assume *nix
4507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4511 * ) # unhandled hosts (and "normal" native builds)
4512 lt_cv_to_host_file_cmd=func_convert_file_noop
4518 to_host_file_cmd=$lt_cv_to_host_file_cmd
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4520 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4527 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4528 if ${lt_cv_to_tool_file_cmd+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 #assume ordinary cross tools, or native build.
4532 lt_cv_to_tool_file_cmd=func_convert_file_noop
4536 *-*-mingw* ) # actually msys
4537 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4545 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4547 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4554 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4555 if ${lt_cv_ld_reload_flag+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 lt_cv_ld_reload_flag='-r'
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4561 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4562 reload_flag=$lt_cv_ld_reload_flag
4563 case $reload_flag in
4565 *) reload_flag=" $reload_flag" ;;
4567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4569 cygwin* | mingw* | pw32* | cegcc*)
4570 if test "$GCC" != yes; then
4575 if test "$GCC" = yes; then
4576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_OBJDUMP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$OBJDUMP"; then
4600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 OBJDUMP=$ac_cv_prog_OBJDUMP
4620 if test -n "$OBJDUMP"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4622 $as_echo "$OBJDUMP" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_OBJDUMP"; then
4631 ac_ct_OBJDUMP=$OBJDUMP
4632 # Extract the first word of "objdump", so it can be a program name with args.
4633 set dummy objdump; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$ac_ct_OBJDUMP"; then
4640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4660 if test -n "$ac_ct_OBJDUMP"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4662 $as_echo "$ac_ct_OBJDUMP" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_OBJDUMP" = x; then
4671 case $cross_compiling:$ac_tool_warned in
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4677 OBJDUMP=$ac_ct_OBJDUMP
4680 OBJDUMP="$ac_cv_prog_OBJDUMP"
4683 test -z "$OBJDUMP" && OBJDUMP=objdump
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4691 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4692 if ${lt_cv_deplibs_check_method+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 lt_cv_file_magic_cmd='$MAGIC_CMD'
4696 lt_cv_file_magic_test_file=
4697 lt_cv_deplibs_check_method='unknown'
4698 # Need to set the preceding variable on all platforms that support
4699 # interlibrary dependencies.
4700 # 'none' -- dependencies not supported.
4701 # `unknown' -- same as none, but documents that we really don't know.
4702 # 'pass_all' -- all dependencies passed with no checks.
4703 # 'test_compile' -- check by making test program.
4704 # 'file_magic [[regex]]' -- check by looking for files in library path
4705 # which responds to the $file_magic_cmd with a given extended regex.
4706 # If you have `file' or equivalent on your system and you're not sure
4707 # whether `pass_all' will *always* work, you probably want this one.
4711 lt_cv_deplibs_check_method=pass_all
4715 lt_cv_deplibs_check_method=pass_all
4719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4720 lt_cv_file_magic_cmd='/usr/bin/file -L'
4721 lt_cv_file_magic_test_file=/shlib/libc.so
4725 # func_win32_libid is a shell function defined in ltmain.sh
4726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4727 lt_cv_file_magic_cmd='func_win32_libid'
4728 lt_cv_deplibs_check_method=pass_all
4732 # Base MSYS/MinGW do not provide the 'file' command needed by
4733 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4734 # unless we find 'file', for example because we are cross-compiling.
4735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4736 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4738 lt_cv_file_magic_cmd='func_win32_libid'
4740 # Keep this pattern in sync with the one in func_win32_libid.
4741 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4742 lt_cv_file_magic_cmd='$OBJDUMP -f'
4744 lt_cv_deplibs_check_method=pass_all
4748 # use the weaker test based on 'objdump'. See mingw*.
4749 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4750 lt_cv_file_magic_cmd='$OBJDUMP -f'
4753 darwin* | rhapsody*)
4754 lt_cv_deplibs_check_method=pass_all
4757 freebsd* | dragonfly*)
4758 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4761 # Not sure whether the presence of OpenBSD here was a mistake.
4762 # Let's accept both of them until this is cleared up.
4763 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4769 lt_cv_deplibs_check_method=pass_all
4774 lt_cv_deplibs_check_method=pass_all
4778 lt_cv_deplibs_check_method=pass_all
4781 hpux10.20* | hpux11*)
4782 lt_cv_file_magic_cmd=/usr/bin/file
4785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4786 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4789 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]'
4790 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4794 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4800 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4804 irix5* | irix6* | nonstopux*)
4806 *-32|*"-32 ") libmagic=32-bit;;
4807 *-n32|*"-n32 ") libmagic=N32;;
4808 *-64|*"-64 ") libmagic=64-bit;;
4809 *) libmagic=never-match;;
4811 lt_cv_deplibs_check_method=pass_all
4814 # This must be glibc/ELF.
4815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4816 lt_cv_deplibs_check_method=pass_all
4820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4829 lt_cv_file_magic_cmd=/usr/bin/file
4830 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4834 lt_cv_deplibs_check_method=pass_all
4838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4845 osf3* | osf4* | osf5*)
4846 lt_cv_deplibs_check_method=pass_all
4850 lt_cv_deplibs_check_method=pass_all
4854 lt_cv_deplibs_check_method=pass_all
4857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4858 lt_cv_deplibs_check_method=pass_all
4862 case $host_vendor in
4864 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]'
4865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4868 lt_cv_deplibs_check_method=pass_all
4871 lt_cv_file_magic_cmd='/bin/file'
4872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4875 lt_cv_file_magic_cmd='/bin/file'
4876 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4877 lt_cv_file_magic_test_file=/lib/libc.so
4880 lt_cv_deplibs_check_method=pass_all
4883 lt_cv_deplibs_check_method=pass_all
4889 lt_cv_deplibs_check_method=pass_all
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4895 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4899 if test "$build" = "$host"; then
4902 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4905 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4911 file_magic_cmd=$lt_cv_file_magic_cmd
4912 deplibs_check_method=$lt_cv_deplibs_check_method
4913 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4936 if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_DLLTOOL+:} false; then :
4942 $as_echo_n "(cached) " >&6
4944 if test -n "$DLLTOOL"; then
4945 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 DLLTOOL=$ac_cv_prog_DLLTOOL
4965 if test -n "$DLLTOOL"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4967 $as_echo "$DLLTOOL" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4975 if test -z "$ac_cv_prog_DLLTOOL"; then
4976 ac_ct_DLLTOOL=$DLLTOOL
4977 # Extract the first word of "dlltool", so it can be a program name with args.
4978 set dummy dlltool; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 if test -n "$ac_ct_DLLTOOL"; then
4985 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5005 if test -n "$ac_ct_DLLTOOL"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5007 $as_echo "$ac_ct_DLLTOOL" >&6; }
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5013 if test "x$ac_ct_DLLTOOL" = x; then
5016 case $cross_compiling:$ac_tool_warned in
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5022 DLLTOOL=$ac_ct_DLLTOOL
5025 DLLTOOL="$ac_cv_prog_DLLTOOL"
5028 test -z "$DLLTOOL" && DLLTOOL=dlltool
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5037 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5038 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 lt_cv_sharedlib_from_linklib_cmd='unknown'
5044 cygwin* | mingw* | pw32* | cegcc*)
5045 # two different shell functions defined in ltmain.sh
5046 # decide which to use based on capabilities of $DLLTOOL
5047 case `$DLLTOOL --help 2>&1` in
5048 *--identify-strict*)
5049 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5052 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5057 # fallback: assume linklib IS sharedlib
5058 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5064 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5065 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5066 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5075 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_AR+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -n "$AR"; then
5086 ac_cv_prog_AR="$AR" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 if test -n "$AR"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5108 $as_echo "$AR" >&6; }
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 test -n "$AR" && break
5118 if test -z "$AR"; then
5122 # Extract the first word of "$ac_prog", so it can be a program name with args.
5123 set dummy $ac_prog; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5127 $as_echo_n "(cached) " >&6
5129 if test -n "$ac_ct_AR"; then
5130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_ac_ct_AR="$ac_prog"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5150 if test -n "$ac_ct_AR"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5152 $as_echo "$ac_ct_AR" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 test -n "$ac_ct_AR" && break
5162 if test "x$ac_ct_AR" = x; then
5165 case $cross_compiling:$ac_tool_warned in
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5189 $as_echo_n "checking for archiver @FILE support... " >&6; }
5190 if ${lt_cv_ar_at_file+:} false; then :
5191 $as_echo_n "(cached) " >&6
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 echo conftest.$ac_objext > conftest.lst
5207 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5209 (eval $lt_ar_try) 2>&5
5211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5212 test $ac_status = 0; }
5213 if test "$ac_status" -eq 0; then
5214 # Ensure the archiver fails upon bogus file names.
5215 rm -f conftest.$ac_objext libconftest.a
5216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5217 (eval $lt_ar_try) 2>&5
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5221 if test "$ac_status" -ne 0; then
5225 rm -f conftest.* libconftest.a
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5232 $as_echo "$lt_cv_ar_at_file" >&6; }
5234 if test "x$lt_cv_ar_at_file" = xno; then
5237 archiver_list_spec=$lt_cv_ar_at_file
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5248 set dummy ${ac_tool_prefix}strip; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if ${ac_cv_prog_STRIP+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 if test -n "$STRIP"; then
5255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 STRIP=$ac_cv_prog_STRIP
5275 if test -n "$STRIP"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5277 $as_echo "$STRIP" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5285 if test -z "$ac_cv_prog_STRIP"; then
5287 # Extract the first word of "strip", so it can be a program name with args.
5288 set dummy strip; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5292 $as_echo_n "(cached) " >&6
5294 if test -n "$ac_ct_STRIP"; then
5295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_ac_ct_STRIP="strip"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5315 if test -n "$ac_ct_STRIP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5317 $as_echo "$ac_ct_STRIP" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5323 if test "x$ac_ct_STRIP" = x; then
5326 case $cross_compiling:$ac_tool_warned in
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330 ac_tool_warned=yes ;;
5335 STRIP="$ac_cv_prog_STRIP"
5338 test -z "$STRIP" && STRIP=:
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_RANLIB+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$RANLIB"; then
5354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 RANLIB=$ac_cv_prog_RANLIB
5374 if test -n "$RANLIB"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5376 $as_echo "$RANLIB" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_RANLIB"; then
5385 ac_ct_RANLIB=$RANLIB
5386 # Extract the first word of "ranlib", so it can be a program name with args.
5387 set dummy ranlib; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_RANLIB"; then
5394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_RANLIB="ranlib"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5414 if test -n "$ac_ct_RANLIB"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5416 $as_echo "$ac_ct_RANLIB" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_RANLIB" = x; then
5425 case $cross_compiling:$ac_tool_warned in
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5431 RANLIB=$ac_ct_RANLIB
5434 RANLIB="$ac_cv_prog_RANLIB"
5437 test -z "$RANLIB" && RANLIB=:
5444 # Determine commands to create old-style static archives.
5445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5446 old_postinstall_cmds='chmod 644 $oldlib'
5447 old_postuninstall_cmds=
5449 if test -n "$RANLIB"; then
5452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5455 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5463 lock_old_archive_extraction=yes ;;
5465 lock_old_archive_extraction=no ;;
5488 for ac_prog in gawk mawk nawk awk
5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_AWK+:} false; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$AWK"; then
5498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_AWK="$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 if test -n "$AWK"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5520 $as_echo "$AWK" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 test -n "$AWK" && break
5548 # If no C compiler was specified, use CC.
5551 # If no C compiler flags were specified, use CFLAGS.
5552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5554 # Allow CC to be a program name with arguments.
5558 # Check for command to grab the raw symbol name followed by C symbol from nm.
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5561 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5562 $as_echo_n "(cached) " >&6
5565 # These are sane defaults that work on at least a few old systems.
5566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5568 # Character class describing NM global symbol codes.
5569 symcode='[BCDEGRST]'
5571 # Regexp to match symbols that can be accessed directly from C.
5572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5574 # Define system-specific variables.
5579 cygwin* | mingw* | pw32* | cegcc*)
5580 symcode='[ABCDGISTW]'
5583 if test "$host_cpu" = ia64; then
5584 symcode='[ABCDEGRST]'
5588 symcode='[BCDEGRST]'
5591 symcode='[BCDEGQRST]'
5602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5610 # If we're using GNU nm, then use its standard symbol codes.
5611 case `$NM -V 2>&1` in
5612 *GNU* | *'with BFD'*)
5613 symcode='[ABCDGIRSTW]' ;;
5616 # Transform an extracted symbol line into a proper C declaration.
5617 # Some systems (esp. on ia64) link data and code symbols differently,
5618 # so use this general approach.
5619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5621 # Transform an extracted symbol line into symbol name and symbol address
5622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5623 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'"
5625 # Handle CRLF in mingw tool chain
5629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5633 # Try without a prefix underscore, then with it.
5634 for ac_symprfx in "" "_"; do
5636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5637 symxfrm="\\1 $ac_symprfx\\2 \\2"
5639 # Write the raw and C identifiers.
5640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5641 # Fake it for dumpbin and say T for any non-static function
5642 # and D for any global variable.
5643 # Also find C++ and __fastcall symbols from MSVC++,
5644 # which start with @ or ?.
5645 lt_cv_sys_global_symbol_pipe="$AWK '"\
5646 " {last_section=section; section=\$ 3};"\
5647 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5648 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5649 " \$ 0!~/External *\|/{next};"\
5650 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5651 " {if(hide[section]) next};"\
5652 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5653 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5654 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5655 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5656 " ' prfx=^$ac_symprfx"
5658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5660 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5662 # Check to see that the pipe works correctly.
5666 cat > conftest.$ac_ext <<_LT_EOF
5671 void nm_test_func(void);
5672 void nm_test_func(void){}
5676 int main(){nm_test_var='a';nm_test_func();return(0);}
5679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5680 (eval $ac_compile) 2>&5
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; }; then
5684 # Now try to grab the symbols.
5686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5687 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; } && test -s "$nlist"; then
5691 # Try sorting and uniquifying the output.
5692 if sort "$nlist" | uniq > "$nlist"T; then
5693 mv -f "$nlist"T "$nlist"
5698 # Make sure that we snagged all the symbols we need.
5699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5701 cat <<_LT_EOF > conftest.$ac_ext
5702 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5703 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5704 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5705 relocations are performed -- see ld's documentation on pseudo-relocs. */
5706 # define LT_DLSYM_CONST
5707 #elif defined(__osf__)
5708 /* This system does not cope well with relocations in const data. */
5709 # define LT_DLSYM_CONST
5711 # define LT_DLSYM_CONST const
5719 # Now generate the symbol file.
5720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5722 cat <<_LT_EOF >> conftest.$ac_ext
5724 /* The mapping between symbol names and symbols. */
5725 LT_DLSYM_CONST struct {
5729 lt__PROGRAM__LTX_preloaded_symbols[] =
5731 { "@PROGRAM@", (void *) 0 },
5733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5734 cat <<\_LT_EOF >> conftest.$ac_ext
5738 /* This works around a problem in FreeBSD linker */
5739 #ifdef FREEBSD_WORKAROUND
5740 static const void *lt_preloaded_setup() {
5741 return lt__PROGRAM__LTX_preloaded_symbols;
5749 # Now try linking the two files.
5750 mv conftest.$ac_objext conftstm.$ac_objext
5751 lt_globsym_save_LIBS=$LIBS
5752 lt_globsym_save_CFLAGS=$CFLAGS
5753 LIBS="conftstm.$ac_objext"
5754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5756 (eval $ac_link) 2>&5
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5762 LIBS=$lt_globsym_save_LIBS
5763 CFLAGS=$lt_globsym_save_CFLAGS
5765 echo "cannot find nm_test_func in $nlist" >&5
5768 echo "cannot find nm_test_var in $nlist" >&5
5771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5774 echo "$progname: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5777 rm -rf conftest* conftst*
5779 # Do not use the global_symbol_pipe unless it works.
5780 if test "$pipe_works" = yes; then
5783 lt_cv_sys_global_symbol_pipe=
5789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5790 lt_cv_sys_global_symbol_to_cdecl=
5792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5794 $as_echo "failed" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5797 $as_echo "ok" >&6; }
5800 # Response file support.
5801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5802 nm_file_list_spec='@'
5803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5804 nm_file_list_spec='@'
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5834 $as_echo_n "checking for sysroot... " >&6; }
5836 # Check whether --with-sysroot was given.
5837 if test "${with_sysroot+set}" = set; then :
5838 withval=$with_sysroot;
5845 case ${with_sysroot} in #(
5847 if test "$GCC" = yes; then
5848 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5852 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5858 $as_echo "${with_sysroot}" >&6; }
5859 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5864 $as_echo "${lt_sysroot:-no}" >&6; }
5870 # Check whether --enable-libtool-lock was given.
5871 if test "${enable_libtool_lock+set}" = set; then :
5872 enableval=$enable_libtool_lock;
5875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5877 # Some flags need to be propagated to the compiler or linker for good
5881 # Find out which ABI we are using.
5882 echo 'int i;' > conftest.$ac_ext
5883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5884 (eval $ac_compile) 2>&5
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }; then
5888 case `/usr/bin/file conftest.$ac_objext` in
5900 # Find out which ABI we are using.
5901 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5903 (eval $ac_compile) 2>&5
5905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; }; then
5907 if test "$lt_cv_prog_gnu_ld" = yes; then
5908 case `/usr/bin/file conftest.$ac_objext` in
5910 LD="${LD-ld} -melf32bsmip"
5913 LD="${LD-ld} -melf32bmipn32"
5916 LD="${LD-ld} -melf64bmip"
5920 case `/usr/bin/file conftest.$ac_objext` in
5936 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5937 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5938 # Find out which ABI we are using.
5939 echo 'int i;' > conftest.$ac_ext
5940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5941 (eval $ac_compile) 2>&5
5943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; }; then
5945 case `/usr/bin/file conftest.o` in
5948 x86_64-*kfreebsd*-gnu)
5949 LD="${LD-ld} -m elf_i386_fbsd"
5952 LD="${LD-ld} -m elf_i386"
5954 ppc64-*linux*|powerpc64-*linux*)
5955 LD="${LD-ld} -m elf32ppclinux"
5958 LD="${LD-ld} -m elf_s390"
5961 LD="${LD-ld} -m elf32_sparc"
5967 x86_64-*kfreebsd*-gnu)
5968 LD="${LD-ld} -m elf_x86_64_fbsd"
5971 LD="${LD-ld} -m elf_x86_64"
5973 ppc*-*linux*|powerpc*-*linux*)
5974 LD="${LD-ld} -m elf64ppc"
5976 s390*-*linux*|s390*-*tpf*)
5977 LD="${LD-ld} -m elf64_s390"
5980 LD="${LD-ld} -m elf64_sparc"
5990 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5991 SAVE_CFLAGS="$CFLAGS"
5992 CFLAGS="$CFLAGS -belf"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5994 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5995 if ${lt_cv_cc_needs_belf+:} false; then :
5996 $as_echo_n "(cached) " >&6
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6015 if ac_fn_c_try_link "$LINENO"; then :
6016 lt_cv_cc_needs_belf=yes
6018 lt_cv_cc_needs_belf=no
6020 rm -f core conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6030 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6033 CFLAGS="$SAVE_CFLAGS"
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6040 (eval $ac_compile) 2>&5
6042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043 test $ac_status = 0; }; then
6044 case `/usr/bin/file conftest.o` in
6046 case $lt_cv_prog_gnu_ld in
6050 LD="${LD-ld} -m elf_x86_64"
6053 LD="${LD-ld} -m elf64_sparc"
6056 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6057 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6074 need_locks="$enable_libtool_lock"
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}mt; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$MANIFEST_TOOL"; then
6085 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6105 if test -n "$MANIFEST_TOOL"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6107 $as_echo "$MANIFEST_TOOL" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6115 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6116 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6117 # Extract the first word of "mt", so it can be a program name with args.
6118 set dummy mt; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$ac_ct_MANIFEST_TOOL"; then
6125 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6145 if test -n "$ac_ct_MANIFEST_TOOL"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6147 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6153 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6162 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6165 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6168 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6170 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6171 if ${lt_cv_path_mainfest_tool+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 lt_cv_path_mainfest_tool=no
6175 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6176 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6177 cat conftest.err >&5
6178 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6179 lt_cv_path_mainfest_tool=yes
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6184 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6185 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6195 rhapsody* | darwin*)
6196 if test -n "$ac_tool_prefix"; then
6197 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6198 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$DSYMUTIL"; then
6205 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6225 if test -n "$DSYMUTIL"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6227 $as_echo "$DSYMUTIL" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6235 if test -z "$ac_cv_prog_DSYMUTIL"; then
6236 ac_ct_DSYMUTIL=$DSYMUTIL
6237 # Extract the first word of "dsymutil", so it can be a program name with args.
6238 set dummy dsymutil; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$ac_ct_DSYMUTIL"; then
6245 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6265 if test -n "$ac_ct_DSYMUTIL"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6267 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6273 if test "x$ac_ct_DSYMUTIL" = x; then
6276 case $cross_compiling:$ac_tool_warned in
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280 ac_tool_warned=yes ;;
6282 DSYMUTIL=$ac_ct_DSYMUTIL
6285 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_NMEDIT+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$NMEDIT"; then
6297 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 NMEDIT=$ac_cv_prog_NMEDIT
6317 if test -n "$NMEDIT"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6319 $as_echo "$NMEDIT" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_prog_NMEDIT"; then
6328 ac_ct_NMEDIT=$NMEDIT
6329 # Extract the first word of "nmedit", so it can be a program name with args.
6330 set dummy nmedit; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$ac_ct_NMEDIT"; then
6337 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6357 if test -n "$ac_ct_NMEDIT"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6359 $as_echo "$ac_ct_NMEDIT" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 if test "x$ac_ct_NMEDIT" = x; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6374 NMEDIT=$ac_ct_NMEDIT
6377 NMEDIT="$ac_cv_prog_NMEDIT"
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_LIPO+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$LIPO"; then
6389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 LIPO=$ac_cv_prog_LIPO
6409 if test -n "$LIPO"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6411 $as_echo "$LIPO" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_LIPO"; then
6421 # Extract the first word of "lipo", so it can be a program name with args.
6422 set dummy lipo; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$ac_ct_LIPO"; then
6429 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_LIPO="lipo"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6449 if test -n "$ac_ct_LIPO"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6451 $as_echo "$ac_ct_LIPO" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_LIPO" = x; then
6460 case $cross_compiling:$ac_tool_warned in
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6469 LIPO="$ac_cv_prog_LIPO"
6472 if test -n "$ac_tool_prefix"; then
6473 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}otool; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_OTOOL+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if test -n "$OTOOL"; then
6481 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 OTOOL=$ac_cv_prog_OTOOL
6501 if test -n "$OTOOL"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6503 $as_echo "$OTOOL" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6511 if test -z "$ac_cv_prog_OTOOL"; then
6513 # Extract the first word of "otool", so it can be a program name with args.
6514 set dummy otool; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$ac_ct_OTOOL"; then
6521 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_ac_ct_OTOOL="otool"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6541 if test -n "$ac_ct_OTOOL"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6543 $as_echo "$ac_ct_OTOOL" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6549 if test "x$ac_ct_OTOOL" = x; then
6552 case $cross_compiling:$ac_tool_warned in
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6561 OTOOL="$ac_cv_prog_OTOOL"
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_OTOOL64+:} false; then :
6570 $as_echo_n "(cached) " >&6
6572 if test -n "$OTOOL64"; then
6573 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 OTOOL64=$ac_cv_prog_OTOOL64
6593 if test -n "$OTOOL64"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6595 $as_echo "$OTOOL64" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6603 if test -z "$ac_cv_prog_OTOOL64"; then
6604 ac_ct_OTOOL64=$OTOOL64
6605 # Extract the first word of "otool64", so it can be a program name with args.
6606 set dummy otool64; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 if test -n "$ac_ct_OTOOL64"; then
6613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_ac_ct_OTOOL64="otool64"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6633 if test -n "$ac_ct_OTOOL64"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6635 $as_echo "$ac_ct_OTOOL64" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6641 if test "x$ac_ct_OTOOL64" = x; then
6644 case $cross_compiling:$ac_tool_warned in
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648 ac_tool_warned=yes ;;
6650 OTOOL64=$ac_ct_OTOOL64
6653 OTOOL64="$ac_cv_prog_OTOOL64"
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6683 $as_echo_n "checking for -single_module linker flag... " >&6; }
6684 if ${lt_cv_apple_cc_single_mod+:} false; then :
6685 $as_echo_n "(cached) " >&6
6687 lt_cv_apple_cc_single_mod=no
6688 if test -z "${LT_MULTI_MODULE}"; then
6689 # By default we will add the -single_module flag. You can override
6690 # by either setting the environment variable LT_MULTI_MODULE
6691 # non-empty at configure time, or by adding -multi_module to the
6693 rm -rf libconftest.dylib*
6694 echo "int foo(void){return 1;}" > conftest.c
6695 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6696 -dynamiclib -Wl,-single_module conftest.c" >&5
6697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6698 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6700 # If there is a non-empty error log, and "single_module"
6701 # appears in it, assume the flag caused a linker warning
6702 if test -s conftest.err && $GREP single_module conftest.err; then
6703 cat conftest.err >&5
6704 # Otherwise, if the output was created with a 0 exit code from
6705 # the compiler, it worked.
6706 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6707 lt_cv_apple_cc_single_mod=yes
6709 cat conftest.err >&5
6711 rm -rf libconftest.dylib*
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6716 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6719 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6720 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 lt_cv_ld_exported_symbols_list=no
6724 save_LDFLAGS=$LDFLAGS
6725 echo "_main" > conftest.sym
6726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 lt_cv_ld_exported_symbols_list=yes
6741 lt_cv_ld_exported_symbols_list=no
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 LDFLAGS="$save_LDFLAGS"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6749 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6752 $as_echo_n "checking for -force_load linker flag... " >&6; }
6753 if ${lt_cv_ld_force_load+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 lt_cv_ld_force_load=no
6757 cat > conftest.c << _LT_EOF
6758 int forced_loaded() { return 2;}
6760 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6761 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6762 echo "$AR cru libconftest.a conftest.o" >&5
6763 $AR cru libconftest.a conftest.o 2>&5
6764 echo "$RANLIB libconftest.a" >&5
6765 $RANLIB libconftest.a 2>&5
6766 cat > conftest.c << _LT_EOF
6767 int main() { return 0;}
6769 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6770 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6772 if test -s conftest.err && $GREP force_load conftest.err; then
6773 cat conftest.err >&5
6774 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6775 lt_cv_ld_force_load=yes
6777 cat conftest.err >&5
6779 rm -f conftest.err libconftest.a conftest conftest.c
6780 rm -rf conftest.dSYM
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6784 $as_echo "$lt_cv_ld_force_load" >&6; }
6786 rhapsody* | darwin1.[012])
6787 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6789 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6790 darwin*) # darwin 5.x on
6791 # if running on 10.5 or later, the deployment target defaults
6792 # to the OS version, if on x86, and 10.4, the deployment
6793 # target defaults to 10.4. Don't you love it?
6794 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6795 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6796 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6800 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6804 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6805 _lt_dar_single_mod='$single_module'
6807 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6808 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6810 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6812 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6813 _lt_dsymutil='~$DSYMUTIL $lib || :'
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6826 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6827 # On Suns, sometimes $CPP names a directory.
6828 if test -n "$CPP" && test -d "$CPP"; then
6831 if test -z "$CPP"; then
6832 if ${ac_cv_prog_CPP+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 # Double quotes because CPP needs to be expanded
6836 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6839 for ac_c_preproc_warn_flag in '' yes
6841 # Use a header file that comes with gcc, so configuring glibc
6842 # with a fresh cross-compiler works.
6843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6844 # <limits.h> exists even on freestanding compilers.
6845 # On the NeXT, cc -E runs the code through the compiler's parser,
6846 # not just through cpp. "Syntax error" is here to catch this case.
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6850 # include <limits.h>
6852 # include <assert.h>
6856 if ac_fn_c_try_cpp "$LINENO"; then :
6859 # Broken: fails on valid input.
6862 rm -f conftest.err conftest.i conftest.$ac_ext
6864 # OK, works on sane cases. Now check whether nonexistent headers
6865 # can be detected and how.
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 #include <ac_nonexistent.h>
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6871 # Broken: success on invalid input.
6874 # Passes both tests.
6878 rm -f conftest.err conftest.i conftest.$ac_ext
6881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6882 rm -f conftest.i conftest.err conftest.$ac_ext
6883 if $ac_preproc_ok; then :
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6896 $as_echo "$CPP" >&6; }
6898 for ac_c_preproc_warn_flag in '' yes
6900 # Use a header file that comes with gcc, so configuring glibc
6901 # with a fresh cross-compiler works.
6902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 # <limits.h> exists even on freestanding compilers.
6904 # On the NeXT, cc -E runs the code through the compiler's parser,
6905 # not just through cpp. "Syntax error" is here to catch this case.
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6909 # include <limits.h>
6911 # include <assert.h>
6915 if ac_fn_c_try_cpp "$LINENO"; then :
6918 # Broken: fails on valid input.
6921 rm -f conftest.err conftest.i conftest.$ac_ext
6923 # OK, works on sane cases. Now check whether nonexistent headers
6924 # can be detected and how.
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #include <ac_nonexistent.h>
6929 if ac_fn_c_try_cpp "$LINENO"; then :
6930 # Broken: success on invalid input.
6933 # Passes both tests.
6937 rm -f conftest.err conftest.i conftest.$ac_ext
6940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6941 rm -f conftest.i conftest.err conftest.$ac_ext
6942 if $ac_preproc_ok; then :
6945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6947 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6948 See \`config.log' for more details" "$LINENO" 5; }
6952 ac_cpp='$CPP $CPPFLAGS'
6953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6959 $as_echo_n "checking for ANSI C header files... " >&6; }
6960 if ${ac_cv_header_stdc+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 ac_cv_header_stdc=yes
6981 ac_cv_header_stdc=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 if test $ac_cv_header_stdc = yes; then
6986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6993 $EGREP "memchr" >/dev/null 2>&1; then :
6996 ac_cv_header_stdc=no
7002 if test $ac_cv_header_stdc = yes; then
7003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "free" >/dev/null 2>&1; then :
7013 ac_cv_header_stdc=no
7019 if test $ac_cv_header_stdc = yes; then
7020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7021 if test "$cross_compiling" = yes; then :
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7028 #if ((' ' & 0x0FF) == 0x020)
7029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7032 # define ISLOWER(c) \
7033 (('a' <= (c) && (c) <= 'i') \
7034 || ('j' <= (c) && (c) <= 'r') \
7035 || ('s' <= (c) && (c) <= 'z'))
7036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7044 for (i = 0; i < 256; i++)
7045 if (XOR (islower (i), ISLOWER (i))
7046 || toupper (i) != TOUPPER (i))
7051 if ac_fn_c_try_run "$LINENO"; then :
7054 ac_cv_header_stdc=no
7056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7057 conftest.$ac_objext conftest.beam conftest.$ac_ext
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7063 $as_echo "$ac_cv_header_stdc" >&6; }
7064 if test $ac_cv_header_stdc = yes; then
7066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7072 inttypes.h stdint.h unistd.h
7074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7078 cat >>confdefs.h <<_ACEOF
7079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087 for ac_header in dlfcn.h
7089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7092 cat >>confdefs.h <<_ACEOF
7093 #define HAVE_DLFCN_H 1
7105 enable_win32_dll=yes
7108 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}as; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_AS+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 if test -n "$AS"; then
7118 ac_cv_prog_AS="$AS" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_AS="${ac_tool_prefix}as"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 if test -n "$AS"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7140 $as_echo "$AS" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_AS"; then
7150 # Extract the first word of "as", so it can be a program name with args.
7151 set dummy as; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7155 $as_echo_n "(cached) " >&6
7157 if test -n "$ac_ct_AS"; then
7158 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_AS="as"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7178 if test -n "$ac_ct_AS"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7180 $as_echo "$ac_ct_AS" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_AS" = x; then
7189 case $cross_compiling:$ac_tool_warned in
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_DLLTOOL+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$DLLTOOL"; then
7210 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 DLLTOOL=$ac_cv_prog_DLLTOOL
7230 if test -n "$DLLTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7232 $as_echo "$DLLTOOL" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_DLLTOOL"; then
7241 ac_ct_DLLTOOL=$DLLTOOL
7242 # Extract the first word of "dlltool", so it can be a program name with args.
7243 set dummy dlltool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$ac_ct_DLLTOOL"; then
7250 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7270 if test -n "$ac_ct_DLLTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7272 $as_echo "$ac_ct_DLLTOOL" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_DLLTOOL" = x; then
7281 case $cross_compiling:$ac_tool_warned in
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7287 DLLTOOL=$ac_ct_DLLTOOL
7290 DLLTOOL="$ac_cv_prog_DLLTOOL"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_OBJDUMP+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$OBJDUMP"; then
7302 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 OBJDUMP=$ac_cv_prog_OBJDUMP
7322 if test -n "$OBJDUMP"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7324 $as_echo "$OBJDUMP" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_OBJDUMP"; then
7333 ac_ct_OBJDUMP=$OBJDUMP
7334 # Extract the first word of "objdump", so it can be a program name with args.
7335 set dummy objdump; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_OBJDUMP"; then
7342 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7362 if test -n "$ac_ct_OBJDUMP"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7364 $as_echo "$ac_ct_OBJDUMP" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_OBJDUMP" = x; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7379 OBJDUMP=$ac_ct_OBJDUMP
7382 OBJDUMP="$ac_cv_prog_OBJDUMP"
7388 test -z "$AS" && AS=as
7394 test -z "$DLLTOOL" && DLLTOOL=dlltool
7400 test -z "$OBJDUMP" && OBJDUMP=objdump
7412 # Check whether --enable-shared was given.
7413 if test "${enable_shared+set}" = set; then :
7414 enableval=$enable_shared; p=${PACKAGE-default}
7416 yes) enable_shared=yes ;;
7417 no) enable_shared=no ;;
7420 # Look at the argument we got. We use all the common list separators.
7421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7422 for pkg in $enableval; do
7424 if test "X$pkg" = "X$p"; then
7443 # Check whether --enable-static was given.
7444 if test "${enable_static+set}" = set; then :
7445 enableval=$enable_static; p=${PACKAGE-default}
7447 yes) enable_static=yes ;;
7448 no) enable_static=no ;;
7451 # Look at the argument we got. We use all the common list separators.
7452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7453 for pkg in $enableval; do
7455 if test "X$pkg" = "X$p"; then
7475 # Check whether --with-pic was given.
7476 if test "${with_pic+set}" = set; then :
7477 withval=$with_pic; lt_p=${PACKAGE-default}
7479 yes|no) pic_mode=$withval ;;
7482 # Look at the argument we got. We use all the common list separators.
7483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7484 for lt_pkg in $withval; do
7486 if test "X$lt_pkg" = "X$lt_p"; then
7498 test -z "$pic_mode" && pic_mode=default
7506 # Check whether --enable-fast-install was given.
7507 if test "${enable_fast_install+set}" = set; then :
7508 enableval=$enable_fast_install; p=${PACKAGE-default}
7510 yes) enable_fast_install=yes ;;
7511 no) enable_fast_install=no ;;
7513 enable_fast_install=no
7514 # Look at the argument we got. We use all the common list separators.
7515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7516 for pkg in $enableval; do
7518 if test "X$pkg" = "X$p"; then
7519 enable_fast_install=yes
7526 enable_fast_install=yes
7539 # This can be used to rebuild libtool when needed
7540 LIBTOOL_DEPS="$ltmain"
7542 # Always use our own libtool.
7543 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574 test -z "$LN_S" && LN_S="ln -s"
7589 if test -n "${ZSH_VERSION+set}" ; then
7590 setopt NO_GLOB_SUBST
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7594 $as_echo_n "checking for objdir... " >&6; }
7595 if ${lt_cv_objdir+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 rm -f .libs 2>/dev/null
7599 mkdir .libs 2>/dev/null
7600 if test -d .libs; then
7603 # MS-DOS does not allow filenames that begin with a dot.
7606 rmdir .libs 2>/dev/null
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7609 $as_echo "$lt_cv_objdir" >&6; }
7610 objdir=$lt_cv_objdir
7616 cat >>confdefs.h <<_ACEOF
7617 #define LT_OBJDIR "$lt_cv_objdir/"
7625 # AIX sometimes has problems with the GCC collect2 program. For some
7626 # reason, if we set the COLLECT_NAMES environment variable, the problems
7627 # vanish in a puff of smoke.
7628 if test "X${COLLECT_NAMES+set}" != Xset; then
7630 export COLLECT_NAMES
7637 can_build_shared=yes
7639 # All known linkers require a `.a' archive for static linking (except MSVC,
7640 # which needs '.lib').
7643 with_gnu_ld="$lt_cv_prog_gnu_ld"
7646 old_CFLAGS="$CFLAGS"
7648 # Set sane defaults for various variables
7649 test -z "$CC" && CC=cc
7650 test -z "$LTCC" && LTCC=$CC
7651 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7652 test -z "$LD" && LD=ld
7653 test -z "$ac_objext" && ac_objext=o
7655 for cc_temp in $compiler""; do
7657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7666 # Only perform the check for file, if the check method requires it
7667 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7668 case $deplibs_check_method in
7670 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7672 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7673 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7674 $as_echo_n "(cached) " >&6
7678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681 lt_save_MAGIC_CMD="$MAGIC_CMD"
7682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684 for ac_dir in $ac_dummy; do
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/${ac_tool_prefix}file; then
7688 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7689 if test -n "$file_magic_test_file"; then
7690 case $deplibs_check_method in
7692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695 $EGREP "$file_magic_regex" > /dev/null; then
7700 *** Warning: the command libtool uses to detect shared libraries,
7701 *** $file_magic_cmd, produces output that libtool cannot recognize.
7702 *** The result is that libtool may fail to recognize shared libraries
7703 *** as such. This will affect the creation of libtool libraries that
7704 *** depend on shared libraries, but programs linked with such libtool
7705 *** libraries will work regardless of this problem. Nevertheless, you
7706 *** may want to report the problem to your system manager and/or to
7707 *** bug-libtool@gnu.org
7717 MAGIC_CMD="$lt_save_MAGIC_CMD"
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if test -n "$MAGIC_CMD"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7725 $as_echo "$MAGIC_CMD" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7735 if test -z "$lt_cv_path_MAGIC_CMD"; then
7736 if test -n "$ac_tool_prefix"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7738 $as_echo_n "checking for file... " >&6; }
7739 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7740 $as_echo_n "(cached) " >&6
7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747 lt_save_MAGIC_CMD="$MAGIC_CMD"
7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750 for ac_dir in $ac_dummy; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/file; then
7754 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7755 if test -n "$file_magic_test_file"; then
7756 case $deplibs_check_method in
7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761 $EGREP "$file_magic_regex" > /dev/null; then
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such. This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem. Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7783 MAGIC_CMD="$lt_save_MAGIC_CMD"
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7791 $as_echo "$MAGIC_CMD" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7807 # Use C for the default configuration in the libtool script
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817 # Source file extension for C test sources.
7820 # Object file extension for compiled C test sources.
7824 # Code to be used in simple compile tests
7825 lt_simple_compile_test_code="int some_variable = 0;"
7827 # Code to be used in simple link tests
7828 lt_simple_link_test_code='int main(){return(0);}'
7836 # If no C compiler was specified, use CC.
7839 # If no C compiler flags were specified, use CFLAGS.
7840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842 # Allow CC to be a program name with arguments.
7845 # Save the default compiler, since it gets overwritten when the other
7846 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7847 compiler_DEFAULT=$CC
7849 # save warnings/boilerplate of simple test code
7850 ac_outfile=conftest.$ac_objext
7851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7853 _lt_compiler_boilerplate=`cat conftest.err`
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859 _lt_linker_boilerplate=`cat conftest.err`
7864 ## There is no encapsulation within the following macros, do not change
7865 ## the running order or otherwise move them around unless you know exactly
7866 ## what you are doing...
7867 if test -n "$compiler"; then
7869 lt_prog_compiler_no_builtin_flag=
7871 if test "$GCC" = yes; then
7872 case $cc_basename in
7874 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7876 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7880 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7881 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 lt_cv_prog_compiler_rtti_exceptions=no
7885 ac_outfile=conftest.$ac_objext
7886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 lt_compiler_flag="-fno-rtti -fno-exceptions"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 # The option is referenced via a variable to avoid confusing sed.
7893 lt_compile=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>conftest.err)
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s "$ac_outfile"; then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings other than the usual output.
7905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_rtti_exceptions=yes
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7917 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7918 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7930 lt_prog_compiler_wl=
7931 lt_prog_compiler_pic=
7932 lt_prog_compiler_static=
7935 if test "$GCC" = yes; then
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_static='-static'
7941 # All AIX code is PIC.
7942 if test "$host_cpu" = ia64; then
7943 # AIX 5 now supports IA64 processor
7944 lt_prog_compiler_static='-Bstatic'
7951 # see comment about AmigaOS4 .so support
7952 lt_prog_compiler_pic='-fPIC'
7955 # FIXME: we need at least 68020 code to build shared libraries, but
7956 # adding the `-m68020' flag to GCC prevents building anything better,
7958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7964 # PIC is the default for these OSes.
7967 mingw* | cygwin* | pw32* | os2* | cegcc*)
7968 # This hack is so that the source file can tell whether it is being
7969 # built for inclusion in a dll (and should export symbols for example).
7970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7971 # (--disable-auto-import) libraries
7972 lt_prog_compiler_pic='-DDLL_EXPORT'
7975 darwin* | rhapsody*)
7976 # PIC is the default on this platform
7977 # Common symbols not allowed in MH_DYLIB files
7978 lt_prog_compiler_pic='-fno-common'
7982 # PIC is the default for Haiku.
7983 # The "-static" flag exists, but is broken.
7984 lt_prog_compiler_static=
7988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7990 # sets the default TLS model and affects inlining.
7996 lt_prog_compiler_pic='-fPIC'
8002 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8003 # Instead, we relocate shared libraries at runtime.
8007 # Just because we use GCC doesn't mean we suddenly get shared libraries
8008 # on systems that don't support them.
8009 lt_prog_compiler_can_build_shared=no
8014 # QNX uses GNU C++, but need to define -shared option too, otherwise
8016 lt_prog_compiler_pic='-fPIC -shared'
8020 if test -d /usr/nec; then
8021 lt_prog_compiler_pic=-Kconform_pic
8026 lt_prog_compiler_pic='-fPIC'
8030 case $cc_basename in
8031 nvcc*) # Cuda Compiler Driver 2.2
8032 lt_prog_compiler_wl='-Xlinker '
8033 if test -n "$lt_prog_compiler_pic"; then
8034 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8039 # PORTME Check for flag to pass linker flags through the system compiler.
8042 lt_prog_compiler_wl='-Wl,'
8043 if test "$host_cpu" = ia64; then
8044 # AIX 5 now supports IA64 processor
8045 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8051 mingw* | cygwin* | pw32* | os2* | cegcc*)
8052 # This hack is so that the source file can tell whether it is being
8053 # built for inclusion in a dll (and should export symbols for example).
8054 lt_prog_compiler_pic='-DDLL_EXPORT'
8057 hpux9* | hpux10* | hpux11*)
8058 lt_prog_compiler_wl='-Wl,'
8059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8066 lt_prog_compiler_pic='+Z'
8069 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8070 lt_prog_compiler_static='${wl}-a ${wl}archive'
8073 irix5* | irix6* | nonstopux*)
8074 lt_prog_compiler_wl='-Wl,'
8075 # PIC (with -KPIC) is the default.
8076 lt_prog_compiler_static='-non_shared'
8079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8080 case $cc_basename in
8081 # old Intel for x86_64 which still supported -KPIC.
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-static'
8087 # icc used to be incompatible with GCC.
8088 # ICC 10 doesn't accept -KPIC any more.
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-fPIC'
8092 lt_prog_compiler_static='-static'
8094 # Lahey Fortran 8.1.
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='--shared'
8098 lt_prog_compiler_static='--static'
8101 # NAG Fortran compiler
8102 lt_prog_compiler_wl='-Wl,-Wl,,'
8103 lt_prog_compiler_pic='-PIC'
8104 lt_prog_compiler_static='-Bstatic'
8106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8107 # Portland Group compilers (*not* the Pentium gcc compiler,
8108 # which looks to be a dead project)
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-fpic'
8111 lt_prog_compiler_static='-Bstatic'
8114 lt_prog_compiler_wl='-Wl,'
8115 # All Alpha code is PIC.
8116 lt_prog_compiler_static='-non_shared'
8118 xl* | bgxl* | bgf* | mpixl*)
8119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-qpic'
8122 lt_prog_compiler_static='-qstaticlink'
8125 case `$CC -V 2>&1 | sed 5q` in
8126 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8128 lt_prog_compiler_pic='-KPIC'
8129 lt_prog_compiler_static='-Bstatic'
8130 lt_prog_compiler_wl=''
8132 *Sun\ F* | *Sun*Fortran*)
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8135 lt_prog_compiler_wl='-Qoption ld '
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 lt_prog_compiler_wl='-Wl,'
8143 *Intel*\ [CF]*Compiler*)
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_pic='-fPIC'
8146 lt_prog_compiler_static='-static'
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-fpic'
8151 lt_prog_compiler_static='-Bstatic'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-Bstatic'
8164 # QNX uses GNU C++, but need to define -shared option too, otherwise
8166 lt_prog_compiler_pic='-fPIC -shared'
8169 osf3* | osf4* | osf5*)
8170 lt_prog_compiler_wl='-Wl,'
8171 # All OSF/1 code is PIC.
8172 lt_prog_compiler_static='-non_shared'
8176 lt_prog_compiler_static='-non_shared'
8180 lt_prog_compiler_pic='-KPIC'
8181 lt_prog_compiler_static='-Bstatic'
8182 case $cc_basename in
8183 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8184 lt_prog_compiler_wl='-Qoption ld ';;
8186 lt_prog_compiler_wl='-Wl,';;
8191 lt_prog_compiler_wl='-Qoption ld '
8192 lt_prog_compiler_pic='-PIC'
8193 lt_prog_compiler_static='-Bstatic'
8196 sysv4 | sysv4.2uw2* | sysv4.3*)
8197 lt_prog_compiler_wl='-Wl,'
8198 lt_prog_compiler_pic='-KPIC'
8199 lt_prog_compiler_static='-Bstatic'
8203 if test -d /usr/nec ;then
8204 lt_prog_compiler_pic='-Kconform_pic'
8205 lt_prog_compiler_static='-Bstatic'
8209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_pic='-KPIC'
8212 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_wl='-Wl,'
8217 lt_prog_compiler_can_build_shared=no
8221 lt_prog_compiler_pic='-pic'
8222 lt_prog_compiler_static='-Bstatic'
8226 lt_prog_compiler_can_build_shared=no
8232 # For platforms which do not support PIC, -DPIC is meaningless:
8234 lt_prog_compiler_pic=
8237 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8242 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8243 if ${lt_cv_prog_compiler_pic+:} false; then :
8244 $as_echo_n "(cached) " >&6
8246 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8249 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8250 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8253 # Check to make sure the PIC flag actually works.
8255 if test -n "$lt_prog_compiler_pic"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8258 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 lt_cv_prog_compiler_pic_works=no
8262 ac_outfile=conftest.$ac_objext
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 # The option is referenced via a variable to avoid confusing sed.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>conftest.err)
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s "$ac_outfile"; then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings other than the usual output.
8282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_pic_works=yes
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8295 case $lt_prog_compiler_pic in
8297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8300 lt_prog_compiler_pic=
8301 lt_prog_compiler_can_build_shared=no
8317 # Check to make sure the static flag actually works.
8319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8322 if ${lt_cv_prog_compiler_static_works+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 lt_cv_prog_compiler_static_works=no
8326 save_LDFLAGS="$LDFLAGS"
8327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8330 # The linker can only warn and ignore the option if not recognized
8331 # So say no if there are warnings
8332 if test -s conftest.err; then
8333 # Append any errors to the config.log.
8334 cat conftest.err 1>&5
8335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337 if diff conftest.exp conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_static_works=yes
8341 lt_cv_prog_compiler_static_works=yes
8345 LDFLAGS="$save_LDFLAGS"
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8351 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8354 lt_prog_compiler_static=
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8365 if ${lt_cv_prog_compiler_c_o+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 lt_cv_prog_compiler_c_o=no
8369 $RM -r conftest 2>/dev/null
8373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8375 lt_compiler_flag="-o out/conftest2.$ac_objext"
8376 # Insert the option either (1) after the last *FLAGS variable, or
8377 # (2) before a word containing "conftest.", or (3) at the end.
8378 # Note that $ac_compile itself does not contain backslashes and begins
8379 # with a dollar sign (not a hyphen), so the echo should work correctly.
8380 lt_compile=`echo "$ac_compile" | $SED \
8381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383 -e 's:$: $lt_compiler_flag:'`
8384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8385 (eval "$lt_compile" 2>out/conftest.err)
8387 cat out/conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8391 # The compiler can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8396 lt_cv_prog_compiler_c_o=yes
8401 # SGI C++ compiler will create directory out/ii_files/ for
8402 # template instantiation
8403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8404 $RM out/* && rmdir out
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8419 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8420 if ${lt_cv_prog_compiler_c_o+:} false; then :
8421 $as_echo_n "(cached) " >&6
8423 lt_cv_prog_compiler_c_o=no
8424 $RM -r conftest 2>/dev/null
8428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8430 lt_compiler_flag="-o out/conftest2.$ac_objext"
8431 # Insert the option either (1) after the last *FLAGS variable, or
8432 # (2) before a word containing "conftest.", or (3) at the end.
8433 # Note that $ac_compile itself does not contain backslashes and begins
8434 # with a dollar sign (not a hyphen), so the echo should work correctly.
8435 lt_compile=`echo "$ac_compile" | $SED \
8436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8438 -e 's:$: $lt_compiler_flag:'`
8439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8440 (eval "$lt_compile" 2>out/conftest.err)
8442 cat out/conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8446 # The compiler can only warn and ignore the option if not recognized
8447 # So say no if there are warnings
8448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8451 lt_cv_prog_compiler_c_o=yes
8456 # SGI C++ compiler will create directory out/ii_files/ for
8457 # template instantiation
8458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8459 $RM out/* && rmdir out
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8471 hard_links="nottested"
8472 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8473 # do not overwrite the value of need_locks provided by the user
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8475 $as_echo_n "checking if we can lock with hard links... " >&6; }
8478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8480 ln conftest.a conftest.b 2>&5 || hard_links=no
8481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8483 $as_echo "$hard_links" >&6; }
8484 if test "$hard_links" = no; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8486 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8499 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8502 allow_undefined_flag=
8503 always_export_symbols=no
8505 archive_expsym_cmds=
8506 compiler_needs_object=no
8507 enable_shared_with_static_runtimes=no
8508 export_dynamic_flag_spec=
8509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8510 hardcode_automatic=no
8512 hardcode_direct_absolute=no
8513 hardcode_libdir_flag_spec=
8514 hardcode_libdir_separator=
8516 hardcode_shlibpath_var=unsupported
8518 link_all_deplibs=unknown
8521 old_archive_from_new_cmds=
8522 old_archive_from_expsyms_cmds=
8523 thread_safe_flag_spec=
8524 whole_archive_flag_spec=
8525 # include_expsyms should be a list of space-separated symbols to be *always*
8526 # included in the symbol list
8528 # exclude_expsyms can be an extended regexp of symbols to exclude
8529 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8530 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8531 # as well as any symbol that contains `d'.
8532 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8534 # platforms (ab)use it in PIC code, but their linkers get confused if
8535 # the symbol is explicitly referenced. Since portable code cannot
8536 # rely on this symbol name, it's probably fine to never include it in
8537 # preloaded symbol tables.
8538 # Exclude shared library initialization/finalization symbols.
8539 extract_expsyms_cmds=
8542 cygwin* | mingw* | pw32* | cegcc*)
8543 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8544 # When not using gcc, we currently assume that we are using
8545 # Microsoft Visual C++.
8546 if test "$GCC" != yes; then
8551 # we just hope/assume this is gcc and not c89 (= MSVC++)
8561 # On some targets, GNU ld is compatible enough with the native linker
8562 # that we're better off using the native interface for both.
8563 lt_use_gnu_ld_interface=no
8564 if test "$with_gnu_ld" = yes; then
8567 # The AIX port of GNU ld has always aspired to compatibility
8568 # with the native linker. However, as the warning in the GNU ld
8569 # block says, versions before 2.19.5* couldn't really create working
8570 # shared libraries, regardless of the interface used.
8571 case `$LD -v 2>&1` in
8572 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8573 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8574 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8576 lt_use_gnu_ld_interface=yes
8581 lt_use_gnu_ld_interface=yes
8586 if test "$lt_use_gnu_ld_interface" = yes; then
8587 # If archive_cmds runs LD, not CC, wlarc should be empty
8590 # Set some defaults for GNU ld with shared library support. These
8591 # are reset later if shared libraries are not supported. Putting them
8592 # here allows them to be overridden if necessary.
8593 runpath_var=LD_RUN_PATH
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 export_dynamic_flag_spec='${wl}--export-dynamic'
8596 # ancient GNU ld didn't support --whole-archive et. al.
8597 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8598 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8600 whole_archive_flag_spec=
8602 supports_anon_versioning=no
8603 case `$LD -v 2>&1` in
8604 *GNU\ gold*) supports_anon_versioning=yes ;;
8605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8608 *\ 2.11.*) ;; # other 2.11 versions
8609 *) supports_anon_versioning=yes ;;
8612 # See if GNU ld supports shared libraries.
8615 # On AIX/PPC, the GNU linker is very broken
8616 if test "$host_cpu" != ia64; then
8620 *** Warning: the GNU linker, at least up to release 2.19, is reported
8621 *** to be unable to reliably create shared libraries on AIX.
8622 *** Therefore, libtool is disabling shared libraries support. If you
8623 *** really care for shared libraries, you may want to install binutils
8624 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8625 *** You will then need to restart the configuration process.
8634 # see comment about AmigaOS4 .so support
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds=''
8639 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)'
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 hardcode_minus_L=yes
8647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648 allow_undefined_flag=unsupported
8649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8650 # support --undefined. This deserves some investigation. FIXME
8651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 cygwin* | mingw* | pw32* | cegcc*)
8658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8659 # as there is no search path for DLLs.
8660 hardcode_libdir_flag_spec='-L$libdir'
8661 export_dynamic_flag_spec='${wl}--export-all-symbols'
8662 allow_undefined_flag=unsupported
8663 always_export_symbols=no
8664 enable_shared_with_static_runtimes=yes
8665 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'
8666 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8668 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8670 # If the export-symbols file already is a .def file (1st line
8671 # is EXPORTS), use it as is; otherwise, prepend...
8672 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8673 cp $export_symbols $output_objdir/$soname.def;
8675 echo EXPORTS > $output_objdir/$soname.def;
8676 cat $export_symbols >> $output_objdir/$soname.def;
8678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686 link_all_deplibs=yes
8691 hardcode_shlibpath_var=no
8692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8693 export_dynamic_flag_spec='${wl}-E'
8694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8695 # Instead, shared libraries are loaded at an image base (0x10000000 by
8696 # default) and relocated if they conflict, which is a slow very memory
8697 # consuming and fragmenting process. To avoid this, we pick a random,
8698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8701 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'
8704 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8706 if test "$host_os" = linux-dietlibc; then
8707 case $cc_basename in
8708 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8711 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8712 && test "$tmp_diet" = no
8714 tmp_addflag=' $pic_flag'
8715 tmp_sharedflag='-shared'
8716 case $cc_basename,$host_cpu in
8717 pgcc*) # Portland Group C compiler
8718 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'
8719 tmp_addflag=' $pic_flag'
8721 pgf77* | pgf90* | pgf95* | pgfortran*)
8722 # Portland Group f77 and f90 compilers
8723 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'
8724 tmp_addflag=' $pic_flag -Mnomain' ;;
8725 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8726 tmp_addflag=' -i_dynamic' ;;
8727 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8728 tmp_addflag=' -i_dynamic -nofor_main' ;;
8729 ifc* | ifort*) # Intel Fortran compiler
8730 tmp_addflag=' -nofor_main' ;;
8731 lf95*) # Lahey Fortran 8.1
8732 whole_archive_flag_spec=
8733 tmp_sharedflag='--shared' ;;
8734 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8735 tmp_sharedflag='-qmkshrobj'
8737 nvcc*) # Cuda Compiler Driver 2.2
8738 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'
8739 compiler_needs_object=yes
8742 case `$CC -V 2>&1 | sed 5q` in
8743 *Sun\ C*) # Sun C 5.9
8744 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'
8745 compiler_needs_object=yes
8746 tmp_sharedflag='-G' ;;
8747 *Sun\ F*) # Sun Fortran 8.3
8748 tmp_sharedflag='-G' ;;
8750 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 if test "x$supports_anon_versioning" = xyes; then
8753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8755 echo "local: *; };" >> $output_objdir/$libname.ver~
8756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8759 case $cc_basename in
8760 xlf* | bgf* | bgxlf* | mpixlf*)
8761 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8762 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8765 if test "x$supports_anon_versioning" = xyes; then
8766 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8768 echo "local: *; };" >> $output_objdir/$libname.ver~
8769 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8794 *** create shared libraries on Solaris systems. Therefore, libtool
8795 *** is disabling shared libraries support. We urge you to upgrade GNU
8796 *** binutils to release 2.9.1 or newer. Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8801 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8810 case `$LD -v 2>&1` in
8811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8816 *** reliably create shared libraries on SCO systems. Therefore, libtool
8817 *** is disabling shared libraries support. We urge you to upgrade GNU
8818 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8819 *** your PATH or compiler configuration so that the native linker is
8820 *** used, and then restart.
8825 # For security reasons, it is highly recommended that you always
8826 # use absolute paths for naming shared libraries, and exclude the
8827 # DT_RUNPATH tag from executables and libraries. But doing so
8828 # requires that you compile everything twice, which is a pain.
8829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8841 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8844 hardcode_shlibpath_var=no
8848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8857 if test "$ld_shlibs" = no; then
8859 hardcode_libdir_flag_spec=
8860 export_dynamic_flag_spec=
8861 whole_archive_flag_spec=
8864 # PORTME fill in a description of your system's linker (not GNU ld)
8867 allow_undefined_flag=unsupported
8868 always_export_symbols=yes
8869 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'
8870 # Note: this linker hardcodes the directories in LIBPATH if there
8871 # are no directories specified by -L.
8872 hardcode_minus_L=yes
8873 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8874 # Neither direct hardcoding nor static linking is supported with a
8876 hardcode_direct=unsupported
8881 if test "$host_cpu" = ia64; then
8882 # On IA64, the linker does run time linking by default, so we don't
8883 # have to do anything special.
8884 aix_use_runtimelinking=no
8885 exp_sym_flag='-Bexport'
8888 # If we're using GNU nm, then we don't want the "-C" option.
8889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8890 # Also, AIX nm treats weak defined symbols like other global
8891 # defined symbols, whereas GNU nm marks them as "W".
8892 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8893 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'
8895 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'
8897 aix_use_runtimelinking=no
8899 # Test if we are trying to use run time linking or normal
8900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8901 # need to do runtime linking.
8902 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8903 for ld_flag in $LDFLAGS; do
8904 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8905 aix_use_runtimelinking=yes
8912 exp_sym_flag='-bexport'
8913 no_entry_flag='-bnoentry'
8916 # When large executables or shared objects are built, AIX ld can
8917 # have problems creating the table of contents. If linking a library
8918 # or program results in "error TOC overflow" add -mminimal-toc to
8919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8924 hardcode_direct_absolute=yes
8925 hardcode_libdir_separator=':'
8926 link_all_deplibs=yes
8927 file_list_spec='${wl}-f,'
8929 if test "$GCC" = yes; then
8930 case $host_os in aix4.[012]|aix4.[012].*)
8931 # We only want to do this on AIX 4.2 and lower, the check
8932 # below for broken collect2 doesn't work under 4.3+
8933 collect2name=`${CC} -print-prog-name=collect2`
8934 if test -f "$collect2name" &&
8935 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8937 # We have reworked collect2
8940 # We have old collect2
8941 hardcode_direct=unsupported
8942 # It fails to find uninstalled libraries when the uninstalled
8943 # path is not listed in the libpath. Setting hardcode_minus_L
8944 # to unsupported forces relinking
8945 hardcode_minus_L=yes
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_libdir_separator=
8951 shared_flag='-shared'
8952 if test "$aix_use_runtimelinking" = yes; then
8953 shared_flag="$shared_flag "'${wl}-G'
8957 if test "$host_cpu" = ia64; then
8958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8959 # chokes on -Wl,-G. The following line is correct:
8962 if test "$aix_use_runtimelinking" = yes; then
8963 shared_flag='${wl}-G'
8965 shared_flag='${wl}-bM:SRE'
8970 export_dynamic_flag_spec='${wl}-bexpall'
8971 # It seems that -bexpall does not export symbols beginning with
8972 # underscore (_), so it is better to generate a list of symbols to export.
8973 always_export_symbols=yes
8974 if test "$aix_use_runtimelinking" = yes; then
8975 # Warning - without using the other runtime loading flags (-brtl),
8976 # -berok will link without error, but may produce a broken library.
8977 allow_undefined_flag='-berok'
8978 # Determine the default libpath from the value encoded in an
8980 if test "${lt_cv_aix_libpath+set}" = set; then
8981 aix_libpath=$lt_cv_aix_libpath
8983 if ${lt_cv_aix_libpath_+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8997 if ac_fn_c_try_link "$LINENO"; then :
8999 lt_aix_libpath_sed='
9000 /Import File Strings/,/^$/ {
9002 s/^0 *\([^ ]*\) *$/\1/
9006 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007 # Check for a 64-bit object if we didn't find anything.
9008 if test -z "$lt_cv_aix_libpath_"; then
9009 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 if test -z "$lt_cv_aix_libpath_"; then
9015 lt_cv_aix_libpath_="/usr/lib:/lib"
9020 aix_libpath=$lt_cv_aix_libpath_
9023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9024 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"
9026 if test "$host_cpu" = ia64; then
9027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9028 allow_undefined_flag="-z nodefs"
9029 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"
9031 # Determine the default libpath from the value encoded in an
9033 if test "${lt_cv_aix_libpath+set}" = set; then
9034 aix_libpath=$lt_cv_aix_libpath
9036 if ${lt_cv_aix_libpath_+:} false; then :
9037 $as_echo_n "(cached) " >&6
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9050 if ac_fn_c_try_link "$LINENO"; then :
9052 lt_aix_libpath_sed='
9053 /Import File Strings/,/^$/ {
9055 s/^0 *\([^ ]*\) *$/\1/
9059 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9060 # Check for a 64-bit object if we didn't find anything.
9061 if test -z "$lt_cv_aix_libpath_"; then
9062 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 if test -z "$lt_cv_aix_libpath_"; then
9068 lt_cv_aix_libpath_="/usr/lib:/lib"
9073 aix_libpath=$lt_cv_aix_libpath_
9076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9077 # Warning - without using the other run time loading flags,
9078 # -berok will link without error, but may produce a broken library.
9079 no_undefined_flag=' ${wl}-bernotok'
9080 allow_undefined_flag=' ${wl}-berok'
9081 if test "$with_gnu_ld" = yes; then
9082 # We only use this code for GNU lds that support --whole-archive.
9083 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9085 # Exported symbols can be pulled into shared objects from archives
9086 whole_archive_flag_spec='$convenience'
9088 archive_cmds_need_lc=yes
9089 # This is similar to how AIX traditionally builds its shared libraries.
9090 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'
9098 # see comment about AmigaOS4 .so support
9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100 archive_expsym_cmds=''
9103 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)'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_minus_L=yes
9111 export_dynamic_flag_spec=-rdynamic
9114 cygwin* | mingw* | pw32* | cegcc*)
9115 # When not using gcc, we currently assume that we are using
9116 # Microsoft Visual C++.
9117 # hardcode_libdir_flag_spec is actually meaningless, as there is
9118 # no search path for DLLs.
9119 case $cc_basename in
9122 hardcode_libdir_flag_spec=' '
9123 allow_undefined_flag=unsupported
9124 always_export_symbols=yes
9126 # Tell ltmain to make .lib files, not .a files.
9128 # Tell ltmain to make .dll files, not .so files.
9130 # FIXME: Setting linknames here is a bad hack.
9131 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9133 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9135 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9137 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9139 # The linker will not automatically build a static lib if we build a DLL.
9140 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9141 enable_shared_with_static_runtimes=yes
9142 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9145 old_postinstall_cmds='chmod 644 $oldlib'
9146 postlink_cmds='lt_outputfile="@OUTPUT@"~
9147 lt_tool_outputfile="@TOOL_OUTPUT@"~
9148 case $lt_outputfile in
9151 lt_outputfile="$lt_outputfile.exe"
9152 lt_tool_outputfile="$lt_tool_outputfile.exe"
9155 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9156 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9157 $RM "$lt_outputfile.manifest";
9161 # Assume MSVC wrapper
9162 hardcode_libdir_flag_spec=' '
9163 allow_undefined_flag=unsupported
9164 # Tell ltmain to make .lib files, not .a files.
9166 # Tell ltmain to make .dll files, not .so files.
9168 # FIXME: Setting linknames here is a bad hack.
9169 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9170 # The linker will automatically build a .lib file if we build a DLL.
9171 old_archive_from_new_cmds='true'
9172 # FIXME: Should let the user specify the lib program.
9173 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9174 enable_shared_with_static_runtimes=yes
9179 darwin* | rhapsody*)
9182 archive_cmds_need_lc=no
9184 hardcode_automatic=yes
9185 hardcode_shlibpath_var=unsupported
9186 if test "$lt_cv_ld_force_load" = "yes"; then
9187 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\"`'
9190 whole_archive_flag_spec=''
9192 link_all_deplibs=yes
9193 allow_undefined_flag="$_lt_dar_allow_undefined"
9194 case $cc_basename in
9195 ifort*) _lt_dar_can_shared=yes ;;
9196 *) _lt_dar_can_shared=$GCC ;;
9198 if test "$_lt_dar_can_shared" = "yes"; then
9199 output_verbose_link_cmd=func_echo_all
9200 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9201 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9202 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}"
9203 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}"
9212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9213 hardcode_libdir_flag_spec='-L$libdir'
9214 hardcode_shlibpath_var=no
9217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9218 # support. Future versions do this automatically, but an explicit c++rt0.o
9219 # does not break anything, and helps significantly (at the cost of a little
9222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9223 hardcode_libdir_flag_spec='-R$libdir'
9225 hardcode_shlibpath_var=no
9228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_minus_L=yes
9233 hardcode_shlibpath_var=no
9236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9237 freebsd* | dragonfly*)
9238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9239 hardcode_libdir_flag_spec='-R$libdir'
9241 hardcode_shlibpath_var=no
9245 if test "$GCC" = yes; then
9246 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'
9248 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'
9250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9251 hardcode_libdir_separator=:
9254 # hardcode_minus_L: Not really in the search PATH,
9255 # but as the default location of the library.
9256 hardcode_minus_L=yes
9257 export_dynamic_flag_spec='${wl}-E'
9261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9262 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9266 if test "$with_gnu_ld" = no; then
9267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9268 hardcode_libdir_separator=:
9270 hardcode_direct_absolute=yes
9271 export_dynamic_flag_spec='${wl}-E'
9272 # hardcode_minus_L: Not really in the search PATH,
9273 # but as the default location of the library.
9274 hardcode_minus_L=yes
9279 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9282 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9294 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9297 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9301 # Older versions of the 11.00 compiler do not understand -b yet
9302 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9304 $as_echo_n "checking if $CC understands -b... " >&6; }
9305 if ${lt_cv_prog_compiler__b+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 lt_cv_prog_compiler__b=no
9309 save_LDFLAGS="$LDFLAGS"
9310 LDFLAGS="$LDFLAGS -b"
9311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9313 # The linker can only warn and ignore the option if not recognized
9314 # So say no if there are warnings
9315 if test -s conftest.err; then
9316 # Append any errors to the config.log.
9317 cat conftest.err 1>&5
9318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9320 if diff conftest.exp conftest.er2 >/dev/null; then
9321 lt_cv_prog_compiler__b=yes
9324 lt_cv_prog_compiler__b=yes
9328 LDFLAGS="$save_LDFLAGS"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9332 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9334 if test x"$lt_cv_prog_compiler__b" = xyes; then
9335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9343 if test "$with_gnu_ld" = no; then
9344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9345 hardcode_libdir_separator=:
9350 hardcode_shlibpath_var=no
9354 hardcode_direct_absolute=yes
9355 export_dynamic_flag_spec='${wl}-E'
9357 # hardcode_minus_L: Not really in the search PATH,
9358 # but as the default location of the library.
9359 hardcode_minus_L=yes
9365 irix5* | irix6* | nonstopux*)
9366 if test "$GCC" = yes; then
9367 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'
9368 # Try to use the -exported_symbol ld option, if it does not
9369 # work, assume that -exports_file does not work either and
9370 # implicitly export all symbols.
9371 # This should be the same for all languages, so no per-tag cache variable.
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9373 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9374 if ${lt_cv_irix_exported_symbol+:} false; then :
9375 $as_echo_n "(cached) " >&6
9377 save_LDFLAGS="$LDFLAGS"
9378 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int foo (void) { return 0; }
9383 if ac_fn_c_try_link "$LINENO"; then :
9384 lt_cv_irix_exported_symbol=yes
9386 lt_cv_irix_exported_symbol=no
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 LDFLAGS="$save_LDFLAGS"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9393 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9394 if test "$lt_cv_irix_exported_symbol" = yes; then
9395 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'
9398 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'
9399 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'
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 hardcode_libdir_separator=:
9405 link_all_deplibs=yes
9409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9412 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9414 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_shlibpath_var=no
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423 hardcode_libdir_separator=:
9424 hardcode_shlibpath_var=no
9431 if test -f /usr/libexec/ld.so; then
9433 hardcode_shlibpath_var=no
9434 hardcode_direct_absolute=yes
9435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9438 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9439 export_dynamic_flag_spec='${wl}-E'
9442 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_libdir_flag_spec='-R$libdir'
9447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9458 hardcode_libdir_flag_spec='-L$libdir'
9459 hardcode_minus_L=yes
9460 allow_undefined_flag=unsupported
9461 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'
9462 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9466 if test "$GCC" = yes; then
9467 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9468 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'
9470 allow_undefined_flag=' -expect_unresolved \*'
9471 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'
9473 archive_cmds_need_lc='no'
9474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9475 hardcode_libdir_separator=:
9478 osf4* | osf5*) # as osf3* with the addition of -msym flag
9479 if test "$GCC" = yes; then
9480 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9481 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'
9482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 allow_undefined_flag=' -expect_unresolved \*'
9485 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'
9486 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~
9487 $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'
9489 # Both c and cxx compiler support -rpath directly
9490 hardcode_libdir_flag_spec='-rpath $libdir'
9492 archive_cmds_need_lc='no'
9493 hardcode_libdir_separator=:
9497 no_undefined_flag=' -z defs'
9498 if test "$GCC" = yes; then
9500 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9502 $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'
9504 case `$CC -V 2>&1` in
9507 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9513 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9519 hardcode_libdir_flag_spec='-R$libdir'
9520 hardcode_shlibpath_var=no
9522 solaris2.[0-5] | solaris2.[0-5].*) ;;
9524 # The compiler driver will combine and reorder linker options,
9525 # but understands `-z linker_flag'. GCC discards it without `$wl',
9526 # but is careful enough not to reorder.
9527 # Supported since Solaris 2.6 (maybe 2.5.1?)
9528 if test "$GCC" = yes; then
9529 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9531 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9535 link_all_deplibs=yes
9539 if test "x$host_vendor" = xsequent; then
9540 # Use $CC to link under sequent, because it throws in some extra .o
9541 # files that make .init and .fini sections work.
9542 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9544 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-L$libdir'
9548 hardcode_minus_L=yes
9549 hardcode_shlibpath_var=no
9553 case $host_vendor in
9555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556 hardcode_direct=yes # is this really true???
9559 ## LD is ld it makes a PLAMLIB
9560 ## CC just makes a GrossModule.
9561 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9562 reload_cmds='$CC -r -o $output$reload_objs'
9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9570 runpath_var='LD_RUN_PATH'
9571 hardcode_shlibpath_var=no
9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_shlibpath_var=no
9577 export_dynamic_flag_spec='-Bexport'
9581 if test -d /usr/nec; then
9582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_shlibpath_var=no
9584 runpath_var=LD_RUN_PATH
9585 hardcode_runpath_var=yes
9590 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9591 no_undefined_flag='${wl}-z,text'
9592 archive_cmds_need_lc=no
9593 hardcode_shlibpath_var=no
9594 runpath_var='LD_RUN_PATH'
9596 if test "$GCC" = yes; then
9597 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 sysv5* | sco3.2v5* | sco5v6*)
9606 # Note: We can NOT use -z defs as we might desire, because we do not
9607 # link with -lc, and that would cause any symbols used from libc to
9608 # always be unresolved, which means just about no library would
9609 # ever link correctly. If we're not using GNU ld we use -z text
9610 # though, which does catch some bad symbols but isn't as heavy-handed
9612 no_undefined_flag='${wl}-z,text'
9613 allow_undefined_flag='${wl}-z,nodefs'
9614 archive_cmds_need_lc=no
9615 hardcode_shlibpath_var=no
9616 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9617 hardcode_libdir_separator=':'
9618 link_all_deplibs=yes
9619 export_dynamic_flag_spec='${wl}-Bexport'
9620 runpath_var='LD_RUN_PATH'
9622 if test "$GCC" = yes; then
9623 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_shlibpath_var=no
9642 if test x$host_vendor = xsni; then
9644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9645 export_dynamic_flag_spec='${wl}-Blargedynsym'
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9652 $as_echo "$ld_shlibs" >&6; }
9653 test "$ld_shlibs" = no && can_build_shared=no
9655 with_gnu_ld=$with_gnu_ld
9672 # Do we need to explicitly link libc?
9674 case "x$archive_cmds_need_lc" in
9676 # Assume -lc should be added
9677 archive_cmds_need_lc=yes
9679 if test "$enable_shared" = yes && test "$GCC" = yes; then
9680 case $archive_cmds in
9682 # FIXME: we may have to deal with multi-command sequences.
9685 # Test whether the compiler implicitly links with -lc since on some
9686 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9687 # to ld, don't add -lc before -lgcc.
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9689 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9690 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9691 $as_echo_n "(cached) " >&6
9694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9697 (eval $ac_compile) 2>&5
9699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9700 test $ac_status = 0; } 2>conftest.err; then
9703 libobjs=conftest.$ac_objext
9705 wl=$lt_prog_compiler_wl
9706 pic_flag=$lt_prog_compiler_pic
9712 lt_save_allow_undefined_flag=$allow_undefined_flag
9713 allow_undefined_flag=
9714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9718 test $ac_status = 0; }
9720 lt_cv_archive_cmds_need_lc=no
9722 lt_cv_archive_cmds_need_lc=yes
9724 allow_undefined_flag=$lt_save_allow_undefined_flag
9726 cat conftest.err 1>&5
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9732 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9733 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9892 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9894 if test "$GCC" = yes; then
9896 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9897 *) lt_awk_arg="/^libraries:/" ;;
9900 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9901 *) lt_sed_strip_eq="s,=/,/,g" ;;
9903 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9904 case $lt_search_path_spec in
9906 # if the path contains ";" then we assume it to be the separator
9907 # otherwise default to the standard path separator (i.e. ":") - it is
9908 # assumed that no part of a normal pathname contains ";" but that should
9909 # okay in the real world where ";" in dirpaths is itself problematic.
9910 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9916 # Ok, now we have the path, separated by spaces, we can step through it
9917 # and add multilib dir if necessary...
9918 lt_tmp_lt_search_path_spec=
9919 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9920 # ...but if some path already ends with the multilib dir we assume
9921 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
9922 case "$lt_multi_os_dir; $lt_search_path_spec " in
9923 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9927 for lt_sys_path in $lt_search_path_spec; do
9928 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9930 elif test -n "$lt_multi_os_dir"; then
9931 test -d "$lt_sys_path" && \
9932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9935 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9936 BEGIN {RS=" "; FS="/|\n";} {
9939 for (lt_i = NF; lt_i > 0; lt_i--) {
9940 if ($lt_i != "" && $lt_i != ".") {
9941 if ($lt_i == "..") {
9944 if (lt_count == 0) {
9945 lt_foo="/" $lt_i lt_foo;
9952 if (lt_foo != "") { lt_freq[lt_foo]++; }
9953 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9955 # AWK program above erroneously prepends '/' to C:/dos/paths
9958 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9959 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9961 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9966 libname_spec='lib$name'
9974 shlibpath_overrides_runpath=unknown
9976 dynamic_linker="$host_os ld.so"
9977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9978 need_lib_prefix=unknown
9979 hardcode_into_libs=no
9981 # when you set need_version to no, make sure it does not cause -set_version
9982 # flags to be left without arguments
9983 need_version=unknown
9987 version_type=linux # correct to gnu/linux during the next big refactor
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9989 shlibpath_var=LIBPATH
9991 # AIX 3 has no versioning support, so we append a major version to the name.
9992 soname_spec='${libname}${release}${shared_ext}$major'
9996 version_type=linux # correct to gnu/linux during the next big refactor
9999 hardcode_into_libs=yes
10000 if test "$host_cpu" = ia64; then
10001 # AIX 5 supports IA64
10002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10003 shlibpath_var=LD_LIBRARY_PATH
10005 # With GCC up to 2.95.x, collect2 would create an import file
10006 # for dependence libraries. The import file would start with
10007 # the line `#! .'. This would cause the generated library to
10008 # depend on `.', always an invalid library. This was fixed in
10009 # development snapshots of GCC prior to 3.0.
10011 aix4 | aix4.[01] | aix4.[01].*)
10012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10017 can_build_shared=no
10021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10022 # soname into executable. Probably we can add versioning support to
10023 # collect2, so additional links can be useful in future.
10024 if test "$aix_use_runtimelinking" = yes; then
10025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10026 # instead of lib<name>.a to let people know that these are not
10027 # typical AIX shared libraries.
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 # We preserve .a as extension for shared libraries through AIX4.2
10031 # and later when we are not doing run time linking.
10032 library_names_spec='${libname}${release}.a $libname.a'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LIBPATH
10042 # Since July 2007 AmigaOS4 officially supports .so libraries.
10043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 library_names_spec='$libname.ixlibrary $libname.a'
10048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10049 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'
10055 library_names_spec='${libname}${shared_ext}'
10056 dynamic_linker="$host_os ld.so"
10057 shlibpath_var=LIBRARY_PATH
10061 version_type=linux # correct to gnu/linux during the next big refactor
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10069 # the default ld.so.conf also contains /usr/contrib/lib and
10070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10071 # libtool to hard-code these into programs
10074 cygwin* | mingw* | pw32* | cegcc*)
10075 version_type=windows
10080 case $GCC,$cc_basename in
10083 library_names_spec='$libname.dll.a'
10084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10085 postinstall_cmds='base_file=`basename \${file}`~
10086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10087 dldir=$destdir/`dirname \$dlpath`~
10088 test -d \$dldir || mkdir -p \$dldir~
10089 $install_prog $dir/$dlname \$dldir/$dlname~
10090 chmod a+x \$dldir/$dlname~
10091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10095 dlpath=$dir/\$dldll~
10097 shlibpath_overrides_runpath=yes
10101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10102 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10103 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10105 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10108 # MinGW DLLs use traditional 'lib' prefix
10109 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10110 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10113 # pw32 DLLs use 'pw' prefix rather than 'lib'
10114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10117 dynamic_linker='Win32 ld.exe'
10122 libname_spec='$name'
10123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10124 library_names_spec='${libname}.dll.lib'
10128 sys_lib_search_path_spec=
10131 for lt_path in $LIB
10134 # Let DOS variable expansion print the short 8.3 style file name.
10135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10139 # Convert to MSYS style.
10140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10143 # Convert to unix form, then to dos form, then back to unix form
10144 # but this time dos style (no spaces!) so that the unix form looks
10145 # like /cygdrive/c/PROGRA~1:/cygdr...
10146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10151 sys_lib_search_path_spec="$LIB"
10152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10153 # It is most probably a Windows format PATH.
10154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10158 # FIXME: find the short name or the path components, as spaces are
10159 # common. (e.g. "Program Files" -> "PROGRA~1")
10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10164 postinstall_cmds='base_file=`basename \${file}`~
10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10166 dldir=$destdir/`dirname \$dlpath`~
10167 test -d \$dldir || mkdir -p \$dldir~
10168 $install_prog $dir/$dlname \$dldir/$dlname'
10169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10170 dlpath=$dir/\$dldll~
10172 shlibpath_overrides_runpath=yes
10173 dynamic_linker='Win32 link.exe'
10177 # Assume MSVC wrapper
10178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10179 dynamic_linker='Win32 ld.exe'
10182 # FIXME: first we should search . and the directory the executable is in
10186 darwin* | rhapsody*)
10187 dynamic_linker="$host_os dyld"
10188 version_type=darwin
10191 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10192 soname_spec='${libname}${release}${major}$shared_ext'
10193 shlibpath_overrides_runpath=yes
10194 shlibpath_var=DYLD_LIBRARY_PATH
10195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10202 version_type=linux # correct to gnu/linux during the next big refactor
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LD_LIBRARY_PATH
10210 freebsd* | dragonfly*)
10211 # DragonFly does not have aout. When/if they implement a new
10212 # versioning mechanism, adjust this.
10213 if test -x /usr/bin/objformat; then
10214 objformat=`/usr/bin/objformat`
10217 freebsd[23].*) objformat=aout ;;
10218 *) objformat=elf ;;
10221 version_type=freebsd-$objformat
10222 case $version_type in
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10233 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10238 freebsd3.[01]* | freebsdelf3.[01]*)
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10244 shlibpath_overrides_runpath=no
10245 hardcode_into_libs=yes
10247 *) # from 4.6 on, and DragonFly
10248 shlibpath_overrides_runpath=yes
10249 hardcode_into_libs=yes
10255 version_type=linux # correct to gnu/linux during the next big refactor
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=no
10262 hardcode_into_libs=yes
10266 version_type=linux # correct to gnu/linux during the next big refactor
10269 dynamic_linker="$host_os runtime_loader"
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LIBRARY_PATH
10273 shlibpath_overrides_runpath=yes
10274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10275 hardcode_into_libs=yes
10278 hpux9* | hpux10* | hpux11*)
10279 # Give a soname corresponding to the major version so that dld.sl refuses to
10280 # link against other versions.
10287 hardcode_into_libs=yes
10288 dynamic_linker="$host_os dld.so"
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 if test "X$HPUX_IA64_MODE" = X32; then
10294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.sl"
10304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10313 dynamic_linker="$host_os dld.sl"
10314 shlibpath_var=SHLIB_PATH
10315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10321 postinstall_cmds='chmod 555 $lib'
10322 # or fails outright, so override atomically:
10323 install_override_mode=555
10327 version_type=linux # correct to gnu/linux during the next big refactor
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10338 irix5* | irix6* | nonstopux*)
10340 nonstopux*) version_type=nonstopux ;;
10342 if test "$lt_cv_prog_gnu_ld" = yes; then
10343 version_type=linux # correct to gnu/linux during the next big refactor
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10353 irix5* | nonstopux*)
10354 libsuff= shlibsuff=
10357 case $LD in # libtool.m4 will add one of these switches to LD
10358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10359 libsuff= shlibsuff= libmagic=32-bit;;
10360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10361 libsuff=32 shlibsuff=N32 libmagic=N32;;
10362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10364 *) libsuff= shlibsuff= libmagic=never-match;;
10368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10369 shlibpath_overrides_runpath=no
10370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10372 hardcode_into_libs=yes
10375 # No shared lib support for Linux oldld, aout, or coff.
10376 linux*oldld* | linux*aout* | linux*coff*)
10380 # This must be glibc/ELF.
10381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10382 version_type=linux # correct to gnu/linux during the next big refactor
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=no
10391 # Some binutils ld are patched to set DT_RUNPATH
10392 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10393 $as_echo_n "(cached) " >&6
10395 lt_cv_shlibpath_overrides_runpath=no
10396 save_LDFLAGS=$LDFLAGS
10397 save_libdir=$libdir
10398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10413 lt_cv_shlibpath_overrides_runpath=yes
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LDFLAGS=$save_LDFLAGS
10419 libdir=$save_libdir
10423 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10425 # This implies no fast_install, which is unacceptable.
10426 # Some rework will be needed to allow for fast_install
10427 # before this can be enabled.
10428 hardcode_into_libs=yes
10430 # Append ld.so.conf contents to the search path
10431 if test -f /etc/ld.so.conf; then
10432 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' ' '`
10433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10436 # We used to test for /lib/ld.so.1 and disable shared libraries on
10437 # powerpc, because MkLinux only supported shared libraries with the
10438 # GNU dynamic linker. Since this was broken with cross compilers,
10439 # most powerpc-linux boxes support dynamic linking these days and
10440 # people can always --disable-shared, the test was removed, and we
10441 # assume the GNU/Linux dynamic linker is in use.
10442 dynamic_linker='GNU/Linux ld.so'
10449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10452 dynamic_linker='NetBSD (a.out) ld.so'
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 dynamic_linker='NetBSD ld.elf_so'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10464 version_type=linux # correct to gnu/linux during the next big refactor
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=no
10478 hardcode_into_libs=yes
10479 dynamic_linker='ldqnx.so'
10484 sys_lib_dlsearch_path_spec="/usr/lib"
10486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10488 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10489 *) need_version=no ;;
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10496 openbsd2.[89] | openbsd2.[89].*)
10497 shlibpath_overrides_runpath=no
10500 shlibpath_overrides_runpath=yes
10504 shlibpath_overrides_runpath=yes
10509 libname_spec='$name'
10512 library_names_spec='$libname${shared_ext} $libname.a'
10513 dynamic_linker='OS/2 ld.exe'
10514 shlibpath_var=LIBPATH
10517 osf3* | osf4* | osf5*)
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10533 version_type=linux # correct to gnu/linux during the next big refactor
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=yes
10540 hardcode_into_libs=yes
10541 # ldd complains unless libraries are executable
10542 postinstall_cmds='chmod +x $lib'
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 shlibpath_overrides_runpath=yes
10551 if test "$with_gnu_ld" = yes; then
10558 version_type=linux # correct to gnu/linux during the next big refactor
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 case $host_vendor in
10564 shlibpath_overrides_runpath=no
10566 runpath_var=LD_RUN_PATH
10574 shlibpath_overrides_runpath=no
10575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10581 if test -d /usr/nec ;then
10582 version_type=linux # correct to gnu/linux during the next big refactor
10583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10584 soname_spec='$libname${shared_ext}.$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10590 version_type=freebsd-elf
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 hardcode_into_libs=yes
10598 if test "$with_gnu_ld" = yes; then
10599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10608 sys_lib_dlsearch_path_spec='/usr/lib'
10612 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10613 version_type=linux # correct to gnu/linux during the next big refactor
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=no
10619 hardcode_into_libs=yes
10623 version_type=linux # correct to gnu/linux during the next big refactor
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10634 $as_echo "$dynamic_linker" >&6; }
10635 test "$dynamic_linker" = no && can_build_shared=no
10637 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10638 if test "$GCC" = yes; then
10639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10642 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10643 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10645 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10646 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10741 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10743 if test -n "$hardcode_libdir_flag_spec" ||
10744 test -n "$runpath_var" ||
10745 test "X$hardcode_automatic" = "Xyes" ; then
10747 # We can hardcode non-existent directories.
10748 if test "$hardcode_direct" != no &&
10749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10750 # have to relink, otherwise we might link with an installed library
10751 # when we should be linking with a yet-to-be-installed one
10752 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10753 test "$hardcode_minus_L" != no; then
10754 # Linking always hardcodes the temporary library directory.
10755 hardcode_action=relink
10757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10758 hardcode_action=immediate
10761 # We cannot hardcode anything, or else we can only hardcode existing
10763 hardcode_action=unsupported
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10766 $as_echo "$hardcode_action" >&6; }
10768 if test "$hardcode_action" = relink ||
10769 test "$inherit_rpath" = yes; then
10770 # Fast installation is not supported
10771 enable_fast_install=no
10772 elif test "$shlibpath_overrides_runpath" = yes ||
10773 test "$enable_shared" = no; then
10774 # Fast installation is not necessary
10775 enable_fast_install=needless
10783 if test "x$enable_dlopen" != xyes; then
10784 enable_dlopen=unknown
10785 enable_dlopen_self=unknown
10786 enable_dlopen_self_static=unknown
10793 lt_cv_dlopen="load_add_on"
10795 lt_cv_dlopen_self=yes
10798 mingw* | pw32* | cegcc*)
10799 lt_cv_dlopen="LoadLibrary"
10804 lt_cv_dlopen="dlopen"
10809 # if libdl is installed we need to link against it
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10812 if ${ac_cv_lib_dl_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10815 ac_check_lib_save_LIBS=$LIBS
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dl_dlopen=yes
10838 ac_cv_lib_dl_dlopen=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10850 lt_cv_dlopen="dyld"
10852 lt_cv_dlopen_self=yes
10859 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10860 if test "x$ac_cv_func_shl_load" = xyes; then :
10861 lt_cv_dlopen="shl_load"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10864 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10865 if ${ac_cv_lib_dld_shl_load+:} false; then :
10866 $as_echo_n "(cached) " >&6
10868 ac_check_lib_save_LIBS=$LIBS
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10883 return shl_load ();
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_dld_shl_load=yes
10891 ac_cv_lib_dld_shl_load=no
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10898 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10899 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10900 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10902 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10903 if test "x$ac_cv_func_dlopen" = xyes; then :
10904 lt_cv_dlopen="dlopen"
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10908 if ${ac_cv_lib_dl_dlopen+:} false; then :
10909 $as_echo_n "(cached) " >&6
10911 ac_check_lib_save_LIBS=$LIBS
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 ac_cv_lib_dl_dlopen=yes
10934 ac_cv_lib_dl_dlopen=no
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10942 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10946 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10947 if ${ac_cv_lib_svld_dlopen+:} false; then :
10948 $as_echo_n "(cached) " >&6
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-lsvld $LIBS"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_svld_dlopen=yes
10973 ac_cv_lib_svld_dlopen=no
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LIBS=$ac_check_lib_save_LIBS
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10980 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10981 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10985 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10986 if ${ac_cv_lib_dld_dld_link+:} false; then :
10987 $as_echo_n "(cached) " >&6
10989 ac_check_lib_save_LIBS=$LIBS
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
11004 return dld_link ();
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_dld_dld_link=yes
11012 ac_cv_lib_dld_dld_link=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11019 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11020 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11021 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11042 if test "x$lt_cv_dlopen" != xno; then
11048 case $lt_cv_dlopen in
11050 save_CPPFLAGS="$CPPFLAGS"
11051 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11053 save_LDFLAGS="$LDFLAGS"
11054 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11057 LIBS="$lt_cv_dlopen_libs $LIBS"
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11060 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11061 if ${lt_cv_dlopen_self+:} false; then :
11062 $as_echo_n "(cached) " >&6
11064 if test "$cross_compiling" = yes; then :
11065 lt_cv_dlopen_self=cross
11067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11068 lt_status=$lt_dlunknown
11069 cat > conftest.$ac_ext <<_LT_EOF
11070 #line $LINENO "configure"
11071 #include "confdefs.h"
11080 # define LT_DLGLOBAL RTLD_GLOBAL
11083 # define LT_DLGLOBAL DL_GLOBAL
11085 # define LT_DLGLOBAL 0
11089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11090 find out it does not work in some platform. */
11091 #ifndef LT_DLLAZY_OR_NOW
11093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11096 # define LT_DLLAZY_OR_NOW DL_LAZY
11099 # define LT_DLLAZY_OR_NOW RTLD_NOW
11102 # define LT_DLLAZY_OR_NOW DL_NOW
11104 # define LT_DLLAZY_OR_NOW 0
11111 /* When -fvisbility=hidden is used, assume the code has been annotated
11112 correspondingly for the symbols needed. */
11113 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11114 int fnord () __attribute__((visibility("default")));
11117 int fnord () { return 42; }
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11128 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11129 else puts (dlerror ());
11131 /* dlclose (self); */
11139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11140 (eval $ac_link) 2>&5
11142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11143 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11144 (./conftest; exit; ) >&5 2>/dev/null
11146 case x$lt_status in
11147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11149 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11152 # compilation failed
11153 lt_cv_dlopen_self=no
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11161 $as_echo "$lt_cv_dlopen_self" >&6; }
11163 if test "x$lt_cv_dlopen_self" = xyes; then
11164 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11166 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11167 if ${lt_cv_dlopen_self_static+:} false; then :
11168 $as_echo_n "(cached) " >&6
11170 if test "$cross_compiling" = yes; then :
11171 lt_cv_dlopen_self_static=cross
11173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11174 lt_status=$lt_dlunknown
11175 cat > conftest.$ac_ext <<_LT_EOF
11176 #line $LINENO "configure"
11177 #include "confdefs.h"
11186 # define LT_DLGLOBAL RTLD_GLOBAL
11189 # define LT_DLGLOBAL DL_GLOBAL
11191 # define LT_DLGLOBAL 0
11195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11196 find out it does not work in some platform. */
11197 #ifndef LT_DLLAZY_OR_NOW
11199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11202 # define LT_DLLAZY_OR_NOW DL_LAZY
11205 # define LT_DLLAZY_OR_NOW RTLD_NOW
11208 # define LT_DLLAZY_OR_NOW DL_NOW
11210 # define LT_DLLAZY_OR_NOW 0
11217 /* When -fvisbility=hidden is used, assume the code has been annotated
11218 correspondingly for the symbols needed. */
11219 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11220 int fnord () __attribute__((visibility("default")));
11223 int fnord () { return 42; }
11226 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11227 int status = $lt_dlunknown;
11231 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11234 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11235 else puts (dlerror ());
11237 /* dlclose (self); */
11245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11246 (eval $ac_link) 2>&5
11248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11249 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11250 (./conftest; exit; ) >&5 2>/dev/null
11252 case x$lt_status in
11253 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11254 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11255 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11258 # compilation failed
11259 lt_cv_dlopen_self_static=no
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11267 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11270 CPPFLAGS="$save_CPPFLAGS"
11271 LDFLAGS="$save_LDFLAGS"
11276 case $lt_cv_dlopen_self in
11277 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11278 *) enable_dlopen_self=unknown ;;
11281 case $lt_cv_dlopen_self_static in
11282 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11283 *) enable_dlopen_self_static=unknown ;;
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11306 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11307 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11308 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11309 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11311 $as_echo "yes" >&6; }
11313 # FIXME - insert some real tests, host_os isn't really good enough
11316 if test -n "$STRIP" ; then
11317 striplib="$STRIP -x"
11318 old_striplib="$STRIP -S"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320 $as_echo "yes" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11344 # Report which library types will actually be built
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11346 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11348 $as_echo "$can_build_shared" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11351 $as_echo_n "checking whether to build shared libraries... " >&6; }
11352 test "$can_build_shared" = "no" && enable_shared=no
11354 # On AIX, shared libraries and static libraries use the same namespace, and
11355 # are all built from PIC.
11358 test "$enable_shared" = yes && enable_static=no
11359 if test -n "$RANLIB"; then
11360 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11361 postinstall_cmds='$RANLIB $lib'
11366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11367 test "$enable_shared" = yes && enable_static=no
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11372 $as_echo "$enable_shared" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11375 $as_echo_n "checking whether to build static libraries... " >&6; }
11376 # Make sure either enable_shared or enable_static is yes.
11377 test "$enable_shared" = yes || enable_static=yes
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11379 $as_echo "$enable_static" >&6; }
11386 ac_cpp='$CPP $CPPFLAGS'
11387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407 ac_config_commands="$ac_config_commands libtool"
11412 # Only expand once:
11416 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11417 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11418 LT_REVISION=$SDL_INTERFACE_AGE
11419 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11434 if test -n "$ac_tool_prefix"; then
11435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_CC+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 if test -n "$CC"; then
11443 ac_cv_prog_CC="$CC" # Let the user override the test.
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 if test -n "$CC"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11465 $as_echo "$CC" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11473 if test -z "$ac_cv_prog_CC"; then
11475 # Extract the first word of "gcc", so it can be a program name with args.
11476 set dummy gcc; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11480 $as_echo_n "(cached) " >&6
11482 if test -n "$ac_ct_CC"; then
11483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11492 ac_cv_prog_ac_ct_CC="gcc"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11503 if test -n "$ac_ct_CC"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11505 $as_echo "$ac_ct_CC" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11511 if test "x$ac_ct_CC" = x; then
11514 case $cross_compiling:$ac_tool_warned in
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11518 ac_tool_warned=yes ;;
11523 CC="$ac_cv_prog_CC"
11526 if test -z "$CC"; then
11527 if test -n "$ac_tool_prefix"; then
11528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11529 set dummy ${ac_tool_prefix}cc; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if ${ac_cv_prog_CC+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 if test -n "$CC"; then
11536 ac_cv_prog_CC="$CC" # Let the user override the test.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_CC="${ac_tool_prefix}cc"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 if test -n "$CC"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11558 $as_echo "$CC" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11567 if test -z "$CC"; then
11568 # Extract the first word of "cc", so it can be a program name with args.
11569 set dummy cc; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if ${ac_cv_prog_CC+:} false; then :
11573 $as_echo_n "(cached) " >&6
11575 if test -n "$CC"; then
11576 ac_cv_prog_CC="$CC" # Let the user override the test.
11578 ac_prog_rejected=no
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11587 ac_prog_rejected=yes
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 if test $ac_prog_rejected = yes; then
11599 # We found a bogon in the path, so make sure we never use it.
11600 set dummy $ac_cv_prog_CC
11602 if test $# != 0; then
11603 # We chose a different compiler from the bogus one.
11604 # However, it has the same basename, so the bogon will be chosen
11605 # first if we set CC to just the basename; use the full file name.
11607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11613 if test -n "$CC"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11615 $as_echo "$CC" >&6; }
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11623 if test -z "$CC"; then
11624 if test -n "$ac_tool_prefix"; then
11625 for ac_prog in cl.exe
11627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if ${ac_cv_prog_CC+:} false; then :
11632 $as_echo_n "(cached) " >&6
11634 if test -n "$CC"; then
11635 ac_cv_prog_CC="$CC" # Let the user override the test.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 if test -n "$CC"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11657 $as_echo "$CC" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11664 test -n "$CC" && break
11667 if test -z "$CC"; then
11669 for ac_prog in cl.exe
11671 # Extract the first word of "$ac_prog", so it can be a program name with args.
11672 set dummy $ac_prog; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11676 $as_echo_n "(cached) " >&6
11678 if test -n "$ac_ct_CC"; then
11679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_prog_ac_ct_CC="$ac_prog"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11699 if test -n "$ac_ct_CC"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11701 $as_echo "$ac_ct_CC" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11708 test -n "$ac_ct_CC" && break
11711 if test "x$ac_ct_CC" = x; then
11714 case $cross_compiling:$ac_tool_warned in
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11718 ac_tool_warned=yes ;;
11727 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11729 as_fn_error $? "no acceptable C compiler found in \$PATH
11730 See \`config.log' for more details" "$LINENO" 5; }
11732 # Provide some information about the compiler.
11733 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11736 for ac_option in --version -v -V -qversion; do
11737 { { ac_try="$ac_compiler $ac_option >&5"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11743 $as_echo "$ac_try_echo"; } >&5
11744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11746 if test -s conftest.err; then
11748 ... rest of stderr output deleted ...
11749 10q' conftest.err >conftest.er1
11750 cat conftest.er1 >&5
11752 rm -f conftest.er1 conftest.err
11753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754 test $ac_status = 0; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11759 if ${ac_cv_c_compiler_gnu+:} false; then :
11760 $as_echo_n "(cached) " >&6
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777 ac_compiler_gnu=yes
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11786 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11787 if test $ac_compiler_gnu = yes; then
11792 ac_test_CFLAGS=${CFLAGS+set}
11793 ac_save_CFLAGS=$CFLAGS
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11795 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11796 if ${ac_cv_prog_cc_g+:} false; then :
11797 $as_echo_n "(cached) " >&6
11799 ac_save_c_werror_flag=$ac_c_werror_flag
11800 ac_c_werror_flag=yes
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815 ac_cv_prog_cc_g=yes
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11829 if ac_fn_c_try_compile "$LINENO"; then :
11832 ac_c_werror_flag=$ac_save_c_werror_flag
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11845 if ac_fn_c_try_compile "$LINENO"; then :
11846 ac_cv_prog_cc_g=yes
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 ac_c_werror_flag=$ac_save_c_werror_flag
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11856 $as_echo "$ac_cv_prog_cc_g" >&6; }
11857 if test "$ac_test_CFLAGS" = set; then
11858 CFLAGS=$ac_save_CFLAGS
11859 elif test $ac_cv_prog_cc_g = yes; then
11860 if test "$GCC" = yes; then
11866 if test "$GCC" = yes; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11873 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11874 if ${ac_cv_prog_cc_c89+:} false; then :
11875 $as_echo_n "(cached) " >&6
11877 ac_cv_prog_cc_c89=no
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #include <stdarg.h>
11884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11885 struct buf { int x; };
11886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11887 static char *e (p, i)
11893 static char *f (char * (*g) (char **, int), char **p, ...)
11898 s = g (p, va_arg (v,int));
11903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11904 function prototypes and stuff, but not '\xHH' hex character constants.
11905 These don't provoke an error unfortunately, instead are silently treated
11906 as 'x'. The following induces an error, until -std is added to get
11907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11908 array size at least. It's necessary to write '\x00'==0 to get something
11909 that's true only with -std. */
11910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11913 inside strings and character constants. */
11915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11917 int test (int i, double x);
11918 struct s1 {int (*f) (int a);};
11919 struct s2 {int (*f) (double a);};
11920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11934 CC="$ac_save_CC $ac_arg"
11935 if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_cv_prog_cc_c89=$ac_arg
11938 rm -f core conftest.err conftest.$ac_objext
11939 test "x$ac_cv_prog_cc_c89" != "xno" && break
11941 rm -f conftest.$ac_ext
11946 case "x$ac_cv_prog_cc_c89" in
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11949 $as_echo "none needed" >&6; } ;;
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11952 $as_echo "unsupported" >&6; } ;;
11954 CC="$CC $ac_cv_prog_cc_c89"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11958 if test "x$ac_cv_prog_cc_c89" != xno; then :
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969 ac_cpp='$CXXCPP $CPPFLAGS'
11970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11973 if test -z "$CXX"; then
11974 if test -n "$CCC"; then
11977 if test -n "$ac_tool_prefix"; then
11978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_prog_CXX+:} false; then :
11985 $as_echo_n "(cached) " >&6
11987 if test -n "$CXX"; then
11988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 CXX=$ac_cv_prog_CXX
12008 if test -n "$CXX"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12010 $as_echo "$CXX" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12017 test -n "$CXX" && break
12020 if test -z "$CXX"; then
12022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12024 # Extract the first word of "$ac_prog", so it can be a program name with args.
12025 set dummy $ac_prog; ac_word=$2
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027 $as_echo_n "checking for $ac_word... " >&6; }
12028 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12029 $as_echo_n "(cached) " >&6
12031 if test -n "$ac_ct_CXX"; then
12032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_prog_ac_ct_CXX="$ac_prog"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12052 if test -n "$ac_ct_CXX"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12054 $as_echo "$ac_ct_CXX" >&6; }
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12061 test -n "$ac_ct_CXX" && break
12064 if test "x$ac_ct_CXX" = x; then
12067 case $cross_compiling:$ac_tool_warned in
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12071 ac_tool_warned=yes ;;
12079 # Provide some information about the compiler.
12080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12083 for ac_option in --version -v -V -qversion; do
12084 { { ac_try="$ac_compiler $ac_option >&5"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12090 $as_echo "$ac_try_echo"; } >&5
12091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12093 if test -s conftest.err; then
12095 ... rest of stderr output deleted ...
12096 10q' conftest.err >conftest.er1
12097 cat conftest.er1 >&5
12099 rm -f conftest.er1 conftest.err
12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101 test $ac_status = 0; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12105 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12106 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12107 $as_echo_n "(cached) " >&6
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12123 if ac_fn_cxx_try_compile "$LINENO"; then :
12124 ac_compiler_gnu=yes
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12133 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12134 if test $ac_compiler_gnu = yes; then
12139 ac_test_CXXFLAGS=${CXXFLAGS+set}
12140 ac_save_CXXFLAGS=$CXXFLAGS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12142 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12143 if ${ac_cv_prog_cxx_g+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12147 ac_cxx_werror_flag=yes
12148 ac_cv_prog_cxx_g=no
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12161 if ac_fn_cxx_try_compile "$LINENO"; then :
12162 ac_cv_prog_cxx_g=yes
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12176 if ac_fn_cxx_try_compile "$LINENO"; then :
12179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12192 if ac_fn_cxx_try_compile "$LINENO"; then :
12193 ac_cv_prog_cxx_g=yes
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12203 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12204 if test "$ac_test_CXXFLAGS" = set; then
12205 CXXFLAGS=$ac_save_CXXFLAGS
12206 elif test $ac_cv_prog_cxx_g = yes; then
12207 if test "$GXX" = yes; then
12213 if test "$GXX" = yes; then
12220 ac_cpp='$CPP $CPPFLAGS'
12221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227 func_stripname_cnf ()
12230 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12231 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12233 } # func_stripname_cnf
12235 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12236 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12237 (test "X$CXX" != "Xg++"))) ; then
12239 ac_cpp='$CXXCPP $CPPFLAGS'
12240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12244 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12245 if test -z "$CXXCPP"; then
12246 if ${ac_cv_prog_CXXCPP+:} false; then :
12247 $as_echo_n "(cached) " >&6
12249 # Double quotes because CXXCPP needs to be expanded
12250 for CXXCPP in "$CXX -E" "/lib/cpp"
12252 ac_preproc_ok=false
12253 for ac_cxx_preproc_warn_flag in '' yes
12255 # Use a header file that comes with gcc, so configuring glibc
12256 # with a fresh cross-compiler works.
12257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12258 # <limits.h> exists even on freestanding compilers.
12259 # On the NeXT, cc -E runs the code through the compiler's parser,
12260 # not just through cpp. "Syntax error" is here to catch this case.
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 # include <limits.h>
12266 # include <assert.h>
12270 if ac_fn_cxx_try_cpp "$LINENO"; then :
12273 # Broken: fails on valid input.
12276 rm -f conftest.err conftest.i conftest.$ac_ext
12278 # OK, works on sane cases. Now check whether nonexistent headers
12279 # can be detected and how.
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282 #include <ac_nonexistent.h>
12284 if ac_fn_cxx_try_cpp "$LINENO"; then :
12285 # Broken: success on invalid input.
12288 # Passes both tests.
12292 rm -f conftest.err conftest.i conftest.$ac_ext
12295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12296 rm -f conftest.i conftest.err conftest.$ac_ext
12297 if $ac_preproc_ok; then :
12302 ac_cv_prog_CXXCPP=$CXXCPP
12305 CXXCPP=$ac_cv_prog_CXXCPP
12307 ac_cv_prog_CXXCPP=$CXXCPP
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12310 $as_echo "$CXXCPP" >&6; }
12311 ac_preproc_ok=false
12312 for ac_cxx_preproc_warn_flag in '' yes
12314 # Use a header file that comes with gcc, so configuring glibc
12315 # with a fresh cross-compiler works.
12316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 # <limits.h> exists even on freestanding compilers.
12318 # On the NeXT, cc -E runs the code through the compiler's parser,
12319 # not just through cpp. "Syntax error" is here to catch this case.
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 # include <limits.h>
12325 # include <assert.h>
12329 if ac_fn_cxx_try_cpp "$LINENO"; then :
12332 # Broken: fails on valid input.
12335 rm -f conftest.err conftest.i conftest.$ac_ext
12337 # OK, works on sane cases. Now check whether nonexistent headers
12338 # can be detected and how.
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <ac_nonexistent.h>
12343 if ac_fn_cxx_try_cpp "$LINENO"; then :
12344 # Broken: success on invalid input.
12347 # Passes both tests.
12351 rm -f conftest.err conftest.i conftest.$ac_ext
12354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12355 rm -f conftest.i conftest.err conftest.$ac_ext
12356 if $ac_preproc_ok; then :
12359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12361 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12362 See \`config.log' for more details" "$LINENO" 5; }
12366 ac_cpp='$CPP $CPPFLAGS'
12367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372 _lt_caught_CXX_error=yes
12376 ac_cpp='$CXXCPP $CPPFLAGS'
12377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12381 archive_cmds_need_lc_CXX=no
12382 allow_undefined_flag_CXX=
12383 always_export_symbols_CXX=no
12384 archive_expsym_cmds_CXX=
12385 compiler_needs_object_CXX=no
12386 export_dynamic_flag_spec_CXX=
12387 hardcode_direct_CXX=no
12388 hardcode_direct_absolute_CXX=no
12389 hardcode_libdir_flag_spec_CXX=
12390 hardcode_libdir_separator_CXX=
12391 hardcode_minus_L_CXX=no
12392 hardcode_shlibpath_var_CXX=unsupported
12393 hardcode_automatic_CXX=no
12394 inherit_rpath_CXX=no
12396 module_expsym_cmds_CXX=
12397 link_all_deplibs_CXX=unknown
12398 old_archive_cmds_CXX=$old_archive_cmds
12399 reload_flag_CXX=$reload_flag
12400 reload_cmds_CXX=$reload_cmds
12401 no_undefined_flag_CXX=
12402 whole_archive_flag_spec_CXX=
12403 enable_shared_with_static_runtimes_CXX=no
12405 # Source file extension for C++ test sources.
12408 # Object file extension for compiled C++ test sources.
12412 # No sense in running all these tests if we already determined that
12413 # the CXX compiler isn't working. Some variables (like enable_shared)
12414 # are currently assumed to apply to all compilers on this platform,
12415 # and will be corrupted by setting them based on a non-working compiler.
12416 if test "$_lt_caught_CXX_error" != yes; then
12417 # Code to be used in simple compile tests
12418 lt_simple_compile_test_code="int some_variable = 0;"
12420 # Code to be used in simple link tests
12421 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12423 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12430 # If no C compiler was specified, use CC.
12433 # If no C compiler flags were specified, use CFLAGS.
12434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12436 # Allow CC to be a program name with arguments.
12440 # save warnings/boilerplate of simple test code
12441 ac_outfile=conftest.$ac_objext
12442 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12444 _lt_compiler_boilerplate=`cat conftest.err`
12447 ac_outfile=conftest.$ac_objext
12448 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12450 _lt_linker_boilerplate=`cat conftest.err`
12454 # Allow CC to be a program name with arguments.
12456 lt_save_CFLAGS=$CFLAGS
12460 lt_save_with_gnu_ld=$with_gnu_ld
12461 lt_save_path_LD=$lt_cv_path_LD
12462 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12463 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12465 $as_unset lt_cv_prog_gnu_ld
12467 if test -n "${lt_cv_path_LDCXX+set}"; then
12468 lt_cv_path_LD=$lt_cv_path_LDCXX
12470 $as_unset lt_cv_path_LD
12472 test -z "${LDCXX+set}" || LD=$LDCXX
12477 for cc_temp in $compiler""; do
12479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12485 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12488 if test -n "$compiler"; then
12489 # We don't want -fno-exception when compiling C++ code, so set the
12490 # no_builtin_flag separately
12491 if test "$GXX" = yes; then
12492 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12494 lt_prog_compiler_no_builtin_flag_CXX=
12497 if test "$GXX" = yes; then
12498 # Set up default GNU C++ configuration
12502 # Check whether --with-gnu-ld was given.
12503 if test "${with_gnu_ld+set}" = set; then :
12504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12510 if test "$GCC" = yes; then
12511 # Check if gcc -print-prog-name=ld gives a path.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12513 $as_echo_n "checking for ld used by $CC... " >&6; }
12516 # gcc leaves a trailing carriage return which upsets mingw
12517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12522 # Accept absolute paths.
12524 re_direlt='/[^/][^/]*/\.\./'
12525 # Canonicalize the pathname of ld
12526 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12527 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12528 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12530 test -z "$LD" && LD="$ac_prog"
12533 # If it fails, then pretend we aren't using GCC.
12537 # If it is relative, then search for the first ld in PATH.
12538 with_gnu_ld=unknown
12541 elif test "$with_gnu_ld" = yes; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12543 $as_echo_n "checking for GNU ld... " >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12546 $as_echo_n "checking for non-GNU ld... " >&6; }
12548 if ${lt_cv_path_LD+:} false; then :
12549 $as_echo_n "(cached) " >&6
12551 if test -z "$LD"; then
12552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12553 for ac_dir in $PATH; do
12555 test -z "$ac_dir" && ac_dir=.
12556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12557 lt_cv_path_LD="$ac_dir/$ac_prog"
12558 # Check to see if the program is GNU ld. I'd rather use --version,
12559 # but apparently some variants of GNU ld only accept -v.
12560 # Break only if it was the GNU/non-GNU ld that we prefer.
12561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12562 *GNU* | *'with BFD'*)
12563 test "$with_gnu_ld" != no && break
12566 test "$with_gnu_ld" != yes && break
12573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12577 LD="$lt_cv_path_LD"
12578 if test -n "$LD"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12580 $as_echo "$LD" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12585 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12587 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12588 if ${lt_cv_prog_gnu_ld+:} false; then :
12589 $as_echo_n "(cached) " >&6
12591 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12592 case `$LD -v 2>&1 </dev/null` in
12593 *GNU* | *'with BFD'*)
12594 lt_cv_prog_gnu_ld=yes
12597 lt_cv_prog_gnu_ld=no
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12602 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12603 with_gnu_ld=$lt_cv_prog_gnu_ld
12611 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12612 # archiving commands below assume that GNU ld is being used.
12613 if test "$with_gnu_ld" = yes; then
12614 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12615 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'
12617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12618 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12620 # If archive_cmds runs LD, not CC, wlarc should be empty
12621 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12622 # investigate it a little bit more. (MM)
12625 # ancient GNU ld didn't support --whole-archive et. al.
12626 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12627 $GREP 'no-whole-archive' > /dev/null; then
12628 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12630 whole_archive_flag_spec_CXX=
12636 # A generic and very simple default shared library creation
12637 # command for GNU C++ for the case where it uses the native
12638 # linker, instead of GNU ld. If possible, this setting should
12639 # overridden to take advantage of the native linker features on
12640 # the platform it is being used on.
12641 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12644 # Commands to make compiler produce verbose output that lists
12645 # what "hidden" libraries, object files and flags are used when
12646 # linking a shared library.
12647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12655 # PORTME: fill in a description of your system's C++ link characteristics
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12657 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12661 # FIXME: insert proper C++ library support
12665 if test "$host_cpu" = ia64; then
12666 # On IA64, the linker does run time linking by default, so we don't
12667 # have to do anything special.
12668 aix_use_runtimelinking=no
12669 exp_sym_flag='-Bexport'
12672 aix_use_runtimelinking=no
12674 # Test if we are trying to use run time linking or normal
12675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12676 # need to do runtime linking.
12677 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12678 for ld_flag in $LDFLAGS; do
12681 aix_use_runtimelinking=yes
12689 exp_sym_flag='-bexport'
12690 no_entry_flag='-bnoentry'
12693 # When large executables or shared objects are built, AIX ld can
12694 # have problems creating the table of contents. If linking a library
12695 # or program results in "error TOC overflow" add -mminimal-toc to
12696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12699 archive_cmds_CXX=''
12700 hardcode_direct_CXX=yes
12701 hardcode_direct_absolute_CXX=yes
12702 hardcode_libdir_separator_CXX=':'
12703 link_all_deplibs_CXX=yes
12704 file_list_spec_CXX='${wl}-f,'
12706 if test "$GXX" = yes; then
12707 case $host_os in aix4.[012]|aix4.[012].*)
12708 # We only want to do this on AIX 4.2 and lower, the check
12709 # below for broken collect2 doesn't work under 4.3+
12710 collect2name=`${CC} -print-prog-name=collect2`
12711 if test -f "$collect2name" &&
12712 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12714 # We have reworked collect2
12717 # We have old collect2
12718 hardcode_direct_CXX=unsupported
12719 # It fails to find uninstalled libraries when the uninstalled
12720 # path is not listed in the libpath. Setting hardcode_minus_L
12721 # to unsupported forces relinking
12722 hardcode_minus_L_CXX=yes
12723 hardcode_libdir_flag_spec_CXX='-L$libdir'
12724 hardcode_libdir_separator_CXX=
12727 shared_flag='-shared'
12728 if test "$aix_use_runtimelinking" = yes; then
12729 shared_flag="$shared_flag "'${wl}-G'
12733 if test "$host_cpu" = ia64; then
12734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12735 # chokes on -Wl,-G. The following line is correct:
12738 if test "$aix_use_runtimelinking" = yes; then
12739 shared_flag='${wl}-G'
12741 shared_flag='${wl}-bM:SRE'
12746 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12747 # It seems that -bexpall does not export symbols beginning with
12748 # underscore (_), so it is better to generate a list of symbols to
12750 always_export_symbols_CXX=yes
12751 if test "$aix_use_runtimelinking" = yes; then
12752 # Warning - without using the other runtime loading flags (-brtl),
12753 # -berok will link without error, but may produce a broken library.
12754 allow_undefined_flag_CXX='-berok'
12755 # Determine the default libpath from the value encoded in an empty
12757 if test "${lt_cv_aix_libpath+set}" = set; then
12758 aix_libpath=$lt_cv_aix_libpath
12760 if ${lt_cv_aix_libpath__CXX+:} false; then :
12761 $as_echo_n "(cached) " >&6
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12774 if ac_fn_cxx_try_link "$LINENO"; then :
12776 lt_aix_libpath_sed='
12777 /Import File Strings/,/^$/ {
12779 s/^0 *\([^ ]*\) *$/\1/
12783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12784 # Check for a 64-bit object if we didn't find anything.
12785 if test -z "$lt_cv_aix_libpath__CXX"; then
12786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12789 rm -f core conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
12791 if test -z "$lt_cv_aix_libpath__CXX"; then
12792 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12797 aix_libpath=$lt_cv_aix_libpath__CXX
12800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12802 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"
12804 if test "$host_cpu" = ia64; then
12805 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12806 allow_undefined_flag_CXX="-z nodefs"
12807 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"
12809 # Determine the default libpath from the value encoded in an
12810 # empty executable.
12811 if test "${lt_cv_aix_libpath+set}" = set; then
12812 aix_libpath=$lt_cv_aix_libpath
12814 if ${lt_cv_aix_libpath__CXX+:} false; then :
12815 $as_echo_n "(cached) " >&6
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12828 if ac_fn_cxx_try_link "$LINENO"; then :
12830 lt_aix_libpath_sed='
12831 /Import File Strings/,/^$/ {
12833 s/^0 *\([^ ]*\) *$/\1/
12837 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12838 # Check for a 64-bit object if we didn't find anything.
12839 if test -z "$lt_cv_aix_libpath__CXX"; then
12840 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 if test -z "$lt_cv_aix_libpath__CXX"; then
12846 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12851 aix_libpath=$lt_cv_aix_libpath__CXX
12854 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12855 # Warning - without using the other run time loading flags,
12856 # -berok will link without error, but may produce a broken library.
12857 no_undefined_flag_CXX=' ${wl}-bernotok'
12858 allow_undefined_flag_CXX=' ${wl}-berok'
12859 if test "$with_gnu_ld" = yes; then
12860 # We only use this code for GNU lds that support --whole-archive.
12861 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12863 # Exported symbols can be pulled into shared objects from archives
12864 whole_archive_flag_spec_CXX='$convenience'
12866 archive_cmds_need_lc_CXX=yes
12867 # This is similar to how AIX traditionally builds its shared
12869 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'
12875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12876 allow_undefined_flag_CXX=unsupported
12877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12878 # support --undefined. This deserves some investigation. FIXME
12879 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12886 case $cc_basename in
12888 # FIXME: insert proper C++ library support
12894 cygwin* | mingw* | pw32* | cegcc*)
12895 case $GXX,$cc_basename in
12898 # hardcode_libdir_flag_spec is actually meaningless, as there is
12899 # no search path for DLLs.
12900 hardcode_libdir_flag_spec_CXX=' '
12901 allow_undefined_flag_CXX=unsupported
12902 always_export_symbols_CXX=yes
12903 file_list_spec_CXX='@'
12904 # Tell ltmain to make .lib files, not .a files.
12906 # Tell ltmain to make .dll files, not .so files.
12908 # FIXME: Setting linknames here is a bad hack.
12909 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12910 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12911 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12913 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12915 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12917 # The linker will not automatically build a static lib if we build a DLL.
12918 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12919 enable_shared_with_static_runtimes_CXX=yes
12921 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12922 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12923 lt_tool_outputfile="@TOOL_OUTPUT@"~
12924 case $lt_outputfile in
12927 lt_outputfile="$lt_outputfile.exe"
12928 lt_tool_outputfile="$lt_tool_outputfile.exe"
12931 func_to_tool_file "$lt_outputfile"~
12932 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12933 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12934 $RM "$lt_outputfile.manifest";
12939 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12940 # as there is no search path for DLLs.
12941 hardcode_libdir_flag_spec_CXX='-L$libdir'
12942 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12943 allow_undefined_flag_CXX=unsupported
12944 always_export_symbols_CXX=no
12945 enable_shared_with_static_runtimes_CXX=yes
12947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12948 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'
12949 # If the export-symbols file already is a .def file (1st line
12950 # is EXPORTS), use it as is; otherwise, prepend...
12951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12952 cp $export_symbols $output_objdir/$soname.def;
12954 echo EXPORTS > $output_objdir/$soname.def;
12955 cat $export_symbols >> $output_objdir/$soname.def;
12957 $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'
12964 darwin* | rhapsody*)
12967 archive_cmds_need_lc_CXX=no
12968 hardcode_direct_CXX=no
12969 hardcode_automatic_CXX=yes
12970 hardcode_shlibpath_var_CXX=unsupported
12971 if test "$lt_cv_ld_force_load" = "yes"; then
12972 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\"`'
12975 whole_archive_flag_spec_CXX=''
12977 link_all_deplibs_CXX=yes
12978 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12979 case $cc_basename in
12980 ifort*) _lt_dar_can_shared=yes ;;
12981 *) _lt_dar_can_shared=$GCC ;;
12983 if test "$_lt_dar_can_shared" = "yes"; then
12984 output_verbose_link_cmd=func_echo_all
12985 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}"
12986 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12987 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}"
12988 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}"
12989 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12990 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}"
12991 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}"
13001 case $cc_basename in
13003 # FIXME: insert proper C++ library support
13007 # Green Hills C++ Compiler
13008 # FIXME: insert proper C++ library support
13012 # FIXME: insert proper C++ library support
13019 # C++ shared libraries reported to be fairly broken before
13025 archive_cmds_need_lc_CXX=no
13028 freebsd* | dragonfly*)
13029 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13038 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 link_all_deplibs_CXX=yes
13043 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13044 hardcode_libdir_separator_CXX=:
13045 export_dynamic_flag_spec_CXX='${wl}-E'
13046 hardcode_direct_CXX=yes
13047 hardcode_minus_L_CXX=yes # Not in the search PATH,
13048 # but as the default
13049 # location of the library.
13051 case $cc_basename in
13053 # FIXME: insert proper C++ library support
13057 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'
13058 # Commands to make compiler produce verbose output that lists
13059 # what "hidden" libraries, object files and flags are used when
13060 # linking a shared library.
13062 # There doesn't appear to be a way to prevent this compiler from
13063 # explicitly linking system object files so we need to strip them
13064 # from the output so that they don't get included in the library
13066 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"'
13069 if test "$GXX" = yes; then
13070 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'
13072 # FIXME: insert proper C++ library support
13080 if test $with_gnu_ld = no; then
13081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13082 hardcode_libdir_separator_CXX=:
13088 export_dynamic_flag_spec_CXX='${wl}-E'
13094 hardcode_direct_CXX=no
13095 hardcode_shlibpath_var_CXX=no
13098 hardcode_direct_CXX=yes
13099 hardcode_direct_absolute_CXX=yes
13100 hardcode_minus_L_CXX=yes # Not in the search PATH,
13101 # but as the default
13102 # location of the library.
13106 case $cc_basename in
13108 # FIXME: insert proper C++ library support
13114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13123 # Commands to make compiler produce verbose output that lists
13124 # what "hidden" libraries, object files and flags are used when
13125 # linking a shared library.
13127 # There doesn't appear to be a way to prevent this compiler from
13128 # explicitly linking system object files so we need to strip them
13129 # from the output so that they don't get included in the library
13131 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"'
13134 if test "$GXX" = yes; then
13135 if test $with_gnu_ld = no; then
13138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13141 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13144 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'
13149 # FIXME: insert proper C++ library support
13157 hardcode_direct_CXX=no
13158 hardcode_shlibpath_var_CXX=no
13159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13160 export_dynamic_flag_spec_CXX='${wl}-E'
13161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13162 # Instead, shared libraries are loaded at an image base (0x10000000 by
13163 # default) and relocated if they conflict, which is a slow very memory
13164 # consuming and fragmenting process. To avoid this, we pick a random,
13165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13167 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'
13168 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'
13171 case $cc_basename in
13174 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'
13176 # Archives containing C++ object files must be created using
13177 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13178 # necessary to make sure instantiated templates are included
13180 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13183 if test "$GXX" = yes; then
13184 if test "$with_gnu_ld" = no; then
13185 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'
13187 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'
13190 link_all_deplibs_CXX=yes
13193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13194 hardcode_libdir_separator_CXX=:
13195 inherit_rpath_CXX=yes
13198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13199 case $cc_basename in
13201 # Kuck and Associates, Inc. (KAI) C++ Compiler
13203 # KCC will only create a shared library if the output file
13204 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13205 # to its proper name (with version) after linking.
13206 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'
13207 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'
13208 # Commands to make compiler produce verbose output that lists
13209 # what "hidden" libraries, object files and flags are used when
13210 # linking a shared library.
13212 # There doesn't appear to be a way to prevent this compiler from
13213 # explicitly linking system object files so we need to strip them
13214 # from the output so that they don't get included in the library
13216 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"'
13218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13221 # Archives containing C++ object files must be created using
13222 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13223 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13228 # version 8.0 and above of icpc choke on multiply defined symbols
13229 # if we add $predep_objects and $postdep_objects, however 7.1 and
13230 # earlier do not add the objects themselves.
13231 case `$CC -V 2>&1` in
13233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234 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'
13236 *) # Version 8.0 or newer
13239 ia64*) tmp_idyn=' -i_dynamic';;
13241 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13242 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'
13245 archive_cmds_need_lc_CXX=no
13246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13247 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13248 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13251 # Portland Group C++ compiler
13253 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13254 prelink_cmds_CXX='tpldir=Template.dir~
13256 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13257 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13258 old_archive_cmds_CXX='tpldir=Template.dir~
13260 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13261 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13263 archive_cmds_CXX='tpldir=Template.dir~
13265 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13266 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13267 archive_expsym_cmds_CXX='tpldir=Template.dir~
13269 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13270 $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'
13272 *) # Version 6 and above use weak symbols
13273 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13274 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'
13278 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13279 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13280 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'
13284 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285 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'
13287 runpath_var=LD_RUN_PATH
13288 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13289 hardcode_libdir_separator_CXX=:
13291 # Commands to make compiler produce verbose output that lists
13292 # what "hidden" libraries, object files and flags are used when
13293 # linking a shared library.
13295 # There doesn't appear to be a way to prevent this compiler from
13296 # explicitly linking system object files so we need to strip them
13297 # from the output so that they don't get included in the library
13299 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'
13301 xl* | mpixl* | bgxl*)
13302 # IBM XL 8.0 on PPC, with GNU ld
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13305 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13306 if test "x$supports_anon_versioning" = xyes; then
13307 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13309 echo "local: *; };" >> $output_objdir/$libname.ver~
13310 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13314 case `$CC -V 2>&1 | sed 5q` in
13317 no_undefined_flag_CXX=' -zdefs'
13318 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13319 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'
13320 hardcode_libdir_flag_spec_CXX='-R$libdir'
13321 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'
13322 compiler_needs_object_CXX=yes
13324 # Not sure whether something based on
13325 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13327 output_verbose_link_cmd='func_echo_all'
13329 # Archives containing C++ object files must be created using
13330 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13331 # necessary to make sure instantiated templates are included
13333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13341 # FIXME: insert proper C++ library support
13346 # FIXME: insert proper C++ library support
13351 case $cc_basename in
13353 # FIXME: insert proper C++ library support
13357 # FIXME: insert proper C++ library support
13364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13365 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13367 hardcode_libdir_flag_spec_CXX='-R$libdir'
13368 hardcode_direct_CXX=yes
13369 hardcode_shlibpath_var_CXX=no
13371 # Workaround some broken pre-1.5 toolchains
13372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13380 # C++ shared libraries are fairly broken
13385 if test -f /usr/libexec/ld.so; then
13386 hardcode_direct_CXX=yes
13387 hardcode_shlibpath_var_CXX=no
13388 hardcode_direct_absolute_CXX=yes
13389 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13392 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13393 export_dynamic_flag_spec_CXX='${wl}-E'
13394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13396 output_verbose_link_cmd=func_echo_all
13402 osf3* | osf4* | osf5*)
13403 case $cc_basename in
13405 # Kuck and Associates, Inc. (KAI) C++ Compiler
13407 # KCC will only create a shared library if the output file
13408 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13409 # to its proper name (with version) after linking.
13410 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'
13412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13413 hardcode_libdir_separator_CXX=:
13415 # Archives containing C++ object files must be created using
13416 # the KAI C++ compiler.
13418 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13419 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13423 # Rational C++ 2.4.1
13424 # FIXME: insert proper C++ library support
13430 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13431 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'
13432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13435 allow_undefined_flag_CXX=' -expect_unresolved \*'
13436 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'
13437 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13438 echo "-hidden">> $lib.exp~
13439 $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~
13441 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13445 hardcode_libdir_separator_CXX=:
13447 # Commands to make compiler produce verbose output that lists
13448 # what "hidden" libraries, object files and flags are used when
13449 # linking a shared library.
13451 # There doesn't appear to be a way to prevent this compiler from
13452 # explicitly linking system object files so we need to strip them
13453 # from the output so that they don't get included in the library
13455 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"'
13458 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13459 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13462 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'
13465 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'
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13470 hardcode_libdir_separator_CXX=:
13472 # Commands to make compiler produce verbose output that lists
13473 # what "hidden" libraries, object files and flags are used when
13474 # linking a shared library.
13475 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13478 # FIXME: insert proper C++ library support
13486 # FIXME: insert proper C++ library support
13491 case $cc_basename in
13494 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13503 # FIXME: insert proper C++ library support
13510 case $cc_basename in
13512 # Sun C++ 4.2, 5.x and Centerline C++
13513 archive_cmds_need_lc_CXX=yes
13514 no_undefined_flag_CXX=' -zdefs'
13515 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13516 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13517 $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'
13519 hardcode_libdir_flag_spec_CXX='-R$libdir'
13520 hardcode_shlibpath_var_CXX=no
13522 solaris2.[0-5] | solaris2.[0-5].*) ;;
13524 # The compiler driver will combine and reorder linker options,
13525 # but understands `-z linker_flag'.
13526 # Supported since Solaris 2.6 (maybe 2.5.1?)
13527 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13530 link_all_deplibs_CXX=yes
13532 output_verbose_link_cmd='func_echo_all'
13534 # Archives containing C++ object files must be created using
13535 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13536 # necessary to make sure instantiated templates are included
13538 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13541 # Green Hills C++ Compiler
13542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13544 # The C++ compiler must be used to create the archive.
13545 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13548 # GNU C++ compiler with Solaris linker
13549 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13550 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13551 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13552 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13556 # Commands to make compiler produce verbose output that lists
13557 # what "hidden" libraries, object files and flags are used when
13558 # linking a shared library.
13559 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13561 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13563 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13564 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13565 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13567 # Commands to make compiler produce verbose output that lists
13568 # what "hidden" libraries, object files and flags are used when
13569 # linking a shared library.
13570 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13573 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13575 solaris2.[0-5] | solaris2.[0-5].*) ;;
13577 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13586 no_undefined_flag_CXX='${wl}-z,text'
13587 archive_cmds_need_lc_CXX=no
13588 hardcode_shlibpath_var_CXX=no
13589 runpath_var='LD_RUN_PATH'
13591 case $cc_basename in
13593 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603 sysv5* | sco3.2v5* | sco5v6*)
13604 # Note: We can NOT use -z defs as we might desire, because we do not
13605 # link with -lc, and that would cause any symbols used from libc to
13606 # always be unresolved, which means just about no library would
13607 # ever link correctly. If we're not using GNU ld we use -z text
13608 # though, which does catch some bad symbols but isn't as heavy-handed
13610 no_undefined_flag_CXX='${wl}-z,text'
13611 allow_undefined_flag_CXX='${wl}-z,nodefs'
13612 archive_cmds_need_lc_CXX=no
13613 hardcode_shlibpath_var_CXX=no
13614 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13615 hardcode_libdir_separator_CXX=':'
13616 link_all_deplibs_CXX=yes
13617 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13618 runpath_var='LD_RUN_PATH'
13620 case $cc_basename in
13622 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13623 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13625 '"$old_archive_cmds_CXX"
13626 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13627 '"$reload_cmds_CXX"
13630 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13631 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 case $cc_basename in
13639 # NonStop-UX NCC 3.20
13640 # FIXME: insert proper C++ library support
13644 # FIXME: insert proper C++ library support
13651 # FIXME: insert proper C++ library support
13656 # FIXME: insert proper C++ library support
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13662 $as_echo "$ld_shlibs_CXX" >&6; }
13663 test "$ld_shlibs_CXX" = no && can_build_shared=no
13669 ## There is no encapsulation within the following macros, do not change
13670 ## the running order or otherwise move them around unless you know exactly
13671 ## what you are doing...
13672 # Dependencies to place before and after the object being linked:
13673 predep_objects_CXX=
13674 postdep_objects_CXX=
13677 compiler_lib_search_path_CXX=
13679 cat > conftest.$ac_ext <<_LT_EOF
13683 Foo (void) { a = 0; }
13690 _lt_libdeps_save_CFLAGS=$CFLAGS
13691 case "$CC $CFLAGS " in #(
13692 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13693 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13694 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13698 (eval $ac_compile) 2>&5
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; }; then
13702 # Parse the compiler output and extract the necessary
13703 # objects, libraries and library flags.
13705 # Sentinel used to keep track of whether or not we are before
13706 # the conftest object file.
13707 pre_test_object_deps_done=no
13709 for p in `eval "$output_verbose_link_cmd"`; do
13710 case ${prev}${p} in
13713 # Some compilers place space between "-{L,R}" and the path.
13714 # Remove the space.
13715 if test $p = "-L" ||
13716 test $p = "-R"; then
13721 # Expand the sysroot to ease extracting the directories later.
13722 if test -z "$prev"; then
13724 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13725 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13726 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13730 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13732 if test "$pre_test_object_deps_done" = no; then
13735 # Internal compiler library paths should come after those
13736 # provided the user. The postdeps already come after the
13737 # user supplied libs so there is no need to process them.
13738 if test -z "$compiler_lib_search_path_CXX"; then
13739 compiler_lib_search_path_CXX="${prev}${p}"
13741 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13744 # The "-l" case would never come before the object being
13745 # linked, so don't bother handling this case.
13748 if test -z "$postdeps_CXX"; then
13749 postdeps_CXX="${prev}${p}"
13751 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13757 *.lto.$objext) ;; # Ignore GCC LTO objects
13759 # This assumes that the test object file only shows up
13760 # once in the compiler output.
13761 if test "$p" = "conftest.$objext"; then
13762 pre_test_object_deps_done=yes
13766 if test "$pre_test_object_deps_done" = no; then
13767 if test -z "$predep_objects_CXX"; then
13768 predep_objects_CXX="$p"
13770 predep_objects_CXX="$predep_objects_CXX $p"
13773 if test -z "$postdep_objects_CXX"; then
13774 postdep_objects_CXX="$p"
13776 postdep_objects_CXX="$postdep_objects_CXX $p"
13781 *) ;; # Ignore the rest.
13789 echo "libtool.m4: error: problem compiling CXX test program"
13792 $RM -f confest.$objext
13793 CFLAGS=$_lt_libdeps_save_CFLAGS
13795 # PORTME: override above test on systems where it is broken
13798 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13799 # hack all around it, let's just trust "g++" to DTRT.
13800 predep_objects_CXX=
13801 postdep_objects_CXX=
13806 case `$CC -V 2>&1 | sed 5q` in
13810 # The more standards-conforming stlport4 library is
13811 # incompatible with the Cstd library. Avoid specifying
13812 # it if it's in CXXFLAGS. Ignore libCrun as
13813 # -library=stlport4 depends on it.
13814 case " $CXX $CXXFLAGS " in
13815 *" -library=stlport4 "*)
13816 solaris_use_stlport4=yes
13820 if test "$solaris_use_stlport4" != yes; then
13821 postdeps_CXX='-library=Cstd -library=Crun'
13828 case $cc_basename in
13830 # The more standards-conforming stlport4 library is
13831 # incompatible with the Cstd library. Avoid specifying
13832 # it if it's in CXXFLAGS. Ignore libCrun as
13833 # -library=stlport4 depends on it.
13834 case " $CXX $CXXFLAGS " in
13835 *" -library=stlport4 "*)
13836 solaris_use_stlport4=yes
13840 # Adding this requires a known-good setup of shared libraries for
13841 # Sun compiler versions before 5.6, else PIC objects from an old
13842 # archive will be linked into the output, leading to subtle bugs.
13843 if test "$solaris_use_stlport4" != yes; then
13844 postdeps_CXX='-library=Cstd -library=Crun'
13852 case " $postdeps_CXX " in
13853 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13855 compiler_lib_search_dirs_CXX=
13856 if test -n "${compiler_lib_search_path_CXX}"; then
13857 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13890 lt_prog_compiler_wl_CXX=
13891 lt_prog_compiler_pic_CXX=
13892 lt_prog_compiler_static_CXX=
13895 # C++ specific cases for pic, static, wl, etc.
13896 if test "$GXX" = yes; then
13897 lt_prog_compiler_wl_CXX='-Wl,'
13898 lt_prog_compiler_static_CXX='-static'
13902 # All AIX code is PIC.
13903 if test "$host_cpu" = ia64; then
13904 # AIX 5 now supports IA64 processor
13905 lt_prog_compiler_static_CXX='-Bstatic'
13912 # see comment about AmigaOS4 .so support
13913 lt_prog_compiler_pic_CXX='-fPIC'
13916 # FIXME: we need at least 68020 code to build shared libraries, but
13917 # adding the `-m68020' flag to GCC prevents building anything better,
13919 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13925 # PIC is the default for these OSes.
13927 mingw* | cygwin* | os2* | pw32* | cegcc*)
13928 # This hack is so that the source file can tell whether it is being
13929 # built for inclusion in a dll (and should export symbols for example).
13930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13931 # (--disable-auto-import) libraries
13932 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13934 darwin* | rhapsody*)
13935 # PIC is the default on this platform
13936 # Common symbols not allowed in MH_DYLIB files
13937 lt_prog_compiler_pic_CXX='-fno-common'
13940 # DJGPP does not support shared libraries at all
13941 lt_prog_compiler_pic_CXX=
13944 # PIC is the default for Haiku.
13945 # The "-static" flag exists, but is broken.
13946 lt_prog_compiler_static_CXX=
13949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13950 # Instead, we relocate shared libraries at runtime.
13953 if test -d /usr/nec; then
13954 lt_prog_compiler_pic_CXX=-Kconform_pic
13958 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13959 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13960 # sets the default TLS model and affects inlining.
13965 lt_prog_compiler_pic_CXX='-fPIC'
13970 # QNX uses GNU C++, but need to define -shared option too, otherwise
13971 # it will coredump.
13972 lt_prog_compiler_pic_CXX='-fPIC -shared'
13975 lt_prog_compiler_pic_CXX='-fPIC'
13981 # All AIX code is PIC.
13982 if test "$host_cpu" = ia64; then
13983 # AIX 5 now supports IA64 processor
13984 lt_prog_compiler_static_CXX='-Bstatic'
13986 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13990 case $cc_basename in
13992 # Green Hills C++ Compiler
13993 # _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"
13997 mingw* | cygwin* | os2* | pw32* | cegcc*)
13998 # This hack is so that the source file can tell whether it is being
13999 # built for inclusion in a dll (and should export symbols for example).
14000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14003 case $cc_basename in
14005 lt_prog_compiler_pic_CXX='-KPIC'
14008 # Green Hills C++ Compiler
14009 lt_prog_compiler_pic_CXX='-pic'
14015 freebsd* | dragonfly*)
14016 # FreeBSD uses GNU C++
14018 hpux9* | hpux10* | hpux11*)
14019 case $cc_basename in
14021 lt_prog_compiler_wl_CXX='-Wl,'
14022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023 if test "$host_cpu" != ia64; then
14024 lt_prog_compiler_pic_CXX='+Z'
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14035 lt_prog_compiler_pic_CXX='+Z'
14044 # This is c89, which is MS Visual C++ (no shared libs)
14045 # Anyone wants to do a port?
14047 irix5* | irix6* | nonstopux*)
14048 case $cc_basename in
14050 lt_prog_compiler_wl_CXX='-Wl,'
14051 lt_prog_compiler_static_CXX='-non_shared'
14052 # CC pic flag -KPIC is the default.
14058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14059 case $cc_basename in
14062 lt_prog_compiler_wl_CXX='--backend -Wl,'
14063 lt_prog_compiler_pic_CXX='-fPIC'
14066 # old Intel C++ for x86_64 which still supported -KPIC.
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_pic_CXX='-KPIC'
14069 lt_prog_compiler_static_CXX='-static'
14072 # Intel C++, used to be incompatible with GCC.
14073 # ICC 10 doesn't accept -KPIC any more.
14074 lt_prog_compiler_wl_CXX='-Wl,'
14075 lt_prog_compiler_pic_CXX='-fPIC'
14076 lt_prog_compiler_static_CXX='-static'
14079 # Portland Group C++ compiler
14080 lt_prog_compiler_wl_CXX='-Wl,'
14081 lt_prog_compiler_pic_CXX='-fpic'
14082 lt_prog_compiler_static_CXX='-Bstatic'
14086 # Make sure the PIC flag is empty. It appears that all Alpha
14087 # Linux and Compaq Tru64 Unix objects are PIC.
14088 lt_prog_compiler_pic_CXX=
14089 lt_prog_compiler_static_CXX='-non_shared'
14091 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14092 # IBM XL 8.0, 9.0 on PPC and BlueGene
14093 lt_prog_compiler_wl_CXX='-Wl,'
14094 lt_prog_compiler_pic_CXX='-qpic'
14095 lt_prog_compiler_static_CXX='-qstaticlink'
14098 case `$CC -V 2>&1 | sed 5q` in
14101 lt_prog_compiler_pic_CXX='-KPIC'
14102 lt_prog_compiler_static_CXX='-Bstatic'
14103 lt_prog_compiler_wl_CXX='-Qoption ld '
14114 case $cc_basename in
14116 lt_prog_compiler_pic_CXX='-W c,exportall'
14125 # QNX uses GNU C++, but need to define -shared option too, otherwise
14126 # it will coredump.
14127 lt_prog_compiler_pic_CXX='-fPIC -shared'
14129 osf3* | osf4* | osf5*)
14130 case $cc_basename in
14132 lt_prog_compiler_wl_CXX='--backend -Wl,'
14135 # Rational C++ 2.4.1
14136 lt_prog_compiler_pic_CXX='-pic'
14139 # Digital/Compaq C++
14140 lt_prog_compiler_wl_CXX='-Wl,'
14141 # Make sure the PIC flag is empty. It appears that all Alpha
14142 # Linux and Compaq Tru64 Unix objects are PIC.
14143 lt_prog_compiler_pic_CXX=
14144 lt_prog_compiler_static_CXX='-non_shared'
14153 case $cc_basename in
14155 # Sun C++ 4.2, 5.x and Centerline C++
14156 lt_prog_compiler_pic_CXX='-KPIC'
14157 lt_prog_compiler_static_CXX='-Bstatic'
14158 lt_prog_compiler_wl_CXX='-Qoption ld '
14161 # Green Hills C++ Compiler
14162 lt_prog_compiler_pic_CXX='-PIC'
14169 case $cc_basename in
14172 lt_prog_compiler_pic_CXX='-pic'
14173 lt_prog_compiler_static_CXX='-Bstatic'
14177 lt_prog_compiler_pic_CXX='-pic'
14183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14184 case $cc_basename in
14186 lt_prog_compiler_wl_CXX='-Wl,'
14187 lt_prog_compiler_pic_CXX='-KPIC'
14188 lt_prog_compiler_static_CXX='-Bstatic'
14193 case $cc_basename in
14195 # NonStop-UX NCC 3.20
14196 lt_prog_compiler_pic_CXX='-KPIC'
14205 lt_prog_compiler_can_build_shared_CXX=no
14211 # For platforms which do not support PIC, -DPIC is meaningless:
14213 lt_prog_compiler_pic_CXX=
14216 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14221 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14222 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14223 $as_echo_n "(cached) " >&6
14225 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14228 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14229 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14232 # Check to make sure the PIC flag actually works.
14234 if test -n "$lt_prog_compiler_pic_CXX"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14237 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14238 $as_echo_n "(cached) " >&6
14240 lt_cv_prog_compiler_pic_works_CXX=no
14241 ac_outfile=conftest.$ac_objext
14242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14244 # Insert the option either (1) after the last *FLAGS variable, or
14245 # (2) before a word containing "conftest.", or (3) at the end.
14246 # Note that $ac_compile itself does not contain backslashes and begins
14247 # with a dollar sign (not a hyphen), so the echo should work correctly.
14248 # The option is referenced via a variable to avoid confusing sed.
14249 lt_compile=`echo "$ac_compile" | $SED \
14250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14252 -e 's:$: $lt_compiler_flag:'`
14253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14254 (eval "$lt_compile" 2>conftest.err)
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 if (exit $ac_status) && test -s "$ac_outfile"; then
14259 # The compiler can only warn and ignore the option if not recognized
14260 # So say no if there are warnings other than the usual output.
14261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14264 lt_cv_prog_compiler_pic_works_CXX=yes
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14271 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14273 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14274 case $lt_prog_compiler_pic_CXX in
14276 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14279 lt_prog_compiler_pic_CXX=
14280 lt_prog_compiler_can_build_shared_CXX=no
14290 # Check to make sure the static flag actually works.
14292 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14294 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14295 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14296 $as_echo_n "(cached) " >&6
14298 lt_cv_prog_compiler_static_works_CXX=no
14299 save_LDFLAGS="$LDFLAGS"
14300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14303 # The linker can only warn and ignore the option if not recognized
14304 # So say no if there are warnings
14305 if test -s conftest.err; then
14306 # Append any errors to the config.log.
14307 cat conftest.err 1>&5
14308 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14310 if diff conftest.exp conftest.er2 >/dev/null; then
14311 lt_cv_prog_compiler_static_works_CXX=yes
14314 lt_cv_prog_compiler_static_works_CXX=yes
14318 LDFLAGS="$save_LDFLAGS"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14322 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14324 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14327 lt_prog_compiler_static_CXX=
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14336 $as_echo_n "(cached) " >&6
14338 lt_cv_prog_compiler_c_o_CXX=no
14339 $RM -r conftest 2>/dev/null
14343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14345 lt_compiler_flag="-o out/conftest2.$ac_objext"
14346 # Insert the option either (1) after the last *FLAGS variable, or
14347 # (2) before a word containing "conftest.", or (3) at the end.
14348 # Note that $ac_compile itself does not contain backslashes and begins
14349 # with a dollar sign (not a hyphen), so the echo should work correctly.
14350 lt_compile=`echo "$ac_compile" | $SED \
14351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14353 -e 's:$: $lt_compiler_flag:'`
14354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14355 (eval "$lt_compile" 2>out/conftest.err)
14357 cat out/conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14361 # The compiler can only warn and ignore the option if not recognized
14362 # So say no if there are warnings
14363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14366 lt_cv_prog_compiler_c_o_CXX=yes
14371 # SGI C++ compiler will create directory out/ii_files/ for
14372 # template instantiation
14373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14374 $RM out/* && rmdir out
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14387 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14388 $as_echo_n "(cached) " >&6
14390 lt_cv_prog_compiler_c_o_CXX=no
14391 $RM -r conftest 2>/dev/null
14395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14397 lt_compiler_flag="-o out/conftest2.$ac_objext"
14398 # Insert the option either (1) after the last *FLAGS variable, or
14399 # (2) before a word containing "conftest.", or (3) at the end.
14400 # Note that $ac_compile itself does not contain backslashes and begins
14401 # with a dollar sign (not a hyphen), so the echo should work correctly.
14402 lt_compile=`echo "$ac_compile" | $SED \
14403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405 -e 's:$: $lt_compiler_flag:'`
14406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14407 (eval "$lt_compile" 2>out/conftest.err)
14409 cat out/conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14413 # The compiler can only warn and ignore the option if not recognized
14414 # So say no if there are warnings
14415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14418 lt_cv_prog_compiler_c_o_CXX=yes
14423 # SGI C++ compiler will create directory out/ii_files/ for
14424 # template instantiation
14425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14426 $RM out/* && rmdir out
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14433 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14438 hard_links="nottested"
14439 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14440 # do not overwrite the value of need_locks provided by the user
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14442 $as_echo_n "checking if we can lock with hard links... " >&6; }
14445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14447 ln conftest.a conftest.b 2>&5 || hard_links=no
14448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14450 $as_echo "$hard_links" >&6; }
14451 if test "$hard_links" = no; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14453 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14466 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14469 # If we're using GNU nm, then we don't want the "-C" option.
14470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14471 # Also, AIX nm treats weak defined symbols like other global defined
14472 # symbols, whereas GNU nm marks them as "W".
14473 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14474 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'
14476 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'
14480 export_symbols_cmds_CXX="$ltdll_cmds"
14482 cygwin* | mingw* | cegcc*)
14483 case $cc_basename in
14485 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14488 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'
14489 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14494 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14499 $as_echo "$ld_shlibs_CXX" >&6; }
14500 test "$ld_shlibs_CXX" = no && can_build_shared=no
14502 with_gnu_ld_CXX=$with_gnu_ld
14510 # Do we need to explicitly link libc?
14512 case "x$archive_cmds_need_lc_CXX" in
14514 # Assume -lc should be added
14515 archive_cmds_need_lc_CXX=yes
14517 if test "$enable_shared" = yes && test "$GCC" = yes; then
14518 case $archive_cmds_CXX in
14520 # FIXME: we may have to deal with multi-command sequences.
14523 # Test whether the compiler implicitly links with -lc since on some
14524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14525 # to ld, don't add -lc before -lgcc.
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14527 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14528 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14529 $as_echo_n "(cached) " >&6
14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14535 (eval $ac_compile) 2>&5
14537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14538 test $ac_status = 0; } 2>conftest.err; then
14541 libobjs=conftest.$ac_objext
14543 wl=$lt_prog_compiler_wl_CXX
14544 pic_flag=$lt_prog_compiler_pic_CXX
14550 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14551 allow_undefined_flag_CXX=
14552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14553 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; }
14558 lt_cv_archive_cmds_need_lc_CXX=no
14560 lt_cv_archive_cmds_need_lc_CXX=yes
14562 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14564 cat conftest.err 1>&5
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14570 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14571 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14642 library_names_spec=
14643 libname_spec='lib$name'
14647 postuninstall_cmds=
14651 shlibpath_overrides_runpath=unknown
14653 dynamic_linker="$host_os ld.so"
14654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14655 need_lib_prefix=unknown
14656 hardcode_into_libs=no
14658 # when you set need_version to no, make sure it does not cause -set_version
14659 # flags to be left without arguments
14660 need_version=unknown
14664 version_type=linux # correct to gnu/linux during the next big refactor
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14666 shlibpath_var=LIBPATH
14668 # AIX 3 has no versioning support, so we append a major version to the name.
14669 soname_spec='${libname}${release}${shared_ext}$major'
14673 version_type=linux # correct to gnu/linux during the next big refactor
14676 hardcode_into_libs=yes
14677 if test "$host_cpu" = ia64; then
14678 # AIX 5 supports IA64
14679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14680 shlibpath_var=LD_LIBRARY_PATH
14682 # With GCC up to 2.95.x, collect2 would create an import file
14683 # for dependence libraries. The import file would start with
14684 # the line `#! .'. This would cause the generated library to
14685 # depend on `.', always an invalid library. This was fixed in
14686 # development snapshots of GCC prior to 3.0.
14688 aix4 | aix4.[01] | aix4.[01].*)
14689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14691 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14694 can_build_shared=no
14698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14699 # soname into executable. Probably we can add versioning support to
14700 # collect2, so additional links can be useful in future.
14701 if test "$aix_use_runtimelinking" = yes; then
14702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14703 # instead of lib<name>.a to let people know that these are not
14704 # typical AIX shared libraries.
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 # We preserve .a as extension for shared libraries through AIX4.2
14708 # and later when we are not doing run time linking.
14709 library_names_spec='${libname}${release}.a $libname.a'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LIBPATH
14719 # Since July 2007 AmigaOS4 officially supports .so libraries.
14720 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 library_names_spec='$libname.ixlibrary $libname.a'
14725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14726 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'
14732 library_names_spec='${libname}${shared_ext}'
14733 dynamic_linker="$host_os ld.so"
14734 shlibpath_var=LIBRARY_PATH
14738 version_type=linux # correct to gnu/linux during the next big refactor
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14746 # the default ld.so.conf also contains /usr/contrib/lib and
14747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14748 # libtool to hard-code these into programs
14751 cygwin* | mingw* | pw32* | cegcc*)
14752 version_type=windows
14757 case $GCC,$cc_basename in
14760 library_names_spec='$libname.dll.a'
14761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14762 postinstall_cmds='base_file=`basename \${file}`~
14763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14764 dldir=$destdir/`dirname \$dlpath`~
14765 test -d \$dldir || mkdir -p \$dldir~
14766 $install_prog $dir/$dlname \$dldir/$dlname~
14767 chmod a+x \$dldir/$dlname~
14768 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14769 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14772 dlpath=$dir/\$dldll~
14774 shlibpath_overrides_runpath=yes
14778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14779 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14780 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14784 # MinGW DLLs use traditional 'lib' prefix
14785 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14786 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
14789 # pw32 DLLs use 'pw' prefix rather than 'lib'
14790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14793 dynamic_linker='Win32 ld.exe'
14798 libname_spec='$name'
14799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800 library_names_spec='${libname}.dll.lib'
14804 sys_lib_search_path_spec=
14807 for lt_path in $LIB
14810 # Let DOS variable expansion print the short 8.3 style file name.
14811 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14812 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14815 # Convert to MSYS style.
14816 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14819 # Convert to unix form, then to dos form, then back to unix form
14820 # but this time dos style (no spaces!) so that the unix form looks
14821 # like /cygdrive/c/PROGRA~1:/cygdr...
14822 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14823 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14824 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14827 sys_lib_search_path_spec="$LIB"
14828 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14829 # It is most probably a Windows format PATH.
14830 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14834 # FIXME: find the short name or the path components, as spaces are
14835 # common. (e.g. "Program Files" -> "PROGRA~1")
14839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14840 postinstall_cmds='base_file=`basename \${file}`~
14841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14842 dldir=$destdir/`dirname \$dlpath`~
14843 test -d \$dldir || mkdir -p \$dldir~
14844 $install_prog $dir/$dlname \$dldir/$dlname'
14845 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14846 dlpath=$dir/\$dldll~
14848 shlibpath_overrides_runpath=yes
14849 dynamic_linker='Win32 link.exe'
14853 # Assume MSVC wrapper
14854 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14855 dynamic_linker='Win32 ld.exe'
14858 # FIXME: first we should search . and the directory the executable is in
14862 darwin* | rhapsody*)
14863 dynamic_linker="$host_os dyld"
14864 version_type=darwin
14867 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14868 soname_spec='${libname}${release}${major}$shared_ext'
14869 shlibpath_overrides_runpath=yes
14870 shlibpath_var=DYLD_LIBRARY_PATH
14871 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14873 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14877 version_type=linux # correct to gnu/linux during the next big refactor
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14885 freebsd* | dragonfly*)
14886 # DragonFly does not have aout. When/if they implement a new
14887 # versioning mechanism, adjust this.
14888 if test -x /usr/bin/objformat; then
14889 objformat=`/usr/bin/objformat`
14892 freebsd[23].*) objformat=aout ;;
14893 *) objformat=elf ;;
14896 version_type=freebsd-$objformat
14897 case $version_type in
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14908 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14913 freebsd3.[01]* | freebsdelf3.[01]*)
14914 shlibpath_overrides_runpath=yes
14915 hardcode_into_libs=yes
14917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14919 shlibpath_overrides_runpath=no
14920 hardcode_into_libs=yes
14922 *) # from 4.6 on, and DragonFly
14923 shlibpath_overrides_runpath=yes
14924 hardcode_into_libs=yes
14930 version_type=linux # correct to gnu/linux during the next big refactor
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=no
14937 hardcode_into_libs=yes
14941 version_type=linux # correct to gnu/linux during the next big refactor
14944 dynamic_linker="$host_os runtime_loader"
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14950 hardcode_into_libs=yes
14953 hpux9* | hpux10* | hpux11*)
14954 # Give a soname corresponding to the major version so that dld.sl refuses to
14955 # link against other versions.
14962 hardcode_into_libs=yes
14963 dynamic_linker="$host_os dld.so"
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 if test "X$HPUX_IA64_MODE" = X32; then
14969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14977 hardcode_into_libs=yes
14978 dynamic_linker="$host_os dld.sl"
14979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14988 dynamic_linker="$host_os dld.sl"
14989 shlibpath_var=SHLIB_PATH
14990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14995 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14996 postinstall_cmds='chmod 555 $lib'
14997 # or fails outright, so override atomically:
14998 install_override_mode=555
15002 version_type=linux # correct to gnu/linux during the next big refactor
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=no
15010 hardcode_into_libs=yes
15013 irix5* | irix6* | nonstopux*)
15015 nonstopux*) version_type=nonstopux ;;
15017 if test "$lt_cv_prog_gnu_ld" = yes; then
15018 version_type=linux # correct to gnu/linux during the next big refactor
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15028 irix5* | nonstopux*)
15029 libsuff= shlibsuff=
15032 case $LD in # libtool.m4 will add one of these switches to LD
15033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15034 libsuff= shlibsuff= libmagic=32-bit;;
15035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15036 libsuff=32 shlibsuff=N32 libmagic=N32;;
15037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15039 *) libsuff= shlibsuff= libmagic=never-match;;
15043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15044 shlibpath_overrides_runpath=no
15045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15047 hardcode_into_libs=yes
15050 # No shared lib support for Linux oldld, aout, or coff.
15051 linux*oldld* | linux*aout* | linux*coff*)
15055 # This must be glibc/ELF.
15056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15057 version_type=linux # correct to gnu/linux during the next big refactor
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 shlibpath_overrides_runpath=no
15066 # Some binutils ld are patched to set DT_RUNPATH
15067 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15068 $as_echo_n "(cached) " >&6
15070 lt_cv_shlibpath_overrides_runpath=no
15071 save_LDFLAGS=$LDFLAGS
15072 save_libdir=$libdir
15073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15086 if ac_fn_cxx_try_link "$LINENO"; then :
15087 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15088 lt_cv_shlibpath_overrides_runpath=yes
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 LDFLAGS=$save_LDFLAGS
15094 libdir=$save_libdir
15098 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15100 # This implies no fast_install, which is unacceptable.
15101 # Some rework will be needed to allow for fast_install
15102 # before this can be enabled.
15103 hardcode_into_libs=yes
15105 # Append ld.so.conf contents to the search path
15106 if test -f /etc/ld.so.conf; then
15107 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' ' '`
15108 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15111 # We used to test for /lib/ld.so.1 and disable shared libraries on
15112 # powerpc, because MkLinux only supported shared libraries with the
15113 # GNU dynamic linker. Since this was broken with cross compilers,
15114 # most powerpc-linux boxes support dynamic linking these days and
15115 # people can always --disable-shared, the test was removed, and we
15116 # assume the GNU/Linux dynamic linker is in use.
15117 dynamic_linker='GNU/Linux ld.so'
15124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15127 dynamic_linker='NetBSD (a.out) ld.so'
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 dynamic_linker='NetBSD ld.elf_so'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15135 hardcode_into_libs=yes
15139 version_type=linux # correct to gnu/linux during the next big refactor
15140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=yes
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15154 dynamic_linker='ldqnx.so'
15159 sys_lib_dlsearch_path_spec="/usr/lib"
15161 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15163 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15164 *) need_version=no ;;
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15168 shlibpath_var=LD_LIBRARY_PATH
15169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15171 openbsd2.[89] | openbsd2.[89].*)
15172 shlibpath_overrides_runpath=no
15175 shlibpath_overrides_runpath=yes
15179 shlibpath_overrides_runpath=yes
15184 libname_spec='$name'
15187 library_names_spec='$libname${shared_ext} $libname.a'
15188 dynamic_linker='OS/2 ld.exe'
15189 shlibpath_var=LIBPATH
15192 osf3* | osf4* | osf5*)
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 shlibpath_var=LD_LIBRARY_PATH
15199 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15200 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15208 version_type=linux # correct to gnu/linux during the next big refactor
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15215 hardcode_into_libs=yes
15216 # ldd complains unless libraries are executable
15217 postinstall_cmds='chmod +x $lib'
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15223 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=yes
15226 if test "$with_gnu_ld" = yes; then
15233 version_type=linux # correct to gnu/linux during the next big refactor
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 case $host_vendor in
15239 shlibpath_overrides_runpath=no
15241 runpath_var=LD_RUN_PATH
15249 shlibpath_overrides_runpath=no
15250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15256 if test -d /usr/nec ;then
15257 version_type=linux # correct to gnu/linux during the next big refactor
15258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259 soname_spec='$libname${shared_ext}.$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15265 version_type=freebsd-elf
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 shlibpath_overrides_runpath=yes
15272 hardcode_into_libs=yes
15273 if test "$with_gnu_ld" = yes; then
15274 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15276 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15283 sys_lib_dlsearch_path_spec='/usr/lib'
15287 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15288 version_type=linux # correct to gnu/linux during the next big refactor
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 shlibpath_var=LD_LIBRARY_PATH
15293 shlibpath_overrides_runpath=no
15294 hardcode_into_libs=yes
15298 version_type=linux # correct to gnu/linux during the next big refactor
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 shlibpath_var=LD_LIBRARY_PATH
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15309 $as_echo "$dynamic_linker" >&6; }
15310 test "$dynamic_linker" = no && can_build_shared=no
15312 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15313 if test "$GCC" = yes; then
15314 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15317 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15318 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15320 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15321 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15362 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15363 hardcode_action_CXX=
15364 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15365 test -n "$runpath_var_CXX" ||
15366 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15368 # We can hardcode non-existent directories.
15369 if test "$hardcode_direct_CXX" != no &&
15370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15371 # have to relink, otherwise we might link with an installed library
15372 # when we should be linking with a yet-to-be-installed one
15373 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15374 test "$hardcode_minus_L_CXX" != no; then
15375 # Linking always hardcodes the temporary library directory.
15376 hardcode_action_CXX=relink
15378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15379 hardcode_action_CXX=immediate
15382 # We cannot hardcode anything, or else we can only hardcode existing
15384 hardcode_action_CXX=unsupported
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15387 $as_echo "$hardcode_action_CXX" >&6; }
15389 if test "$hardcode_action_CXX" = relink ||
15390 test "$inherit_rpath_CXX" = yes; then
15391 # Fast installation is not supported
15392 enable_fast_install=no
15393 elif test "$shlibpath_overrides_runpath" = yes ||
15394 test "$enable_shared" = no; then
15395 # Fast installation is not necessary
15396 enable_fast_install=needless
15405 fi # test -n "$compiler"
15408 CFLAGS=$lt_save_CFLAGS
15412 with_gnu_ld=$lt_save_with_gnu_ld
15413 lt_cv_path_LDCXX=$lt_cv_path_LD
15414 lt_cv_path_LD=$lt_save_path_LD
15415 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15416 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15417 fi # test "$_lt_caught_CXX_error" != yes
15420 ac_cpp='$CPP $CPPFLAGS'
15421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15426 # Find a good install program. We prefer a C program (faster),
15427 # so one script is as good as another. But avoid the broken or
15428 # incompatible versions:
15429 # SysV /etc/install, /usr/sbin/install
15430 # SunOS /usr/etc/install
15431 # IRIX /sbin/install
15433 # AmigaOS /C/install, which installs bootblocks on floppy discs
15434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15437 # OS/2's system install, which has a completely different semantic
15438 # ./install, which can be erroneously created by make from ./install.sh.
15439 # Reject install programs that cannot install multiple files.
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15442 if test -z "$INSTALL"; then
15443 if ${ac_cv_path_install+:} false; then :
15444 $as_echo_n "(cached) " >&6
15446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15447 for as_dir in $PATH
15450 test -z "$as_dir" && as_dir=.
15451 # Account for people who put trailing slashes in PATH elements.
15452 case $as_dir/ in #((
15453 ./ | .// | /[cC]/* | \
15454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15458 # OSF1 and SCO ODT 3.0 have their own names for install.
15459 # Don't use installbsd from OSF since it installs stuff as root
15461 for ac_prog in ginstall scoinst install; do
15462 for ac_exec_ext in '' $ac_executable_extensions; do
15463 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15464 if test $ac_prog = install &&
15465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15466 # AIX install. It has an incompatible calling convention.
15468 elif test $ac_prog = install &&
15469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15470 # program-specific install script used by HP pwplus--don't use.
15473 rm -rf conftest.one conftest.two conftest.dir
15474 echo one > conftest.one
15475 echo two > conftest.two
15477 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15478 test -s conftest.one && test -s conftest.two &&
15479 test -s conftest.dir/conftest.one &&
15480 test -s conftest.dir/conftest.two
15482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15495 rm -rf conftest.one conftest.two conftest.dir
15498 if test "${ac_cv_path_install+set}" = set; then
15499 INSTALL=$ac_cv_path_install
15501 # As a last resort, use the slow shell script. Don't cache a
15502 # value for INSTALL within a source directory, because that will
15503 # break other packages using the cache if that directory is
15504 # removed, or if the value is a relative name.
15505 INSTALL=$ac_install_sh
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15509 $as_echo "$INSTALL" >&6; }
15511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15512 # It thinks the first close brace ends the variable substitution.
15513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15522 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15523 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15524 $as_echo_n "(cached) " >&6
15526 cat >conftest.make <<\_ACEOF
15529 @echo '@@@%%%=$(MAKE)=@@@%%%'
15531 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15533 *@@@%%%=?*=@@@%%%*)
15534 eval ac_cv_prog_make_${ac_make}_set=yes;;
15536 eval ac_cv_prog_make_${ac_make}_set=no;;
15538 rm -f conftest.make
15540 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15542 $as_echo "yes" >&6; }
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15546 $as_echo "no" >&6; }
15547 SET_MAKE="MAKE=${MAKE-make}"
15550 if test -n "$ac_tool_prefix"; then
15551 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15552 set dummy ${ac_tool_prefix}windres; ac_word=$2
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15554 $as_echo_n "checking for $ac_word... " >&6; }
15555 if ${ac_cv_prog_WINDRES+:} false; then :
15556 $as_echo_n "(cached) " >&6
15558 if test -n "$WINDRES"; then
15559 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15562 for as_dir in $PATH
15565 test -z "$as_dir" && as_dir=.
15566 for ac_exec_ext in '' $ac_executable_extensions; do
15567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15568 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15578 WINDRES=$ac_cv_prog_WINDRES
15579 if test -n "$WINDRES"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15581 $as_echo "$WINDRES" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15589 if test -z "$ac_cv_prog_WINDRES"; then
15590 ac_ct_WINDRES=$WINDRES
15591 # Extract the first word of "windres", so it can be a program name with args.
15592 set dummy windres; ac_word=$2
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15594 $as_echo_n "checking for $ac_word... " >&6; }
15595 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15596 $as_echo_n "(cached) " >&6
15598 if test -n "$ac_ct_WINDRES"; then
15599 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602 for as_dir in $PATH
15605 test -z "$as_dir" && as_dir=.
15606 for ac_exec_ext in '' $ac_executable_extensions; do
15607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15608 ac_cv_prog_ac_ct_WINDRES="windres"
15609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15619 if test -n "$ac_ct_WINDRES"; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15621 $as_echo "$ac_ct_WINDRES" >&6; }
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15624 $as_echo "no" >&6; }
15627 if test "x$ac_ct_WINDRES" = x; then
15630 case $cross_compiling:$ac_tool_warned in
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15634 ac_tool_warned=yes ;;
15636 WINDRES=$ac_ct_WINDRES
15639 WINDRES="$ac_cv_prog_WINDRES"
15645 # Except on msys, where make can't handle full pathnames (bug 1972)
15648 srcdir=`cd $srcdir && pwd`
15652 INCLUDE="-I$srcdir/include"
15653 if test x$srcdir != x.; then
15654 INCLUDE="-Iinclude $INCLUDE"
15655 elif test -d .hg; then
15657 *** When building from Mercurial you should configure and build in a
15658 separate directory so you don't clobber SDL_config.h, SDL_revision.h
15665 # We build SDL on cygwin without the UNIX emulation layer
15666 save_CFLAGS="$CFLAGS"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
15669 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
15670 CFLAGS="$save_CFLAGS -mno-cygwin"
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15685 if ac_fn_c_try_compile "$LINENO"; then :
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
15692 $as_echo "$have_no_cygwin" >&6; }
15693 CFLAGS="$save_CFLAGS"
15695 if test x$have_no_cygwin = xyes; then
15696 BASE_CFLAGS="-mno-cygwin"
15697 BASE_LDFLAGS="-mno-cygwin"
15699 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15702 # Uncomment the following line if you want to force SDL and applications
15703 # built with it to be compiled for a particular architecture.
15704 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
15705 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
15706 # The default optimization for SDL is -O3 (Bug #31)
15707 if test "x$orig_CFLAGS" = x; then
15708 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
15710 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15711 BUILD_LDFLAGS="$LDFLAGS"
15712 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15713 ## These are common directories to find software packages
15714 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15715 # if test -d $path/include; then
15716 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15718 # if test -d $path/lib; then
15719 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15722 SDL_CFLAGS="$BASE_CFLAGS"
15723 SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
15724 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15725 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15726 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15728 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15732 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15733 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15734 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15735 if test "$cross_compiling" = yes; then
15738 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15740 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
15741 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
15742 if test x$lib != x; then
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15751 if ${ac_cv_c_const+:} false; then :
15752 $as_echo_n "(cached) " >&6
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15761 #ifndef __cplusplus
15762 /* Ultrix mips cc rejects this sort of thing. */
15763 typedef int charset[2];
15764 const charset cs = { 0, 0 };
15765 /* SunOS 4.1.1 cc rejects this. */
15766 char const *const *pcpcc;
15768 /* NEC SVR4.0.2 mips cc rejects this. */
15769 struct point {int x, y;};
15770 static struct point const zero = {0,0};
15771 /* AIX XL C 1.02.0.0 rejects this.
15772 It does not let you subtract one const X* pointer from another in
15773 an arm of an if-expression whose if-part is not a constant
15775 const char *g = "string";
15776 pcpcc = &g + (g ? g-g : 0);
15777 /* HPUX 7.0 cc rejects these. */
15779 ppc = (char**) pcpcc;
15780 pcpcc = (char const *const *) ppc;
15781 { /* SCO 3.2v4 cc rejects this sort of thing. */
15784 char const *s = 0 ? (char *) 0 : (char const *) 0;
15789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15790 int x[] = {25, 17};
15791 const int *foo = &x[0];
15794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15795 typedef const int *iptr;
15799 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15801 struct s { int j; const int *ap[3]; } bx;
15802 struct s *b = &bx; b->j = 5;
15804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15805 const int foo = 10;
15806 if (!foo) return 0;
15808 return !cs[0] && !zero.x;
15815 if ac_fn_c_try_compile "$LINENO"; then :
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15823 $as_echo "$ac_cv_c_const" >&6; }
15824 if test $ac_cv_c_const = no; then
15826 $as_echo "#define const /**/" >>confdefs.h
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15831 $as_echo_n "checking for inline... " >&6; }
15832 if ${ac_cv_c_inline+:} false; then :
15833 $as_echo_n "(cached) " >&6
15836 for ac_kw in inline __inline__ __inline; do
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839 #ifndef __cplusplus
15841 static $ac_kw foo_t static_foo () {return 0; }
15842 $ac_kw foo_t foo () {return 0; }
15846 if ac_fn_c_try_compile "$LINENO"; then :
15847 ac_cv_c_inline=$ac_kw
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 test "$ac_cv_c_inline" != no && break
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15855 $as_echo "$ac_cv_c_inline" >&6; }
15857 case $ac_cv_c_inline in
15860 case $ac_cv_c_inline in
15862 *) ac_val=$ac_cv_c_inline;;
15864 cat >>confdefs.h <<_ACEOF
15865 #ifndef __cplusplus
15866 #define inline $ac_val
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15873 $as_echo_n "checking for working volatile... " >&6; }
15874 if ${ac_cv_c_volatile+:} false; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15885 int * volatile y = (int *) 0;
15891 if ac_fn_c_try_compile "$LINENO"; then :
15892 ac_cv_c_volatile=yes
15894 ac_cv_c_volatile=no
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15899 $as_echo "$ac_cv_c_volatile" >&6; }
15900 if test $ac_cv_c_volatile = no; then
15902 $as_echo "#define volatile /**/" >>confdefs.h
15907 # Check whether --enable-assertions was given.
15908 if test "${enable_assertions+set}" = set; then :
15909 enableval=$enable_assertions;
15911 enable_assertions=auto
15914 case "$enable_assertions" in
15915 auto) # Use optimization settings to determine assertion level
15919 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15924 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15929 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15934 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15938 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15942 # Check whether --enable-dependency-tracking was given.
15943 if test "${enable_dependency_tracking+set}" = set; then :
15944 enableval=$enable_dependency_tracking;
15946 enable_dependency_tracking=yes
15949 if test x$enable_dependency_tracking = xyes; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
15952 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15956 #if !defined(__GNUC__) || __GNUC__ < 3
15957 #error Dependency tracking requires GCC 3.0 or newer
15969 if ac_fn_c_try_compile "$LINENO"; then :
15971 have_gcc_mmd_mt=yes
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
15976 $as_echo "$have_gcc_mmd_mt" >&6; }
15978 if test x$have_gcc_mmd_mt = xyes; then
15979 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
15984 $as_echo_n "checking for linker option --no-undefined... " >&6; }
15985 have_no_undefined=no
15991 save_LDFLAGS="$LDFLAGS"
15992 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
16006 if ac_fn_c_try_link "$LINENO"; then :
16008 have_no_undefined=yes
16009 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LDFLAGS="$save_LDFLAGS"
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16018 $as_echo "$have_no_undefined" >&6; }
16020 # Check whether --enable-libc was given.
16021 if test "${enable_libc+set}" = set; then :
16022 enableval=$enable_libc;
16027 if test x$enable_libc = xyes; then
16029 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16033 $as_echo_n "checking for ANSI C header files... " >&6; }
16034 if ${ac_cv_header_stdc+:} false; then :
16035 $as_echo_n "(cached) " >&6
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16039 #include <stdlib.h>
16040 #include <stdarg.h>
16041 #include <string.h>
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 ac_cv_header_stdc=yes
16055 ac_cv_header_stdc=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059 if test $ac_cv_header_stdc = yes; then
16060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #include <string.h>
16066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16067 $EGREP "memchr" >/dev/null 2>&1; then :
16070 ac_cv_header_stdc=no
16076 if test $ac_cv_header_stdc = yes; then
16077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 #include <stdlib.h>
16083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16084 $EGREP "free" >/dev/null 2>&1; then :
16087 ac_cv_header_stdc=no
16093 if test $ac_cv_header_stdc = yes; then
16094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16095 if test "$cross_compiling" = yes; then :
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16101 #include <stdlib.h>
16102 #if ((' ' & 0x0FF) == 0x020)
16103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16106 # define ISLOWER(c) \
16107 (('a' <= (c) && (c) <= 'i') \
16108 || ('j' <= (c) && (c) <= 'r') \
16109 || ('s' <= (c) && (c) <= 'z'))
16110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16118 for (i = 0; i < 256; i++)
16119 if (XOR (islower (i), ISLOWER (i))
16120 || toupper (i) != TOUPPER (i))
16125 if ac_fn_c_try_run "$LINENO"; then :
16128 ac_cv_header_stdc=no
16130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16131 conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16137 $as_echo "$ac_cv_header_stdc" >&6; }
16138 if test $ac_cv_header_stdc = yes; then
16140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16144 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
16146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16149 cat >>confdefs.h <<_ACEOF
16150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16158 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16159 if test "x$ac_cv_type_size_t" = xyes; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define size_t unsigned int
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16171 $as_echo_n "checking for M_PI in math.h... " >&6; }
16172 if ${ac_cv_define_M_PI+:} false; then :
16173 $as_echo_n "(cached) " >&6
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16185 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16186 ac_cv_define_M_PI=yes
16188 ac_cv_define_M_PI=no
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16195 $as_echo "$ac_cv_define_M_PI" >&6; }
16196 if test "$ac_cv_define_M_PI" = "yes" ; then
16198 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16204 *-*-cygwin* | *-*-mingw32*)
16207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16208 # for constant arguments. Useless!
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16210 $as_echo_n "checking for working alloca.h... " >&6; }
16211 if ${ac_cv_working_alloca_h+:} false; then :
16212 $as_echo_n "(cached) " >&6
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <alloca.h>
16220 char *p = (char *) alloca (2 * sizeof (int));
16226 if ac_fn_c_try_link "$LINENO"; then :
16227 ac_cv_working_alloca_h=yes
16229 ac_cv_working_alloca_h=no
16231 rm -f core conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16235 $as_echo "$ac_cv_working_alloca_h" >&6; }
16236 if test $ac_cv_working_alloca_h = yes; then
16238 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16243 $as_echo_n "checking for alloca... " >&6; }
16244 if ${ac_cv_func_alloca_works+:} false; then :
16245 $as_echo_n "(cached) " >&6
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16250 # define alloca __builtin_alloca
16253 # include <malloc.h>
16254 # define alloca _alloca
16256 # ifdef HAVE_ALLOCA_H
16257 # include <alloca.h>
16262 # ifndef alloca /* predefined by HP cc +Olibcalls */
16263 void *alloca (size_t);
16273 char *p = (char *) alloca (1);
16279 if ac_fn_c_try_link "$LINENO"; then :
16280 ac_cv_func_alloca_works=yes
16282 ac_cv_func_alloca_works=no
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16288 $as_echo "$ac_cv_func_alloca_works" >&6; }
16290 if test $ac_cv_func_alloca_works = yes; then
16292 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16295 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16296 # that cause trouble. Some versions do not even contain alloca or
16297 # contain a buggy version. If you still want to use their alloca,
16298 # use ar to extract alloca.o from them instead of compiling alloca.c.
16300 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16302 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16306 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16307 if ${ac_cv_os_cray+:} false; then :
16308 $as_echo_n "(cached) " >&6
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 #if defined CRAY && ! defined CRAY2
16319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16320 $EGREP "webecray" >/dev/null 2>&1; then :
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16329 $as_echo "$ac_cv_os_cray" >&6; }
16330 if test $ac_cv_os_cray = yes; then
16331 for ac_func in _getb67 GETB67 getb67; do
16332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16336 cat >>confdefs.h <<_ACEOF
16337 #define CRAY_STACKSEG_END $ac_func
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16347 $as_echo_n "checking stack direction for C alloca... " >&6; }
16348 if ${ac_cv_c_stack_direction+:} false; then :
16349 $as_echo_n "(cached) " >&6
16351 if test "$cross_compiling" = yes; then :
16352 ac_cv_c_stack_direction=0
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 $ac_includes_default
16358 find_stack_direction (int *addr, int depth)
16360 int dir, dummy = 0;
16363 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16364 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16365 return dir + dummy;
16369 main (int argc, char **argv)
16371 return find_stack_direction (0, argc + !argv + 20) < 0;
16374 if ac_fn_c_try_run "$LINENO"; then :
16375 ac_cv_c_stack_direction=1
16377 ac_cv_c_stack_direction=-1
16379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16380 conftest.$ac_objext conftest.beam conftest.$ac_ext
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16385 $as_echo "$ac_cv_c_stack_direction" >&6; }
16386 cat >>confdefs.h <<_ACEOF
16387 #define STACK_DIRECTION $ac_cv_c_stack_direction
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16397 $as_echo_n "checking for working memcmp... " >&6; }
16398 if ${ac_cv_func_memcmp_working+:} false; then :
16399 $as_echo_n "(cached) " >&6
16401 if test "$cross_compiling" = yes; then :
16402 ac_cv_func_memcmp_working=no
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406 $ac_includes_default
16411 /* Some versions of memcmp are not 8-bit clean. */
16412 char c0 = '\100', c1 = '\200', c2 = '\201';
16413 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16416 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16417 or more and with at least one buffer not starting on a 4-byte boundary.
16418 William Lewis provided this test program. */
16423 for (i = 0; i < 4; i++)
16427 strcpy (a, "--------01111111");
16428 strcpy (b, "--------10000000");
16429 if (memcmp (a, b, 16) >= 0)
16439 if ac_fn_c_try_run "$LINENO"; then :
16440 ac_cv_func_memcmp_working=yes
16442 ac_cv_func_memcmp_working=no
16444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16445 conftest.$ac_objext conftest.beam conftest.$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16450 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16451 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16452 *" memcmp.$ac_objext "* ) ;;
16453 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16458 if test x$ac_cv_func_memcmp_working = xyes; then
16460 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16464 $as_echo_n "checking for working strtod... " >&6; }
16465 if ${ac_cv_func_strtod+:} false; then :
16466 $as_echo_n "(cached) " >&6
16468 if test "$cross_compiling" = yes; then :
16469 ac_cv_func_strtod=no
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 $ac_includes_default
16482 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16483 char *string = " +69";
16486 value = strtod (string, &term);
16487 if (value != 69 || term != (string + 4))
16492 /* Under Solaris 2.4, strtod returns the wrong value for the
16493 terminating character under some conditions. */
16494 char *string = "NaN";
16496 strtod (string, &term);
16497 if (term != string && *(term - 1) == 0)
16504 if ac_fn_c_try_run "$LINENO"; then :
16505 ac_cv_func_strtod=yes
16507 ac_cv_func_strtod=no
16509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16510 conftest.$ac_objext conftest.beam conftest.$ac_ext
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16515 $as_echo "$ac_cv_func_strtod" >&6; }
16516 if test $ac_cv_func_strtod = no; then
16517 case " $LIBOBJS " in
16518 *" strtod.$ac_objext "* ) ;;
16519 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16523 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16524 if test "x$ac_cv_func_pow" = xyes; then :
16528 if test $ac_cv_func_pow = no; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16530 $as_echo_n "checking for pow in -lm... " >&6; }
16531 if ${ac_cv_lib_m_pow+:} false; then :
16532 $as_echo_n "(cached) " >&6
16534 ac_check_lib_save_LIBS=$LIBS
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16554 if ac_fn_c_try_link "$LINENO"; then :
16555 ac_cv_lib_m_pow=yes
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16564 $as_echo "$ac_cv_lib_m_pow" >&6; }
16565 if test "x$ac_cv_lib_m_pow" = xyes; then :
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16569 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16576 if test x$ac_cv_func_strtod = xyes; then
16578 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16581 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
16582 if test "x$ac_cv_func_mprotect" = xyes; then :
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h. */
16586 #include <sys/types.h>
16587 #include <sys/mman.h>
16598 if ac_fn_c_try_compile "$LINENO"; then :
16601 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _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 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
16610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16613 cat >>confdefs.h <<_ACEOF
16614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16622 $as_echo_n "checking for pow in -lm... " >&6; }
16623 if ${ac_cv_lib_m_pow+:} false; then :
16624 $as_echo_n "(cached) " >&6
16626 ac_check_lib_save_LIBS=$LIBS
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16631 /* Override any GCC internal prototype to avoid an error.
16632 Use char because int might match the return type of a GCC
16633 builtin and then its argument prototype would still apply. */
16646 if ac_fn_c_try_link "$LINENO"; then :
16647 ac_cv_lib_m_pow=yes
16651 rm -f core conftest.err conftest.$ac_objext \
16652 conftest$ac_exeext conftest.$ac_ext
16653 LIBS=$ac_check_lib_save_LIBS
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16656 $as_echo "$ac_cv_lib_m_pow" >&6; }
16657 if test "x$ac_cv_lib_m_pow" = xyes; then :
16658 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
16661 for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
16663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16665 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16666 cat >>confdefs.h <<_ACEOF
16667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
16675 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
16676 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
16677 $as_echo_n "(cached) " >&6
16679 ac_check_lib_save_LIBS=$LIBS
16680 LIBS="-liconv $LIBS"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16684 /* Override any GCC internal prototype to avoid an error.
16685 Use char because int might match the return type of a GCC
16686 builtin and then its argument prototype would still apply. */
16690 char iconv_open ();
16694 return iconv_open ();
16699 if ac_fn_c_try_link "$LINENO"; then :
16700 ac_cv_lib_iconv_iconv_open=yes
16702 ac_cv_lib_iconv_iconv_open=no
16704 rm -f core conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
16709 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
16710 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
16711 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
16714 for ac_func in iconv
16716 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
16717 if test "x$ac_cv_func_iconv" = xyes; then :
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_ICONV 1
16726 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16728 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16729 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16736 # Check whether --enable-gcc-atomics was given.
16737 if test "${enable_gcc_atomics+set}" = set; then :
16738 enableval=$enable_gcc_atomics;
16740 enable_gcc_atomics=yes
16743 if test x$enable_gcc_atomics = xyes; then
16744 have_gcc_atomics=no
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
16746 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16757 __sync_lock_test_and_set(&a, 4);
16758 __sync_lock_test_and_set(&x, y);
16759 __sync_fetch_and_add(&a, 1);
16760 __sync_bool_compare_and_swap(&a, 5, 10);
16761 __sync_bool_compare_and_swap(&x, y, z);
16767 if ac_fn_c_try_link "$LINENO"; then :
16769 have_gcc_atomics=yes
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
16775 $as_echo "$have_gcc_atomics" >&6; }
16777 if test x$have_gcc_atomics = xyes; then
16779 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16782 # See if we have the minimum operation needed for GCC atomics
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16792 __sync_lock_test_and_set(&a, 1);
16793 __sync_lock_release(&a);
16799 if ac_fn_c_try_link "$LINENO"; then :
16801 have_gcc_sync_lock_test_and_set=yes
16804 rm -f core conftest.err conftest.$ac_objext \
16805 conftest$ac_exeext conftest.$ac_ext
16806 if test x$have_gcc_sync_lock_test_and_set = xyes; then
16808 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16814 # Standard C sources
16815 SOURCES="$SOURCES $srcdir/src/*.c"
16816 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
16817 SOURCES="$SOURCES $srcdir/src/audio/*.c"
16818 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
16819 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
16820 SOURCES="$SOURCES $srcdir/src/events/*.c"
16821 SOURCES="$SOURCES $srcdir/src/file/*.c"
16822 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
16823 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
16824 SOURCES="$SOURCES $srcdir/src/libm/*.c"
16825 SOURCES="$SOURCES $srcdir/src/power/*.c"
16826 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
16827 SOURCES="$SOURCES $srcdir/src/render/*.c"
16828 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
16829 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
16830 SOURCES="$SOURCES $srcdir/src/thread/*.c"
16831 SOURCES="$SOURCES $srcdir/src/timer/*.c"
16832 SOURCES="$SOURCES $srcdir/src/video/*.c"
16835 # Check whether --enable-atomic was given.
16836 if test "${enable_atomic+set}" = set; then :
16837 enableval=$enable_atomic;
16842 if test x$enable_atomic != xyes; then
16844 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16847 SUMMARY_modules="${SUMMARY_modules} atomic"
16849 # Check whether --enable-audio was given.
16850 if test "${enable_audio+set}" = set; then :
16851 enableval=$enable_audio;
16856 if test x$enable_audio != xyes; then
16858 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16861 SUMMARY_modules="${SUMMARY_modules} audio"
16863 # Check whether --enable-video was given.
16864 if test "${enable_video+set}" = set; then :
16865 enableval=$enable_video;
16870 if test x$enable_video != xyes; then
16872 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16875 SUMMARY_modules="${SUMMARY_modules} video"
16877 # Check whether --enable-render was given.
16878 if test "${enable_render+set}" = set; then :
16879 enableval=$enable_render;
16884 if test x$enable_render != xyes; then
16886 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16889 SUMMARY_modules="${SUMMARY_modules} render"
16891 # Check whether --enable-events was given.
16892 if test "${enable_events+set}" = set; then :
16893 enableval=$enable_events;
16898 if test x$enable_events != xyes; then
16900 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16903 SUMMARY_modules="${SUMMARY_modules} events"
16905 # Check whether --enable-joystick was given.
16906 if test "${enable_joystick+set}" = set; then :
16907 enableval=$enable_joystick;
16909 enable_joystick=yes
16912 if test x$enable_joystick != xyes; then
16914 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16917 SUMMARY_modules="${SUMMARY_modules} joystick"
16919 # Check whether --enable-haptic was given.
16920 if test "${enable_haptic+set}" = set; then :
16921 enableval=$enable_haptic;
16926 if test x$enable_haptic != xyes; then
16928 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16931 SUMMARY_modules="${SUMMARY_modules} haptic"
16933 # Check whether --enable-power was given.
16934 if test "${enable_power+set}" = set; then :
16935 enableval=$enable_power;
16940 if test x$enable_power != xyes; then
16942 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16945 SUMMARY_modules="${SUMMARY_modules} power"
16947 # Check whether --enable-filesystem was given.
16948 if test "${enable_filesystem+set}" = set; then :
16949 enableval=$enable_filesystem;
16951 enable_filesystem=yes
16954 if test x$enable_filesystem != xyes; then
16956 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
16959 SUMMARY_modules="${SUMMARY_modules} filesystem"
16961 # Check whether --enable-threads was given.
16962 if test "${enable_threads+set}" = set; then :
16963 enableval=$enable_threads;
16968 if test x$enable_threads != xyes; then
16970 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
16973 SUMMARY_modules="${SUMMARY_modules} threads"
16975 # Check whether --enable-timers was given.
16976 if test "${enable_timers+set}" = set; then :
16977 enableval=$enable_timers;
16982 if test x$enable_timers != xyes; then
16984 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
16987 SUMMARY_modules="${SUMMARY_modules} timers"
16989 # Check whether --enable-file was given.
16990 if test "${enable_file+set}" = set; then :
16991 enableval=$enable_file;
16996 if test x$enable_file != xyes; then
16998 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17001 SUMMARY_modules="${SUMMARY_modules} file"
17003 # Check whether --enable-loadso was given.
17004 if test "${enable_loadso+set}" = set; then :
17005 enableval=$enable_loadso;
17010 if test x$enable_loadso != xyes; then
17012 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17015 SUMMARY_modules="${SUMMARY_modules} loadso"
17017 # Check whether --enable-cpuinfo was given.
17018 if test "${enable_cpuinfo+set}" = set; then :
17019 enableval=$enable_cpuinfo;
17024 if test x$enable_cpuinfo != xyes; then
17026 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17029 SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17031 # Check whether --enable-assembly was given.
17032 if test "${enable_assembly+set}" = set; then :
17033 enableval=$enable_assembly;
17035 enable_assembly=yes
17038 if test x$enable_assembly = xyes; then
17039 SUMMARY_modules="${SUMMARY_modules} assembly"
17042 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17045 # Make sure that we don't generate floating point code that would
17046 # cause illegal instruction exceptions on older processors
17049 # Don't need to worry about Apple hardware, it's all SSE capable
17050 default_ssemath=yes
17053 # x86 64-bit architectures all have SSE instructions
17054 default_ssemath=yes
17060 # Check whether --enable-ssemath was given.
17061 if test "${enable_ssemath+set}" = set; then :
17062 enableval=$enable_ssemath;
17064 enable_ssemath=$default_ssemath
17067 if test x$enable_ssemath = xno; then
17068 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
17069 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17073 # Check whether --enable-mmx was given.
17074 if test "${enable_mmx+set}" = set; then :
17075 enableval=$enable_mmx;
17080 if test x$enable_mmx = xyes; then
17081 save_CFLAGS="$CFLAGS"
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17084 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17086 CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17092 #include <_mingw.h>
17093 #ifdef __MINGW64_VERSION_MAJOR
17094 #include <intrin.h>
17096 #include <mmintrin.h>
17099 #include <mmintrin.h>
17102 #error Assembler CPP flag not enabled
17114 if ac_fn_c_try_compile "$LINENO"; then :
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17121 $as_echo "$have_gcc_mmx" >&6; }
17122 CFLAGS="$save_CFLAGS"
17124 if test x$have_gcc_mmx = xyes; then
17125 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17126 SUMMARY_math="${SUMMARY_math} mmx"
17130 # Check whether --enable-3dnow was given.
17131 if test "${enable_3dnow+set}" = set; then :
17132 enableval=$enable_3dnow;
17137 if test x$enable_3dnow = xyes; then
17138 save_CFLAGS="$CFLAGS"
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17141 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17142 amd3dnow_CFLAGS="-m3dnow"
17143 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17148 #include <mm3dnow.h>
17150 #error Assembler CPP flag not enabled
17164 if ac_fn_c_try_link "$LINENO"; then :
17169 rm -f core conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17172 $as_echo "$have_gcc_3dnow" >&6; }
17173 CFLAGS="$save_CFLAGS"
17175 if test x$have_gcc_3dnow = xyes; then
17176 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17177 SUMMARY_math="${SUMMARY_math} 3dnow"
17181 # Check whether --enable-sse was given.
17182 if test "${enable_sse+set}" = set; then :
17183 enableval=$enable_sse;
17188 if test x$enable_sse = xyes; then
17189 save_CFLAGS="$CFLAGS"
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17192 $as_echo_n "checking for GCC -msse option... " >&6; }
17194 CFLAGS="$save_CFLAGS $sse_CFLAGS"
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17200 #include <_mingw.h>
17201 #ifdef __MINGW64_VERSION_MAJOR
17202 #include <intrin.h>
17204 #include <xmmintrin.h>
17207 #include <xmmintrin.h>
17210 #error Assembler CPP flag not enabled
17222 if ac_fn_c_try_compile "$LINENO"; then :
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17229 $as_echo "$have_gcc_sse" >&6; }
17230 CFLAGS="$save_CFLAGS"
17232 if test x$have_gcc_sse = xyes; then
17233 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17234 SUMMARY_math="${SUMMARY_math} sse"
17238 # Check whether --enable-sse2 was given.
17239 if test "${enable_sse2+set}" = set; then :
17240 enableval=$enable_sse2;
17242 enable_sse2=$default_ssemath
17245 if test x$enable_sse2 = xyes; then
17246 save_CFLAGS="$CFLAGS"
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17249 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17250 sse2_CFLAGS="-msse2"
17251 CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17257 #include <_mingw.h>
17258 #ifdef __MINGW64_VERSION_MAJOR
17259 #include <intrin.h>
17261 #include <emmintrin.h>
17264 #include <emmintrin.h>
17267 #error Assembler CPP flag not enabled
17279 if ac_fn_c_try_compile "$LINENO"; then :
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17286 $as_echo "$have_gcc_sse2" >&6; }
17287 CFLAGS="$save_CFLAGS"
17289 if test x$have_gcc_sse2 = xyes; then
17290 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17291 SUMMARY_math="${SUMMARY_math} sse2"
17295 # Check whether --enable-altivec was given.
17296 if test "${enable_altivec+set}" = set; then :
17297 enableval=$enable_altivec;
17302 if test x$enable_altivec = xyes; then
17303 save_CFLAGS="$CFLAGS"
17304 have_gcc_altivec=no
17305 have_altivec_h_hdr=no
17306 altivec_CFLAGS="-maltivec"
17307 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17310 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17314 #include <altivec.h>
17315 vector unsigned int vzero() {
17316 return vec_splat_u32(0);
17328 if ac_fn_c_try_compile "$LINENO"; then :
17330 have_gcc_altivec=yes
17331 have_altivec_h_hdr=yes
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17336 $as_echo "$have_gcc_altivec" >&6; }
17338 if test x$have_gcc_altivec = xno; then
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17340 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17344 vector unsigned int vzero() {
17345 return vec_splat_u32(0);
17357 if ac_fn_c_try_compile "$LINENO"; then :
17359 have_gcc_altivec=yes
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17364 $as_echo "$have_gcc_altivec" >&6; }
17367 if test x$have_gcc_altivec = xno; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17369 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17370 altivec_CFLAGS="-faltivec"
17371 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17375 #include <altivec.h>
17376 vector unsigned int vzero() {
17377 return vec_splat_u32(0);
17389 if ac_fn_c_try_compile "$LINENO"; then :
17391 have_gcc_altivec=yes
17392 have_altivec_h_hdr=yes
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17397 $as_echo "$have_gcc_altivec" >&6; }
17400 if test x$have_gcc_altivec = xno; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17402 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17406 vector unsigned int vzero() {
17407 return vec_splat_u32(0);
17419 if ac_fn_c_try_compile "$LINENO"; then :
17421 have_gcc_altivec=yes
17424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17426 $as_echo "$have_gcc_altivec" >&6; }
17428 CFLAGS="$save_CFLAGS"
17430 if test x$have_gcc_altivec = xyes; then
17432 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17434 if test x$have_altivec_h_hdr = xyes; then
17436 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17439 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17440 SUMMARY_math="${SUMMARY_math} altivec"
17447 # Check whether --enable-oss was given.
17448 if test "${enable_oss+set}" = set; then :
17449 enableval=$enable_oss;
17455 # OpenBSD "has" OSS, but it's not really for app use. They want you to
17456 # use sndio instead. So on there, we default to disabled. You can force
17457 # it on if you really want, though.
17458 if test x$enable_oss = xmaybe; then
17466 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
17468 $as_echo_n "checking for OSS audio support... " >&6; }
17470 if test x$have_oss != xyes; then
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17474 #include <sys/soundcard.h>
17480 int arg = SNDCTL_DSP_SETFRAGMENT;
17486 if ac_fn_c_try_compile "$LINENO"; then :
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17493 if test x$have_oss != xyes; then
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17497 #include <soundcard.h>
17503 int arg = SNDCTL_DSP_SETFRAGMENT;
17509 if ac_fn_c_try_compile "$LINENO"; then :
17513 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
17520 $as_echo "$have_oss" >&6; }
17521 if test x$have_oss = xyes; then
17522 SUMMARY_audio="${SUMMARY_audio} oss"
17524 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17526 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17529 # We may need to link with ossaudio emulation library
17531 *-*-openbsd*|*-*-netbsd*)
17532 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17540 # Check whether --enable-alsa was given.
17541 if test "${enable_alsa+set}" = set; then :
17542 enableval=$enable_alsa;
17547 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
17548 alsa_save_CFLAGS="$CFLAGS"
17549 alsa_save_LDFLAGS="$LDFLAGS"
17550 alsa_save_LIBS="$LIBS"
17554 # Check whether --with-alsa-prefix was given.
17555 if test "${with_alsa_prefix+set}" = set; then :
17556 withval=$with_alsa_prefix; alsa_prefix="$withval"
17563 # Check whether --with-alsa-inc-prefix was given.
17564 if test "${with_alsa_inc_prefix+set}" = set; then :
17565 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
17571 # Check whether --enable-alsatest was given.
17572 if test "${enable_alsatest+set}" = set; then :
17573 enableval=$enable_alsatest; enable_alsatest="$enableval"
17575 enable_alsatest=yes
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
17580 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
17581 if test "$alsa_inc_prefix" != "" ; then
17582 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17583 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17586 $as_echo "$ALSA_CFLAGS" >&6; }
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
17589 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
17590 if test "$alsa_prefix" != "" ; then
17591 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17592 LDFLAGS="$LDFLAGS $ALSA_LIBS"
17595 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17596 LIBS=`echo $LIBS | sed 's/-lm//'`
17597 LIBS=`echo $LIBS | sed 's/-ldl//'`
17598 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17599 LIBS=`echo $LIBS | sed 's/ //'`
17600 LIBS="$ALSA_LIBS $LIBS"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
17602 $as_echo "$ALSA_LIBS" >&6; }
17604 min_alsa_version=0.9.0
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
17606 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
17608 alsa_min_major_version=`echo $min_alsa_version | \
17609 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17610 alsa_min_minor_version=`echo $min_alsa_version | \
17611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17612 alsa_min_micro_version=`echo $min_alsa_version | \
17613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17617 ac_cpp='$CPP $CPPFLAGS'
17618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17625 #include <alsa/asoundlib.h>
17631 /* ensure backward compatibility */
17632 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17633 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17635 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17636 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17638 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17639 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17642 # if(SND_LIB_MAJOR > $alsa_min_major_version)
17645 # if(SND_LIB_MAJOR < $alsa_min_major_version)
17646 # error not present
17649 # if(SND_LIB_MINOR > $alsa_min_minor_version)
17652 # if(SND_LIB_MINOR < $alsa_min_minor_version)
17653 # error not present
17656 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17657 # error not present
17667 if ac_fn_c_try_compile "$LINENO"; then :
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
17669 $as_echo "found." >&6; }
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17672 $as_echo "not present." >&6; }
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679 ac_cpp='$CPP $CPPFLAGS'
17680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17685 if test "x$enable_alsatest" = "xyes"; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
17687 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
17688 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
17689 $as_echo_n "(cached) " >&6
17691 ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lasound $LIBS"
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17702 char snd_ctl_open ();
17706 return snd_ctl_open ();
17711 if ac_fn_c_try_link "$LINENO"; then :
17712 ac_cv_lib_asound_snd_ctl_open=yes
17714 ac_cv_lib_asound_snd_ctl_open=no
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17721 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
17722 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
17723 cat >>confdefs.h <<_ACEOF
17724 #define HAVE_LIBASOUND 1
17727 LIBS="-lasound $LIBS"
17737 if test "x$alsa_found" = "xyes" ; then
17739 LIBS=`echo $LIBS | sed 's/-lasound//g'`
17740 LIBS=`echo $LIBS | sed 's/ //'`
17741 LIBS="-lasound $LIBS"
17743 if test "x$alsa_found" = "xno" ; then
17745 CFLAGS="$alsa_save_CFLAGS"
17746 LDFLAGS="$alsa_save_LDFLAGS"
17747 LIBS="$alsa_save_LIBS"
17755 # Restore all flags from before the ALSA detection runs
17756 CFLAGS="$alsa_save_CFLAGS"
17757 LDFLAGS="$alsa_save_LDFLAGS"
17758 LIBS="$alsa_save_LIBS"
17759 if test x$have_alsa = xyes; then
17760 # Check whether --enable-alsa-shared was given.
17761 if test "${enable_alsa_shared+set}" = set; then :
17762 enableval=$enable_alsa_shared;
17764 enable_alsa_shared=yes
17767 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17770 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17772 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
17773 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
17774 if test x$have_loadso != xyes && \
17775 test x$enable_alsa_shared = xyes; then
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
17777 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
17779 if test x$have_loadso = xyes && \
17780 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
17781 echo "-- dynamic libasound -> $alsa_lib"
17783 cat >>confdefs.h <<_ACEOF
17784 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17787 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17789 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17790 SUMMARY_audio="${SUMMARY_audio} alsa"
17799 # Check whether --enable-esd was given.
17800 if test "${enable_esd+set}" = set; then :
17801 enableval=$enable_esd;
17806 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
17808 # Check whether --with-esd-prefix was given.
17809 if test "${with_esd_prefix+set}" = set; then :
17810 withval=$with_esd_prefix; esd_prefix="$withval"
17816 # Check whether --with-esd-exec-prefix was given.
17817 if test "${with_esd_exec_prefix+set}" = set; then :
17818 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
17823 # Check whether --enable-esdtest was given.
17824 if test "${enable_esdtest+set}" = set; then :
17825 enableval=$enable_esdtest;
17831 if test x$esd_exec_prefix != x ; then
17832 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
17833 if test x${ESD_CONFIG+set} != xset ; then
17834 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
17837 if test x$esd_prefix != x ; then
17838 esd_args="$esd_args --prefix=$esd_prefix"
17839 if test x${ESD_CONFIG+set} != xset ; then
17840 ESD_CONFIG=$esd_prefix/bin/esd-config
17844 # Extract the first word of "esd-config", so it can be a program name with args.
17845 set dummy esd-config; ac_word=$2
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17847 $as_echo_n "checking for $ac_word... " >&6; }
17848 if ${ac_cv_path_ESD_CONFIG+:} false; then :
17849 $as_echo_n "(cached) " >&6
17851 case $ESD_CONFIG in
17853 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
17856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in $PATH
17860 test -z "$as_dir" && as_dir=.
17861 for ac_exec_ext in '' $ac_executable_extensions; do
17862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17863 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
17875 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
17876 if test -n "$ESD_CONFIG"; then
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
17878 $as_echo "$ESD_CONFIG" >&6; }
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17881 $as_echo "no" >&6; }
17885 min_esd_version=0.2.8
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
17887 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
17889 if test "$ESD_CONFIG" = "no" ; then
17892 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
17893 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
17895 esd_major_version=`$ESD_CONFIG $esd_args --version | \
17896 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17897 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
17898 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17899 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
17900 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17901 if test "x$enable_esdtest" = "xyes" ; then
17902 ac_save_CFLAGS="$CFLAGS"
17903 ac_save_LIBS="$LIBS"
17904 CFLAGS="$CFLAGS $ESD_CFLAGS"
17905 LIBS="$LIBS $ESD_LIBS"
17907 if test "$cross_compiling" = yes; then :
17908 echo $ac_n "cross compiling; assumed OK... $ac_c"
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17914 #include <stdlib.h>
17915 #include <string.h>
17919 my_strdup (char *str)
17925 new_str = malloc ((strlen (str) + 1) * sizeof(char));
17926 strcpy (new_str, str);
17936 int major, minor, micro;
17939 system ("touch conf.esdtest");
17941 /* HP/UX 9 (%@#!) writes to sscanf strings */
17942 tmp_version = my_strdup("$min_esd_version");
17943 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17944 printf("%s, bad version string\n", "$min_esd_version");
17948 if (($esd_major_version > major) ||
17949 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
17950 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
17956 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
17957 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
17958 printf("*** best to upgrade to the required version.\n");
17959 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
17960 printf("*** to point to the correct copy of esd-config, and remove the file\n");
17961 printf("*** config.cache before re-running configure\n");
17968 if ac_fn_c_try_run "$LINENO"; then :
17973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17974 conftest.$ac_objext conftest.beam conftest.$ac_ext
17977 CFLAGS="$ac_save_CFLAGS"
17978 LIBS="$ac_save_LIBS"
17981 if test "x$no_esd" = x ; then
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17983 $as_echo "yes" >&6; }
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987 $as_echo "no" >&6; }
17988 if test "$ESD_CONFIG" = "no" ; then
17989 echo "*** The esd-config script installed by ESD could not be found"
17990 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
17991 echo "*** your path, or set the ESD_CONFIG environment variable to the"
17992 echo "*** full path to esd-config."
17994 if test -f conf.esdtest ; then
17997 echo "*** Could not run ESD test program, checking why..."
17998 CFLAGS="$CFLAGS $ESD_CFLAGS"
17999 LIBS="$LIBS $ESD_LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18014 if ac_fn_c_try_link "$LINENO"; then :
18015 echo "*** The test program compiled, but did not run. This usually means"
18016 echo "*** that the run-time linker is not finding ESD or finding the wrong"
18017 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18018 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18019 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18020 echo "*** is required on your system"
18022 echo "*** If you have an old version installed, it is best to remove it, although"
18023 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18025 echo "*** The test program failed to compile or link. See the file config.log for the"
18026 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18027 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18028 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18030 rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18032 CFLAGS="$ac_save_CFLAGS"
18033 LIBS="$ac_save_LIBS"
18044 if test x$have_esd = xyes; then
18045 # Check whether --enable-esd-shared was given.
18046 if test "${enable_esd_shared+set}" = set; then :
18047 enableval=$enable_esd_shared;
18049 enable_esd_shared=yes
18052 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18055 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18057 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18058 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18059 if test x$have_loadso != xyes && \
18060 test x$enable_esd_shared = xyes; then
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18062 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18064 if test x$have_loadso = xyes && \
18065 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18066 echo "-- dynamic libesd -> $esd_lib"
18068 cat >>confdefs.h <<_ACEOF
18069 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18072 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18074 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18075 SUMMARY_audio="${SUMMARY_audio} esd"
18084 # Check whether --enable-pulseaudio was given.
18085 if test "${enable_pulseaudio+set}" = set; then :
18086 enableval=$enable_pulseaudio;
18088 enable_pulseaudio=yes
18091 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18092 audio_pulseaudio=no
18094 PULSEAUDIO_REQUIRED_VERSION=0.9
18096 # Extract the first word of "pkg-config", so it can be a program name with args.
18097 set dummy pkg-config; ac_word=$2
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18099 $as_echo_n "checking for $ac_word... " >&6; }
18100 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18101 $as_echo_n "(cached) " >&6
18103 case $PKG_CONFIG in
18105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18109 for as_dir in $PATH
18112 test -z "$as_dir" && as_dir=.
18113 for ac_exec_ext in '' $ac_executable_extensions; do
18114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18128 if test -n "$PKG_CONFIG"; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18130 $as_echo "$PKG_CONFIG" >&6; }
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18133 $as_echo "no" >&6; }
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
18138 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
18139 if test x$PKG_CONFIG != xno; then
18140 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
18141 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
18142 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
18143 audio_pulseaudio=yes
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18147 $as_echo "$audio_pulseaudio" >&6; }
18149 if test x$audio_pulseaudio = xyes; then
18150 # Check whether --enable-pulseaudio-shared was given.
18151 if test "${enable_pulseaudio_shared+set}" = set; then :
18152 enableval=$enable_pulseaudio_shared;
18154 enable_pulseaudio_shared=yes
18157 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18160 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18162 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18163 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18164 if test x$have_loadso != xyes && \
18165 test x$enable_pulseaudio_shared = xyes; then
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18167 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18169 if test x$have_loadso = xyes && \
18170 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18171 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18173 cat >>confdefs.h <<_ACEOF
18174 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18177 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18180 # On Solaris, pulseaudio must be linked deferred explicitly
18181 # to prevent undefined symbol failures.
18183 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18184 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18187 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18188 SUMMARY_audio="${SUMMARY_audio} pulse"
18197 # Check whether --enable-arts was given.
18198 if test "${enable_arts+set}" = set; then :
18199 enableval=$enable_arts;
18204 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18205 # Extract the first word of "artsc-config", so it can be a program name with args.
18206 set dummy artsc-config; ac_word=$2
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18208 $as_echo_n "checking for $ac_word... " >&6; }
18209 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18210 $as_echo_n "(cached) " >&6
18212 case $ARTSCONFIG in
18214 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218 for as_dir in $PATH
18221 test -z "$as_dir" && as_dir=.
18222 for ac_exec_ext in '' $ac_executable_extensions; do
18223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18224 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18235 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18236 if test -n "$ARTSCONFIG"; then
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18238 $as_echo "$ARTSCONFIG" >&6; }
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18245 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18246 : # arts isn't installed
18248 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18249 ARTS_LIBS=`$ARTSCONFIG --libs`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18251 $as_echo_n "checking for aRts development environment... " >&6; }
18253 save_CFLAGS="$CFLAGS"
18254 CFLAGS="$CFLAGS $ARTS_CFLAGS"
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18264 arts_stream_t stream;
18270 if ac_fn_c_try_compile "$LINENO"; then :
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276 CFLAGS="$save_CFLAGS"
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18278 $as_echo "$audio_arts" >&6; }
18279 if test x$audio_arts = xyes; then
18280 # Check whether --enable-arts-shared was given.
18281 if test "${enable_arts_shared+set}" = set; then :
18282 enableval=$enable_arts_shared;
18284 enable_arts_shared=yes
18287 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18290 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18292 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18293 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18294 if test x$have_loadso != xyes && \
18295 test x$enable_arts_shared = xyes; then
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18297 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18299 if test x$have_loadso = xyes && \
18300 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18301 echo "-- dynamic libartsc -> $arts_lib"
18303 cat >>confdefs.h <<_ACEOF
18304 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18307 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18309 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18310 SUMMARY_audio="${SUMMARY_audio} arts"
18320 # Check whether --enable-nas was given.
18321 if test "${enable_nas+set}" = set; then :
18322 enableval=$enable_nas;
18327 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
18328 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
18329 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
18335 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
18336 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
18337 $as_echo_n "(cached) " >&6
18339 ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-laudio $LIBS"
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* Override any GCC internal prototype to avoid an error.
18345 Use char because int might match the return type of a GCC
18346 builtin and then its argument prototype would still apply. */
18350 char AuOpenServer ();
18354 return AuOpenServer ();
18359 if ac_fn_c_try_link "$LINENO"; then :
18360 ac_cv_lib_audio_AuOpenServer=yes
18362 ac_cv_lib_audio_AuOpenServer=no
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
18369 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
18370 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18376 $as_echo_n "checking for NAS audio support... " >&6; }
18379 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18383 elif test -r /usr/X11R6/include/audio/audiolib.h; then
18385 NAS_CFLAGS="-I/usr/X11R6/include/"
18386 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18391 $as_echo "$have_nas" >&6; }
18393 if test x$have_nas = xyes; then
18394 # Check whether --enable-nas-shared was given.
18395 if test "${enable_nas_shared+set}" = set; then :
18396 enableval=$enable_nas_shared;
18398 enable_nas_shared=yes
18401 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18403 if test x$have_loadso != xyes && \
18404 test x$enable_nas_shared = xyes; then
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
18406 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
18408 if test x$have_loadso = xyes && \
18409 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
18410 echo "-- dynamic libaudio -> $nas_lib"
18412 cat >>confdefs.h <<_ACEOF
18413 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18416 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18418 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18419 SUMMARY_audio="${SUMMARY_audio} nas"
18423 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18425 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18426 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18434 # Check whether --enable-sndio was given.
18435 if test "${enable_sndio+set}" = set; then :
18436 enableval=$enable_sndio;
18441 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
18442 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18443 if test "x$ac_cv_header_sndio_h" = xyes; then :
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
18449 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
18450 if ${ac_cv_lib_sndio_sio_open+:} false; then :
18451 $as_echo_n "(cached) " >&6
18453 ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lsndio $LIBS"
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18458 /* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18468 return sio_open ();
18473 if ac_fn_c_try_link "$LINENO"; then :
18474 ac_cv_lib_sndio_sio_open=yes
18476 ac_cv_lib_sndio_sio_open=no
18478 rm -f core conftest.err conftest.$ac_objext \
18479 conftest$ac_exeext conftest.$ac_ext
18480 LIBS=$ac_check_lib_save_LIBS
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
18483 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
18484 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18490 $as_echo_n "checking for sndio audio support... " >&6; }
18493 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18495 SNDIO_LIBS="-lsndio"
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18499 $as_echo "$have_sndio" >&6; }
18501 if test x$have_sndio = xyes; then
18502 # Check whether --enable-sndio-shared was given.
18503 if test "${enable_sndio_shared+set}" = set; then :
18504 enableval=$enable_sndio_shared;
18506 enable_sndio_shared=yes
18509 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18511 if test x$have_loadso != xyes && \
18512 test x$enable_sndio_shared = xyes; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
18514 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
18516 if test x$have_loadso = xyes && \
18517 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
18518 echo "-- dynamic libsndio -> $sndio_lib"
18520 cat >>confdefs.h <<_ACEOF
18521 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18524 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18526 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18527 SUMMARY_audio="${SUMMARY_audio} sndio"
18531 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18533 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18534 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18542 # Check whether --enable-diskaudio was given.
18543 if test "${enable_diskaudio+set}" = set; then :
18544 enableval=$enable_diskaudio;
18546 enable_diskaudio=yes
18549 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18551 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18553 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18554 SUMMARY_audio="${SUMMARY_audio} disk"
18560 # Check whether --enable-dummyaudio was given.
18561 if test "${enable_dummyaudio+set}" = set; then :
18562 enableval=$enable_dummyaudio;
18564 enable_dummyaudio=yes
18567 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18569 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18571 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18572 SUMMARY_audio="${SUMMARY_audio} dummy"
18576 CheckVisibilityHidden()
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
18579 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
18580 have_gcc_fvisibility=no
18582 visibility_CFLAGS="-fvisibility=hidden"
18583 save_CFLAGS="$CFLAGS"
18584 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18588 #if !defined(__GNUC__) || __GNUC__ < 4
18589 #error SDL only uses visibility attributes in GCC 4 or newer
18601 if ac_fn_c_try_compile "$LINENO"; then :
18603 have_gcc_fvisibility=yes
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
18608 $as_echo "$have_gcc_fvisibility" >&6; }
18609 CFLAGS="$save_CFLAGS"
18611 if test x$have_gcc_fvisibility = xyes; then
18612 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
18616 CheckStackBoundary()
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
18619 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
18620 have_gcc_preferred_stack_boundary=no
18622 save_CFLAGS="$CFLAGS"
18623 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18638 if ac_fn_c_try_compile "$LINENO"; then :
18640 have_gcc_preferred_stack_boundary=yes
18643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
18645 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
18646 CFLAGS="$save_CFLAGS"
18648 if test x$have_gcc_preferred_stack_boundary = xyes; then
18649 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
18656 $as_echo_n "checking for GCC -Wall option... " >&6; }
18659 save_CFLAGS="$CFLAGS"
18660 CFLAGS="$save_CFLAGS -Wall"
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h. */
18675 if ac_fn_c_try_compile "$LINENO"; then :
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
18682 $as_echo "$have_gcc_Wall" >&6; }
18683 CFLAGS="$save_CFLAGS"
18685 if test x$have_gcc_Wall = xyes; then
18686 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
18689 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
18690 need_gcc_Wno_multichar=no
18693 need_gcc_Wno_multichar=yes
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
18697 $as_echo "$need_gcc_Wno_multichar" >&6; }
18698 if test x$need_gcc_Wno_multichar = xyes; then
18699 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
18706 # Check whether --enable-video-wayland was given.
18707 if test "${enable_video_wayland+set}" = set; then :
18708 enableval=$enable_video_wayland;
18710 enable_video_wayland=yes
18714 # Check whether --enable-video-wayland-qt-touch was given.
18715 if test "${enable_video_wayland_qt_touch+set}" = set; then :
18716 enableval=$enable_video_wayland_qt_touch;
18718 enable_video_wayland_qt_touch=yes
18722 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
18723 # Extract the first word of "pkg-config", so it can be a program name with args.
18724 set dummy pkg-config; ac_word=$2
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18726 $as_echo_n "checking for $ac_word... " >&6; }
18727 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18728 $as_echo_n "(cached) " >&6
18730 case $PKG_CONFIG in
18732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18736 for as_dir in $PATH
18739 test -z "$as_dir" && as_dir=.
18740 for ac_exec_ext in '' $ac_executable_extensions; do
18741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18754 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18755 if test -n "$PKG_CONFIG"; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18757 $as_echo "$PKG_CONFIG" >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18760 $as_echo "no" >&6; }
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
18765 $as_echo_n "checking for Wayland support... " >&6; }
18767 if test x$PKG_CONFIG != xno && \
18768 test x$video_opengl_egl = xyes && \
18769 test x$video_opengles_v2 = xyes; then
18770 if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
18771 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
18772 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
18777 $as_echo "$video_wayland" >&6; }
18779 if test x$video_wayland = xyes; then
18781 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
18783 if test x$enable_video_wayland_qt_touch = xyes; then
18785 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
18788 SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
18789 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
18790 # Check whether --enable-wayland-shared was given.
18791 if test "${enable_wayland_shared+set}" = set; then :
18792 enableval=$enable_wayland_shared;
18794 enable_wayland_shared=maybe
18800 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18801 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18802 if test x$wayland_egl_lib = x; then
18803 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18805 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18806 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18810 if test x$enable_wayland_shared = xmaybe; then
18811 enable_wayland_shared=yes
18813 if test x$have_loadso != xyes && \
18814 test x$enable_wayland_shared = xyes; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
18816 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
18817 enable_wayland_shared=no
18819 if test x$have_loadso = xyes && \
18820 test x$enable_wayland_shared = xyes && \
18821 test x$wayland_client_lib != x && \
18822 test x$wayland_egl_lib != x && \
18823 test x$wayland_cursor_lib != x && \
18824 test x$xkbcommon_lib != x; then
18825 echo "-- dynamic libwayland-client -> $wayland_client_lib"
18826 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
18827 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
18828 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
18830 cat >>confdefs.h <<_ACEOF
18831 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
18835 cat >>confdefs.h <<_ACEOF
18836 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
18840 cat >>confdefs.h <<_ACEOF
18841 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
18845 cat >>confdefs.h <<_ACEOF
18846 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
18849 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
18851 enable_wayland_shared=no
18852 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
18853 SUMMARY_video="${SUMMARY_video} wayland"
18862 # Check whether --enable-video-mir was given.
18863 if test "${enable_video_mir+set}" = set; then :
18864 enableval=$enable_video_mir;
18866 enable_video_mir=yes
18870 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
18871 # Extract the first word of "pkg-config", so it can be a program name with args.
18872 set dummy pkg-config; ac_word=$2
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18874 $as_echo_n "checking for $ac_word... " >&6; }
18875 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18876 $as_echo_n "(cached) " >&6
18878 case $PKG_CONFIG in
18880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18898 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18903 if test -n "$PKG_CONFIG"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18905 $as_echo "$PKG_CONFIG" >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
18913 $as_echo_n "checking for Mir support... " >&6; }
18915 if test x$PKG_CONFIG != xno; then
18916 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
18917 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
18918 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
18919 save_CFLAGS="$CFLAGS"
18920 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18925 #include <mir_toolkit/mir_client_library.h>
18931 MirMotionToolType tool = mir_motion_tool_type_mouse;
18937 if ac_fn_c_try_compile "$LINENO"; then :
18942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18943 CFLAGS="$save_CFLAGS"
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
18947 $as_echo "$video_mir" >&6; }
18949 if test x$video_mir = xyes; then
18951 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
18953 SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
18954 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
18955 # Check whether --enable-mir-shared was given.
18956 if test "${enable_mir_shared+set}" = set; then :
18957 enableval=$enable_mir_shared;
18959 enable_mir_shared=maybe
18965 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18966 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18970 if test x$enable_mir_shared = xmaybe; then
18971 enable_mir_shared=yes
18973 if test x$have_loadso != xyes && \
18974 test x$enable_mir_shared = xyes; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
18976 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
18977 enable_mir_shared=no
18979 if test x$have_loadso = xyes && \
18980 test x$enable_mir_shared = xyes && \
18981 test x$mirclient_lib != x && \
18982 test x$xkbcommon_lib != x; then
18983 echo "-- dynamic libmirclient -> $mirclient_lib"
18984 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
18986 cat >>confdefs.h <<_ACEOF
18987 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
18991 cat >>confdefs.h <<_ACEOF
18992 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
18995 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
18997 enable_mir_shared=no
18998 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
18999 SUMMARY_video="${SUMMARY_video} mir"
19006 CheckNativeClient()
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 #if !defined(__native_client__)
19024 if ac_fn_c_try_compile "$LINENO"; then :
19026 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19028 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19031 $as_echo "#define HAVE_POW 1" >>confdefs.h
19034 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19037 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19040 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19043 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19045 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
19046 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
19047 SUMMARY_audio="${SUMMARY_audio} nacl"
19048 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
19049 SUMMARY_video="${SUMMARY_video} nacl opengles2"
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 # Check whether --enable-video-x11 was given.
19061 if test "${enable_video_x11+set}" = set; then :
19062 enableval=$enable_video_x11;
19064 enable_video_x11=yes
19067 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19070 # This isn't necessary for X11, but fixes GLX detection
19071 if test "x$x_includes" = xNONE && \
19072 test "x$x_libraries" = xNONE && \
19073 test -d /usr/X11R6/include && \
19074 test -d /usr/X11R6/lib; then
19075 x_includes="/usr/X11R6/include"
19076 x_libraries="/usr/X11R6/lib"
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19081 $as_echo_n "checking for X... " >&6; }
19084 # Check whether --with-x was given.
19085 if test "${with_x+set}" = set; then :
19089 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19090 if test "x$with_x" = xno; then
19091 # The user explicitly disabled X.
19094 case $x_includes,$x_libraries in #(
19095 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19096 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19097 $as_echo_n "(cached) " >&6
19099 # One or both of the vars are not set, and there is no cached value.
19100 ac_x_includes=no ac_x_libraries=no
19101 rm -f -r conftest.dir
19102 if mkdir conftest.dir; then
19104 cat >Imakefile <<'_ACEOF'
19106 @echo incroot='${INCROOT}'
19108 @echo usrlibdir='${USRLIBDIR}'
19110 @echo libdir='${LIBDIR}'
19112 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19113 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19114 for ac_var in incroot usrlibdir libdir; do
19115 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19117 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19118 for ac_extension in a so sl dylib la dll; do
19119 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19120 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19121 ac_im_usrlibdir=$ac_im_libdir; break
19124 # Screen out bogus values from the imake configuration. They are
19125 # bogus both because they are the default anyway, and because
19126 # using them would break gcc on systems where it needs fixed includes.
19127 case $ac_im_incroot in
19128 /usr/include) ac_x_includes= ;;
19129 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19131 case $ac_im_usrlibdir in
19132 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19133 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19137 rm -f -r conftest.dir
19140 # Standard set of common directories for X headers.
19141 # Check X11 before X11Rn because it is often a symlink to the current release.
19155 /usr/local/X11/include
19156 /usr/local/X11R7/include
19157 /usr/local/X11R6/include
19158 /usr/local/X11R5/include
19159 /usr/local/X11R4/include
19161 /usr/local/include/X11
19162 /usr/local/include/X11R7
19163 /usr/local/include/X11R6
19164 /usr/local/include/X11R5
19165 /usr/local/include/X11R4
19169 /usr/XFree86/include/X11
19173 /usr/unsupported/include
19174 /usr/athena/include
19175 /usr/local/x11r5/include
19176 /usr/lpp/Xamples/include
19178 /usr/openwin/include
19179 /usr/openwin/share/include'
19181 if test "$ac_x_includes" = no; then
19182 # Guess where to find include files, by looking for Xlib.h.
19183 # First, try using that file with no special directory specified.
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19186 #include <X11/Xlib.h>
19188 if ac_fn_c_try_cpp "$LINENO"; then :
19189 # We can compile using X headers with no special include directory.
19192 for ac_dir in $ac_x_header_dirs; do
19193 if test -r "$ac_dir/X11/Xlib.h"; then
19194 ac_x_includes=$ac_dir
19199 rm -f conftest.err conftest.i conftest.$ac_ext
19200 fi # $ac_x_includes = no
19202 if test "$ac_x_libraries" = no; then
19203 # Check for the libraries.
19204 # See if we find them without any special options.
19205 # Don't add to $LIBS permanently.
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19210 #include <X11/Xlib.h>
19219 if ac_fn_c_try_link "$LINENO"; then :
19221 # We can link X programs with no special library path.
19225 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19227 # Don't even attempt the hair of trying to link an X program!
19228 for ac_extension in a so sl dylib la dll; do
19229 if test -r "$ac_dir/libX11.$ac_extension"; then
19230 ac_x_libraries=$ac_dir
19236 rm -f core conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 fi # $ac_x_libraries = no
19240 case $ac_x_includes,$ac_x_libraries in #(
19241 no,* | *,no | *\'*)
19242 # Didn't find X, or a directory has "'" in its name.
19243 ac_cv_have_x="have_x=no";; #(
19245 # Record where we found X for the cache.
19246 ac_cv_have_x="have_x=yes\
19247 ac_x_includes='$ac_x_includes'\
19248 ac_x_libraries='$ac_x_libraries'"
19254 eval "$ac_cv_have_x"
19257 if test "$have_x" != yes; then
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19259 $as_echo "$have_x" >&6; }
19262 # If each of the values was on the command line, it overrides each guess.
19263 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19264 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19265 # Update the cache value to reflect the command line values.
19266 ac_cv_have_x="have_x=yes\
19267 ac_x_includes='$x_includes'\
19268 ac_x_libraries='$x_libraries'"
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19270 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19273 if test "$no_x" = yes; then
19274 # Not all programs may use this symbol, but it does not hurt to define it.
19276 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19278 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19280 if test -n "$x_includes"; then
19281 X_CFLAGS="$X_CFLAGS -I$x_includes"
19284 # It would also be nice to do this for all -L options, not just this one.
19285 if test -n "$x_libraries"; then
19286 X_LIBS="$X_LIBS -L$x_libraries"
19287 # For Solaris; some versions of Sun CC require a space after -R and
19288 # others require no space. Words are not sufficient . . . .
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19290 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19291 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19292 ac_xsave_c_werror_flag=$ac_c_werror_flag
19293 ac_c_werror_flag=yes
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19305 if ac_fn_c_try_link "$LINENO"; then :
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19307 $as_echo "no" >&6; }
19308 X_LIBS="$X_LIBS -R$x_libraries"
19310 LIBS="$ac_xsave_LIBS -R $x_libraries"
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19322 if ac_fn_c_try_link "$LINENO"; then :
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19325 X_LIBS="$X_LIBS -R $x_libraries"
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19328 $as_echo "neither works" >&6; }
19330 rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 ac_c_werror_flag=$ac_xsave_c_werror_flag
19336 LIBS=$ac_xsave_LIBS
19339 # Check for system-dependent libraries X programs must link with.
19340 # Do this before checking for the system-independent R6 libraries
19341 # (-lICE), since we may need -lsocket or whatever for X linking.
19343 if test "$ISC" = yes; then
19344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19346 # Martyn Johnson says this is needed for Ultrix, if the X
19347 # libraries were built with DECnet support. And Karl Berry says
19348 # the Alpha needs dnet_stub (dnet does not exist).
19349 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19353 /* Override any GCC internal prototype to avoid an error.
19354 Use char because int might match the return type of a GCC
19355 builtin and then its argument prototype would still apply. */
19359 char XOpenDisplay ();
19363 return XOpenDisplay ();
19368 if ac_fn_c_try_link "$LINENO"; then :
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19372 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19373 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19374 $as_echo_n "(cached) " >&6
19376 ac_check_lib_save_LIBS=$LIBS
19377 LIBS="-ldnet $LIBS"
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19391 return dnet_ntoa ();
19396 if ac_fn_c_try_link "$LINENO"; then :
19397 ac_cv_lib_dnet_dnet_ntoa=yes
19399 ac_cv_lib_dnet_dnet_ntoa=no
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19406 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19407 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19413 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19414 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19415 $as_echo_n "(cached) " >&6
19417 ac_check_lib_save_LIBS=$LIBS
19418 LIBS="-ldnet_stub $LIBS"
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19422 /* Override any GCC internal prototype to avoid an error.
19423 Use char because int might match the return type of a GCC
19424 builtin and then its argument prototype would still apply. */
19432 return dnet_ntoa ();
19437 if ac_fn_c_try_link "$LINENO"; then :
19438 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19440 ac_cv_lib_dnet_stub_dnet_ntoa=no
19442 rm -f core conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19444 LIBS=$ac_check_lib_save_LIBS
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19447 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19448 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19449 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19456 LIBS="$ac_xsave_LIBS"
19458 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19459 # to get the SysV transport functions.
19460 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19462 # The nsl library prevents programs from opening the X display
19463 # on Irix 5.2, according to T.E. Dickey.
19464 # The functions gethostbyname, getservbyname, and inet_addr are
19465 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19466 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19467 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19471 if test $ac_cv_func_gethostbyname = no; then
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19473 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19474 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19475 $as_echo_n "(cached) " >&6
19477 ac_check_lib_save_LIBS=$LIBS
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19482 /* Override any GCC internal prototype to avoid an error.
19483 Use char because int might match the return type of a GCC
19484 builtin and then its argument prototype would still apply. */
19488 char gethostbyname ();
19492 return gethostbyname ();
19497 if ac_fn_c_try_link "$LINENO"; then :
19498 ac_cv_lib_nsl_gethostbyname=yes
19500 ac_cv_lib_nsl_gethostbyname=no
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504 LIBS=$ac_check_lib_save_LIBS
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19507 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19508 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19512 if test $ac_cv_lib_nsl_gethostbyname = no; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19514 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19515 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19516 $as_echo_n "(cached) " >&6
19518 ac_check_lib_save_LIBS=$LIBS
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19529 char gethostbyname ();
19533 return gethostbyname ();
19538 if ac_fn_c_try_link "$LINENO"; then :
19539 ac_cv_lib_bsd_gethostbyname=yes
19541 ac_cv_lib_bsd_gethostbyname=no
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19548 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19549 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19556 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19557 # socket/setsockopt and other routines are undefined under SCO ODT
19558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19559 # on later versions), says Simon Leinen: it contains gethostby*
19560 # variants that don't use the name server (or something). -lsocket
19561 # must be given before -lnsl if both are needed. We assume that
19562 # if connect needs -lnsl, so does gethostbyname.
19563 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19564 if test "x$ac_cv_func_connect" = xyes; then :
19568 if test $ac_cv_func_connect = no; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19570 $as_echo_n "checking for connect in -lsocket... " >&6; }
19571 if ${ac_cv_lib_socket_connect+:} false; then :
19572 $as_echo_n "(cached) " >&6
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19594 if ac_fn_c_try_link "$LINENO"; then :
19595 ac_cv_lib_socket_connect=yes
19597 ac_cv_lib_socket_connect=no
19599 rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19604 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19605 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19606 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19611 # Guillermo Gomez says -lposix is necessary on A/UX.
19612 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19613 if test "x$ac_cv_func_remove" = xyes; then :
19617 if test $ac_cv_func_remove = no; then
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19619 $as_echo_n "checking for remove in -lposix... " >&6; }
19620 if ${ac_cv_lib_posix_remove+:} false; then :
19621 $as_echo_n "(cached) " >&6
19623 ac_check_lib_save_LIBS=$LIBS
19624 LIBS="-lposix $LIBS"
19625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19643 if ac_fn_c_try_link "$LINENO"; then :
19644 ac_cv_lib_posix_remove=yes
19646 ac_cv_lib_posix_remove=no
19648 rm -f core conftest.err conftest.$ac_objext \
19649 conftest$ac_exeext conftest.$ac_ext
19650 LIBS=$ac_check_lib_save_LIBS
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19653 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19654 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19660 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19661 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19662 if test "x$ac_cv_func_shmat" = xyes; then :
19666 if test $ac_cv_func_shmat = no; then
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19668 $as_echo_n "checking for shmat in -lipc... " >&6; }
19669 if ${ac_cv_lib_ipc_shmat+:} false; then :
19670 $as_echo_n "(cached) " >&6
19672 ac_check_lib_save_LIBS=$LIBS
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19692 if ac_fn_c_try_link "$LINENO"; then :
19693 ac_cv_lib_ipc_shmat=yes
19695 ac_cv_lib_ipc_shmat=no
19697 rm -f core conftest.err conftest.$ac_objext \
19698 conftest$ac_exeext conftest.$ac_ext
19699 LIBS=$ac_check_lib_save_LIBS
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19702 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19703 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19710 # Check for libraries that X11R6 Xt/Xaw programs need.
19711 ac_save_LDFLAGS=$LDFLAGS
19712 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19713 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19714 # check for ICE first), but we must link in the order -lSM -lICE or
19715 # we get undefined symbols. So assume we have SM if we have ICE.
19716 # These have to be linked with before -lX11, unlike the other
19717 # libraries we check for below, so use a different variable.
19718 # John Interrante, Karl Berry
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19720 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19721 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19722 $as_echo_n "(cached) " >&6
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19729 /* Override any GCC internal prototype to avoid an error.
19730 Use char because int might match the return type of a GCC
19731 builtin and then its argument prototype would still apply. */
19735 char IceConnectionNumber ();
19739 return IceConnectionNumber ();
19744 if ac_fn_c_try_link "$LINENO"; then :
19745 ac_cv_lib_ICE_IceConnectionNumber=yes
19747 ac_cv_lib_ICE_IceConnectionNumber=no
19749 rm -f core conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_check_lib_save_LIBS
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19754 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19755 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19756 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19759 LDFLAGS=$ac_save_LDFLAGS
19763 if test x$have_x = xyes; then
19764 # Check whether --enable-x11-shared was given.
19765 if test "${enable_x11_shared+set}" = set; then :
19766 enableval=$enable_x11_shared;
19768 enable_x11_shared=maybe
19774 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
19775 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
19776 xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
19777 xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
19778 xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
19779 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
19780 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
19781 xss_lib='/usr/X11R6/lib/libXss.1.dylib'
19782 xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
19785 x11_lib='libX11.so'
19786 x11ext_lib='libXext.so'
19787 xcursor_lib='libXcursor.so'
19788 xinerama_lib='libXinerama.so'
19789 xinput_lib='libXi.so'
19790 xrandr_lib='libXrandr.so'
19791 xrender_lib='libXrender.so'
19792 xss_lib='libXss.so'
19793 xvidmode_lib='libXxf86vm.so'
19796 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19797 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19798 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19799 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19800 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19801 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19802 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19803 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19804 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19808 if test x$ac_cv_func_shmat != xyes; then
19809 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
19811 CFLAGS="$CFLAGS $X_CFLAGS"
19812 LDFLAGS="$LDFLAGS $X_LIBS"
19814 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
19815 #include <X11/Xproto.h>
19818 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
19819 have_xext_h_hdr=yes
19825 if test x$have_xext_h_hdr != xyes; then
19827 *** Missing Xext.h, maybe you need to install the libxext-dev package?
19832 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
19834 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
19835 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
19837 # Needed so SDL applications can include SDL_syswm.h
19838 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
19840 if test x$enable_x11_shared = xmaybe; then
19841 enable_x11_shared=yes
19843 if test x$have_loadso != xyes && \
19844 test x$enable_x11_shared = xyes; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
19846 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
19847 enable_x11_shared=no
19849 if test x$have_loadso = xyes && \
19850 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
19851 echo "-- dynamic libX11 -> $x11_lib"
19852 echo "-- dynamic libX11ext -> $x11ext_lib"
19854 cat >>confdefs.h <<_ACEOF
19855 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
19859 cat >>confdefs.h <<_ACEOF
19860 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
19863 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
19865 enable_x11_shared=no
19866 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
19867 SUMMARY_video="${SUMMARY_video} x11"
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
19872 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
19873 have_const_param_XextAddDisplay=no
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19877 #include <X11/Xlib.h>
19878 #include <X11/Xproto.h>
19879 #include <X11/extensions/Xext.h>
19880 #include <X11/extensions/extutil.h>
19881 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
19892 if ac_fn_c_try_compile "$LINENO"; then :
19894 have_const_param_XextAddDisplay=yes
19895 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
19901 $as_echo "$have_const_param_XextAddDisplay" >&6; }
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
19904 $as_echo_n "checking for XGenericEvent... " >&6; }
19905 have_XGenericEvent=no
19906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19909 #include <X11/Xlib.h>
19917 XGenericEventCookie *cookie = &event.xcookie;
19918 XNextEvent(display, &event);
19919 XGetEventData(display, cookie);
19920 XFreeEventData(display, cookie);
19926 if ac_fn_c_try_compile "$LINENO"; then :
19928 have_XGenericEvent=yes
19929 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
19935 $as_echo "$have_XGenericEvent" >&6; }
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
19938 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
19939 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
19940 $as_echo_n "(cached) " >&6
19942 ac_check_lib_save_LIBS=$LIBS
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19947 /* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19953 char XkbKeycodeToKeysym ();
19957 return XkbKeycodeToKeysym ();
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 ac_cv_lib_X11_XkbKeycodeToKeysym=yes
19965 ac_cv_lib_X11_XkbKeycodeToKeysym=no
19967 rm -f core conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19969 LIBS=$ac_check_lib_save_LIBS
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
19972 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
19973 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
19975 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
19980 # Check whether --enable-video-x11-xcursor was given.
19981 if test "${enable_video_x11_xcursor+set}" = set; then :
19982 enableval=$enable_video_x11_xcursor;
19984 enable_video_x11_xcursor=yes
19987 if test x$enable_video_x11_xcursor = xyes; then
19988 definitely_enable_video_x11_xcursor=no
19989 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
19992 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
19993 have_xcursor_h_hdr=yes
19995 have_xcursor_h_hdr=no
19999 if test x$have_xcursor_h_hdr = xyes; then
20000 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
20001 echo "-- dynamic libXcursor -> $xcursor_lib"
20003 cat >>confdefs.h <<_ACEOF
20004 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20007 definitely_enable_video_x11_xcursor=yes
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
20010 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
20011 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
20012 $as_echo_n "(cached) " >&6
20014 ac_check_lib_save_LIBS=$LIBS
20015 LIBS="-lXcursor $LIBS"
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20025 char XcursorImageCreate ();
20029 return XcursorImageCreate ();
20034 if ac_fn_c_try_link "$LINENO"; then :
20035 ac_cv_lib_Xcursor_XcursorImageCreate=yes
20037 ac_cv_lib_Xcursor_XcursorImageCreate=no
20039 rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
20044 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
20045 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
20046 have_xcursor_lib=yes
20049 if test x$have_xcursor_lib = xyes ; then
20050 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20051 definitely_enable_video_x11_xcursor=yes
20056 if test x$definitely_enable_video_x11_xcursor = xyes; then
20058 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20060 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20062 # Check whether --enable-video-x11-xdbe was given.
20063 if test "${enable_video_x11_xdbe+set}" = set; then :
20064 enableval=$enable_video_x11_xdbe;
20066 enable_video_x11_xdbe=yes
20069 if test x$enable_video_x11_xdbe = xyes; then
20070 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
20073 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20080 if test x$have_dbe_h_hdr = xyes; then
20082 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20084 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20087 # Check whether --enable-video-x11-xinerama was given.
20088 if test "${enable_video_x11_xinerama+set}" = set; then :
20089 enableval=$enable_video_x11_xinerama;
20091 enable_video_x11_xinerama=yes
20094 if test x$enable_video_x11_xinerama = xyes; then
20095 definitely_enable_video_x11_xinerama=no
20096 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
20099 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20100 have_xinerama_h_hdr=yes
20102 have_xinerama_h_hdr=no
20106 if test x$have_xinerama_h_hdr = xyes; then
20107 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
20108 echo "-- dynamic libXinerama -> $xinerama_lib"
20110 cat >>confdefs.h <<_ACEOF
20111 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20114 definitely_enable_video_x11_xinerama=yes
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
20117 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
20118 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
20119 $as_echo_n "(cached) " >&6
20121 ac_check_lib_save_LIBS=$LIBS
20122 LIBS="-lXinerama $LIBS"
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20132 char XineramaQueryExtension ();
20136 return XineramaQueryExtension ();
20141 if ac_fn_c_try_link "$LINENO"; then :
20142 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20144 ac_cv_lib_Xinerama_XineramaQueryExtension=no
20146 rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
20148 LIBS=$ac_check_lib_save_LIBS
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
20151 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
20152 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
20153 have_xinerama_lib=yes
20156 if test x$have_xinerama_lib = xyes ; then
20157 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20158 definitely_enable_video_x11_xinerama=yes
20163 if test x$definitely_enable_video_x11_xinerama = xyes; then
20165 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20167 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20169 # Check whether --enable-video-x11-xinput was given.
20170 if test "${enable_video_x11_xinput+set}" = set; then :
20171 enableval=$enable_video_x11_xinput;
20173 enable_video_x11_xinput=yes
20176 if test x$enable_video_x11_xinput = xyes; then
20177 definitely_enable_video_x11_xinput=no
20178 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
20181 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20182 have_xinput_h_hdr=yes
20184 have_xinput_h_hdr=no
20188 if test x$have_xinput_h_hdr = xyes; then
20189 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
20190 echo "-- dynamic libXi -> $xinput_lib"
20192 cat >>confdefs.h <<_ACEOF
20193 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20196 definitely_enable_video_x11_xinput=yes
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
20199 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
20200 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
20201 $as_echo_n "(cached) " >&6
20203 ac_check_lib_save_LIBS=$LIBS
20205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20208 /* Override any GCC internal prototype to avoid an error.
20209 Use char because int might match the return type of a GCC
20210 builtin and then its argument prototype would still apply. */
20214 char XOpenDevice ();
20218 return XOpenDevice ();
20223 if ac_fn_c_try_link "$LINENO"; then :
20224 ac_cv_lib_Xi_XOpenDevice=yes
20226 ac_cv_lib_Xi_XOpenDevice=no
20228 rm -f core conftest.err conftest.$ac_objext \
20229 conftest$ac_exeext conftest.$ac_ext
20230 LIBS=$ac_check_lib_save_LIBS
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
20233 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
20234 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
20235 have_xinput_lib=yes
20238 if test x$have_xinput_lib = xyes ; then
20239 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20240 definitely_enable_video_x11_xinput=yes
20245 if test x$definitely_enable_video_x11_xinput = xyes; then
20246 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20248 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
20251 $as_echo_n "checking for xinput2 multitouch... " >&6; }
20252 have_xinput2_multitouch=no
20253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h. */
20256 #include <X11/Xlib.h>
20257 #include <X11/Xproto.h>
20258 #include <X11/extensions/XInput2.h>
20264 int event_type = XI_TouchBegin;
20265 XITouchClassInfo *t;
20271 if ac_fn_c_try_compile "$LINENO"; then :
20273 have_xinput2_multitouch=yes
20274 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20276 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
20281 $as_echo "$have_xinput2_multitouch" >&6; }
20283 # Check whether --enable-video-x11-xrandr was given.
20284 if test "${enable_video_x11_xrandr+set}" = set; then :
20285 enableval=$enable_video_x11_xrandr;
20287 enable_video_x11_xrandr=yes
20290 if test x$enable_video_x11_xrandr = xyes; then
20291 definitely_enable_video_x11_xrandr=no
20292 have_xrandr_h_hdr=no
20293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h. */
20296 #include <X11/Xlib.h>
20297 #include <X11/extensions/Xrandr.h>
20303 XRRScreenResources *res = NULL;
20309 if ac_fn_c_try_compile "$LINENO"; then :
20311 have_xrandr_h_hdr=yes
20314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20315 if test x$have_xrandr_h_hdr = xyes; then
20316 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
20317 echo "-- dynamic libXrandr -> $xrandr_lib"
20319 cat >>confdefs.h <<_ACEOF
20320 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20323 definitely_enable_video_x11_xrandr=yes
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20326 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20327 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
20328 $as_echo_n "(cached) " >&6
20330 ac_check_lib_save_LIBS=$LIBS
20331 LIBS="-lXrandr $LIBS"
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20335 /* Override any GCC internal prototype to avoid an error.
20336 Use char because int might match the return type of a GCC
20337 builtin and then its argument prototype would still apply. */
20341 char XRRQueryExtension ();
20345 return XRRQueryExtension ();
20350 if ac_fn_c_try_link "$LINENO"; then :
20351 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20353 ac_cv_lib_Xrandr_XRRQueryExtension=no
20355 rm -f core conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20360 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20361 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
20362 have_xrandr_lib=yes
20365 if test x$have_xrandr_lib = xyes ; then
20366 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
20367 definitely_enable_video_x11_xrandr=yes
20372 if test x$definitely_enable_video_x11_xrandr = xyes; then
20374 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
20376 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
20378 # Check whether --enable-video-x11-scrnsaver was given.
20379 if test "${enable_video_x11_scrnsaver+set}" = set; then :
20380 enableval=$enable_video_x11_scrnsaver;
20382 enable_video_x11_scrnsaver=yes
20385 if test x$enable_video_x11_scrnsaver = xyes; then
20386 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
20389 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
20390 have_scrnsaver_h_hdr=yes
20392 have_scrnsaver_h_hdr=no
20396 if test x$have_scrnsaver_h_hdr = xyes; then
20397 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
20398 echo "-- dynamic libXss -> $xss_lib"
20400 cat >>confdefs.h <<_ACEOF
20401 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
20404 definitely_enable_video_x11_scrnsaver=yes
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
20407 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
20408 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
20409 $as_echo_n "(cached) " >&6
20411 ac_check_lib_save_LIBS=$LIBS
20413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h. */
20416 /* Override any GCC internal prototype to avoid an error.
20417 Use char because int might match the return type of a GCC
20418 builtin and then its argument prototype would still apply. */
20422 char XScreenSaverSuspend ();
20426 return XScreenSaverSuspend ();
20431 if ac_fn_c_try_link "$LINENO"; then :
20432 ac_cv_lib_Xss_XScreenSaverSuspend=yes
20434 ac_cv_lib_Xss_XScreenSaverSuspend=no
20436 rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20438 LIBS=$ac_check_lib_save_LIBS
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
20441 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
20442 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
20446 if test x$have_xss_lib = xyes ; then
20447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
20448 definitely_enable_video_x11_scrnsaver=yes
20453 if test x$definitely_enable_video_x11_scrnsaver = xyes; then
20455 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
20457 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
20459 # Check whether --enable-video-x11-xshape was given.
20460 if test "${enable_video_x11_xshape+set}" = set; then :
20461 enableval=$enable_video_x11_xshape;
20463 enable_video_x11_xshape=yes
20466 if test x$enable_video_x11_xshape = xyes; then
20467 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
20470 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
20471 have_shape_h_hdr=yes
20473 have_shape_h_hdr=no
20477 if test x$have_shape_h_hdr = xyes; then
20479 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
20481 SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
20484 # Check whether --enable-video-x11-vm was given.
20485 if test "${enable_video_x11_vm+set}" = set; then :
20486 enableval=$enable_video_x11_vm;
20488 enable_video_x11_vm=yes
20491 if test x$enable_video_x11_vm = xyes; then
20492 definitely_enable_video_x11_vm=no
20493 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
20496 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
20503 if test x$have_vm_h_hdr = xyes; then
20504 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
20505 echo "-- dynamic libXxf86vm -> $xvidmode_lib"
20507 cat >>confdefs.h <<_ACEOF
20508 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
20511 definitely_enable_video_x11_vm=yes
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
20514 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
20515 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
20516 $as_echo_n "(cached) " >&6
20518 ac_check_lib_save_LIBS=$LIBS
20519 LIBS="-lXxf86vm $LIBS"
20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h. */
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20529 char XF86VidModeQueryVersion ();
20533 return XF86VidModeQueryVersion ();
20538 if ac_fn_c_try_link "$LINENO"; then :
20539 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
20541 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
20543 rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
20548 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
20549 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
20553 if test x$have_vm_lib = xyes ; then
20554 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
20555 definitely_enable_video_x11_vm=yes
20560 if test x$definitely_enable_video_x11_vm = xyes; then
20562 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
20564 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
20570 CheckVivanteVideo()
20572 # Check whether --enable-video-vivante was given.
20573 if test "${enable_video_vivante+set}" = set; then :
20574 enableval=$enable_video_vivante;
20576 enable_video_vivante=yes
20579 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
20581 $as_echo_n "checking for Vivante VDK API... " >&6; }
20582 have_vivante_vdk=no
20583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h. */
20588 #include <gc_vdk.h>
20599 if ac_fn_c_try_compile "$LINENO"; then :
20601 have_vivante_vdk=yes
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
20606 $as_echo "$have_vivante_vdk" >&6; }
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
20609 $as_echo_n "checking for Vivante FB API... " >&6; }
20610 have_vivante_egl=no
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20616 #include <EGL/eglvivante.h>
20627 if ac_fn_c_try_compile "$LINENO"; then :
20629 have_vivante_egl=yes
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
20634 $as_echo "$have_vivante_egl" >&6; }
20636 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
20638 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
20640 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
20641 if test x$have_vivante_vdk = xyes; then
20643 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
20645 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
20647 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
20648 SUMMARY_video="${SUMMARY_video} vivante"
20656 if test x$enable_video = xyes; then
20658 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
20660 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
20662 SUMMARY_video="${SUMMARY_video} haiku"
20668 # Check whether --enable-video-cocoa was given.
20669 if test "${enable_video_cocoa+set}" = set; then :
20670 enableval=$enable_video_cocoa;
20672 enable_video_cocoa=yes
20675 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
20676 save_CFLAGS="$CFLAGS"
20677 CFLAGS="$CFLAGS -x objective-c"
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
20679 $as_echo_n "checking for Cocoa framework... " >&6; }
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20684 #import <Cocoa/Cocoa.h>
20695 if ac_fn_c_try_compile "$LINENO"; then :
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
20702 $as_echo "$have_cocoa" >&6; }
20703 CFLAGS="$save_CFLAGS"
20704 if test x$have_cocoa = xyes; then
20706 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
20708 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
20709 SUMMARY_video="${SUMMARY_video} cocoa"
20717 # Check whether --enable-video-directfb was given.
20718 if test "${enable_video_directfb+set}" = set; then :
20719 enableval=$enable_video_directfb;
20721 enable_video_directfb=no
20724 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
20727 DIRECTFB_REQUIRED_VERSION=1.0.0
20728 for ac_prog in directfb-config
20730 # Extract the first word of "$ac_prog", so it can be a program name with args.
20731 set dummy $ac_prog; ac_word=$2
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20733 $as_echo_n "checking for $ac_word... " >&6; }
20734 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
20735 $as_echo_n "(cached) " >&6
20737 case $DIRECTFBCONFIG in
20739 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
20742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20743 as_dummy="$prefix/bin:$PATH"
20744 for as_dir in $as_dummy
20747 test -z "$as_dir" && as_dir=.
20748 for ac_exec_ext in '' $ac_executable_extensions; do
20749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20750 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
20751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20761 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
20762 if test -n "$DIRECTFBCONFIG"; then
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
20764 $as_echo "$DIRECTFBCONFIG" >&6; }
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20767 $as_echo "no" >&6; }
20771 test -n "$DIRECTFBCONFIG" && break
20773 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
20775 if test x$DIRECTFBCONFIG = xno; then
20776 # Extract the first word of "pkg-config", so it can be a program name with args.
20777 set dummy pkg-config; ac_word=$2
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20779 $as_echo_n "checking for $ac_word... " >&6; }
20780 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20781 $as_echo_n "(cached) " >&6
20783 case $PKG_CONFIG in
20785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20789 for as_dir in $PATH
20792 test -z "$as_dir" && as_dir=.
20793 for ac_exec_ext in '' $ac_executable_extensions; do
20794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20795 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20808 if test -n "$PKG_CONFIG"; then
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20810 $as_echo "$PKG_CONFIG" >&6; }
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20813 $as_echo "no" >&6; }
20817 if test x$PKG_CONFIG != xno; then
20818 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
20819 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
20820 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
20821 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
20826 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
20827 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20828 set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
20829 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20830 if test $HAVE_VERSION -ge $NEED_VERSION; then
20831 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
20832 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
20833 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
20837 if test x$video_directfb = xyes; then
20838 # SuSE 11.1 installs directfb-config without directfb-devel
20839 save_CPPFLAGS="$CPPFLAGS"
20840 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
20841 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
20842 if test "x$ac_cv_header_directfb_h" = xyes; then :
20843 have_directfb_hdr=yes
20845 have_directfb_hdr=no
20849 CPPFLAGS="$save_CPPFLAGS"
20850 video_directfb=$have_directfb_hdr
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
20853 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
20855 $as_echo "$video_directfb" >&6; }
20857 if test x$video_directfb = xyes; then
20858 # Check whether --enable-directfb-shared was given.
20859 if test "${enable_directfb_shared+set}" = set; then :
20860 enableval=$enable_directfb_shared;
20862 enable_directfb_shared=yes
20867 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
20870 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
20872 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
20873 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
20876 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
20878 directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
20879 # | sed 's/.*\/\(.*\)/\1/; q'`]
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
20881 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
20882 if test x$have_loadso != xyes && \
20883 test x$enable_directfb_shared = xyes; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
20885 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
20887 if test x$have_loadso = xyes && \
20888 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
20889 directfb_shared=yes
20890 echo "-- $directfb_lib_spec -> $directfb_lib"
20892 cat >>confdefs.h <<_ACEOF
20893 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
20896 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
20898 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
20899 SUMMARY_video="${SUMMARY_video} directfb"
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
20902 $as_echo "$directfb_shared" >&6; }
20903 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
20911 # Check whether --enable-fusionsound was given.
20912 if test "${enable_fusionsound+set}" = set; then :
20913 enableval=$enable_fusionsound;
20915 enable_fusionsound=no
20918 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
20921 FUSIONSOUND_REQUIRED_VERSION=1.1.1
20923 # Extract the first word of "pkg-config", so it can be a program name with args.
20924 set dummy pkg-config; ac_word=$2
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20926 $as_echo_n "checking for $ac_word... " >&6; }
20927 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20928 $as_echo_n "(cached) " >&6
20930 case $PKG_CONFIG in
20932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20936 for as_dir in $PATH
20939 test -z "$as_dir" && as_dir=.
20940 for ac_exec_ext in '' $ac_executable_extensions; do
20941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20954 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20955 if test -n "$PKG_CONFIG"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20957 $as_echo "$PKG_CONFIG" >&6; }
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
20965 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
20966 if test x$PKG_CONFIG != xno; then
20967 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
20968 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
20969 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
20974 $as_echo "$fusionsound" >&6; }
20976 if test x$fusionsound = xyes; then
20978 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
20980 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
20981 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
20983 # Check whether --enable-fusionsound-shared was given.
20984 if test "${enable_fusionsound_shared+set}" = set; then :
20985 enableval=$enable_fusionsound_shared;
20987 enable_fusionsound_shared=yes
20990 fusionsound_shared=no
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
20992 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
20993 if test x$have_loadso != xyes && \
20994 test x$enable_fusionsound_shared = xyes; then
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
20996 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
20998 if test x$have_loadso = xyes && \
20999 test x$enable_fusionsound_shared = xyes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
21005 fusionsound_shared=yes
21006 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
21008 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
21009 SUMMARY_audio="${SUMMARY_audio} fusionsound"
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
21012 $as_echo "$fusionsound_shared" >&6; }
21021 # Check whether --enable-video-dummy was given.
21022 if test "${enable_video_dummy+set}" = set; then :
21023 enableval=$enable_video_dummy;
21025 enable_video_dummy=yes
21028 if test x$enable_video_dummy = xyes; then
21030 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21032 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21034 SUMMARY_video="${SUMMARY_video} dummy"
21038 # Check whether --enable-video-opengl was given.
21039 if test "${enable_video_opengl+set}" = set; then :
21040 enableval=$enable_video_opengl;
21042 enable_video_opengl=yes
21048 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
21050 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
21052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h. */
21056 #include <GL/glx.h>
21067 if ac_fn_c_try_compile "$LINENO"; then :
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
21074 $as_echo "$video_opengl" >&6; }
21075 if test x$video_opengl = xyes; then
21077 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21080 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21083 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21085 SUMMARY_video="${SUMMARY_video} opengl"
21090 # Check whether --enable-video-opengles was given.
21091 if test "${enable_video_opengles+set}" = set; then :
21092 enableval=$enable_video_opengles;
21094 enable_video_opengles=yes
21097 # Check whether --enable-video-opengles1 was given.
21098 if test "${enable_video_opengles1+set}" = set; then :
21099 enableval=$enable_video_opengles1;
21101 enable_video_opengles1=yes
21104 # Check whether --enable-video-opengles2 was given.
21105 if test "${enable_video_opengles2+set}" = set; then :
21106 enableval=$enable_video_opengles2;
21108 enable_video_opengles2=yes
21114 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21116 $as_echo_n "checking for EGL support... " >&6; }
21117 video_opengl_egl=no
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21123 #include <EGL/egl.h>
21124 #include <EGL/eglext.h>
21135 if ac_fn_c_try_compile "$LINENO"; then :
21137 video_opengl_egl=yes
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21142 $as_echo "$video_opengl_egl" >&6; }
21143 if test x$video_opengl_egl = xyes; then
21145 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21149 if test x$enable_video_opengles1 = xyes; then
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
21151 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
21152 video_opengles_v1=no
21153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21154 /* end confdefs.h. */
21156 #include <GLES/gl.h>
21157 #include <GLES/glext.h>
21168 if ac_fn_c_try_compile "$LINENO"; then :
21170 video_opengles_v1=yes
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
21175 $as_echo "$video_opengles_v1" >&6; }
21176 if test x$video_opengles_v1 = xyes; then
21178 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21181 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21183 SUMMARY_video="${SUMMARY_video} opengl_es1"
21187 if test x$enable_video_opengles2 = xyes; then
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21189 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21190 video_opengles_v2=no
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21194 #include <GLES2/gl2.h>
21195 #include <GLES2/gl2ext.h>
21206 if ac_fn_c_try_compile "$LINENO"; then :
21208 video_opengles_v2=yes
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21213 $as_echo "$video_opengles_v2" >&6; }
21214 if test x$video_opengles_v2 = xyes; then
21216 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21219 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21221 SUMMARY_video="${SUMMARY_video} opengl_es2"
21229 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21231 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21234 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
21237 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21239 SUMMARY_video="${SUMMARY_video} opengl"
21245 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21248 $as_echo_n "checking for EGL support... " >&6; }
21249 video_opengl_egl=no
21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h. */
21253 #include <EGL/egl.h>
21264 if ac_fn_c_try_compile "$LINENO"; then :
21266 video_opengl_egl=yes
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21271 $as_echo "$video_opengl_egl" >&6; }
21272 if test x$video_opengl_egl = xyes; then
21274 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21277 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21279 SUMMARY_video="${SUMMARY_video} opengl_es1"
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21283 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21284 video_opengles_v2=no
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21288 #include <GLES2/gl2.h>
21289 #include <GLES2/gl2ext.h>
21300 if ac_fn_c_try_compile "$LINENO"; then :
21302 video_opengles_v2=yes
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21307 $as_echo "$video_opengles_v2" >&6; }
21308 if test x$video_opengles_v2 = xyes; then
21310 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21313 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21316 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21318 SUMMARY_video="${SUMMARY_video} opengl_es2"
21325 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21327 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21330 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
21333 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21335 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
21336 SUMMARY_video="${SUMMARY_video} opengl"
21342 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21344 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21347 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
21350 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21352 SUMMARY_video="${SUMMARY_video} opengl"
21356 CheckEmscriptenGLES()
21358 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21360 $as_echo_n "checking for EGL support... " >&6; }
21361 video_opengl_egl=no
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 #include <EGL/egl.h>
21376 if ac_fn_c_try_compile "$LINENO"; then :
21378 video_opengl_egl=yes
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21383 $as_echo "$video_opengl_egl" >&6; }
21384 if test x$video_opengl_egl = xyes; then
21386 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21391 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21392 video_opengles_v2=no
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21396 #include <GLES2/gl2.h>
21397 #include <GLES2/gl2ext.h>
21408 if ac_fn_c_try_compile "$LINENO"; then :
21410 video_opengles_v2=yes
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21415 $as_echo "$video_opengles_v2" >&6; }
21416 if test x$video_opengles_v2 = xyes; then
21418 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21421 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21423 SUMMARY_video="${SUMMARY_video} opengl_es2"
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
21431 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
21432 use_input_events=no
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21436 #include <linux/input.h>
21443 #error EVIOCGNAME() ioctl not available
21450 if ac_fn_c_try_compile "$LINENO"; then :
21452 use_input_events=yes
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
21457 $as_echo "$use_input_events" >&6; }
21458 if test x$use_input_events = xyes; then
21460 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
21462 SUMMARY_input="${SUMMARY_input} linuxev"
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
21470 $as_echo_n "checking for Linux kd.h... " >&6; }
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21475 #include <linux/kd.h>
21476 #include <linux/keyboard.h>
21482 struct kbentry kbe;
21483 kbe.kb_table = KG_CTRL;
21484 ioctl(0, KDGKBENT, &kbe);
21490 if ac_fn_c_try_compile "$LINENO"; then :
21495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
21497 $as_echo "$use_input_kd" >&6; }
21498 if test x$use_input_kd = xyes; then
21500 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
21502 SUMMARY_input="${SUMMARY_input} linuxkd"
21508 # Check whether --enable-libudev was given.
21509 if test "${enable_libudev+set}" = set; then :
21510 enableval=$enable_libudev;
21515 if test x$enable_libudev = xyes; then
21516 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
21517 if test "x$ac_cv_header_libudev_h" = xyes; then :
21518 have_libudev_h_hdr=yes
21520 have_libudev_h_hdr=no
21524 if test x$have_libudev_h_hdr = xyes; then
21526 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
21534 # Check whether --enable-dbus was given.
21535 if test "${enable_dbus+set}" = set; then :
21536 enableval=$enable_dbus;
21541 if test x$enable_dbus = xyes; then
21542 # Extract the first word of "pkg-config", so it can be a program name with args.
21543 set dummy pkg-config; ac_word=$2
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21545 $as_echo_n "checking for $ac_word... " >&6; }
21546 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21547 $as_echo_n "(cached) " >&6
21549 case $PKG_CONFIG in
21551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21555 for as_dir in $PATH
21558 test -z "$as_dir" && as_dir=.
21559 for ac_exec_ext in '' $ac_executable_extensions; do
21560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21561 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21573 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21574 if test -n "$PKG_CONFIG"; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21576 $as_echo "$PKG_CONFIG" >&6; }
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 $as_echo "no" >&6; }
21583 if test x$PKG_CONFIG != xno; then
21584 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
21585 save_CFLAGS="$CFLAGS"
21586 CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
21587 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
21588 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
21589 have_dbus_dbus_h_hdr=yes
21591 have_dbus_dbus_h_hdr=no
21595 CFLAGS="$save_CFLAGS"
21596 if test x$have_dbus_dbus_h_hdr = xyes; then
21598 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
21600 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
21601 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
21609 # Check whether --enable-ibus was given.
21610 if test "${enable_ibus+set}" = set; then :
21611 enableval=$enable_ibus;
21616 if test x$enable_ibus = xyes; then
21617 # Extract the first word of "pkg-config", so it can be a program name with args.
21618 set dummy pkg-config; ac_word=$2
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21620 $as_echo_n "checking for $ac_word... " >&6; }
21621 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21622 $as_echo_n "(cached) " >&6
21624 case $PKG_CONFIG in
21626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21630 for as_dir in $PATH
21633 test -z "$as_dir" && as_dir=.
21634 for ac_exec_ext in '' $ac_executable_extensions; do
21635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21644 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21649 if test -n "$PKG_CONFIG"; then
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21651 $as_echo "$PKG_CONFIG" >&6; }
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21654 $as_echo "no" >&6; }
21658 if test x$PKG_CONFIG != xno; then
21659 IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
21660 save_CFLAGS="$CFLAGS"
21661 CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
21662 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
21663 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
21664 have_ibus_ibus_h_hdr=yes
21666 have_ibus_ibus_h_hdr=no
21670 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
21671 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
21672 have_inotify_inotify_h_hdr=yes
21674 have_inotify_inotify_h_hdr=no
21678 CFLAGS="$save_CFLAGS"
21679 if test x$have_ibus_ibus_h_hdr = xyes; then
21680 if test x$enable_dbus != xyes; then
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
21682 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
21683 have_ibus_ibus_h_hdr=no
21684 elif test x$have_inotify_inotify_h_hdr != xyes; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
21686 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
21687 have_ibus_ibus_h_hdr=no
21690 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
21692 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
21693 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
21702 # Check whether --enable-input-tslib was given.
21703 if test "${enable_input_tslib+set}" = set; then :
21704 enableval=$enable_input_tslib;
21706 enable_input_tslib=yes
21709 if test x$enable_input_tslib = xyes; then
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
21711 $as_echo_n "checking for Touchscreen library support... " >&6; }
21712 enable_input_tslib=no
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21727 if ac_fn_c_try_compile "$LINENO"; then :
21729 enable_input_tslib=yes
21732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
21734 $as_echo "$enable_input_tslib" >&6; }
21735 if test x$enable_input_tslib = xyes; then
21737 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
21739 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
21740 SUMMARY_input="${SUMMARY_input} ts"
21747 # Check whether --enable-pthreads was given.
21748 if test "${enable_pthreads+set}" = set; then :
21749 enableval=$enable_pthreads;
21751 enable_pthreads=yes
21754 # Check whether --enable-pthread-sem was given.
21755 if test "${enable_pthread_sem+set}" = set; then :
21756 enableval=$enable_pthread_sem;
21758 enable_pthread_sem=yes
21763 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21766 *-*-linux*|*-*-uclinux*)
21767 pthread_cflags="-D_REENTRANT"
21768 pthread_lib="-lpthread"
21771 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21775 pthread_cflags="-D_THREAD_SAFE"
21776 # causes Carbon.p complaints?
21777 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21779 *-*-freebsd*|*-*-dragonfly*)
21780 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21781 pthread_lib="-pthread"
21784 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21785 pthread_lib="-lpthread"
21788 pthread_cflags="-D_REENTRANT"
21789 pthread_lib="-pthread"
21792 # From Solaris 9+, posix4's preferred name is rt.
21793 pthread_cflags="-D_REENTRANT"
21794 pthread_lib="-lpthread -lrt"
21797 # Solaris 10+ merged pthread into libc.
21798 pthread_cflags="-D_REENTRANT"
21802 # Solaris 11+ merged rt into libc.
21803 pthread_cflags="-D_REENTRANT"
21807 pthread_cflags="-D_REENTRANT -Kthread"
21811 pthread_cflags="-D_REENTRANT -mthreads"
21812 pthread_lib="-lpthread"
21815 pthread_cflags="-D_REENTRANT"
21816 pthread_lib="-L/usr/lib -lpthread"
21819 pthread_cflags="-D_REENTRANT"
21823 pthread_cflags="-D_REENTRANT"
21824 pthread_lib="-lpthread"
21827 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
21828 # Save the original compiler flags and libraries
21829 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
21830 # Add the pthread compiler flags and libraries
21831 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
21832 # Check to see if we have pthread support on this system
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
21834 $as_echo_n "checking for pthreads... " >&6; }
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21839 #include <pthread.h>
21845 pthread_attr_t type;
21846 pthread_attr_init(&type);
21852 if ac_fn_c_try_link "$LINENO"; then :
21857 rm -f core conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
21860 $as_echo "$use_pthreads" >&6; }
21861 # Restore the compiler flags and libraries
21862 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
21864 # Do futher testing if we have pthread support...
21865 if test x$use_pthreads = xyes; then
21867 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
21869 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
21870 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
21871 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
21873 # Save the original compiler flags and libraries
21874 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
21875 # Add the pthread compiler flags and libraries
21876 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
21878 # Check to see if recursive mutexes are available
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
21880 $as_echo_n "checking for recursive mutexes... " >&6; }
21881 has_recursive_mutexes=no
21882 if test x$has_recursive_mutexes = xno; then
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21886 #define _GNU_SOURCE 1
21887 #include <pthread.h>
21893 pthread_mutexattr_t attr;
21894 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
21900 if ac_fn_c_try_link "$LINENO"; then :
21902 has_recursive_mutexes=yes
21904 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
21908 rm -f core conftest.err conftest.$ac_objext \
21909 conftest$ac_exeext conftest.$ac_ext
21911 if test x$has_recursive_mutexes = xno; then
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21915 #define _GNU_SOURCE 1
21916 #include <pthread.h>
21922 pthread_mutexattr_t attr;
21923 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
21929 if ac_fn_c_try_link "$LINENO"; then :
21931 has_recursive_mutexes=yes
21933 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
21937 rm -f core conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
21941 $as_echo "$has_recursive_mutexes" >&6; }
21943 # Check to see if pthread semaphore support is missing
21944 if test x$enable_pthread_sem = xyes; then
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
21946 $as_echo_n "checking for pthread semaphores... " >&6; }
21947 have_pthread_sem=no
21948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949 /* end confdefs.h. */
21951 #include <pthread.h>
21952 #include <semaphore.h>
21963 if ac_fn_c_try_compile "$LINENO"; then :
21965 have_pthread_sem=yes
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
21970 $as_echo "$have_pthread_sem" >&6; }
21972 if test x$have_pthread_sem = xyes; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
21974 $as_echo_n "checking for sem_timedwait... " >&6; }
21975 have_sem_timedwait=no
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21979 #include <pthread.h>
21980 #include <semaphore.h>
21986 sem_timedwait(NULL, NULL);
21992 if ac_fn_c_try_link "$LINENO"; then :
21994 have_sem_timedwait=yes
21995 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
21999 rm -f core conftest.err conftest.$ac_objext \
22000 conftest$ac_exeext conftest.$ac_ext
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
22002 $as_echo "$have_sem_timedwait" >&6; }
22005 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
22007 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
22008 have_pthread_np_h=yes
22010 have_pthread_np_h=no
22014 if test x$have_pthread_np_h = xyes; then
22016 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
22020 # Check to see if pthread naming is available
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
22022 $as_echo_n "checking for pthread_setname_np... " >&6; }
22023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h. */
22026 /* Override any GCC internal prototype to avoid an error.
22027 Use char because int might match the return type of a GCC
22028 builtin and then its argument prototype would still apply. */
22032 char pthread_setname_np ();
22036 return pthread_setname_np ();
22041 if ac_fn_c_try_link "$LINENO"; then :
22043 has_pthread_setname_np=yes
22045 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22050 has_pthread_setname_np=no
22053 rm -f core conftest.err conftest.$ac_objext \
22054 conftest$ac_exeext conftest.$ac_ext
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
22056 $as_echo "$has_pthread_setname_np" >&6; }
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
22059 $as_echo_n "checking for pthread_set_name_np... " >&6; }
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22069 char pthread_set_name_np ();
22073 return pthread_set_name_np ();
22078 if ac_fn_c_try_link "$LINENO"; then :
22080 has_pthread_set_name_np=yes
22082 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
22087 has_pthread_set_name_np=no
22090 rm -f core conftest.err conftest.$ac_objext \
22091 conftest$ac_exeext conftest.$ac_ext
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
22093 $as_echo "$has_pthread_set_name_np" >&6; }
22095 # Restore the compiler flags and libraries
22096 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22098 # Basic thread creation functions
22099 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
22102 # We can fake these with mutexes and condition variables if necessary
22103 if test x$have_pthread_sem = xyes; then
22104 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
22106 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
22110 # We can fake these with semaphores if necessary
22111 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
22113 # Condition variables
22114 # We can fake these with semaphores and mutexes if necessary
22115 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
22117 # Thread local storage
22118 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
22128 $as_echo_n "checking Windows compiler... " >&6; }
22130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h. */
22133 #include <windows.h>
22144 if ac_fn_c_try_compile "$LINENO"; then :
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
22151 $as_echo "$have_win32_gcc" >&6; }
22152 if test x$have_win32_gcc != xyes; then
22154 *** Your compiler ($CC) does not produce Windows executables!
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
22159 $as_echo_n "checking Windows CE... " >&6; }
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22164 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
22165 #error This is not Windows CE
22177 if ac_fn_c_try_compile "$LINENO"; then :
22181 *** Sorry, Windows CE is no longer supported.
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
22187 $as_echo "$have_wince" >&6; }
22189 # This fixes Windows stack alignment with newer GCC
22195 # Check whether --enable-directx was given.
22196 if test "${enable_directx+set}" = set; then :
22197 enableval=$enable_directx;
22202 if test x$enable_directx = xyes; then
22203 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
22204 if test "x$ac_cv_header_d3d9_h" = xyes; then :
22209 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
22210 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
22215 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
22216 if test "x$ac_cv_header_ddraw_h" = xyes; then :
22221 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
22222 if test "x$ac_cv_header_dsound_h" = xyes; then :
22227 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
22228 if test "x$ac_cv_header_dinput_h" = xyes; then :
22233 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
22234 if test "x$ac_cv_header_dxgi_h" = xyes; then :
22239 ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
22240 if test "x$ac_cv_header_xaudio2_h" = xyes; then :
22245 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
22246 if test "x$ac_cv_header_xinput_h" = xyes; then :
22252 if test x$have_ddraw = xyes; then
22254 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
22257 if test x$have_dinput = xyes; then
22259 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
22262 if test x$have_dsound = xyes; then
22264 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
22267 if test x$have_dxgi = xyes; then
22269 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
22272 if test x$have_xinput = xyes; then
22274 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
22278 SUMMARY_video="${SUMMARY_video} directx"
22279 SUMMARY_audio="${SUMMARY_audio} directx"
22281 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
22282 # FIXME: ...so force it off for now.
22293 # Check whether --enable-sdl-dlopen was given.
22294 if test "${enable_sdl_dlopen+set}" = set; then :
22295 enableval=$enable_sdl_dlopen;
22297 enable_sdl_dlopen=yes
22300 if test x$enable_sdl_dlopen = xyes; then
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
22302 $as_echo_n "checking for dlopen... " >&6; }
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22313 void *handle = dlopen("", RTLD_NOW);
22314 const char *loaderror = (char *) dlerror();
22320 if ac_fn_c_try_compile "$LINENO"; then :
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
22327 $as_echo "$have_dlopen" >&6; }
22329 if test x$have_dlopen = xyes; then
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
22331 $as_echo_n "checking for dlopen in -lc... " >&6; }
22332 if ${ac_cv_lib_c_dlopen+:} false; then :
22333 $as_echo_n "(cached) " >&6
22335 ac_check_lib_save_LIBS=$LIBS
22337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h. */
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22355 if ac_fn_c_try_link "$LINENO"; then :
22356 ac_cv_lib_c_dlopen=yes
22358 ac_cv_lib_c_dlopen=no
22360 rm -f core conftest.err conftest.$ac_objext \
22361 conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
22365 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
22366 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
22367 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22371 if ${ac_cv_lib_dl_dlopen+:} false; then :
22372 $as_echo_n "(cached) " >&6
22374 ac_check_lib_save_LIBS=$LIBS
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22379 /* Override any GCC internal prototype to avoid an error.
22380 Use char because int might match the return type of a GCC
22381 builtin and then its argument prototype would still apply. */
22394 if ac_fn_c_try_link "$LINENO"; then :
22395 ac_cv_lib_dl_dlopen=yes
22397 ac_cv_lib_dl_dlopen=no
22399 rm -f core conftest.err conftest.$ac_objext \
22400 conftest$ac_exeext conftest.$ac_ext
22401 LIBS=$ac_check_lib_save_LIBS
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22406 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
22409 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
22410 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
22411 $as_echo_n "(cached) " >&6
22413 ac_check_lib_save_LIBS=$LIBS
22414 LIBS="-lltdl $LIBS"
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22418 /* Override any GCC internal prototype to avoid an error.
22419 Use char because int might match the return type of a GCC
22420 builtin and then its argument prototype would still apply. */
22433 if ac_fn_c_try_link "$LINENO"; then :
22434 ac_cv_lib_ltdl_dlopen=yes
22436 ac_cv_lib_ltdl_dlopen=no
22438 rm -f core conftest.err conftest.$ac_objext \
22439 conftest$ac_exeext conftest.$ac_ext
22440 LIBS=$ac_check_lib_save_LIBS
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
22443 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
22444 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
22445 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
22453 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
22455 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
22465 if test x$enable_joystick = xyes; then
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
22467 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
22468 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
22469 $as_echo_n "(cached) " >&6
22471 ac_check_lib_save_LIBS=$LIBS
22472 LIBS="-lusbhid $LIBS"
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22476 /* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
22486 return hid_init ();
22491 if ac_fn_c_try_link "$LINENO"; then :
22492 ac_cv_lib_usbhid_hid_init=yes
22494 ac_cv_lib_usbhid_hid_init=no
22496 rm -f core conftest.err conftest.$ac_objext \
22497 conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
22501 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
22502 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
22506 if test x$have_libusbhid = xyes; then
22507 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
22508 if test "x$ac_cv_header_usbhid_h" = xyes; then :
22509 USB_CFLAGS="-DHAVE_USBHID_H"
22513 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
22514 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
22515 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
22519 USB_LIBS="$USB_LIBS -lusbhid"
22521 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
22522 if test "x$ac_cv_header_usb_h" = xyes; then :
22523 USB_CFLAGS="-DHAVE_USB_H"
22527 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
22528 if test "x$ac_cv_header_libusb_h" = xyes; then :
22529 USB_CFLAGS="-DHAVE_LIBUSB_H"
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
22534 $as_echo_n "checking for hid_init in -lusb... " >&6; }
22535 if ${ac_cv_lib_usb_hid_init+:} false; then :
22536 $as_echo_n "(cached) " >&6
22538 ac_check_lib_save_LIBS=$LIBS
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22543 /* Override any GCC internal prototype to avoid an error.
22544 Use char because int might match the return type of a GCC
22545 builtin and then its argument prototype would still apply. */
22553 return hid_init ();
22558 if ac_fn_c_try_link "$LINENO"; then :
22559 ac_cv_lib_usb_hid_init=yes
22561 ac_cv_lib_usb_hid_init=no
22563 rm -f core conftest.err conftest.$ac_objext \
22564 conftest$ac_exeext conftest.$ac_ext
22565 LIBS=$ac_check_lib_save_LIBS
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
22568 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
22569 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
22570 USB_LIBS="$USB_LIBS -lusb"
22575 save_CFLAGS="$CFLAGS"
22576 CFLAGS="$CFLAGS $USB_CFLAGS"
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
22579 $as_echo_n "checking for usbhid... " >&6; }
22581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582 /* end confdefs.h. */
22584 #include <sys/types.h>
22585 #if defined(HAVE_USB_H)
22588 #ifdef __DragonFly__
22589 # include <bus/usb/usb.h>
22590 # include <bus/usb/usbhid.h>
22592 # include <dev/usb/usb.h>
22593 # include <dev/usb/usbhid.h>
22595 #if defined(HAVE_USBHID_H)
22596 #include <usbhid.h>
22597 #elif defined(HAVE_LIBUSB_H)
22598 #include <libusb.h>
22599 #elif defined(HAVE_LIBUSBHID_H)
22600 #include <libusbhid.h>
22607 struct report_desc *repdesc;
22608 struct usb_ctl_report *repbuf;
22609 hid_kind_t hidkind;
22615 if ac_fn_c_try_compile "$LINENO"; then :
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
22622 $as_echo "$have_usbhid" >&6; }
22624 if test x$have_usbhid = xyes; then
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
22626 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
22627 have_usbhid_ucr_data=no
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22631 #include <sys/types.h>
22632 #if defined(HAVE_USB_H)
22635 #ifdef __DragonFly__
22636 # include <bus/usb/usb.h>
22637 # include <bus/usb/usbhid.h>
22639 # include <dev/usb/usb.h>
22640 # include <dev/usb/usbhid.h>
22642 #if defined(HAVE_USBHID_H)
22643 #include <usbhid.h>
22644 #elif defined(HAVE_LIBUSB_H)
22645 #include <libusb.h>
22646 #elif defined(HAVE_LIBUSBHID_H)
22647 #include <libusbhid.h>
22654 struct usb_ctl_report buf;
22655 if (buf.ucr_data) { }
22661 if ac_fn_c_try_compile "$LINENO"; then :
22663 have_usbhid_ucr_data=yes
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 if test x$have_usbhid_ucr_data = xyes; then
22668 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
22671 $as_echo "$have_usbhid_ucr_data" >&6; }
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
22674 $as_echo_n "checking for new usbhid API... " >&6; }
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22679 #include <sys/types.h>
22680 #if defined(HAVE_USB_H)
22683 #ifdef __DragonFly__
22684 #include <bus/usb/usb.h>
22685 #include <bus/usb/usbhid.h>
22687 #include <dev/usb/usb.h>
22688 #include <dev/usb/usbhid.h>
22690 #if defined(HAVE_USBHID_H)
22691 #include <usbhid.h>
22692 #elif defined(HAVE_LIBUSB_H)
22693 #include <libusb.h>
22694 #elif defined(HAVE_LIBUSBHID_H)
22695 #include <libusbhid.h>
22703 hid_start_parse(d, 1, 1);
22709 if ac_fn_c_try_compile "$LINENO"; then :
22711 have_usbhid_new=yes
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 if test x$have_usbhid_new = xyes; then
22716 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
22719 $as_echo "$have_usbhid_new" >&6; }
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
22722 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
22723 have_machine_joystick=no
22724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22725 /* end confdefs.h. */
22727 #include <machine/joystick.h>
22739 if ac_fn_c_try_compile "$LINENO"; then :
22741 have_machine_joystick=yes
22744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22745 if test x$have_machine_joystick = xyes; then
22747 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
22751 $as_echo "$have_machine_joystick" >&6; }
22754 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
22756 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
22757 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
22758 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
22761 CFLAGS="$save_CFLAGS"
22767 CheckClockGettime()
22769 # Check whether --enable-clock_gettime was given.
22770 if test "${enable_clock_gettime+set}" = set; then :
22771 enableval=$enable_clock_gettime;
22773 enable_clock_gettime=yes
22776 if test x$enable_clock_gettime = xyes; then
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22778 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22779 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
22780 $as_echo_n "(cached) " >&6
22782 ac_check_lib_save_LIBS=$LIBS
22784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785 /* end confdefs.h. */
22787 /* Override any GCC internal prototype to avoid an error.
22788 Use char because int might match the return type of a GCC
22789 builtin and then its argument prototype would still apply. */
22793 char clock_gettime ();
22797 return clock_gettime ();
22802 if ac_fn_c_try_link "$LINENO"; then :
22803 ac_cv_lib_rt_clock_gettime=yes
22805 ac_cv_lib_rt_clock_gettime=no
22807 rm -f core conftest.err conftest.$ac_objext \
22808 conftest$ac_exeext conftest.$ac_ext
22809 LIBS=$ac_check_lib_save_LIBS
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22812 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22813 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
22814 have_clock_gettime=yes
22817 if test x$have_clock_gettime = xyes; then
22819 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22821 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
22824 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
22825 if ${ac_cv_lib_c_clock_gettime+:} false; then :
22826 $as_echo_n "(cached) " >&6
22828 ac_check_lib_save_LIBS=$LIBS
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22833 /* Override any GCC internal prototype to avoid an error.
22834 Use char because int might match the return type of a GCC
22835 builtin and then its argument prototype would still apply. */
22839 char clock_gettime ();
22843 return clock_gettime ();
22848 if ac_fn_c_try_link "$LINENO"; then :
22849 ac_cv_lib_c_clock_gettime=yes
22851 ac_cv_lib_c_clock_gettime=no
22853 rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22855 LIBS=$ac_check_lib_save_LIBS
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
22858 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
22859 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
22860 have_clock_gettime=yes
22863 if test x$have_clock_gettime = xyes; then
22865 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22867 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
22873 CheckLinuxVersion()
22875 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
22876 if test "x$ac_cv_header_linux_version_h" = xyes; then :
22877 have_linux_version_h=yes
22881 if test x$have_linux_version_h = xyes; then
22882 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
22888 # Check whether --enable-rpath was given.
22889 if test "${enable_rpath+set}" = set; then :
22890 enableval=$enable_rpath;
22898 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
22900 *-raspberry-linux*)
22903 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
22904 CFLAGS="$CFLAGS $RPI_CFLAGS"
22905 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
22906 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
22907 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
22909 if test x$enable_video = xyes; then
22910 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
22911 # FIXME: confdefs? Not AC_DEFINE?
22912 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
22913 SUMMARY_video="${SUMMARY_video} rpi"
22919 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
22920 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
22921 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
22922 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
22923 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
22925 if test x$enable_video = xyes; then
22926 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
22927 # FIXME: confdefs? Not AC_DEFINE?
22928 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
22929 SUMMARY_video="${SUMMARY_video} android"
22932 *-*-linux*) ARCH=linux ;;
22933 *-*-uclinux*) ARCH=linux ;;
22934 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
22935 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
22936 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
22937 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
22938 *-*-bsdi*) ARCH=bsdi ;;
22939 *-*-freebsd*) ARCH=freebsd ;;
22940 *-*-dragonfly*) ARCH=freebsd ;;
22941 *-raspberry-netbsd*)
22944 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
22945 CFLAGS="$CFLAGS $RPI_CFLAGS"
22946 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
22947 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
22948 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
22950 if test x$enable_video = xyes; then
22951 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
22952 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
22953 SUMMARY_video="${SUMMARY_video} raspberry"
22956 *-*-netbsd*) ARCH=netbsd ;;
22957 *-*-openbsd*) ARCH=openbsd ;;
22958 *-*-sysv5*) ARCH=sysv5 ;;
22959 *-*-solaris*) ARCH=solaris ;;
22960 *-*-hpux*) ARCH=hpux ;;
22961 *-*-aix*) ARCH=aix ;;
22962 *-*-minix*) ARCH=minix ;;
22964 CheckVisibilityHidden
22999 # Set up files for the audio library
23000 if test x$enable_audio = xyes; then
23002 sysv5|solaris|hpux)
23004 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
23006 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
23009 netbsd) # Don't use this on OpenBSD, it's busted.
23011 $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
23013 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
23018 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
23020 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
23025 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
23027 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
23028 SUMMARY_audio="${SUMMARY_audio} android"
23033 # Set up files for the joystick library
23034 if test x$enable_joystick = xyes; then
23038 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
23040 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
23045 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
23047 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
23052 # Set up files for the haptic library
23053 if test x$enable_haptic = xyes; then
23054 if test x$use_input_events = xyes; then
23058 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
23060 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
23066 # Set up files for the power library
23067 if test x$enable_power = xyes; then
23071 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
23073 SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
23078 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
23080 SOURCES="$SOURCES $srcdir/src/power/android/*.c"
23085 # Set up files for the filesystem library
23086 if test x$enable_filesystem = xyes; then
23090 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
23092 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
23093 have_filesystem=yes
23097 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
23099 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
23100 have_filesystem=yes
23104 # Set up files for the timer library
23105 if test x$enable_timers = xyes; then
23107 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23109 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23112 # Set up files for udev hotplugging support
23113 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
23114 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
23116 # Set up files for evdev input
23117 if test x$use_input_events = xyes; then
23118 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
23121 *-*-cygwin* | *-*-mingw32*)
23123 if test "$build" != "$host"; then # cross-compiling
23124 # Default cross-compile location
23125 ac_default_prefix=/usr/local/cross-tools/$host
23127 # Look for the location of the tools and install there
23128 if test "$BUILD_PREFIX" != ""; then
23129 ac_default_prefix=$BUILD_PREFIX
23140 # Set up the core platform files
23141 SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
23143 # Set up files for the video library
23144 if test x$enable_video = xyes; then
23146 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
23148 SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
23150 # Check whether --enable-render-d3d was given.
23151 if test "${enable_render_d3d+set}" = set; then :
23152 enableval=$enable_render_d3d;
23154 enable_render_d3d=yes
23157 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
23159 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
23162 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
23164 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
23168 # Set up files for the audio library
23169 if test x$enable_audio = xyes; then
23171 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
23173 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
23174 if test x$have_dsound = xyes; then
23176 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
23178 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
23180 if test x$have_xaudio2 = xyes; then
23182 $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
23184 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
23188 # Set up files for the joystick library
23189 if test x$enable_joystick = xyes; then
23190 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23191 if test x$have_xinput = xyes; then
23193 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
23196 if test x$have_dinput = xyes; then
23198 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
23200 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
23204 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
23207 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
23210 if test x$enable_haptic = xyes; then
23211 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23212 if test x$have_xinput = xyes; then
23214 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
23217 if test x$have_dinput = xyes; then
23219 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
23222 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
23226 if test x$enable_power = xyes; then
23228 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
23230 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
23233 if test x$enable_filesystem = xyes; then
23235 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
23237 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
23238 have_filesystem=yes
23240 # Set up files for the thread library
23241 if test x$enable_threads = xyes; then
23243 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
23245 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
23246 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
23249 # Set up files for the timer library
23250 if test x$enable_timers = xyes; then
23252 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
23254 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
23257 # Set up files for the shared object loading library
23258 if test x$enable_loadso = xyes; then
23260 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
23262 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
23265 # Set up the system libraries we need
23266 if test -f /lib/w32api/libuuid.a; then
23267 LIBUUID=/lib/w32api/libuuid.a
23271 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
23272 # The Windows platform requires special setup
23273 VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
23274 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
23275 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
23276 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
23278 # Check to see if this is a mingw or cygwin build
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
23281 $as_echo_n "checking for main in -lmingw32... " >&6; }
23282 if ${ac_cv_lib_mingw32_main+:} false; then :
23283 $as_echo_n "(cached) " >&6
23285 ac_check_lib_save_LIBS=$LIBS
23286 LIBS="-lmingw32 $LIBS"
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288 /* end confdefs.h. */
23299 if ac_fn_c_try_link "$LINENO"; then :
23300 ac_cv_lib_mingw32_main=yes
23302 ac_cv_lib_mingw32_main=no
23304 rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23306 LIBS=$ac_check_lib_save_LIBS
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
23309 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
23310 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
23314 if test x$have_mingw32 = xyes; then
23315 SDL_LIBS="-lmingw32 $SDL_LIBS"
23317 SDL_LIBS="-lcygwin $SDL_LIBS"
23323 *** BeOS support has been removed as of SDL 2.0.2.
23329 ac_default_prefix=/boot/system
23337 # Set up files for the audio library
23338 if test x$enable_audio = xyes; then
23340 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
23342 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
23345 # Set up files for the joystick library
23346 if test x$enable_joystick = xyes; then
23348 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
23350 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
23353 # Set up files for the timer library
23354 if test x$enable_timers = xyes; then
23356 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
23358 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
23361 # Set up files for the shared object loading library
23362 if test x$enable_loadso = xyes; then
23364 $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
23366 SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
23369 # Set up files for the system power library
23370 if test x$enable_power = xyes; then
23372 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
23374 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
23377 # Set up files for the system filesystem library
23378 if test x$enable_filesystem = xyes; then
23380 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
23382 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
23383 have_filesystem=yes
23385 # The Haiku platform requires special setup.
23386 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
23387 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
23389 arm*-apple-darwin*)
23390 # iOS - We are not writing anything to confdefs.h because you have to replace
23391 # SDL_config.h for SDL_config_iphoneos.h anyway
23394 CheckVisibilityHidden
23403 # Set up files for the audio library
23404 if test x$enable_audio = xyes; then
23405 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23406 SUMMARY_audio="${SUMMARY_audio} coreaudio"
23409 # Set up files for the joystick library
23410 if test x$enable_joystick = xyes; then
23411 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
23414 # Set up files for the haptic library
23415 #if test x$enable_haptic = xyes; then
23416 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23418 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23420 # Set up files for the power library
23421 if test x$enable_power = xyes; then
23422 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
23425 # Set up files for the filesystem library
23426 if test x$enable_filesystem = xyes; then
23427 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23428 have_filesystem=yes
23430 # Set up files for the timer library
23431 if test x$enable_timers = xyes; then
23432 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23435 # Set up additional files for the file library
23436 if test x$enable_file = xyes; then
23437 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23439 # The iOS platform requires special setup.
23440 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
23441 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23442 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
23443 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
23444 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
23445 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
23446 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
23447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
23448 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
23449 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
23450 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
23451 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
23454 # This could be either full "Mac OS X", or plain "Darwin" which is
23455 # just the OS X kernel sans upper layers like Carbon and Cocoa.
23456 # Next line is broken, and a few files below require Mac OS X (full)
23459 # Mac OS X builds with both the Carbon and OSX APIs at the moment
23460 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
23461 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
23463 CheckVisibilityHidden
23474 # Set up files for the audio library
23475 if test x$enable_audio = xyes; then
23477 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
23479 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23480 SUMMARY_audio="${SUMMARY_audio} coreaudio"
23483 # Set up files for the joystick library
23484 if test x$enable_joystick = xyes; then
23486 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
23488 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
23491 # Set up files for the haptic library
23492 if test x$enable_haptic = xyes; then
23494 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
23496 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23498 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23500 # Set up files for the power library
23501 if test x$enable_power = xyes; then
23503 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
23505 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
23508 # Set up files for the filesystem library
23509 if test x$enable_filesystem = xyes; then
23511 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
23513 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23514 have_filesystem=yes
23516 # Set up files for the timer library
23517 if test x$enable_timers = xyes; then
23519 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23521 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23524 # Set up additional files for the file library
23525 if test x$enable_file = xyes; then
23526 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23528 # The Mac OS X platform requires special setup.
23529 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23530 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
23531 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
23532 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
23533 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
23534 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
23535 # If audio is used, add the AudioUnit framework
23536 if test x$enable_audio = xyes; then
23537 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
23548 # Set up files for the timer library
23549 if test x$enable_timers = xyes; then
23550 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23552 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23556 if test x$enable_filesystem = xyes; then
23558 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
23560 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
23561 have_filesystem=yes
23565 if test x$enable_video = xyes; then
23567 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23569 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
23571 SUMMARY_video="${SUMMARY_video} emscripten"
23574 if test x$enable_audio = xyes; then
23576 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23578 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
23580 SUMMARY_audio="${SUMMARY_audio} emscripten"
23583 CheckVisibilityHidden
23589 CheckEmscriptenGLES
23591 # Set up files for the power library
23592 if test x$enable_power = xyes; then
23594 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
23596 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
23600 # Set up files for the power library
23601 if test x$enable_joystick = xyes; then
23603 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
23605 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
23609 # Set up files for the filesystem library
23610 if test x$enable_filesystem = xyes; then
23612 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
23614 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
23615 have_filesystem=yes
23617 # Set up files for the timer library
23618 if test x$enable_timers = xyes; then
23620 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23622 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23628 *** Unsupported host: Please add to configure.in
23635 # Verify that we have all the platform specific files we need
23637 if test x$have_joystick != xyes; then
23638 if test x$enable_joystick = xyes; then
23640 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
23643 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
23645 if test x$have_haptic != xyes; then
23646 if test x$enable_haptic = xyes; then
23648 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
23651 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
23653 if test x$have_threads != xyes; then
23654 if test x$enable_threads = xyes; then
23656 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
23659 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
23661 if test x$have_timers != xyes; then
23662 if test x$enable_timers = xyes; then
23664 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
23667 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
23669 if test x$have_filesystem != xyes; then
23670 if test x$enable_filesystem = xyes; then
23672 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
23675 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
23677 if test x$have_loadso != xyes; then
23678 if test x$enable_loadso = xyes; then
23680 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
23683 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
23685 if test x$SDLMAIN_SOURCES = x; then
23686 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
23688 SDLTEST_SOURCES="$srcdir/src/test/*.c"
23690 OBJECTS=`echo $SOURCES`
23691 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
23692 for EXT in asm cc m c S; do
23693 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
23694 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
23695 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
23696 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23699 VERSION_OBJECTS=`echo $VERSION_SOURCES`
23700 VERSION_DEPENDS=`echo $VERSION_SOURCES`
23701 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
23702 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
23703 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
23704 \\$(WINDRES) \\$< \\$@,g"`
23706 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
23707 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
23708 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23709 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23710 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23711 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23713 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
23714 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
23715 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23716 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23717 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23718 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23720 # Set runtime shared library paths as needed
23722 if test "x$enable_rpath" = "xyes"; then
23723 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
23724 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
23726 if test $ARCH = solaris; then
23727 SDL_RLD_FLAGS="-R\${libdir}"
23733 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
23739 if test x$enable_shared = xyes; then
23740 ENABLE_SHARED_TRUE=
23741 ENABLE_SHARED_FALSE="#"
23743 ENABLE_SHARED_TRUE="#"
23744 ENABLE_SHARED_FALSE=
23746 if test x$enable_static = xyes; then
23747 ENABLE_STATIC_TRUE=
23748 ENABLE_STATIC_FALSE="#"
23750 ENABLE_STATIC_TRUE="#"
23751 ENABLE_STATIC_FALSE=
23770 cat >Makefile.rules <<__EOF__
23772 # Build rules for objects
23773 -include \$(OBJECTS:.lo=.d)
23775 # Special dependency for SDL.c, since it depends on SDL_revision.h
23776 $srcdir/src/SDL.c: update-revision
23783 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
23785 ac_config_commands="$ac_config_commands sdl2_config"
23788 SUMMARY="SDL2 Configure Summary:\n"
23789 if test x$enable_shared = xyes; then
23790 SUMMARY="${SUMMARY}Building Shared Libraries\n"
23792 if test x$enable_static = xyes; then
23793 SUMMARY="${SUMMARY}Building Static Libraries\n"
23795 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
23796 SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
23797 SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
23798 SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
23799 if test x$have_x = xyes; then
23800 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
23802 SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
23803 if test x$enable_libudev = xyes; then
23804 SUMMARY="${SUMMARY}Using libudev : YES\n"
23806 SUMMARY="${SUMMARY}Using libudev : NO\n"
23808 if test x$have_dbus_dbus_h_hdr = xyes; then
23809 SUMMARY="${SUMMARY}Using dbus : YES\n"
23811 SUMMARY="${SUMMARY}Using dbus : NO\n"
23813 if test x$have_ibus_ibus_h_hdr = xyes; then
23814 SUMMARY="${SUMMARY}Using ibus : YES\n"
23816 SUMMARY="${SUMMARY}Using ibus : NO\n"
23818 ac_config_commands="$ac_config_commands summary"
23821 cat >confcache <<\_ACEOF
23822 # This file is a shell script that caches the results of configure
23823 # tests run on this system so they can be shared between configure
23824 # scripts and configure runs, see configure's option --config-cache.
23825 # It is not useful on other systems. If it contains results you don't
23826 # want to keep, you may remove or edit it.
23828 # config.status only pays attention to the cache file if you give it
23829 # the --recheck option to rerun configure.
23831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23833 # following values.
23837 # The following way of writing the cache mishandles newlines in values,
23838 # but we know of no workaround that is simple, portable, and efficient.
23839 # So, we kill variables containing newlines.
23840 # Ultrix sh set writes to stderr and can't be redirected directly,
23841 # and sets the high bit in the cache file unless we assign to the vars.
23843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23844 eval ac_val=\$$ac_var
23848 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23849 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23852 _ | IFS | as_nl) ;; #(
23853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23854 *) { eval $ac_var=; unset $ac_var;} ;;
23860 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23861 *${as_nl}ac_space=\ *)
23862 # `set' does not quote correctly, so add quotes: double-quote
23863 # substitution turns \\\\ into \\, and sed turns \\ into \.
23866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23869 # `set' quotes correctly as required by POSIX, so do not add quotes.
23870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23881 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23883 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23884 if test -w "$cache_file"; then
23885 if test "x$cache_file" != "x/dev/null"; then
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23887 $as_echo "$as_me: updating cache $cache_file" >&6;}
23888 if test ! -f "$cache_file" || test -h "$cache_file"; then
23889 cat confcache >"$cache_file"
23891 case $cache_file in #(
23893 mv -f confcache "$cache_file"$$ &&
23894 mv -f "$cache_file"$$ "$cache_file" ;; #(
23896 mv -f confcache "$cache_file" ;;
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23902 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23908 # Let make expand exec_prefix.
23909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23911 DEFS=-DHAVE_CONFIG_H
23916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23917 # 1. Remove the extension, and $U if already installed.
23918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23921 # will be set to the directory where LIBOBJS objects are built.
23922 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23923 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23925 LIBOBJS=$ac_libobjs
23927 LTLIBOBJS=$ac_ltlibobjs
23931 : "${CONFIG_STATUS=./config.status}"
23933 ac_clean_files_save=$ac_clean_files
23934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23936 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23938 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23940 # Generated by $as_me.
23941 # Run this file to recreate the current configuration.
23942 # Compiler output produced by configure, useful for debugging
23943 # configure, is in config.log if it exists.
23946 ac_cs_recheck=false
23949 SHELL=\${CONFIG_SHELL-$SHELL}
23952 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23953 ## -------------------- ##
23954 ## M4sh Initialization. ##
23955 ## -------------------- ##
23957 # Be more Bourne compatible
23958 DUALCASE=1; export DUALCASE # for MKS sh
23959 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23962 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23963 # is contrary to our usage. Disable this feature.
23964 alias -g '${1+"$@"}'='"$@"'
23965 setopt NO_GLOB_SUBST
23967 case `(set -o) 2>/dev/null` in #(
23979 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23980 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23983 # Prefer a ksh shell builtin over an external printf program on Solaris,
23984 # but without wasting forks for bash or zsh.
23985 if test -z "$BASH_VERSION$ZSH_VERSION" \
23986 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23987 as_echo='print -r --'
23988 as_echo_n='print -rn --'
23989 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23990 as_echo='printf %s\n'
23991 as_echo_n='printf %s'
23993 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23994 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23995 as_echo_n='/usr/ucb/echo -n'
23997 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23998 as_echo_n_body='eval
24002 expr "X$arg" : "X\\(.*\\)$as_nl";
24003 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24005 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24007 export as_echo_n_body
24008 as_echo_n='sh -c $as_echo_n_body as_echo'
24010 export as_echo_body
24011 as_echo='sh -c $as_echo_body as_echo'
24014 # The user is always right.
24015 if test "${PATH_SEPARATOR+set}" != set; then
24017 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24018 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24025 # We need space, tab and new line, in precisely that order. Quoting is
24026 # there to prevent editors from complaining about space-tab.
24027 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24028 # splitting by setting IFS to empty value.)
24031 # Find who we are. Look in the path if we contain no directory separator.
24034 *[\\/]* ) as_myself=$0 ;;
24035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24036 for as_dir in $PATH
24039 test -z "$as_dir" && as_dir=.
24040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24046 # We did not find ourselves, most probably we were run as `sh COMMAND'
24047 # in which case we are not to be found in the path.
24048 if test "x$as_myself" = x; then
24051 if test ! -f "$as_myself"; then
24052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24056 # Unset variables that we do not need and which cause bugs (e.g. in
24057 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24058 # suppresses any "Segmentation fault" message there. '((' could
24059 # trigger a bug in pdksh 5.2.14.
24060 for as_var in BASH_ENV ENV MAIL MAILPATH
24061 do eval test x\${$as_var+set} = xset \
24062 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24078 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24079 # ----------------------------------------
24080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24082 # script with STATUS, using 1 if that was 0.
24085 as_status=$1; test $as_status -eq 0 && as_status=1
24087 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24090 $as_echo "$as_me: error: $2" >&2
24091 as_fn_exit $as_status
24095 # as_fn_set_status STATUS
24096 # -----------------------
24097 # Set $? to STATUS, without forking.
24098 as_fn_set_status ()
24101 } # as_fn_set_status
24103 # as_fn_exit STATUS
24104 # -----------------
24105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24109 as_fn_set_status $1
24115 # Portably unset VAR.
24118 { eval $1=; unset $1;}
24120 as_unset=as_fn_unset
24121 # as_fn_append VAR VALUE
24122 # ----------------------
24123 # Append the text in VALUE to the end of the definition contained in VAR. Take
24124 # advantage of any shell optimizations that allow amortized linear growth over
24125 # repeated appends, instead of the typical quadratic growth present in naive
24127 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24128 eval 'as_fn_append ()
24139 # as_fn_arith ARG...
24140 # ------------------
24141 # Perform arithmetic evaluation on the ARGs, and store the result in the
24142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24143 # must be portable across $(()) and expr.
24144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24145 eval 'as_fn_arith ()
24152 as_val=`expr "$@" || test $? -eq 1`
24157 if expr a : '\(a\)' >/dev/null 2>&1 &&
24158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24165 as_basename=basename
24170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24176 as_me=`$as_basename -- "$0" ||
24177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24178 X"$0" : 'X\(//\)$' \| \
24179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24181 sed '/^.*\/\([^/][^/]*\)\/*$/{
24195 # Avoid depending upon Character Ranges.
24196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24199 as_cr_digits='0123456789'
24200 as_cr_alnum=$as_cr_Letters$as_cr_digits
24202 ECHO_C= ECHO_N= ECHO_T=
24203 case `echo -n x` in #(((((
24205 case `echo 'xy\c'` in
24206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24208 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24215 rm -f conf$$ conf$$.exe conf$$.file
24216 if test -d conf$$.dir; then
24217 rm -f conf$$.dir/conf$$.file
24220 mkdir conf$$.dir 2>/dev/null
24222 if (echo >conf$$.file) 2>/dev/null; then
24223 if ln -s conf$$.file conf$$ 2>/dev/null; then
24225 # ... but there are two gotchas:
24226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24228 # In both cases, we have to default to `cp -pR'.
24229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24231 elif ln conf$$.file conf$$ 2>/dev/null; then
24239 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24240 rmdir conf$$.dir 2>/dev/null
24245 # Create "$as_dir" as a directory, including parents if necessary.
24250 -*) as_dir=./$as_dir;;
24252 test -d "$as_dir" || eval $as_mkdir_p || {
24256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24257 *) as_qdir=$as_dir;;
24259 as_dirs="'$as_qdir' $as_dirs"
24260 as_dir=`$as_dirname -- "$as_dir" ||
24261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24262 X"$as_dir" : 'X\(//\)[^/]' \| \
24263 X"$as_dir" : 'X\(//\)$' \| \
24264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24265 $as_echo X"$as_dir" |
24266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24270 /^X\(\/\/\)[^/].*/{
24283 test -d "$as_dir" && break
24285 test -z "$as_dirs" || eval "mkdir $as_dirs"
24286 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24290 if mkdir -p . 2>/dev/null; then
24291 as_mkdir_p='mkdir -p "$as_dir"'
24293 test -d ./-p && rmdir ./-p
24298 # as_fn_executable_p FILE
24299 # -----------------------
24300 # Test if FILE is an executable regular file.
24301 as_fn_executable_p ()
24303 test -f "$1" && test -x "$1"
24304 } # as_fn_executable_p
24305 as_test_x='test -x'
24306 as_executable_p=as_fn_executable_p
24308 # Sed expression to map a string onto a valid CPP name.
24309 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24311 # Sed expression to map a string onto a valid variable name.
24312 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24316 ## ----------------------------------- ##
24317 ## Main body of $CONFIG_STATUS script. ##
24318 ## ----------------------------------- ##
24320 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24323 # Save the log message, to keep $0 and so on meaningful, and to
24324 # report actual input values of CONFIG_FILES etc. instead of their
24325 # values after options handling.
24327 This file was extended by $as_me, which was
24328 generated by GNU Autoconf 2.69. Invocation command line was
24330 CONFIG_FILES = $CONFIG_FILES
24331 CONFIG_HEADERS = $CONFIG_HEADERS
24332 CONFIG_LINKS = $CONFIG_LINKS
24333 CONFIG_COMMANDS = $CONFIG_COMMANDS
24336 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24341 case $ac_config_files in *"
24342 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24345 case $ac_config_headers in *"
24346 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24351 # Files that config.status was made for.
24352 config_files="$ac_config_files"
24353 config_headers="$ac_config_headers"
24354 config_commands="$ac_config_commands"
24358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24360 \`$as_me' instantiates files and other configuration actions
24361 from templates according to the current configuration. Unless the files
24362 and actions are specified as TAGs, all are instantiated by default.
24364 Usage: $0 [OPTION]... [TAG]...
24366 -h, --help print this help, then exit
24367 -V, --version print version number and configuration settings, then exit
24368 --config print configuration, then exit
24369 -q, --quiet, --silent
24370 do not print progress messages
24371 -d, --debug don't remove temporary files
24372 --recheck update $as_me by reconfiguring in the same conditions
24373 --file=FILE[:TEMPLATE]
24374 instantiate the configuration file FILE
24375 --header=FILE[:TEMPLATE]
24376 instantiate the configuration header FILE
24378 Configuration files:
24381 Configuration headers:
24384 Configuration commands:
24387 Report bugs to the package provider."
24390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24391 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24394 configured by $0, generated by GNU Autoconf 2.69,
24395 with options \\"\$ac_cs_config\\"
24397 Copyright (C) 2012 Free Software Foundation, Inc.
24398 This config.status script is free software; the Free Software Foundation
24399 gives unlimited permission to copy, distribute and modify it."
24405 test -n "\$AWK" || AWK=awk
24408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24409 # The default lists apply if the user does not specify any file.
24415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24432 # Handling of the options.
24433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24436 $as_echo "$ac_cs_version"; exit ;;
24437 --config | --confi | --conf | --con | --co | --c )
24438 $as_echo "$ac_cs_config"; exit ;;
24439 --debug | --debu | --deb | --de | --d | -d )
24441 --file | --fil | --fi | --f )
24444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24445 '') as_fn_error $? "missing file argument" ;;
24447 as_fn_append CONFIG_FILES " '$ac_optarg'"
24448 ac_need_defaults=false;;
24449 --header | --heade | --head | --hea )
24452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24454 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24455 ac_need_defaults=false;;
24457 # Conflict between --help and --header
24458 as_fn_error $? "ambiguous option: \`$1'
24459 Try \`$0 --help' for more information.";;
24460 --help | --hel | -h )
24461 $as_echo "$ac_cs_usage"; exit ;;
24462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24466 # This is an error.
24467 -*) as_fn_error $? "unrecognized option: \`$1'
24468 Try \`$0 --help' for more information." ;;
24470 *) as_fn_append ac_config_targets " $1"
24471 ac_need_defaults=false ;;
24477 ac_configure_extra_args=
24479 if $ac_cs_silent; then
24481 ac_configure_extra_args="$ac_configure_extra_args --silent"
24485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24486 if \$ac_cs_recheck; then
24487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24490 CONFIG_SHELL='$SHELL'
24491 export CONFIG_SHELL
24496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24501 ## Running $as_me. ##
24507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24513 # The HP-UX ksh and POSIX shell print the target directory to stdout
24514 # if CDPATH is set.
24515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24517 sed_quote_subst='$sed_quote_subst'
24518 double_quote_subst='$double_quote_subst'
24519 delay_variable_subst='$delay_variable_subst'
24520 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24521 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24522 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
24523 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24524 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24525 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24526 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24527 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24528 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24529 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24530 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24531 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24532 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24533 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24534 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24535 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24536 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24537 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24538 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24539 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24540 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24541 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24542 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24543 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24544 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24545 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24546 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24547 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24548 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24549 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24550 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24551 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24552 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24553 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24554 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24555 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24556 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24557 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24558 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24559 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24560 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24561 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24562 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24563 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24564 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24565 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24566 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24567 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24568 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24569 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24570 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24571 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24572 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24573 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24574 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24575 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24576 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24577 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"`'
24578 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24579 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24580 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24581 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24582 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24583 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24584 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24585 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24586 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24587 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24588 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24589 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24590 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24591 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24592 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24593 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24594 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24595 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24596 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24597 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24598 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24599 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24600 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24601 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24602 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24603 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24604 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24605 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24606 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24607 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24608 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24609 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24610 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24611 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24612 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24613 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24614 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24615 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24616 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24617 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24618 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24619 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24620 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24621 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24622 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24623 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24624 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24625 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24626 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24627 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24628 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24629 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24630 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24631 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24632 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24633 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24634 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24635 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24636 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24637 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24638 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24639 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24640 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24641 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24642 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24643 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24644 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24645 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24646 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24647 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24648 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24649 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24650 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24651 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24652 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24653 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24654 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24655 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24656 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24657 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24658 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24659 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24660 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24661 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24662 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24663 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24664 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24665 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24666 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24667 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24668 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24669 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24670 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24671 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24672 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24673 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24674 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24675 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24676 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24677 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24678 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24679 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24680 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24681 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24682 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24683 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24684 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24685 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24686 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24687 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24688 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24689 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24690 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24691 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24692 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24693 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24694 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24695 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24696 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24697 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24698 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24699 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24700 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24701 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24702 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24703 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24704 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24707 LTCFLAGS='$LTCFLAGS'
24708 compiler='$compiler_DEFAULT'
24710 # A function that is used when there is no print builtin or printf.
24711 func_fallback_echo ()
24713 eval 'cat <<_LTECHO_EOF
24718 # Quote evaled strings.
24735 deplibs_check_method \
24739 sharedlib_from_linklib_cmd \
24742 archiver_list_spec \
24748 lt_cv_sys_global_symbol_pipe \
24749 lt_cv_sys_global_symbol_to_cdecl \
24750 lt_cv_sys_global_symbol_to_c_name_address \
24751 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24752 nm_file_list_spec \
24753 lt_prog_compiler_no_builtin_flag \
24754 lt_prog_compiler_pic \
24755 lt_prog_compiler_wl \
24756 lt_prog_compiler_static \
24757 lt_cv_prog_compiler_c_o \
24766 export_dynamic_flag_spec \
24767 whole_archive_flag_spec \
24768 compiler_needs_object \
24770 allow_undefined_flag \
24771 no_undefined_flag \
24772 hardcode_libdir_flag_spec \
24773 hardcode_libdir_separator \
24777 variables_saved_for_relink \
24779 library_names_spec \
24781 install_override_mode \
24785 compiler_lib_search_dirs \
24790 compiler_lib_search_path \
24794 lt_prog_compiler_no_builtin_flag_CXX \
24795 lt_prog_compiler_pic_CXX \
24796 lt_prog_compiler_wl_CXX \
24797 lt_prog_compiler_static_CXX \
24798 lt_cv_prog_compiler_c_o_CXX \
24799 export_dynamic_flag_spec_CXX \
24800 whole_archive_flag_spec_CXX \
24801 compiler_needs_object_CXX \
24803 allow_undefined_flag_CXX \
24804 no_undefined_flag_CXX \
24805 hardcode_libdir_flag_spec_CXX \
24806 hardcode_libdir_separator_CXX \
24807 exclude_expsyms_CXX \
24808 include_expsyms_CXX \
24809 file_list_spec_CXX \
24810 compiler_lib_search_dirs_CXX \
24811 predep_objects_CXX \
24812 postdep_objects_CXX \
24815 compiler_lib_search_path_CXX; do
24816 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24817 *[\\\\\\\`\\"\\\$]*)
24818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24826 # Double-quote double-evaled strings.
24827 for var in reload_cmds \
24828 old_postinstall_cmds \
24829 old_postuninstall_cmds \
24831 extract_expsyms_cmds \
24832 old_archive_from_new_cmds \
24833 old_archive_from_expsyms_cmds \
24835 archive_expsym_cmds \
24837 module_expsym_cmds \
24838 export_symbols_cmds \
24842 postuninstall_cmds \
24844 sys_lib_search_path_spec \
24845 sys_lib_dlsearch_path_spec \
24847 old_archive_cmds_CXX \
24848 old_archive_from_new_cmds_CXX \
24849 old_archive_from_expsyms_cmds_CXX \
24851 archive_expsym_cmds_CXX \
24853 module_expsym_cmds_CXX \
24854 export_symbols_cmds_CXX \
24856 postlink_cmds_CXX; do
24857 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24858 *[\\\\\\\`\\"\\\$]*)
24859 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24862 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24867 ac_aux_dir='$ac_aux_dir'
24868 xsi_shell='$xsi_shell'
24869 lt_shell_append='$lt_shell_append'
24871 # See if we are running on zsh, and set the options which allow our
24872 # commands through without removal of \ escapes INIT.
24873 if test -n "\${ZSH_VERSION+set}" ; then
24874 setopt NO_GLOB_SUBST
24880 TIMESTAMP='$TIMESTAMP'
24892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24894 # Handling of arguments.
24895 for ac_config_target in $ac_config_targets
24897 case $ac_config_target in
24898 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
24899 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
24901 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
24902 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
24903 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
24904 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
24905 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
24906 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
24908 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24913 # If the user did not use the arguments to specify the items to instantiate,
24914 # then the envvar interface is used. Set only those that are not.
24915 # We use the long form for the default assignment because of an extremely
24916 # bizarre bug on SunOS 4.1.3.
24917 if $ac_need_defaults; then
24918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24923 # Have a temporary directory for convenience. Make it in the build tree
24924 # simply because there is no reason against having it here, and in addition,
24925 # creating and moving files from /tmp can sometimes cause problems.
24926 # Hook for its removal unless debugging.
24927 # Note that there is a small window in which the directory will not be cleaned:
24928 # after its creation but before its name has been assigned to `$tmp'.
24932 trap 'exit_status=$?
24933 : "${ac_tmp:=$tmp}"
24934 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24936 trap 'as_fn_exit 1' 1 2 13 15
24938 # Create a (secure) tmp directory for tmp files.
24941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24945 tmp=./conf$$-$RANDOM
24946 (umask 077 && mkdir "$tmp")
24947 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24950 # Set up the scripts for CONFIG_FILES section.
24951 # No need to generate them if there are no CONFIG_FILES.
24952 # This happens for instance with `./config.status config.h'.
24953 if test -n "$CONFIG_FILES"; then
24956 ac_cr=`echo X | tr X '\015'`
24957 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24958 # But we know of no other shell where ac_cr would be empty at this
24959 # point, so we can use a bashism as a fallback.
24960 if test "x$ac_cr" = x; then
24961 eval ac_cr=\$\'\\r\'
24963 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24964 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24967 ac_cs_awk_cr=$ac_cr
24970 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24975 echo "cat >conf$$subs.awk <<_ACEOF" &&
24976 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24978 } >conf$$subs.sh ||
24979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24982 for ac_last_try in false false false false false :; do
24983 . ./conf$$subs.sh ||
24984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24986 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24987 if test $ac_delim_n = $ac_delim_num; then
24989 elif $ac_last_try; then
24990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24995 rm -f conf$$subs.sh
24997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24998 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25002 s/^/S["/; s/!.*/"]=/
25012 s/\(.\{148\}\)..*/\1/
25014 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25019 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25026 s/\(.\{148\}\)..*/\1/
25028 s/["\\]/\\&/g; s/^/"/; s/$/"/
25032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25037 ' <conf$$subs.awk | sed '
25042 ' >>$CONFIG_STATUS || ac_write_fail=1
25043 rm -f conf$$subs.awk
25044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25046 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25047 for (key in S) S_is_set[key] = 1
25053 nfields = split(line, field, "@")
25055 len = length(field[1])
25056 for (i = 2; i < nfields; i++) {
25058 keylen = length(key)
25059 if (S_is_set[key]) {
25061 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25062 len += length(value) + length(field[++i])
25073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25074 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25075 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25078 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25079 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25082 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25083 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25084 # trailing colons and then remove the whole line if VPATH becomes empty
25085 # (actually we leave an empty line to preserve line numbers).
25086 if test "x$srcdir" = x.; then
25087 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25106 fi # test -n "$CONFIG_FILES"
25108 # Set up the scripts for CONFIG_HEADERS section.
25109 # No need to generate them if there are no CONFIG_HEADERS.
25110 # This happens for instance with `./config.status Makefile'.
25111 if test -n "$CONFIG_HEADERS"; then
25112 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25116 # Transform confdefs.h into an awk script `defines.awk', embedded as
25117 # here-document in config.status, that substitutes the proper values into
25118 # config.h.in to produce config.h.
25120 # Create a delimiter string that does not exist in confdefs.h, to ease
25121 # handling of long lines.
25123 for ac_last_try in false false :; do
25124 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25125 if test -z "$ac_tt"; then
25127 elif $ac_last_try; then
25128 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25134 # For the awk script, D is an array of macro values keyed by name,
25135 # likewise P contains macro parameters if any. Preserve backslash
25136 # newline sequences.
25138 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25140 s/.\{148\}/&'"$ac_delim"'/g
25143 s/^[ ]*#[ ]*define[ ][ ]*/ /
25150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25157 D["\1"]=" \3\\\\\\n"\\/p
25159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25164 s/.\{148\}/&'"$ac_delim"'/g
25169 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25172 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25174 ' <confdefs.h | sed '
25175 s/'"$ac_delim"'/"\\\
25176 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25179 for (key in D) D_is_set[key] = 1
25182 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25184 split(line, arg, " ")
25185 if (arg[1] == "#") {
25189 defundef = substr(arg[1], 2)
25192 split(mac1, mac2, "(") #)
25194 prefix = substr(line, 1, index(line, defundef) - 1)
25195 if (D_is_set[macro]) {
25196 # Preserve the white space surrounding the "#".
25197 print prefix "define", macro P[macro] D[macro]
25200 # Replace #undef with comments. This is necessary, for example,
25201 # in the case of _POSIX_SOURCE, which is predefined and required
25202 # on some systems where configure will not decide to define it.
25203 if (defundef == "undef") {
25204 print "/*", prefix defundef, macro, "*/"
25212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25213 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25214 fi # test -n "$CONFIG_HEADERS"
25217 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25222 :[FHLC]) ac_mode=$ac_tag; continue;;
25224 case $ac_mode$ac_tag in
25226 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25227 :[FH]-) ac_tag=-:-;;
25228 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25245 -) ac_f="$ac_tmp/stdin";;
25246 *) # Look for the file first in the build tree, then in the source tree
25247 # (if the path is not absolute). The absolute path cannot be DOS-style,
25248 # because $ac_f cannot contain `:'.
25252 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25254 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25256 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25257 as_fn_append ac_file_inputs " '$ac_f'"
25260 # Let's still pretend it is `configure' which instantiates (i.e., don't
25261 # use $as_me), people would be surprised to read:
25262 # /* config.h. Generated by config.status. */
25263 configure_input='Generated from '`
25264 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25266 if test x"$ac_file" != x-; then
25267 configure_input="$ac_file. $configure_input"
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25269 $as_echo "$as_me: creating $ac_file" >&6;}
25271 # Neutralize special characters interpreted by sed in replacement strings.
25272 case $configure_input in #(
25273 *\&* | *\|* | *\\* )
25274 ac_sed_conf_input=`$as_echo "$configure_input" |
25275 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25276 *) ac_sed_conf_input=$configure_input;;
25280 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25281 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25286 ac_dir=`$as_dirname -- "$ac_file" ||
25287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25288 X"$ac_file" : 'X\(//\)[^/]' \| \
25289 X"$ac_file" : 'X\(//\)$' \| \
25290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25291 $as_echo X"$ac_file" |
25292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25296 /^X\(\/\/\)[^/].*/{
25309 as_dir="$ac_dir"; as_fn_mkdir_p
25313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25315 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25316 # A ".." for each directory in $ac_dir_suffix.
25317 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25318 case $ac_top_builddir_sub in
25319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25323 ac_abs_top_builddir=$ac_pwd
25324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25325 # for backward compatibility:
25326 ac_top_builddir=$ac_top_build_prefix
25329 .) # We are building in place.
25331 ac_top_srcdir=$ac_top_builddir_sub
25332 ac_abs_top_srcdir=$ac_pwd ;;
25333 [\\/]* | ?:[\\/]* ) # Absolute name.
25334 ac_srcdir=$srcdir$ac_dir_suffix;
25335 ac_top_srcdir=$srcdir
25336 ac_abs_top_srcdir=$srcdir ;;
25337 *) # Relative name.
25338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25339 ac_top_srcdir=$ac_top_build_prefix$srcdir
25340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25353 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25358 # If the template does not know about datarootdir, expand it.
25359 # FIXME: This hack should be removed a few years after 2.60.
25360 ac_datarootdir_hack=; ac_datarootdir_seen=
25371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25372 *datarootdir*) ac_datarootdir_seen=yes;;
25373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25378 ac_datarootdir_hack='
25379 s&@datadir@&$datadir&g
25380 s&@docdir@&$docdir&g
25381 s&@infodir@&$infodir&g
25382 s&@localedir@&$localedir&g
25383 s&@mandir@&$mandir&g
25384 s&\\\${datarootdir}&$datarootdir&g' ;;
25388 # Neutralize VPATH when `$srcdir' = `.'.
25389 # Shell code in configure.ac might set extrasub.
25390 # FIXME: do we really want to maintain this feature?
25391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25392 ac_sed_extra="$ac_vpsub
25395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25398 s|@configure_input@|$ac_sed_conf_input|;t t
25399 s&@top_builddir@&$ac_top_builddir_sub&;t t
25400 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25401 s&@srcdir@&$ac_srcdir&;t t
25402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25403 s&@top_srcdir@&$ac_top_srcdir&;t t
25404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25405 s&@builddir@&$ac_builddir&;t t
25406 s&@abs_builddir@&$ac_abs_builddir&;t t
25407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25408 s&@INSTALL@&$ac_INSTALL&;t t
25409 $ac_datarootdir_hack
25411 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25412 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25415 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25416 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25417 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25419 which seems to be undefined. Please make sure it is defined" >&5
25420 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25421 which seems to be undefined. Please make sure it is defined" >&2;}
25423 rm -f "$ac_tmp/stdin"
25425 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25426 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25434 if test x"$ac_file" != x-; then
25436 $as_echo "/* $configure_input */" \
25437 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25438 } >"$ac_tmp/config.h" \
25439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25440 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25442 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25445 mv "$ac_tmp/config.h" "$ac_file" \
25446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25449 $as_echo "/* $configure_input */" \
25450 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25451 || as_fn_error $? "could not create -" "$LINENO" 5
25455 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25456 $as_echo "$as_me: executing $ac_file commands" >&6;}
25461 case $ac_file$ac_mode in
25464 # See if we are running on zsh, and set the options which allow our
25465 # commands through without removal of \ escapes.
25466 if test -n "${ZSH_VERSION+set}" ; then
25467 setopt NO_GLOB_SUBST
25470 cfgfile="${ofile}T"
25471 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25474 cat <<_LT_EOF >> "$cfgfile"
25477 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25478 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25483 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
25485 # Written by Gordon Matzigkeit, 1996
25487 # This file is part of GNU Libtool.
25489 # GNU Libtool is free software; you can redistribute it and/or
25490 # modify it under the terms of the GNU General Public License as
25491 # published by the Free Software Foundation; either version 2 of
25492 # the License, or (at your option) any later version.
25494 # As a special exception to the GNU General Public License,
25495 # if you distribute this file as part of a program or library that
25496 # is built using GNU Libtool, you may include this file under the
25497 # same distribution terms that you use for the rest of that program.
25499 # GNU Libtool is distributed in the hope that it will be useful,
25500 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25502 # GNU General Public License for more details.
25504 # You should have received a copy of the GNU General Public License
25505 # along with GNU Libtool; see the file COPYING. If not, a copy
25506 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25507 # obtained by writing to the Free Software Foundation, Inc.,
25508 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25511 # The names of the tagged configurations supported by this script.
25512 available_tags="CXX "
25514 # ### BEGIN LIBTOOL CONFIG
25516 # Which release of libtool.m4 was used?
25517 macro_version=$macro_version
25518 macro_revision=$macro_revision
25520 # Assembler program.
25523 # DLL creation program.
25524 DLLTOOL=$lt_DLLTOOL
25526 # Object dumper program.
25527 OBJDUMP=$lt_OBJDUMP
25529 # Whether or not to build shared libraries.
25530 build_libtool_libs=$enable_shared
25532 # Whether or not to build static libraries.
25533 build_old_libs=$enable_static
25535 # What type of objects to build.
25538 # Whether or not to optimize for fast installation.
25539 fast_install=$enable_fast_install
25541 # Shell to use when invoking shell scripts.
25544 # An echo program that protects backslashes.
25547 # The PATH separator for the build system.
25548 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25551 host_alias=$host_alias
25555 # The build system.
25556 build_alias=$build_alias
25560 # A sed program that does not truncate output.
25563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25564 Xsed="\$SED -e 1s/^X//"
25566 # A grep program that handles long lines.
25572 # A literal string matcher.
25575 # A BSD- or MS-compatible name lister.
25578 # Whether we need soft or hard links.
25581 # What is the maximum length of a command?
25582 max_cmd_len=$max_cmd_len
25584 # Object file suffix (normally "o").
25587 # Executable file suffix (normally "").
25590 # whether the shell understands "unset".
25593 # turn spaces into newlines.
25596 # turn newlines into spaces.
25599 # convert \$build file names to \$host format.
25600 to_host_file_cmd=$lt_cv_to_host_file_cmd
25602 # convert \$build files to toolchain format.
25603 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25605 # Method to check whether dependent libraries are shared objects.
25606 deplibs_check_method=$lt_deplibs_check_method
25608 # Command to use when deplibs_check_method = "file_magic".
25609 file_magic_cmd=$lt_file_magic_cmd
25611 # How to find potential files when deplibs_check_method = "file_magic".
25612 file_magic_glob=$lt_file_magic_glob
25614 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25615 want_nocaseglob=$lt_want_nocaseglob
25617 # Command to associate shared and link libraries.
25618 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25623 # Flags to create an archive.
25624 AR_FLAGS=$lt_AR_FLAGS
25626 # How to feed a file listing to the archiver.
25627 archiver_list_spec=$lt_archiver_list_spec
25629 # A symbol stripping program.
25632 # Commands used to install an old-style archive.
25634 old_postinstall_cmds=$lt_old_postinstall_cmds
25635 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25637 # Whether to use a lock for old archive extraction.
25638 lock_old_archive_extraction=$lock_old_archive_extraction
25643 # LTCC compiler flags.
25644 LTCFLAGS=$lt_CFLAGS
25646 # Take the output of nm and produce a listing of raw symbols and C names.
25647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25649 # Transform the output of nm in a proper C declaration.
25650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25652 # Transform the output of nm in a C name address pair.
25653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25655 # Transform the output of nm in a C name address pair when lib prefix is needed.
25656 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25658 # Specify filename containing input files for \$NM.
25659 nm_file_list_spec=$lt_nm_file_list_spec
25661 # The root where to search for dependent libraries,and in which our libraries should be installed.
25662 lt_sysroot=$lt_sysroot
25664 # The name of the directory that contains temporary libtool files.
25667 # Used to examine libraries when file_magic_cmd begins with "file".
25668 MAGIC_CMD=$MAGIC_CMD
25670 # Must we lock files when doing compilation?
25671 need_locks=$lt_need_locks
25674 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25676 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25677 DSYMUTIL=$lt_DSYMUTIL
25679 # Tool to change global to local symbols on Mac OS X.
25682 # Tool to manipulate fat objects and archives on Mac OS X.
25685 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25688 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25689 OTOOL64=$lt_OTOOL64
25691 # Old archive suffix (normally "a").
25694 # Shared library suffix (normally ".so").
25695 shrext_cmds=$lt_shrext_cmds
25697 # The commands to extract the exported symbol list from a shared archive.
25698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25700 # Variables whose values should be saved in libtool wrapper scripts and
25701 # restored at link time.
25702 variables_saved_for_relink=$lt_variables_saved_for_relink
25704 # Do we need the "lib" prefix for modules?
25705 need_lib_prefix=$need_lib_prefix
25707 # Do we need a version for libraries?
25708 need_version=$need_version
25710 # Library versioning type.
25711 version_type=$version_type
25713 # Shared library runtime path variable.
25714 runpath_var=$runpath_var
25716 # Shared library path variable.
25717 shlibpath_var=$shlibpath_var
25719 # Is shlibpath searched before the hard-coded library search path?
25720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25722 # Format of library name prefix.
25723 libname_spec=$lt_libname_spec
25725 # List of archive names. First name is the real one, the rest are links.
25726 # The last name is the one that the linker finds with -lNAME
25727 library_names_spec=$lt_library_names_spec
25729 # The coded name of the library, if different from the real name.
25730 soname_spec=$lt_soname_spec
25732 # Permission mode override for installation of shared libraries.
25733 install_override_mode=$lt_install_override_mode
25735 # Command to use after installation of a shared archive.
25736 postinstall_cmds=$lt_postinstall_cmds
25738 # Command to use after uninstallation of a shared archive.
25739 postuninstall_cmds=$lt_postuninstall_cmds
25741 # Commands used to finish a libtool library installation in a directory.
25742 finish_cmds=$lt_finish_cmds
25744 # As "finish_cmds", except a single script fragment to be evaled but
25746 finish_eval=$lt_finish_eval
25748 # Whether we should hardcode library paths into libraries.
25749 hardcode_into_libs=$hardcode_into_libs
25751 # Compile-time system search path for libraries.
25752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25754 # Run-time system search path for libraries.
25755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25757 # Whether dlopen is supported.
25758 dlopen_support=$enable_dlopen
25760 # Whether dlopen of programs is supported.
25761 dlopen_self=$enable_dlopen_self
25763 # Whether dlopen of statically linked programs is supported.
25764 dlopen_self_static=$enable_dlopen_self_static
25766 # Commands to strip libraries.
25767 old_striplib=$lt_old_striplib
25768 striplib=$lt_striplib
25771 # The linker used to build libraries.
25774 # How to create reloadable object files.
25775 reload_flag=$lt_reload_flag
25776 reload_cmds=$lt_reload_cmds
25778 # Commands used to build an old-style archive.
25779 old_archive_cmds=$lt_old_archive_cmds
25781 # A language specific compiler.
25784 # Is the compiler the GNU compiler?
25787 # Compiler flag to turn off builtin functions.
25788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25790 # Additional compiler flags for building library objects.
25791 pic_flag=$lt_lt_prog_compiler_pic
25793 # How to pass a linker flag through the compiler.
25794 wl=$lt_lt_prog_compiler_wl
25796 # Compiler flag to prevent dynamic linking.
25797 link_static_flag=$lt_lt_prog_compiler_static
25799 # Does compiler simultaneously support -c and -o options?
25800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25802 # Whether or not to add -lc for building shared libraries.
25803 build_libtool_need_lc=$archive_cmds_need_lc
25805 # Whether or not to disallow shared libs when runtime libs are static.
25806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25808 # Compiler flag to allow reflexive dlopens.
25809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25811 # Compiler flag to generate shared objects directly from archives.
25812 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25814 # Whether the compiler copes with passing no objects directly.
25815 compiler_needs_object=$lt_compiler_needs_object
25817 # Create an old-style archive from a shared archive.
25818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25820 # Create a temporary old-style archive to link instead of a shared archive.
25821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25823 # Commands used to build a shared archive.
25824 archive_cmds=$lt_archive_cmds
25825 archive_expsym_cmds=$lt_archive_expsym_cmds
25827 # Commands used to build a loadable module if different from building
25828 # a shared archive.
25829 module_cmds=$lt_module_cmds
25830 module_expsym_cmds=$lt_module_expsym_cmds
25832 # Whether we are building with GNU ld or not.
25833 with_gnu_ld=$lt_with_gnu_ld
25835 # Flag that allows shared libraries with undefined symbols to be built.
25836 allow_undefined_flag=$lt_allow_undefined_flag
25838 # Flag that enforces no undefined symbols.
25839 no_undefined_flag=$lt_no_undefined_flag
25841 # Flag to hardcode \$libdir into a binary during linking.
25842 # This must work even if \$libdir does not exist
25843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25845 # Whether we need a single "-rpath" flag with a separated argument.
25846 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25849 # DIR into the resulting binary.
25850 hardcode_direct=$hardcode_direct
25852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25853 # DIR into the resulting binary and the resulting library dependency is
25854 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25855 # library is relocated.
25856 hardcode_direct_absolute=$hardcode_direct_absolute
25858 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25859 # into the resulting binary.
25860 hardcode_minus_L=$hardcode_minus_L
25862 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25863 # into the resulting binary.
25864 hardcode_shlibpath_var=$hardcode_shlibpath_var
25866 # Set to "yes" if building a shared library automatically hardcodes DIR
25867 # into the library and all subsequent libraries and executables linked
25869 hardcode_automatic=$hardcode_automatic
25871 # Set to yes if linker adds runtime paths of dependent libraries
25872 # to runtime path list.
25873 inherit_rpath=$inherit_rpath
25875 # Whether libtool must link a program against all its dependency libraries.
25876 link_all_deplibs=$link_all_deplibs
25878 # Set to "yes" if exported symbols are required.
25879 always_export_symbols=$always_export_symbols
25881 # The commands to list exported symbols.
25882 export_symbols_cmds=$lt_export_symbols_cmds
25884 # Symbols that should not be listed in the preloaded symbols.
25885 exclude_expsyms=$lt_exclude_expsyms
25887 # Symbols that must always be exported.
25888 include_expsyms=$lt_include_expsyms
25890 # Commands necessary for linking programs (against libraries) with templates.
25891 prelink_cmds=$lt_prelink_cmds
25893 # Commands necessary for finishing linking programs.
25894 postlink_cmds=$lt_postlink_cmds
25896 # Specify filename containing input files.
25897 file_list_spec=$lt_file_list_spec
25899 # How to hardcode a shared library path into an executable.
25900 hardcode_action=$hardcode_action
25902 # The directories searched by this compiler when creating a shared library.
25903 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25905 # Dependencies to place before and after the objects being linked to
25906 # create a shared library.
25907 predep_objects=$lt_predep_objects
25908 postdep_objects=$lt_postdep_objects
25909 predeps=$lt_predeps
25910 postdeps=$lt_postdeps
25912 # The library search path used internally by the compiler when linking
25913 # a shared library.
25914 compiler_lib_search_path=$lt_compiler_lib_search_path
25916 # ### END LIBTOOL CONFIG
25922 cat <<\_LT_EOF >> "$cfgfile"
25923 # AIX sometimes has problems with the GCC collect2 program. For some
25924 # reason, if we set the COLLECT_NAMES environment variable, the problems
25925 # vanish in a puff of smoke.
25926 if test "X${COLLECT_NAMES+set}" != Xset; then
25928 export COLLECT_NAMES
25935 ltmain="$ac_aux_dir/ltmain.sh"
25938 # We use sed instead of cat because bash on DJGPP gets confused if
25939 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25940 # text mode, it properly converts lines to CR/LF. This bash problem
25941 # is reportedly fixed, but why not run on old versions too?
25942 sed '$q' "$ltmain" >> "$cfgfile" \
25943 || (rm -f "$cfgfile"; exit 1)
25945 if test x"$xsi_shell" = xyes; then
25946 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25950 \ */*) func_dirname_result="${1%/*}${2}" ;;\
25951 \ * ) func_dirname_result="${3}" ;;\
25953 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25954 && mv -f "$cfgfile.tmp" "$cfgfile" \
25955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25956 test 0 -eq $? || _lt_function_replace_fail=:
25959 sed -e '/^func_basename ()$/,/^} # func_basename /c\
25962 \ func_basename_result="${1##*/}"\
25963 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25964 && mv -f "$cfgfile.tmp" "$cfgfile" \
25965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25966 test 0 -eq $? || _lt_function_replace_fail=:
25969 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25970 func_dirname_and_basename ()\
25973 \ */*) func_dirname_result="${1%/*}${2}" ;;\
25974 \ * ) func_dirname_result="${3}" ;;\
25976 \ func_basename_result="${1##*/}"\
25977 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25978 && mv -f "$cfgfile.tmp" "$cfgfile" \
25979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25980 test 0 -eq $? || _lt_function_replace_fail=:
25983 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25986 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25987 \ # positional parameters, so assign one to ordinary parameter first.\
25988 \ func_stripname_result=${3}\
25989 \ func_stripname_result=${func_stripname_result#"${1}"}\
25990 \ func_stripname_result=${func_stripname_result%"${2}"}\
25991 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25992 && mv -f "$cfgfile.tmp" "$cfgfile" \
25993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25994 test 0 -eq $? || _lt_function_replace_fail=:
25997 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25998 func_split_long_opt ()\
26000 \ func_split_long_opt_name=${1%%=*}\
26001 \ func_split_long_opt_arg=${1#*=}\
26002 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
26003 && mv -f "$cfgfile.tmp" "$cfgfile" \
26004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26005 test 0 -eq $? || _lt_function_replace_fail=:
26008 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
26009 func_split_short_opt ()\
26011 \ func_split_short_opt_arg=${1#??}\
26012 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
26013 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
26014 && mv -f "$cfgfile.tmp" "$cfgfile" \
26015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26016 test 0 -eq $? || _lt_function_replace_fail=:
26019 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
26023 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
26024 \ *) func_lo2o_result=${1} ;;\
26026 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
26027 && mv -f "$cfgfile.tmp" "$cfgfile" \
26028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26029 test 0 -eq $? || _lt_function_replace_fail=:
26032 sed -e '/^func_xform ()$/,/^} # func_xform /c\
26035 func_xform_result=${1%.*}.lo\
26036 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
26037 && mv -f "$cfgfile.tmp" "$cfgfile" \
26038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26039 test 0 -eq $? || _lt_function_replace_fail=:
26042 sed -e '/^func_arith ()$/,/^} # func_arith /c\
26045 func_arith_result=$(( $* ))\
26046 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
26047 && mv -f "$cfgfile.tmp" "$cfgfile" \
26048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26049 test 0 -eq $? || _lt_function_replace_fail=:
26052 sed -e '/^func_len ()$/,/^} # func_len /c\
26055 func_len_result=${#1}\
26056 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
26057 && mv -f "$cfgfile.tmp" "$cfgfile" \
26058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26059 test 0 -eq $? || _lt_function_replace_fail=:
26063 if test x"$lt_shell_append" = xyes; then
26064 sed -e '/^func_append ()$/,/^} # func_append /c\
26067 eval "${1}+=\\${2}"\
26068 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
26069 && mv -f "$cfgfile.tmp" "$cfgfile" \
26070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26071 test 0 -eq $? || _lt_function_replace_fail=:
26074 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
26075 func_append_quoted ()\
26077 \ func_quote_for_eval "${2}"\
26078 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
26079 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
26080 && mv -f "$cfgfile.tmp" "$cfgfile" \
26081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26082 test 0 -eq $? || _lt_function_replace_fail=:
26085 # Save a `func_append' function call where possible by direct use of '+='
26086 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
26087 && mv -f "$cfgfile.tmp" "$cfgfile" \
26088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26089 test 0 -eq $? || _lt_function_replace_fail=:
26091 # Save a `func_append' function call even when '+=' is not available
26092 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
26093 && mv -f "$cfgfile.tmp" "$cfgfile" \
26094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26095 test 0 -eq $? || _lt_function_replace_fail=:
26098 if test x"$_lt_function_replace_fail" = x":"; then
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
26100 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
26104 mv -f "$cfgfile" "$ofile" ||
26105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26109 cat <<_LT_EOF >> "$ofile"
26111 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26113 # The linker used to build libraries.
26116 # How to create reloadable object files.
26117 reload_flag=$lt_reload_flag_CXX
26118 reload_cmds=$lt_reload_cmds_CXX
26120 # Commands used to build an old-style archive.
26121 old_archive_cmds=$lt_old_archive_cmds_CXX
26123 # A language specific compiler.
26124 CC=$lt_compiler_CXX
26126 # Is the compiler the GNU compiler?
26129 # Compiler flag to turn off builtin functions.
26130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26132 # Additional compiler flags for building library objects.
26133 pic_flag=$lt_lt_prog_compiler_pic_CXX
26135 # How to pass a linker flag through the compiler.
26136 wl=$lt_lt_prog_compiler_wl_CXX
26138 # Compiler flag to prevent dynamic linking.
26139 link_static_flag=$lt_lt_prog_compiler_static_CXX
26141 # Does compiler simultaneously support -c and -o options?
26142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26144 # Whether or not to add -lc for building shared libraries.
26145 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26147 # Whether or not to disallow shared libs when runtime libs are static.
26148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26150 # Compiler flag to allow reflexive dlopens.
26151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26153 # Compiler flag to generate shared objects directly from archives.
26154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26156 # Whether the compiler copes with passing no objects directly.
26157 compiler_needs_object=$lt_compiler_needs_object_CXX
26159 # Create an old-style archive from a shared archive.
26160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26162 # Create a temporary old-style archive to link instead of a shared archive.
26163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26165 # Commands used to build a shared archive.
26166 archive_cmds=$lt_archive_cmds_CXX
26167 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26169 # Commands used to build a loadable module if different from building
26170 # a shared archive.
26171 module_cmds=$lt_module_cmds_CXX
26172 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26174 # Whether we are building with GNU ld or not.
26175 with_gnu_ld=$lt_with_gnu_ld_CXX
26177 # Flag that allows shared libraries with undefined symbols to be built.
26178 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26180 # Flag that enforces no undefined symbols.
26181 no_undefined_flag=$lt_no_undefined_flag_CXX
26183 # Flag to hardcode \$libdir into a binary during linking.
26184 # This must work even if \$libdir does not exist
26185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26187 # Whether we need a single "-rpath" flag with a separated argument.
26188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26191 # DIR into the resulting binary.
26192 hardcode_direct=$hardcode_direct_CXX
26194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26195 # DIR into the resulting binary and the resulting library dependency is
26196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26197 # library is relocated.
26198 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26201 # into the resulting binary.
26202 hardcode_minus_L=$hardcode_minus_L_CXX
26204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26205 # into the resulting binary.
26206 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26208 # Set to "yes" if building a shared library automatically hardcodes DIR
26209 # into the library and all subsequent libraries and executables linked
26211 hardcode_automatic=$hardcode_automatic_CXX
26213 # Set to yes if linker adds runtime paths of dependent libraries
26214 # to runtime path list.
26215 inherit_rpath=$inherit_rpath_CXX
26217 # Whether libtool must link a program against all its dependency libraries.
26218 link_all_deplibs=$link_all_deplibs_CXX
26220 # Set to "yes" if exported symbols are required.
26221 always_export_symbols=$always_export_symbols_CXX
26223 # The commands to list exported symbols.
26224 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26226 # Symbols that should not be listed in the preloaded symbols.
26227 exclude_expsyms=$lt_exclude_expsyms_CXX
26229 # Symbols that must always be exported.
26230 include_expsyms=$lt_include_expsyms_CXX
26232 # Commands necessary for linking programs (against libraries) with templates.
26233 prelink_cmds=$lt_prelink_cmds_CXX
26235 # Commands necessary for finishing linking programs.
26236 postlink_cmds=$lt_postlink_cmds_CXX
26238 # Specify filename containing input files.
26239 file_list_spec=$lt_file_list_spec_CXX
26241 # How to hardcode a shared library path into an executable.
26242 hardcode_action=$hardcode_action_CXX
26244 # The directories searched by this compiler when creating a shared library.
26245 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26247 # Dependencies to place before and after the objects being linked to
26248 # create a shared library.
26249 predep_objects=$lt_predep_objects_CXX
26250 postdep_objects=$lt_postdep_objects_CXX
26251 predeps=$lt_predeps_CXX
26252 postdeps=$lt_postdeps_CXX
26254 # The library search path used internally by the compiler when linking
26255 # a shared library.
26256 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26258 # ### END LIBTOOL TAG CONFIG: CXX
26262 "sdl2_config":C) chmod a+x sdl2-config ;;
26263 "summary":C) echo -en "$SUMMARY" ;;
26271 ac_clean_files=$ac_clean_files_save
26273 test $ac_write_fail = 0 ||
26274 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26277 # configure is writing to config.log, and then calls config.status.
26278 # config.status does its own redirection, appending to config.log.
26279 # Unfortunately, on DOS this fails, as config.log is still kept open
26280 # by configure, so config.status won't be able to write to it; its
26281 # output is simply discarded. So we exec the FD to /dev/null,
26282 # effectively closing config.log, so it can be properly (re)opened and
26283 # appended to by config.status. When coming back to configure, we
26284 # need to make the FD available again.
26285 if test "$no_create" != yes; then
26287 ac_config_status_args=
26288 test "$silent" = yes &&
26289 ac_config_status_args="$ac_config_status_args --quiet"
26291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26294 # would make configure fail if this is the last instruction.
26295 $ac_cs_success || as_fn_exit 1
26297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26299 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}